@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,31 +1,84 @@
1
- import _extends from "@babel/runtime/helpers/extends";
1
+ /* Card.tsx generated by @compiled/babel-plugin v0.36.0 */
2
2
  /* eslint-disable @atlaskit/design-system/no-styled-tagged-template-expression -- needs manual remediation */
3
+ import "./Card.compiled.css";
4
+ import { ax, ix } from "@compiled/react/runtime";
3
5
  import React from 'react';
4
-
5
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
7
  import { keyframes } from '@emotion/react';
7
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
9
  import styled from '@emotion/styled';
10
+ import { cx } from '@atlaskit/css';
11
+ import { fg } from '@atlaskit/platform-feature-flags';
12
+ import { Box, Text } from '@atlaskit/primitives/compiled';
9
13
  import { B200, N50A, N60A } from '@atlaskit/theme/colors';
10
14
  import { borderRadius } from '@atlaskit/theme/constants';
11
15
  import { appLabelBgColor, appLabelTextColor, bgColor, headerBgColor, headerBgColorDisabledUser, headerTextColor, labelIconColor, labelTextColor } from './constants';
12
-
16
+ const kudosButtonAnimationTransformationCompiled = null;
17
+ const styles = {
18
+ cardWrapper: "_2rkoglpi _1bsb1gwv",
19
+ profileImage: "_kqswstnw _154i1ejb _1ltv1ejb",
20
+ actionsFlexSpacer: "_16jlkb7n _1o9zidpf _i0dl1wug",
21
+ kudosBlobAnimationStyle: "_1e0cglyw _4t3i1w81 _1bsb1w81 _1pby1mrw _kqswstnw _154ixy5q",
22
+ animationWrapper: "_mkrz1rip _kqswstnw _154ize3t _1ltvze3t _94n5ze3t _1xi2ze3t",
23
+ animatedKudosButton: "_18u0u2gc",
24
+ actionButtonGroup: "_zulp12x7 _uiztglyw _19pkpxbi _2hwxze3t _18u0ze3t _otyrze3t _y3gnusic _1bahesu3 _1e0c1txw",
25
+ overflowActionButtonsWrapper: "_1e0c1o8l _1bsbzwfg _4t3izwfg",
26
+ cardContent: "_1e0c1txw _2lx21bp4 _1tkebv7e",
27
+ detailsGroup: "_1e0c1txw _2lx21bp4 _18u01epz _19bvxy5q _1bsb18pt",
28
+ disabledInfo: "_11c81vlj _syaz1fxt _19pkutpp _2hwxze3t _18u0ze3t _otyrze3t",
29
+ lozengeWrapper: "_19pkpxbi _1e0c1ule",
30
+ customLozengeContainer: "_1e0c1txw _2lx2vrvc _1n261g80 _1bah1y6m _19pkutpp",
31
+ spinnerContainer: "_4cvr1h6o _1e0c1txw _4t3i16xz _1bah1h6o _kqswh2mm",
32
+ cardContainer: "_1reo15vq _18m915vq _kqswh2mm _12vemgnk _1lrw14bs _ca0q1ejb _19bv1ejb _u5f31ejb _n3td1ejb",
33
+ cardContainerActiveUser: "_1itk1419",
34
+ cardContainerDisabledUser: "_1itkkf3t",
35
+ cardContainerWithElevation: "_2rkoglpi _16qs1cd0",
36
+ detailsLabel: "_zulpu2gc _1e0c1txw _4cvr1h6o _1bah1y6m _19pkutpp _2hwxze3t _18u0ze3t _otyrze3t _o5721q9c",
37
+ detailsLabelExtraTopSpace: "_19pkxy5q",
38
+ detailsLabelIcon: "_1e0c1txw _1o9zidpf _syaz131l _1bsb7vkz _4t3i7vkz _s7n4jp4b _19pkze3t",
39
+ detailsLabelText: "_1reo15vq _18m915vq _11c8qk37 _1bto1l2s _syaz1fxt _19pkze3t _18u0ze3t",
40
+ kudosBlobAnimation: "_1e0cglyw _4t3i1w81 _1bsb1w81 _1pby1mrw _kqswstnw _j7hq1q51 _tip8kb7n _5sagi11n _1itkq1hn",
41
+ jobTitleLabel: "_19pkze3t _otyrze3t _18u0utpp _2hwxze3t",
42
+ appTitleLabel: "_2rkoglpi _syaz1fxt _u5f312x7 _19bv12x7 _1bsb1ns9 _19pk1b66 _otyrze3t _18u0utpp _2hwxze3t"
43
+ };
44
+ export const CardWrapper = ({
45
+ children,
46
+ role,
47
+ testId,
48
+ labelledBy
49
+ }) => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
50
+ xcss: cx(styles.cardWrapper),
51
+ backgroundColor: 'elevation.surface.overlay',
52
+ role: role,
53
+ testId: testId,
54
+ "aria-labelledby": labelledBy
55
+ }, children) : /*#__PURE__*/React.createElement(CardWrapperLegacy, {
56
+ "data-testid": testId,
57
+ role: role,
58
+ "aria-labelledby": labelledBy
59
+ }, children);
13
60
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
14
- export const CardWrapper = styled.div`
61
+ const CardWrapperLegacy = styled.div`
15
62
  background-color: ${bgColor};
