@atlaskit/profilecard 22.0.3 → 22.2.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.
Files changed (78) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/afm-cc/tsconfig.json +3 -0
  3. package/afm-jira/tsconfig.json +3 -0
  4. package/afm-post-office/tsconfig.json +3 -0
  5. package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
  6. package/dist/cjs/client/getTeamFromAGG.js +1 -1
  7. package/dist/cjs/components/Error/ErrorMessage.js +1 -1
  8. package/dist/cjs/components/Icon/IconLabel.js +5 -6
  9. package/dist/cjs/components/Team/TeamForbiddenErrorState.js +1 -1
  10. package/dist/cjs/components/Team/TeamLoadingState.js +2 -2
  11. package/dist/cjs/components/Team/TeamProfileCard.js +8 -7
  12. package/dist/cjs/components/User/OverflowProfileCardButtons.js +1 -1
  13. package/dist/cjs/components/User/ProfileCard.js +4 -4
  14. package/dist/cjs/components/User/ProfileCardDetails.js +3 -2
  15. package/dist/cjs/components/User/ProfileCardResourced.js +1 -1
  16. package/dist/cjs/components/User/ProfileCardTrigger.js +1 -1
  17. package/dist/cjs/styled/Card.compiled.css +78 -0
  18. package/dist/cjs/styled/Card.js +225 -46
  19. package/dist/cjs/styled/Error.compiled.css +9 -0
  20. package/dist/cjs/styled/Error.js +33 -5
  21. package/dist/cjs/styled/ReportingLines.compiled.css +10 -0
  22. package/dist/cjs/styled/ReportingLines.js +44 -7
  23. package/dist/cjs/styled/TeamCard.compiled.css +41 -0
  24. package/dist/cjs/styled/TeamCard.js +145 -47
  25. package/dist/cjs/util/analytics.js +1 -1
  26. package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
  27. package/dist/es2019/client/getTeamFromAGG.js +1 -1
  28. package/dist/es2019/components/Error/ErrorMessage.js +1 -1
  29. package/dist/es2019/components/Icon/IconLabel.js +5 -6
  30. package/dist/es2019/components/Team/TeamForbiddenErrorState.js +1 -1
  31. package/dist/es2019/components/Team/TeamLoadingState.js +2 -2
  32. package/dist/es2019/components/Team/TeamProfileCard.js +6 -5
  33. package/dist/es2019/components/User/OverflowProfileCardButtons.js +1 -1
  34. package/dist/es2019/components/User/ProfileCard.js +4 -4
  35. package/dist/es2019/components/User/ProfileCardDetails.js +3 -2
  36. package/dist/es2019/components/User/ProfileCardResourced.js +1 -1
  37. package/dist/es2019/components/User/ProfileCardTrigger.js +1 -1
  38. package/dist/es2019/styled/Card.compiled.css +78 -0
  39. package/dist/es2019/styled/Card.js +199 -46
  40. package/dist/es2019/styled/Error.compiled.css +9 -0
  41. package/dist/es2019/styled/Error.js +28 -5
  42. package/dist/es2019/styled/ReportingLines.compiled.css +10 -0
  43. package/dist/es2019/styled/ReportingLines.js +42 -7
  44. package/dist/es2019/styled/TeamCard.compiled.css +41 -0
  45. package/dist/es2019/styled/TeamCard.js +118 -48
  46. package/dist/es2019/util/analytics.js +1 -1
  47. package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
  48. package/dist/esm/client/getTeamFromAGG.js +1 -1
  49. package/dist/esm/components/Error/ErrorMessage.js +1 -1
  50. package/dist/esm/components/Icon/IconLabel.js +5 -6
  51. package/dist/esm/components/Team/TeamForbiddenErrorState.js +1 -1
  52. package/dist/esm/components/Team/TeamLoadingState.js +2 -2
  53. package/dist/esm/components/Team/TeamProfileCard.js +6 -5
  54. package/dist/esm/components/User/OverflowProfileCardButtons.js +1 -1
  55. package/dist/esm/components/User/ProfileCard.js +4 -4
  56. package/dist/esm/components/User/ProfileCardDetails.js +3 -2
  57. package/dist/esm/components/User/ProfileCardResourced.js +1 -1
  58. package/dist/esm/components/User/ProfileCardTrigger.js +1 -1
  59. package/dist/esm/styled/Card.compiled.css +78 -0
  60. package/dist/esm/styled/Card.js +225 -48
  61. package/dist/esm/styled/Error.compiled.css +9 -0
  62. package/dist/esm/styled/Error.js +34 -5
  63. package/dist/esm/styled/ReportingLines.compiled.css +10 -0
  64. package/dist/esm/styled/ReportingLines.js +46 -7
  65. package/dist/esm/styled/TeamCard.compiled.css +41 -0
  66. package/dist/esm/styled/TeamCard.js +146 -48
  67. package/dist/esm/util/analytics.js +1 -1
  68. package/dist/types/components/Icon/IconLabel.d.ts +1 -0
  69. package/dist/types/styled/Card.d.ts +64 -84
  70. package/dist/types/styled/Error.d.ts +11 -13
  71. package/dist/types/styled/ReportingLines.d.ts +13 -17
  72. package/dist/types/styled/TeamCard.d.ts +47 -62
  73. package/dist/types-ts4.5/components/Icon/IconLabel.d.ts +1 -0
  74. package/dist/types-ts4.5/styled/Card.d.ts +64 -84
  75. package/dist/types-ts4.5/styled/Error.d.ts +11 -13
  76. package/dist/types-ts4.5/styled/ReportingLines.d.ts +13 -17
  77. package/dist/types-ts4.5/styled/TeamCard.d.ts +47 -62
  78. package/package.json +8 -3