16
63
  border-radius: ${"var(--ds-border-radius, 3px)"};
17
64
  width: 360px;
18
65
  `;
19
-
66
+ export const ProfileImage = ({
67
+ children
68
+ }) => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
69
+ xcss: cx(styles.profileImage)
70
+ }, children) : /*#__PURE__*/React.createElement(ProfileImageLegacy, null, children);
20
71
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
21
- export const ProfileImage = styled.div`
72
+ const ProfileImageLegacy = styled.div`
22
73
  position: absolute;
23
74
  top: ${"var(--ds-space-300, 24px)"};
24
75
  left: ${"var(--ds-space-300, 24px)"};
25
76
  `;
26
-
77
+ export const ActionsFlexSpacer = () => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
78
+ xcss: cx(styles.actionsFlexSpacer)
79
+ }) : /*#__PURE__*/React.createElement(ActionsFlexSpacerLegacy, null);
27
80
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
28
- export const ActionsFlexSpacer = styled.div`
81
+ const ActionsFlexSpacerLegacy = styled.div`
29
82
  flex: 1 0 auto;
30
83
  `;
31
84
 
@@ -34,9 +87,17 @@ const kudosButtonAnimationTransformation = keyframes`
34
87
  0% { transform: translate(-80px, -50px); }
35
88
  100% { transform: translate(90px, -70px); }
36
89
  `;
90
+ export const KudosBlobAnimationStyle = () => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
91
+ xcss: cx(styles.kudosBlobAnimationStyle)
92
+ }) :
93
+ /*#__PURE__*/
94
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
95
+ React.createElement(KudosBlobAnimationStyleLegacy, {
96
+ className: "kudos-blob-animation"
97
+ });
37
98
 
38
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
39
- export const KudosBlobAnimationStyle = styled.div`
99
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
100
+ const KudosBlobAnimationStyleLegacy = styled.div`
40
101
  display: none;
41
102
  height: 150px;
42
103
  width: 150px;
@@ -54,15 +115,18 @@ export const KudosBlobAnimationStyle = styled.div`
54
115
  );
55
116
  overflow: hidden;
56
117
  `;
57
- export const KudosBlobAnimation = props =>
58
- /*#__PURE__*/
59
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
60
- React.createElement(KudosBlobAnimationStyle, _extends({
61
- className: "kudos-blob-animation"
62
- }, props));
118
+ export const KudosBlobAnimation = () => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
119
+ xcss: cx(styles.kudosBlobAnimationStyle)
120
+ }) : /*#__PURE__*/React.createElement(KudosBlobAnimationLegacy, null);
121
+ const KudosBlobAnimationLegacy = () => /*#__PURE__*/React.createElement(KudosBlobAnimationStyle, null);
122
+ export const AnimationWrapper = ({
123
+ children
124
+ }) => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
125
+ xcss: cx(styles.animationWrapper)
126
+ }, children) : /*#__PURE__*/React.createElement(AnimationWrapperLegacy, null, children);
63
127
 
64
128
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
65
- export const AnimationWrapper = styled.div`
129
+ const AnimationWrapperLegacy = styled.div`
66
130
  clip-path: inset(0px 0px 0px 0px round ${borderRadius()}px);
67
131
  position: absolute;
68
132
  top: 0;
@@ -70,9 +134,13 @@ export const AnimationWrapper = styled.div`
70
134
  bottom: 0;