@@ -1,16 +1,53 @@
1
+ /* TeamCard.tsx generated by @compiled/babel-plugin v0.36.0 */
2
+ import _extends from "@babel/runtime/helpers/extends";
3
+ import "./TeamCard.compiled.css";
4
+ import { ax, ix } from "@compiled/react/runtime";
5
+ import React from 'react';
6
+
1
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
8
  import styled from '@emotion/styled';
9
+ import { cx } from '@atlaskit/css';
10
+ import { fg } from '@atlaskit/platform-feature-flags';
11
+ import { Box, Text } from '@atlaskit/primitives/compiled';
3
12
  import { N20, N200 } from '@atlaskit/theme/colors';
4
13
  import { borderRadius } from '@atlaskit/theme/constants';
5
14
  import { bgColor, teamHeaderBgColor } from './constants';
6
-
15
+ const styles = {
16
+ cardtriggerwrapper: "_1e0c1kw7",
17
+ cardwrapper: "_2rkoglpi _1bsbnklw _kqswh2mm",
18
+ teamforbiddenerrorstatewrapper: "_1bsbnklw _kqswh2mm",
19
+ cardheader: "_1itk1g60 _12vemgnk _ouxl1ssb _1lrw1dfr _4t3i1qr7",
20
+ cardcontent: "_1e0c1txw _2lx21bp4 _ca0q1ejb _u5f31ejb _n3td1ejb _19bv1ejb _1tke1l8a",
21
+ teamname: "_11c8o0gd _1reo15vq _18m915vq _1p1dglyw _c71lckbl _1e0ccj1k",
22
+ membercount: "_syaz1wmz _19pk1b66",
23
+ avatarsection: "_19pkpxbi _18u01i6y",
24
+ descriptionwrapper: "_19pkpxbi _4cvr1h6o _1e0c1txw",
25
+ description: "_1reo15vq _18m915vq _c71l1wqb _1e0ccj1k",
26
+ actionbuttons: "_1bsb1osq _1e0c1txw _1bah1yb4 _19pk1ejb _2hwx10v4 _otyridpf _18u0x0bf",
27
+ wrappedbutton: "_i0dlidpf _16jlkb7n _18u0u2gc",
28
+ morebutton: "_18u0u2gc",
29
+ loadingwrapper: "_y3gn1h6o _19pk1jfw _otyr1jfw",
30
+ accesslocksvgwrapper: "_otyr1ejb"
31
+ };
32
+ export const CardTriggerWrapper = () => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
33
+ xcss: cx(styles.cardtriggerwrapper)
34
+ }) : /*#__PURE__*/React.createElement(CardTriggerWrapperLegacy, null);
7
35
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
8
- export const CardTriggerWrapper = styled.div({
36
+ const CardTriggerWrapperLegacy = styled.div({
9
37
  display: 'inherit'
10
38
  });
11
-
39
+ export const CardWrapper = ({
40
+ testId,
41
+ children
42
+ }) => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
43
+ xcss: cx(styles.cardwrapper),
44
+ backgroundColor: "elevation.surface.overlay",
45
+ testId: testId
46
+ }, children) : /*#__PURE__*/React.createElement(CardWrapperLegacy, {
47
+ "data-testid": testId
48
+ }, children);
12
49
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
13
- export const CardWrapper = styled.div({
50
+ const CardWrapperLegacy = styled.div({
14
51
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
15
52
  backgroundColor: bgColor,
16
53
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
@@ -21,16 +58,37 @@ export const CardWrapper = styled.div({
21
58
  WebkitFontSmoothing: 'antialiased',
22
59
  MozOsxFontSmoothing: 'grayscale'
23
60
  });
24
-
61
+ export const TeamForbiddenErrorStateWrapper = props => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, _extends({
62
+ xcss: cx(styles.teamforbiddenerrorstatewrapper)
63
+ }, props)) : /*#__PURE__*/React.createElement(TeamForbiddenErrorStateWrapperLegacy, {
64
+ "data-testid": props.testId
65
+ }, props.children);
25
66
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
26
- export const TeamForbiddenErrorStateWrapper = styled.div({
67
+ const TeamForbiddenErrorStateWrapperLegacy = styled.div({
27
68
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
28
69
  width: '320px',
29
70
  position: 'relative'
30
71
  });
72
+ export const CardHeader = ({
73
+ image,
74
+ isLoading,
75
+ label
76
+ }) => fg('compiled-migration-profilecard') ? isLoading || !image ? /*#__PURE__*/React.createElement(Box, {
77
+ xcss: cx(styles.cardheader),
78
+ backgroundColor: "color.background.neutral"
79
+ }) : /*#__PURE__*/React.createElement(Box, {
80
+ as: "img",
81
+ alt: label || '',
82
+ src: image,
83
+ xcss: cx(styles.cardheader),
84
+ backgroundColor: "color.background.neutral"
85
+ }) : /*#__PURE__*/React.createElement(CardHeaderLegacy, {
86
+ image: image,
87
+ isLoading: isLoading
88
+ });
31
89
 
32
90
  // eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
33
- export const CardHeader = styled.div`
91
+ const CardHeaderLegacy = styled.div`
34
92
  background-color: ${props => props.isLoading ? `var(--ds-background-neutral, ${N20})` : props.image ? '' : teamHeaderBgColor};
35
93
  background-image: ${props => props.image ? `url(${props.image})` : ''};
36
94
  background-repeat: no-repeat;
@@ -39,18 +97,22 @@ export const CardHeader = styled.div`
39
97
  box-sizing: content-box;
40
98
  height: 128px;
41
99
  `;
42
-
100
+ export const CardContent = props => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, _extends({
101
+ xcss: cx(styles.cardcontent)
102
+ }, props)) : /*#__PURE__*/React.createElement(CardContentLegacy, props);
43
103
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
44
- export const CardContent = styled.div({
104
+ const CardContentLegacy = styled.div({
45
105
  display: 'flex',
46
106
  flexDirection: 'column',
47
107
  padding: "var(--ds-space-300, 24px)",
48
108
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
49
109
  minHeight: '104px'
50
110
  });
51
-
111
+ export const TeamName = props => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, _extends({
112
+ xcss: cx(styles.teamname)
113
+ }, props)) : /*#__PURE__*/React.createElement(TeamNameLegacy, props);
52
114
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
53
- export const TeamName = styled.h6({
115
+ const TeamNameLegacy = styled.h6({
54
116
  font: "var(--ds-font-heading-medium, normal 500 20px/24px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
55
117
  textTransform: 'none',
56
118
  overflow: 'hidden',
@@ -59,78 +121,86 @@ export const TeamName = styled.h6({
59
121
  WebkitLineClamp: 2,
60
122
  WebkitBoxOrient: 'vertical'
61
123
  });
62
-
124
+ export const MemberCount = props => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, _extends({
125
+ xcss: cx(styles.membercount)
126
+ }, props)) : /*#__PURE__*/React.createElement(MemberCountLegacy, props);
63
127
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
64
- export const MemberCount = styled.div({
128
+ const MemberCountLegacy = styled.div({
65
129
  color: `var(--ds-text-subtlest, ${N200})`,
66
130
  marginTop: "var(--ds-space-050, 4px)"
67
131
  });
68
-
69
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
70
- export const AvatarSection = styled.div({
132
+ export const AvatarSection = props => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, _extends({
133
+ xcss: cx(styles.avatarsection)
134
+ }, props)) : /*#__PURE__*/React.createElement(AvatarSectionLegacy, props);
135
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/use-primitives -- Ignored via go/DSP-18766
136
+ const AvatarSectionLegacy = styled.div({
71
137
  marginTop: "var(--ds-space-200, 16px)",
72
138
  marginLeft: "var(--ds-space-negative-025, -2px)"
73
139
  });
74
-
140
+ export const DescriptionWrapper = props => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, _extends({
141
+ xcss: cx(styles.descriptionwrapper)
142
+ }, props)) : /*#__PURE__*/React.createElement(DescriptionWrapperLegacy, props);
75
143
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
76
- export const DescriptionWrapper = styled.div({
144
+ const DescriptionWrapperLegacy = styled.div({
77
145
  marginTop: "var(--ds-space-200, 16px)",
78
146
  alignItems: 'center',
79
147
  display: 'flex'
80
148
  });
81
-
149
+ export const Description = props => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
150
+ xcss: cx(styles.description)
151
+ }, /*#__PURE__*/React.createElement(Text, _extends({
152
+ maxLines: 3
153
+ }, props))) : /*#__PURE__*/React.createElement(DescriptionLegacy, props);
82
154
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
83
- export const Description = styled.span({
155
+ const DescriptionLegacy = styled.span({
84
156
  overflow: 'hidden',
85
157
  maxHeight: '60px',
86
158
  display: '-webkit-box',
87
159
  WebkitLineClamp: 3,
88
160
  WebkitBoxOrient: 'vertical'
89
161
  });
90
-
162
+ export const ActionButtons = props => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, _extends({
163
+ xcss: cx(styles.actionbuttons),
164
+ backgroundColor: "elevation.surface.overlay"
165
+ }, props)) : /*#__PURE__*/React.createElement(ActionButtonsLegacy, props);
91
166
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
92
- export const ActionButtons = styled.div({
167
+ const ActionButtonsLegacy = styled.div({
93
168
  width: 'calc(100% + 8px)',
94
169
  display: 'flex',
95
170
  justifyContent: 'space-between',
96
171
  margin: `${"var(--ds-space-300, 24px)"} ${"var(--ds-space-negative-300, -24px)"} 0 ${"var(--ds-space-negative-100, -8px)"}`,
97
172
  backgroundColor: "var(--ds-surface-overlay, hsla(0, 100%, 100%, 0.2))"
98
173
  });
99
-
174
+ export const WrappedButton = props => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, _extends({
175
+ xcss: cx(styles.wrappedbutton)
176
+ }, props)) : /*#__PURE__*/React.createElement(WrappedButtonLegacy, props);
100
177
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
101
- export const WrappedButton = styled.div({
178
+ const WrappedButtonLegacy = styled.div({
102
179
  flexBasis: 0,
103
180
  flexGrow: 1,
104
181
  marginLeft: "var(--ds-space-100, 8px)"
105
182
  });
106
-
107
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
108
- export const MoreButton = styled.div({
183
+ export const MoreButton = props => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, _extends({
184
+ xcss: cx(styles.morebutton)
185
+ }, props)) : /*#__PURE__*/React.createElement(MoreButtonLegacy, props);
186
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/use-primitives -- Ignored via go/DSP-18766
187
+ const MoreButtonLegacy = styled.div({
109
188
  marginLeft: "var(--ds-space-100, 8px)"
110
189
  });
111
-
190
+ export const LoadingWrapper = props => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, _extends({
191
+ xcss: cx(styles.loadingwrapper)
192
+ }, props)) : /*#__PURE__*/React.createElement(LoadingWrapperLegacy, {
193
+ "data-testid": props.testId
194
+ }, props.children);
112
195
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
113
- export const LoadingWrapper = styled.div({
196
+ const LoadingWrapperLegacy = styled.div({
114
197
  textAlign: 'center',
115
198
  marginTop: "var(--ds-space-500, 40px)"
116
199
  });
117
-
118
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
119
- export const AccessLockSVGWrapper = styled.div({
200
+ export const AccessLockSVGWrapper = props => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, _extends({
201
+ xcss: cx(styles.accesslocksvgwrapper)
202
+ }, props)) : /*#__PURE__*/React.createElement(AccessLockSVGWrapperLegacy, props);
203
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/use-primitives -- Ignored via go/DSP-18766
204
+ const AccessLockSVGWrapperLegacy = styled.div({
120
205
  marginBottom: "var(--ds-space-300, 24px)"
121
- });
122
-
123
- // export const LoadingTeamName = styled.div`
124
- // width: 175px;
125
- // height: ${gridSize () *3)px;
126
- // border-radius: ${borderRadius}px;
127
- // background-color: #f4f5f7;
128
- // `;
129
-
130
- // export const LoadingMemberCount = styled.div`
131
- // width: 81px;
132
- // height: ${gridSize () *2)px;
133
- // border-radius: 3px;
134
- // background-color: #f4f5f7;
135
- // margin: 4px 0;
136
- // `;
206
+ });
@@ -32,7 +32,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
32
32
  actionSubjectId,
33
33
  attributes: {
34
34
  packageName: "@atlaskit/profilecard",
35
- packageVersion: "22.0.3",
35
+ packageVersion: "22.2.0",
36
36
  ...attributes,
37
37
  firedAt: Math.round(getPageTime())
38
38
  }
@@ -4,7 +4,7 @@ import { AGGQuery } from './graphqlUtils';
4
4
  var ORG_ID_FROM_CLOUD_ID_QUERY = "query OrgIdFromCloudId($cloudId: ID!) {\n\ttenantContexts(cloudIds: [$cloudId]) {\n\t\torgId\n\t}\n}";
5
5
  var addHeaders = function addHeaders(headers) {
6
6
  headers.append('atl-client-name', "@atlaskit/profilecard");
7
- headers.append('atl-client-version', "22.0.3");
7
+ headers.append('atl-client-version', "22.2.0");
8
8
  return headers;
9
9
  };
10
10
  export function getOrgIdForCloudIdFromAGG(_x, _x2) {
@@ -57,7 +57,7 @@ export var addHeaders = function addHeaders(headers) {
57
57
  headers.append('X-ExperimentalApi', 'teams-beta');
58
58
  headers.append('X-ExperimentalApi', 'team-members-beta');
59
59
  headers.append('atl-client-name', "@atlaskit/profilecard");
60
- headers.append('atl-client-version', "22.0.3");
60
+ headers.append('atl-client-version', "22.2.0");
61
61
  return headers;
62
62
  };
63
63
  export function getTeamFromAGG(_x, _x2, _x3) {
@@ -27,7 +27,7 @@ var ErrorMessage = function ErrorMessage(props) {
27
27
  }, "Try again and we\u2019ll give it another shot"));
28
28
  };
29
29
  return /*#__PURE__*/React.createElement(ErrorWrapper, {
30
- "data-testid": "profilecard-error"
30
+ testId: "profilecard-error"
31
31
  }, /*#__PURE__*/React.createElement(IconError, {
32
32
  label: "icon error",
33
33
  size: "xlarge"
@@ -11,6 +11,7 @@ import IconRecent from '@atlaskit/icon/core/migration/clock--recent';
11
11
  import IconEmail from '@atlaskit/icon/core/migration/email';
12
12
  import IconLocation from '@atlaskit/icon/core/migration/location';
13
13
  import OfficeBuildingIcon from '@atlaskit/icon/core/migration/office-building';
14
+ import { fg } from '@atlaskit/platform-feature-flags';
14
15
  import { DetailsLabel, DetailsLabelIcon, DetailsLabelText } from '../../styled/Card';
15
16
  var icons = {
16
17
  location: IconLocation,
@@ -36,13 +37,11 @@ var IconLabel = /*#__PURE__*/function (_React$PureComponent) {
36
37
  var displayIcon = IconElement ? /*#__PURE__*/React.createElement(IconElement, {
37
38
  label: "".concat(this.props.icon),
38
39
  LEGACY_size: "small",
39
- color: "currentColor"
40
+ color: fg('compiled-migration-profilecard') ? "var(--ds-text-subtlest, #626F86)" : 'currentColor'
40
41
  }) : null;
41
- return /*#__PURE__*/React.createElement(DetailsLabel, null, /*#__PURE__*/React.createElement(DetailsLabelIcon, {
42
- as: "dt"
43
- }, displayIcon), /*#__PURE__*/React.createElement(DetailsLabelText, {
44
- as: "dd"
45
- }, this.props.children));
42
+ return /*#__PURE__*/React.createElement(DetailsLabel, {
43
+ extraTopSpace: this.props.extraTopSpace
44
+ }, /*#__PURE__*/React.createElement(DetailsLabelIcon, null, displayIcon), /*#__PURE__*/React.createElement(DetailsLabelText, null, this.props.children));
46
45
  }
47
46
  }]);
48
47
  }(React.PureComponent);
@@ -16,7 +16,7 @@ export default (function (props) {
16
16
  });
17
17
  }, [analytics]);
18
18
  return /*#__PURE__*/React.createElement(TeamForbiddenErrorStateWrapper, {
19
- "data-testid": "team-profilecard-forbidden-error-state"
19
+ testId: "team-profilecard-forbidden-error-state"
20
20
  }, /*#__PURE__*/React.createElement(EmptyState, {
21
21
  header: intl.formatMessage(messages.teamForbiddenErrorStateTitle),
22
22
  description: intl.formatMessage(messages.teamForbiddenErrorStateDescription),
@@ -12,10 +12,10 @@ export default (function (props) {
12
12
  });
13
13
  }, [analytics]);
14
14
  return /*#__PURE__*/React.createElement(CardWrapper, {
15
- "data-testid": "team-profilecard"
15
+ testId: "team-profilecard"
16
16
  }, /*#__PURE__*/React.createElement(CardHeader, {
17
17
  isLoading: true
18
18
  }), /*#__PURE__*/React.createElement(CardContent, null, /*#__PURE__*/React.createElement(LoadingWrapper, {
19
- "data-testid": "team-profilecard-spinner"
19
+ testId: "team-profilecard-spinner"
20
20
  }, /*#__PURE__*/React.createElement(Spinner, null))));
21
21
  });
@@ -15,7 +15,7 @@ import { LinkItem, MenuGroup } from '@atlaskit/menu';
15
15
  import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
16
16
  import { fg } from '@atlaskit/platform-feature-flags';
17
17
  import Popup from '@atlaskit/popup';
18
- import { Inline, Text } from '@atlaskit/primitives';
18
+ import { Inline, Text } from '@atlaskit/primitives/compiled';
19
19
  import { layers } from '@atlaskit/theme/constants';
20
20
  import Tooltip from '@atlaskit/tooltip';
21
21
  import messages from '../../messages';
@@ -240,9 +240,10 @@ var TeamProfilecardContent = function TeamProfilecardContent(_ref5) {
240
240
  // eslint-disable-next-line react-hooks/exhaustive-deps
241
241
  }, [analytics]);
242
242
  return /*#__PURE__*/React.createElement(CardWrapper, {
243
- "data-testid": "team-profilecard"
243
+ testId: "team-profilecard"
244
244
  }, /*#__PURE__*/React.createElement(CardHeader, {
245
- image: team.largeHeaderImageUrl || team.smallHeaderImageUrl
245
+ image: team.largeHeaderImageUrl || team.smallHeaderImageUrl,
246
+ label: team.displayName
246
247
  }), /*#__PURE__*/React.createElement(CardContent, null, /*#__PURE__*/React.createElement(Tooltip, {
247
248
  content: team.displayName
248
249
  }, /*#__PURE__*/React.createElement(Inline, null, /*#__PURE__*/React.createElement(TeamName, null, team.displayName), team.isVerified && fg('show_verified_team_icon_in_profile_card') && /*#__PURE__*/React.createElement(VerifiedTeamIcon, null))), /*#__PURE__*/React.createElement(TeamMembers, {
@@ -280,7 +281,7 @@ var ErrorMessage = function ErrorMessage(_ref6) {
280
281
  }
281
282
  }, [analytics, clientFetchProfile]);
282
283
  return /*#__PURE__*/React.createElement(ErrorWrapper, {
283
- "data-testid": "team-profilecard-error"
284
+ testId: "team-profilecard-error"
284
285
  }, /*#__PURE__*/React.createElement(ErrorIllustration, null), /*#__PURE__*/React.createElement(Text, {
285
286
  as: "p",
286
287
  weight: "semibold"
@@ -305,7 +306,7 @@ var TeamProfileCard = function TeamProfileCard(props) {
305
306
  });
306
307
  } else {
307
308
  return /*#__PURE__*/React.createElement(CardWrapper, {
308
- "data-testid": "team-profilecard"
309
+ testId: "team-profilecard"
309
310
  }, /*#__PURE__*/React.createElement(ErrorMessage, {
310
311
  analytics: analytics,
311
312
  clientFetchProfile: clientFetchProfile,
@@ -35,7 +35,7 @@ export var OverflowProfileCardButtons = function OverflowProfileCardButtons(prop
35
35
  });
36
36
  }, [numActions, fireAnalyticsWithDuration]);
37
37
  return /*#__PURE__*/React.createElement(OverflowActionButtonsWrapper, {
38
- "data-testid": "profilecard-actions-overflow"
38
+ testId: "profilecard-actions-overflow"
39
39
  }, /*#__PURE__*/React.createElement(DropdownMenu, {
40
40
  onOpenChange: onOpenChange,
41
41
  placement: 'bottom-end',
@@ -47,9 +47,9 @@ var useKudos = function useKudos(cloudId, userId, teamCentralBaseUrl, openKudosD
47
47
  };
48
48
  var Wrapper = function Wrapper(props) {
49
49
  return /*#__PURE__*/React.createElement(CardWrapper, {
50
- "data-testid": "profilecard",
50
+ testId: "profilecard",
51
51
  role: "dialog",
52
- "aria-labelledby": "profilecard-name-label"
52
+ labelledBy: "profilecard-name-label"
53
53
  }, props.children);
54
54
  };
55
55
  export var ProfilecardInternal = function ProfilecardInternal(props) {
@@ -152,7 +152,7 @@ var Actions = function Actions(_ref) {
152
152
  var regularActions = actions.slice(0, ACTION_OVERFLOW_THRESHOLD);
153
153
  var overflowActions = actions.length > ACTION_OVERFLOW_THRESHOLD ? actions.slice(ACTION_OVERFLOW_THRESHOLD) : undefined;
154
154
  return /*#__PURE__*/React.createElement(ActionButtonGroup, {
155
- "data-testid": "profilecard-actions"
155
+ testId: "profilecard-actions"
156
156
  }, regularActions.map(function (action, index) {
157
157
  var isKudos = action.id === GIVE_KUDOS_ACTION_ID;
158
158
  var button = /*#__PURE__*/React.createElement(FocusRing, {
@@ -194,7 +194,7 @@ var LoadingView = function LoadingView(_ref2) {
194
194
  });
195
195
  }, [fireAnalyticsWithDuration]);
196
196
  return /*#__PURE__*/React.createElement(SpinnerContainer, {
197
- "data-testid": "profilecard-spinner-container"
197
+ testId: "profilecard-spinner-container"
198
198
  }, /*#__PURE__*/React.createElement(Spinner, null));
199
199
  };
200
200
  export default withAnalyticsEvents()(ProfilecardInternal);
@@ -83,7 +83,7 @@ var CustomLozenges = function CustomLozenges(_ref) {
83
83
  var BotProfileCardDetails = function BotProfileCardDetails(props) {
84
84
  var fullName = props.fullName,
85
85
  nickname = props.nickname;
86
- return /*#__PURE__*/React.createElement(DetailsGroup, null, renderName(nickname, fullName), /*#__PURE__*/React.createElement(AppTitleLabel, null, "App"));
86
+ return /*#__PURE__*/React.createElement(DetailsGroup, null, renderName(nickname, fullName), /*#__PURE__*/React.createElement(AppTitleLabel, null, "APP"));
87
87
  };
88
88
  var DisabledProfileCardDetails = function DisabledProfileCardDetails(props) {
89
89
  var companyName = props.companyName,
@@ -123,7 +123,8 @@ export var ProfileCardDetails = function ProfileCardDetails(props) {
123
123
  as: "dl",
124
124
  xcss: detailedListWrapperStyles
125
125
  }, /*#__PURE__*/React.createElement(IconLabel, {
126
- icon: "email"
126
+ icon: "email",
127
+ extraTopSpace: true
127
128
  }, props.email), /*#__PURE__*/React.createElement(IconLabel, {
128
129
  icon: "time"
129
130
  }, props.timestring), /*#__PURE__*/React.createElement(IconLabel, {
@@ -166,7 +166,7 @@ var ProfileCardResourced = /*#__PURE__*/function (_React$PureComponent) {
166
166
  }));
167
167
  } else if (hasError) {
168
168
  return /*#__PURE__*/React.createElement(CardWrapper, {
169
- "data-testid": "profile-card-resourced-error-state"
169
+ testId: "profile-card-resourced-error-state"
170
170
  }, /*#__PURE__*/React.createElement(ErrorMessage, {
171
171
  errorType: error,
172
172
  reload: this.clientFetchProfile,
@@ -400,7 +400,7 @@ export default function ProfilecardTriggerNext(_ref2) {
400
400
  var LoadingView = function LoadingView(_ref4) {
401
401
  var fireAnalytics = _ref4.fireAnalytics;
402
402
  return /*#__PURE__*/React.createElement(CardWrapper, {
403
- "data-testId": "profilecard.profilecardtrigger.loading"
403
+ testId: "profilecard.profilecardtrigger.loading"
404
404
  }, /*#__PURE__*/React.createElement(UserLoadingState, {
405
405
  fireAnalytics: fireAnalytics
406
406
  }));
@@ -0,0 +1,78 @@
1
+ ._11c81vlj{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
2
+ ._11c8qk37{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
3
+ ._2rkoglpi{border-radius:var(--ds-border-radius,4px)}
4
+ ._zulp12x7{gap:var(--ds-space-075,6px)}
5
+ ._zulpu2gc{gap:var(--ds-space-100,8px)}
6
+ ._12vemgnk{background-repeat:no-repeat}
7
+ ._154i1ejb{top:var(--ds-space-300,24px)}
8
+ ._154ixy5q{top:var(--ds-space-400,2pc)}
9
+ ._154ize3t{top:var(--ds-space-0,0)}
10
+ ._16jlkb7n{flex-grow:1}
11
+ ._16qs1cd0{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #091e4226,0 0 1px #091e424f)}
12
+ ._18m915vq{overflow-y:hidden}
13
+ ._18u01epz{margin-left:var(--ds-space-1000,5pc)}
14
+ ._18u0u2gc{margin-left:var(--ds-space-100,8px)}
15
+ ._18u0utpp{margin-left:var(--ds-space-150,9pt)}
16
+ ._18u0ze3t{margin-left:var(--ds-space-0,0)}
17
+ ._19bv12x7{padding-left:var(--ds-space-075,6px)}
18
+ ._19bv1ejb{padding-left:var(--ds-space-300,24px)}
19
+ ._19bvxy5q{padding-left:var(--ds-space-400,2pc)}
20
+ ._19pk1b66{margin-top:var(--ds-space-050,4px)}
21
+ ._19pkpxbi{margin-top:var(--ds-space-200,1pc)}
22
+ ._19pkutpp{margin-top:var(--ds-space-150,9pt)}
23
+ ._19pkxy5q{margin-top:var(--ds-space-400,2pc)}
24
+ ._19pkze3t{margin-top:var(--ds-space-0,0)}
25
+ ._1bah1h6o{justify-content:center}
26
+ ._1bah1y6m{justify-content:flex-start}
27
+ ._1bahesu3{justify-content:flex-end}
28
+ ._1bsb18pt{width:228px}
29
+ ._1bsb1gwv{width:360px}
30
+ ._1bsb1ns9{width:-moz-fit-content;width:fit-content}
31
+ ._1bsb1w81{width:150px}
32
+ ._1bsb7vkz{width:1pc}
33
+ ._1bsbzwfg{width:2pc}
34
+ ._1bto1l2s{text-overflow:ellipsis}
35
+ ._1e0c1o8l{display:inline-block}
36
+ ._1e0c1txw{display:flex}
37
+ ._1e0c1ule{display:block}
38
+ ._1e0cglyw{display:none}
39
+ ._1itk1419{background-image:linear-gradient(to bottom,var(--ds-background-brand-bold,#0c66e4) 0,var(--ds-background-brand-bold,#0c66e4) 100%)}
40
+ ._1itkkf3t{background-image:linear-gradient(to bottom,var(--ds-background-disabled,#091e4208) 0,var(--ds-background-disabled,#091e4208) 100%)}
41
+ ._1itkq1hn{background-image:radial-gradient(circle,var(--ds-background-information-pressed,#85b8ff) 0,var(--ds-background-discovery-pressed,#b8acf6) 25%,transparent 50%)}
42
+ ._1lrw14bs{background-size:100% 6pc}
43
+ ._1ltv1ejb{left:var(--ds-space-300,24px)}
44
+ ._1ltvze3t{left:var(--ds-space-0,0)}
45
+ ._1n261g80{flex-wrap:wrap}
46
+ ._1o9zidpf{flex-shrink:0}
47
+ ._1pby1mrw{z-index:-1}
48
+ ._1reo15vq{overflow-x:hidden}
49
+ ._1tkebv7e{min-height:136px}
50
+ ._1xi2ze3t{right:var(--ds-space-0,0)}
51
+ ._2hwxze3t{margin-right:var(--ds-space-0,0)}
52
+ ._2lx21bp4{flex-direction:column}
53
+ ._2lx2vrvc{flex-direction:row}
54
+ ._4cvr1h6o{align-items:center}
55
+ ._4t3i16xz{height:6pc}
56
+ ._4t3i1w81{height:150px}
57
+ ._4t3i7vkz{height:1pc}
58
+ ._4t3izwfg{height:2pc}
59
+ ._5sagi11n{animation-duration:3s}
60
+ ._94n5ze3t{bottom:var(--ds-space-0,0)}
61
+ ._ca0q1ejb{padding-top:var(--ds-space-300,24px)}
62
+ ._i0dl1wug{flex-basis:auto}
63
+ ._j7hq1q51{animation-name:k1ojqp0a}
64
+ ._kqswh2mm{position:relative}
65
+ ._kqswstnw{position:absolute}
66
+ ._mkrz1rip{clip-path:inset(0 0 0 0 round 3px)}
67
+ ._n3td1ejb{padding-bottom:var(--ds-space-300,24px)}
68
+ ._o5721q9c{white-space:nowrap}
69
+ ._otyrze3t{margin-bottom:var(--ds-space-0,0)}
70
+ ._s7n4jp4b{vertical-align:top}
71
+ ._syaz131l{color:var(--ds-text-subtlest,#626f86)}
72
+ ._syaz1fxt{color:var(--ds-text,#172b4d)}
73
+ ._tip8kb7n{animation-iteration-count:1}
74
+ ._u5f312x7{padding-right:var(--ds-space-075,6px)}
75
+ ._u5f31ejb{padding-right:var(--ds-space-300,24px)}
76
+ ._uiztglyw{-webkit-user-select:none;-ms-user-select:none;user-select:none}
77
+ ._y3gnusic{text-align:right}
78
+ @keyframes k1ojqp0a{0%{transform:translate(-5pc,-50px)}to{transform:translate(90px,-70px)}}