71
135
  right: 0;
72
136
  `;
73
-
137
+ export const AnimatedKudosButton = ({
138
+ children
139
+ }) => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
140
+ xcss: cx(styles.animatedKudosButton)
141
+ }, children) : /*#__PURE__*/React.createElement(AnimatedKudosButtonLegacy, null, children);
74
142
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
75
- export const AnimatedKudosButton = styled.div`
143
+ const AnimatedKudosButtonLegacy = styled.div`
76
144
  margin-left: ${"var(--ds-space-100, 8px)"};
77
145
 
78
146
  /* Need babel-plugin-emotion to use component selector */
@@ -83,9 +151,17 @@ export const AnimatedKudosButton = styled.div`
83
151
  display: block;
84
152
  }
85
153
  `;
86
-
154
+ export const ActionButtonGroup = ({
155
+ children,
156
+ testId
157
+ }) => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
158
+ testId: testId,
159
+ xcss: cx(styles.actionButtonGroup)
160
+ }, children) : /*#__PURE__*/React.createElement(ActionButtonGroupLegacy, {
161
+ "data-testid": testId
162
+ }, children);
87
163
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
88
- export const ActionButtonGroup = styled.div`
164
+ const ActionButtonGroupLegacy = styled.div`
89
165
  user-select: none;
90
166
  margin: ${"var(--ds-space-200, 16px)"} 0 0 0;
91
167
  text-align: right;
@@ -117,9 +193,17 @@ export const ActionButtonGroup = styled.div`
117
193
  }
118
194
  }
119
195
  `;
120
-
196
+ export const OverflowActionButtonsWrapper = ({
197
+ children,
198
+ testId
199
+ }) => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
200
+ testId: testId,
201
+ xcss: cx(styles.overflowActionButtonsWrapper)
202
+ }, children) : /*#__PURE__*/React.createElement(OverflowActionButtonsWrapperLegacy, {
203
+ "data-testid": testId
204
+ }, children);
121
205
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
122
- export const OverflowActionButtonsWrapper = styled.div`
206
+ const OverflowActionButtonsWrapperLegacy = styled.div`
123
207
  display: inline-block;
124
208
  width: ${"var(--ds-space-400, 32px)"};
125
209
  height: ${"var(--ds-space-400, 32px)"};
@@ -134,39 +218,59 @@ export const OverflowActionButtonsWrapper = styled.div`
134
218
  }
135
219
  }
136
220
  `;
137
-
221
+ export const CardContent = ({
222
+ children
223
+ }) => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
224
+ xcss: cx(styles.cardContent)
225
+ }, children) : /*#__PURE__*/React.createElement(CardContentLegacy, null, children);
138
226
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
139
- export const CardContent = styled.div`
227
+ const CardContentLegacy = styled.div`
140
228
  display: flex;
141
229
  flex-direction: column;
142
230
  min-height: 136px;
143
231
  `;
144
-
232
+ export const DetailsGroup = ({
233
+ children
234
+ }) => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
235
+ xcss: cx(styles.detailsGroup)
236
+ }, children) : /*#__PURE__*/React.createElement(DetailsGroupLegacy, null, children);
145
237
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
146
- export const DetailsGroup = styled.div`
238
+ const DetailsGroupLegacy = styled.div`
147
239
  display: flex;
148
240
  flex-direction: column;
149
241
  margin-left: 116px;
150
242
  width: 196px;
151
243
  `;
152
-
244
+ export const DisabledInfo = ({
245
+ children
246
+ }) => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
247
+ xcss: cx(styles.disabledInfo)
248
+ }, children) : /*#__PURE__*/React.createElement(DisabledInfoLegacy, null, children);
153
249
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
154
- export const DisabledInfo = styled.div`
250
+ const DisabledInfoLegacy = styled.div`
155
251
  font: ${"var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"};
156
252
  color: ${labelTextColor};
157
253
  margin: ${"var(--ds-space-150, 12px)"} 0 0 0;
158
254
  line-height: 16px;
159
255
  `;
160
-
256
+ export const LozengeWrapper = ({
257
+ children
258
+ }) => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
259
+ xcss: cx(styles.lozengeWrapper)
260
+ }, children) : /*#__PURE__*/React.createElement(LozengeWrapperLegacy, null, children);
161
261
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
162
- export const LozengeWrapper = styled.div`
262
+ const LozengeWrapperLegacy = styled.div`
163
263
  margin-top: ${"var(--ds-space-200, 16px)"};
164
264
  text-transform: uppercase;
165
265
  display: block;
166
266
  `;
167
-
267
+ export const CustomLozengeContainer = ({
268
+ children
269
+ }) => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
270
+ xcss: cx(styles.customLozengeContainer)
271
+ }, children) : /*#__PURE__*/React.createElement(CustomLozengeContainerLegacy, null, children);
168
272
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
169
- export const CustomLozengeContainer = styled(LozengeWrapper)`
273
+ const CustomLozengeContainerLegacy = styled(LozengeWrapper)`
170
274
  display: flex;
171
275
  flex-direction: row;
172
276
  flex-wrap: wrap;
@@ -179,9 +283,16 @@ export const CustomLozengeContainer = styled(LozengeWrapper)`
179
283
  }
180
284
  }
181
285
  `;
182
-
286
+ export const JobTitleLabel = ({
287
+ children
288
+ }) => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
289
+ xcss: cx(styles.jobTitleLabel)
290
+ }, /*#__PURE__*/React.createElement(Text, {
291
+ maxLines: 1,
292
+ color: "color.text.inverse"
293
+ }, children)) : /*#__PURE__*/React.createElement(JobTitleLabelLegacy, null, children);
183
294
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
184
- export const JobTitleLabel = styled.span`
295
+ const JobTitleLabelLegacy = styled.span`
185
296
  overflow: hidden;
186
297
  text-overflow: ellipsis;
187
298
  white-space: nowrap;
@@ -190,9 +301,18 @@ export const JobTitleLabel = styled.span`
190
301
  color: ${headerTextColor};
191
302
  margin: 0 0 ${"var(--ds-space-150, 12px)"} 0;
192
303
  `;
193
-
304
+ export const AppTitleLabel = ({
305
+ children
306
+ }) => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
307
+ xcss: cx(styles.appTitleLabel),
308
+ backgroundColor: "color.background.neutral"
309
+ }, /*#__PURE__*/React.createElement(Text, {
310
+ color: "color.text",
311
+ size: "UNSAFE_small",
312
+ weight: "bold"
313
+ }, children)) : /*#__PURE__*/React.createElement(AppTitleLabelLegacy, null, children);
194
314
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
195
- export const AppTitleLabel = styled.span`
315
+ const AppTitleLabelLegacy = styled.span`
196
316
  background: ${appLabelBgColor};
197
317
  color: ${appLabelTextColor};
198
318
  border-radius: ${borderRadius()};
@@ -204,17 +324,35 @@ export const AppTitleLabel = styled.span`
204
324
  font: ${"var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"};
205
325
  margin: ${"var(--ds-space-050, 4px)"} 0 ${"var(--ds-space-150, 12px)"} 0;
206
326
  `;
207
-
327
+ export const SpinnerContainer = ({
328
+ children,
329
+ testId
330
+ }) => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
331
+ testId: testId,
332
+ xcss: cx(styles.spinnerContainer)
333
+ }, children) : /*#__PURE__*/React.createElement(SpinnerContainerLegacy, {
334
+ "data-testid": testId
335
+ }, children);
208
336
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
209
- export const SpinnerContainer = styled.div`
337
+ const SpinnerContainerLegacy = styled.div`
210
338
  align-items: center;
211
339
  display: flex;
212
340
  height: 96px;
213
341
  justify-content: center;
214
342
  position: relative;
215
343
  `;
344
+ export const CardContainer = ({
345
+ children,
346
+ isDisabledUser,
347
+ withoutElevation
348
+ }) => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
349
+ xcss: cx(styles.cardContainer, isDisabledUser ? styles.cardContainerDisabledUser : styles.cardContainerActiveUser, !withoutElevation && styles.cardContainerWithElevation)
350
+ }, children) : /*#__PURE__*/React.createElement(CardContainerLegacy, {
351
+ isDisabledUser: isDisabledUser,
352
+ withoutElevation: withoutElevation
353
+ }, children);
216
354
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
217
- export const CardContainer = styled.div`
355
+ const CardContainerLegacy = styled.div`
218
356
  position: relative;
219
357
  -webkit-font-smoothing: antialiased;
220
358
  -moz-osx-font-smoothing: grayscale;
@@ -233,9 +371,14 @@ export const CardContainer = styled.div`
233
371
 
234
372
  overflow: hidden;
235
373
  `;
236
-
374
+ export const DetailsLabel = ({
375
+ children,
376
+ extraTopSpace = false
377
+ }) => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
378
+ xcss: cx(styles.detailsLabel, extraTopSpace && styles.detailsLabelExtraTopSpace)
379
+ }, children) : /*#__PURE__*/React.createElement(DetailsLabelLegacy, null, children);
237
380
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
238
- export const DetailsLabel = styled.div`
381
+ const DetailsLabelLegacy = styled.div`
239
382
  display: flex;
240
383
  align-items: center;
241
384
  margin: ${"var(--ds-space-200, 16px)"} 0 0 0;
@@ -245,9 +388,14 @@ export const DetailsLabel = styled.div`
245
388
  margin-top: ${"var(--ds-space-025, 2px)"};
246
389
  }
247
390
  `;
248
-
391
+ export const DetailsLabelIcon = ({
392
+ children
393
+ }) => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
394
+ as: "dt",
395
+ xcss: cx(styles.detailsLabelIcon)
396
+ }, children) : /*#__PURE__*/React.createElement(DetailsLabelIconLegacy, null, children);
249
397
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
250
- export const DetailsLabelIcon = styled.dt`
398
+ const DetailsLabelIconLegacy = styled.dt`
251
399
  display: flex;
252
400
  flex-shrink: 0;
253
401
  color: ${labelIconColor};
@@ -261,9 +409,14 @@ export const DetailsLabelIcon = styled.dt`
261
409
  height: 100%;
262
410
  }
263
411
  `;
264
-
412
+ export const DetailsLabelText = ({
413
+ children
414
+ }) => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
415
+ as: "dd",
416
+ xcss: cx(styles.detailsLabelText)
417
+ }, children) : /*#__PURE__*/React.createElement(DetailsLabelTextLegacy, null, children);
265
418
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
266
- export const DetailsLabelText = styled.dd`
419
+ const DetailsLabelTextLegacy = styled.dd`
267
420
  overflow: hidden;
268
421
  text-overflow: ellipsis;
269
422
  color: ${labelTextColor};
@@ -0,0 +1,9 @@
1
+ ._11c81oud{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
2
+ ._19bv1ejb{padding-left:var(--ds-space-300,24px)}
3
+ ._19pku2gc{margin-top:var(--ds-space-100,8px)}
4
+ ._ca0q1ejb{padding-top:var(--ds-space-300,24px)}
5
+ ._n3td1ejb{padding-bottom:var(--ds-space-300,24px)}
6
+ ._syaz1fxt{color:var(--ds-text,#172b4d)}
7
+ ._syaz1wmz{color:var(--ds-text-subtlest,#6b778c)}
8
+ ._u5f31ejb{padding-right:var(--ds-space-300,24px)}
9
+ ._y3gn1h6o{text-align:center}
@@ -1,26 +1,49 @@
1
+ /* Error.tsx generated by @compiled/babel-plugin v0.36.0 */
2
+ import _extends from "@babel/runtime/helpers/extends";
3
+ import "./Error.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 } from '@atlaskit/primitives/compiled';
3
12
  import { N200 } from '@atlaskit/theme/colors';
4
13
  import { errorIconColor, errorTitleColor } from './constants';
5
-
14
+ const styles = {
15
+ errorWrapper: "_y3gn1h6o _ca0q1ejb _u5f31ejb _n3td1ejb _19bv1ejb",
16
+ errorTitle: "_11c81oud _syaz1fxt _19pku2gc",
17
+ teamErrorText: "_syaz1wmz _19pku2gc"
18
+ };
19
+ export const ErrorWrapper = props => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, _extends({
20
+ xcss: cx(styles.errorWrapper)
21
+ }, props)) : /*#__PURE__*/React.createElement(ErrorWrapperLegacy, {
22
+ "data-testId": props.testId
23
+ }, props.children);
6
24
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
7
- export const ErrorWrapper = styled.div({
25
+ const ErrorWrapperLegacy = styled.div({
8
26
  textAlign: 'center',
9
27
  padding: "var(--ds-space-300, 24px)",
10
28
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
11
29
  color: errorIconColor
12
30
  });
13
-
31
+ export const ErrorTitle = props => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
32
+ xcss: cx(styles.errorTitle)
33
+ }, props.children) : /*#__PURE__*/React.createElement(ErrorTitleLegacy, null, props.children);
14
34
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
15
- export const ErrorTitle = styled.p({
35
+ const ErrorTitleLegacy = styled.p({
16
36
  font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
17
37
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
18
38
  color: errorTitleColor,
19
39
  margin: `${"var(--ds-space-100, 8px)"} 0`
20
40
  });
41
+ export const TeamErrorText = props => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
42
+ xcss: cx(styles.teamErrorText)
43
+ }, props.children) : /*#__PURE__*/React.createElement(TeamErrorTextLegacy, null, props.children);
21
44
 
22
45
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
23
- export const TeamErrorText = styled.p({
46
+ const TeamErrorTextLegacy = styled.p({
24
47
  color: `var(--ds-text-subtlest, ${N200})`,
25
48
  marginTop: "var(--ds-space-100, 8px)"
26
49
  });
@@ -0,0 +1,10 @@
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
+ ._18u01b66{margin-left:var(--ds-space-050,4px)}
3
+ ._18u0r5cr{margin-left:var(--ds-space-negative-050,-4px)}
4
+ ._18u0u2gc{margin-left:var(--ds-space-100,8px)}
5
+ ._19pk1b66{margin-top:var(--ds-space-050,4px)}
6
+ ._19pku2gc{margin-top:var(--ds-space-100,8px)}
7
+ ._1e0c1txw{display:flex}
8
+ ._2hwx1b66{margin-right:var(--ds-space-050,4px)}
9
+ ._4cvr1h6o{align-items:center}
10
+ ._otyr1b66{margin-bottom:var(--ds-space-050,4px)}
@@ -1,28 +1,63 @@
1
+ /* ReportingLines.tsx generated by @compiled/babel-plugin v0.36.0 */
2
+ import "./ReportingLines.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
4
+ import React from 'react';
5
+
1
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
7
  import styled from '@emotion/styled';
3
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
4
- export const ReportingLinesSection = styled.div({
8
+ import { cx } from '@atlaskit/css';
9
+ import { fg } from '@atlaskit/platform-feature-flags';
10
+ import { Box } from '@atlaskit/primitives/compiled';
11
+ const styles = {
12
+ reportingLinesSection: "_18u01b66 _19pku2gc",
13
+ managerSection: "_1e0c1txw _4cvr1h6o _18u01b66 _19pk1b66 _otyr1b66 _2hwx1b66",
14
+ managerName: "_11c81vlj _18u0u2gc",
15
+ offsetWrapper: "_19pk1b66 _18u0r5cr"
16
+ };
17
+
18
+ // 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
19
+ const ReportingLinesSectionLegacy = styled.div({
5
20
  // Minor left margin to align better with existing icon fields
6
21
  marginLeft: "var(--ds-space-050, 4px)",
7
22
  marginTop: "var(--ds-space-100, 8px)"
8
23
  });
24
+ export const ReportingLinesSection = ({
25
+ children
26
+ }) => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
27
+ xcss: cx(styles.reportingLinesSection)
28
+ }, children) : /*#__PURE__*/React.createElement(ReportingLinesSectionLegacy, null, children);
9
29
 
10
30
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
11
- export const ManagerSection = styled.div({
31
+ const ManagerSectionLegacy = styled.div({
12
32
  display: 'flex',
13
33
  alignItems: 'center',
14
34
  margin: `${"var(--ds-space-050, 4px)"} ${"var(--ds-space-050, 4px)"}`
15
35
  });
36
+ export const ManagerSection = ({
37
+ children
38
+ }) => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
39
+ xcss: cx(styles.managerSection)
40
+ }, children) : /*#__PURE__*/React.createElement(ManagerSectionLegacy, null, children);
16
41
 
17
42
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
18
- export const ManagerName = styled.span({
43
+ const ManagerNameLegacy = styled.span({
19
44
  font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
20
45
  marginLeft: "var(--ds-space-100, 8px)"
21
46
  });
47
+ export const ManagerName = ({
48
+ children
49
+ }) => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
50
+ xcss: cx(styles.managerName)
51
+ }, children) : /*#__PURE__*/React.createElement(ManagerNameLegacy, null, children);
22
52
 
23
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
24
- export const OffsetWrapper = styled.div({
53
+ // 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
54
+ const OffsetWrapperLegacy = styled.div({
25
55
  marginTop: "var(--ds-space-050, 4px)",
26
56
  // Offset left margin so the avatar aligns with the heading
27
57
  marginLeft: "var(--ds-space-negative-050, -4px)"
28
- });
58
+ });
59
+ export const OffsetWrapper = ({
60
+ children
61
+ }) => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
62
+ xcss: cx(styles.offsetWrapper)
63
+ }, children) : /*#__PURE__*/React.createElement(OffsetWrapperLegacy, null, children);
@@ -0,0 +1,41 @@
1
+ ._11c8o0gd{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)}
2
+ ._2rkoglpi{border-radius:var(--ds-border-radius,4px)}
3
+ ._12vemgnk{background-repeat:no-repeat}
4
+ ._16jlkb7n{flex-grow:1}
5
+ ._18m915vq{overflow-y:hidden}
6
+ ._18u01i6y{margin-left:var(--ds-space-negative-025,-2px)}
7
+ ._18u0u2gc{margin-left:var(--ds-space-100,8px)}
8
+ ._18u0x0bf{margin-left:var(--ds-space-negative-100,-8px)}
9
+ ._19bv1ejb{padding-left:var(--ds-space-300,24px)}
10
+ ._19pk1b66{margin-top:var(--ds-space-050,4px)}
11
+ ._19pk1ejb{margin-top:var(--ds-space-300,24px)}
12
+ ._19pk1jfw{margin-top:var(--ds-space-500,40px)}
13
+ ._19pkpxbi{margin-top:var(--ds-space-200,1pc)}
14
+ ._1bah1yb4{justify-content:space-between}
15
+ ._1bsb1osq{width:100%}
16
+ ._1bsbnklw{width:20pc}
17
+ ._1e0c1kw7{display:inherit}
18
+ ._1e0c1txw{display:flex}
19
+ ._1e0ccj1k{display:-webkit-box}
20
+ ._1itk1g60{background-image:url()}
21
+ ._1lrw1dfr{background-size:cover}
22
+ ._1p1dglyw{text-transform:none}
23
+ ._1reo15vq{overflow-x:hidden}
24
+ ._1tke1l8a{min-height:78pt}
25
+ ._2hwx10v4{margin-right:var(--ds-space-negative-300,-24px)}
26
+ ._2lx21bp4{flex-direction:column}
27
+ ._4cvr1h6o{align-items:center}
28
+ ._4t3i1qr7{height:8pc}
29
+ ._c71l1wqb{max-height:60px}
30
+ ._c71lckbl{max-height:3pc}
31
+ ._ca0q1ejb{padding-top:var(--ds-space-300,24px)}
32
+ ._i0dlidpf{flex-basis:0}
33
+ ._kqswh2mm{position:relative}
34
+ ._n3td1ejb{padding-bottom:var(--ds-space-300,24px)}
35
+ ._otyr1ejb{margin-bottom:var(--ds-space-300,24px)}
36
+ ._otyr1jfw{margin-bottom:var(--ds-space-500,40px)}
37
+ ._otyridpf{margin-bottom:0}
38
+ ._ouxl1ssb{background-position:50%}
39
+ ._syaz1wmz{color:var(--ds-text-subtlest,#6b778c)}
40
+ ._u5f31ejb{padding-right:var(--ds-space-300,24px)}
41
+ ._y3gn1h6o{text-align:center}