@atlaskit/profilecard 19.12.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 +16 -0
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/Team/TeamProfileCard.js +1 -2
- package/dist/cjs/components/Team/TeamProfileCardTrigger.js +10 -5
- package/dist/cjs/components/User/ProfileCardTrigger.js +7 -4
- package/dist/cjs/components/User/ProfileCardTriggerNext.js +1 -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/TeamProfileCard.js +1 -2
- package/dist/es2019/components/Team/TeamProfileCardTrigger.js +10 -5
- package/dist/es2019/components/User/ProfileCardTrigger.js +7 -4
- package/dist/es2019/components/User/ProfileCardTriggerNext.js +1 -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/TeamProfileCard.js +1 -2
- package/dist/esm/components/Team/TeamProfileCardTrigger.js +10 -5
- package/dist/esm/components/User/ProfileCardTrigger.js +7 -4
- package/dist/esm/components/User/ProfileCardTriggerNext.js +1 -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/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/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/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/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
|
@@ -7,16 +7,22 @@ import { B200, N50A, N60A } from '@atlaskit/theme/colors';
|
|
|
7
7
|
import { borderRadius, fontSize, fontSizeSmall, gridSize } from '@atlaskit/theme/constants';
|
|
8
8
|
import { appLabelBgColor, appLabelTextColor, bgColor, headerBgColor, headerBgColorDisabledUser, headerTextColor, headerTextColorInactive, labelIconColor, labelTextColor } from './constants';
|
|
9
9
|
const getFullNameMargin = props => props.noMeta ? `${"var(--ds-space-400, 32px)"} 0 ${"var(--ds-space-150, 12px)"} 0` : `${"var(--ds-space-150, 12px)"} 0 0 0`;
|
|
10
|
+
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
10
12
|
export const CardWrapper = styled.div`
|
|
11
13
|
background-color: ${bgColor};
|
|
12
14
|
border-radius: ${"var(--ds-border-radius, 3px)"};
|
|
13
15
|
width: ${gridSize() * 45}px;
|
|
14
16
|
`;
|
|
17
|
+
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
15
19
|
export const ProfileImage = styled.div`
|
|
16
20
|
position: absolute;
|
|
17
21
|
top: ${"var(--ds-space-300, 24px)"};
|
|
18
22
|
left: ${"var(--ds-space-300, 24px)"};
|
|
19
23
|
`;
|
|
24
|
+
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
20
26
|
export const ActionsFlexSpacer = styled.div`
|
|
21
27
|
flex: 1 0 auto;
|
|
22
28
|
`;
|
|
@@ -26,6 +32,8 @@ const kudosButtonAnimationTransformation = keyframes`
|
|
|
26
32
|
0% { transform: translate(-80px, -50px); }
|
|
27
33
|
100% { transform: translate(90px, -70px); }
|
|
28
34
|
`;
|
|
35
|
+
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
29
37
|
export const KudosBlobAnimationStyle = styled.div`
|
|
30
38
|
display: none;
|
|
31
39
|
height: 150px;
|
|
@@ -44,17 +52,24 @@ export const KudosBlobAnimationStyle = styled.div`
|
|
|
44
52
|
);
|
|
45
53
|
overflow: hidden;
|
|
46
54
|
`;
|
|
47
|
-
export const KudosBlobAnimation = props =>
|
|
55
|
+
export const KudosBlobAnimation = props =>
|
|
56
|
+
/*#__PURE__*/
|
|
57
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
58
|
+
React.createElement(KudosBlobAnimationStyle, _extends({
|
|
48
59
|
className: "kudos-blob-animation"
|
|
49
60
|
}, props));
|
|
61
|
+
|
|
62
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
50
63
|
export const AnimationWrapper = styled.div`
|
|
51
|
-
clip-path: inset(0px 0px 0px 0px round ${borderRadius}px);
|
|
64
|
+
clip-path: inset(0px 0px 0px 0px round ${borderRadius()}px);
|
|
52
65
|
position: absolute;
|
|
53
66
|
top: 0;
|
|
54
67
|
left: 0;
|
|
55
68
|
bottom: 0;
|
|
56
69
|
right: 0;
|
|
57
70
|
`;
|
|
71
|
+
|
|
72
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
58
73
|
export const AnimatedKudosButton = styled.div`
|
|
59
74
|
margin-left: ${"var(--ds-space-100, 8px)"};
|
|
60
75
|
|
|
@@ -66,6 +81,8 @@ export const AnimatedKudosButton = styled.div`
|
|
|
66
81
|
display: block;
|
|
67
82
|
}
|
|
68
83
|
`;
|
|
84
|
+
|
|
85
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
69
86
|
export const ActionButtonGroup = styled.div`
|
|
70
87
|
user-select: none;
|
|
71
88
|
margin: ${"var(--ds-space-200, 16px)"} 0 0 0;
|
|
@@ -98,6 +115,8 @@ export const ActionButtonGroup = styled.div`
|
|
|
98
115
|
}
|
|
99
116
|
}
|
|
100
117
|
`;
|
|
118
|
+
|
|
119
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
101
120
|
export const OverflowActionButtonsWrapper = styled.div`
|
|
102
121
|
display: inline-block;
|
|
103
122
|
width: ${"var(--ds-space-400, 32px)"};
|
|
@@ -113,23 +132,31 @@ export const OverflowActionButtonsWrapper = styled.div`
|
|
|
113
132
|
}
|
|
114
133
|
}
|
|
115
134
|
`;
|
|
135
|
+
|
|
136
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
116
137
|
export const CardContent = styled.div`
|
|
117
138
|
display: flex;
|
|
118
139
|
flex-direction: column;
|
|
119
140
|
min-height: ${gridSize() * 17}px;
|
|
120
141
|
`;
|
|
142
|
+
|
|
143
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
121
144
|
export const DetailsGroup = styled.div`
|
|
122
145
|
display: flex;
|
|
123
146
|
flex-direction: column;
|
|
124
147
|
margin-left: ${gridSize() * 14.5}px;
|
|
125
148
|
width: ${gridSize() * 24.5}px;
|
|
126
149
|
`;
|
|
150
|
+
|
|
151
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
127
152
|
export const DisabledInfo = styled.div`
|
|
128
|
-
font-size: ${fontSizeSmall}px;
|
|
153
|
+
font-size: ${fontSizeSmall()}px;
|
|
129
154
|
color: ${labelTextColor};
|
|
130
155
|
margin: ${"var(--ds-space-150, 12px)"} 0 0 0;
|
|
131
156
|
line-height: 16px;
|
|
132
157
|
`;
|
|
158
|
+
|
|
159
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
133
160
|
export const FullNameLabel = styled.h2`
|
|
134
161
|
overflow: hidden;
|
|
135
162
|
text-overflow: ellipsis;
|
|
@@ -145,11 +172,15 @@ export const FullNameLabel = styled.h2`
|
|
|
145
172
|
margin: ${props => getFullNameMargin(props)};
|
|
146
173
|
}
|
|
147
174
|
`;
|
|
175
|
+
|
|
176
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
148
177
|
export const LozengeWrapper = styled.div`
|
|
149
178
|
margin-top: ${"var(--ds-space-200, 16px)"};
|
|
150
179
|
text-transform: uppercase;
|
|
151
180
|
display: block;
|
|
152
181
|
`;
|
|
182
|
+
|
|
183
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
153
184
|
export const CustomLozengeContainer = styled(LozengeWrapper)`
|
|
154
185
|
display: flex;
|
|
155
186
|
flex-direction: row;
|
|
@@ -163,6 +194,8 @@ export const CustomLozengeContainer = styled(LozengeWrapper)`
|
|
|
163
194
|
}
|
|
164
195
|
}
|
|
165
196
|
`;
|
|
197
|
+
|
|
198
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
166
199
|
export const JobTitleLabel = styled.span`
|
|
167
200
|
overflow: hidden;
|
|
168
201
|
text-overflow: ellipsis;
|
|
@@ -173,6 +206,8 @@ export const JobTitleLabel = styled.span`
|
|
|
173
206
|
margin: 0 0 ${"var(--ds-space-150, 12px)"} 0;
|
|
174
207
|
line-height: ${24 / 14}em;
|
|
175
208
|
`;
|
|
209
|
+
|
|
210
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
176
211
|
export const AppTitleLabel = styled.span`
|
|
177
212
|
background: ${appLabelBgColor};
|
|
178
213
|
color: ${appLabelTextColor};
|
|
@@ -186,6 +221,8 @@ export const AppTitleLabel = styled.span`
|
|
|
186
221
|
margin: ${"var(--ds-space-050, 4px)"} 0 ${"var(--ds-space-150, 12px)"} 0;
|
|
187
222
|
line-height: ${24 / 14}em;
|
|
188
223
|
`;
|
|
224
|
+
|
|
225
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
189
226
|
export const SpinnerContainer = styled.div`
|
|
190
227
|
align-items: center;
|
|
191
228
|
display: flex;
|
|
@@ -193,6 +230,7 @@ export const SpinnerContainer = styled.div`
|
|
|
193
230
|
justify-content: center;
|
|
194
231
|
position: relative;
|
|
195
232
|
`;
|
|
233
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
196
234
|
export const CardContainer = styled.div`
|
|
197
235
|
position: relative;
|
|
198
236
|
-webkit-font-smoothing: antialiased;
|
|
@@ -213,6 +251,8 @@ export const CardContainer = styled.div`
|
|
|
213
251
|
|
|
214
252
|
overflow: hidden;
|
|
215
253
|
`;
|
|
254
|
+
|
|
255
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
216
256
|
export const DetailsLabel = styled.div`
|
|
217
257
|
display: flex;
|
|
218
258
|
align-items: center;
|
|
@@ -225,6 +265,8 @@ export const DetailsLabel = styled.div`
|
|
|
225
265
|
margin-top: ${"var(--ds-space-025, 2px)"};
|
|
226
266
|
}
|
|
227
267
|
`;
|
|
268
|
+
|
|
269
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
228
270
|
export const DetailsLabelIcon = styled.div`
|
|
229
271
|
display: flex;
|
|
230
272
|
flex-shrink: 0;
|
|
@@ -239,6 +281,8 @@ export const DetailsLabelIcon = styled.div`
|
|
|
239
281
|
height: 100%;
|
|
240
282
|
}
|
|
241
283
|
`;
|
|
284
|
+
|
|
285
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
242
286
|
export const DetailsLabelText = styled.span`
|
|
243
287
|
overflow: hidden;
|
|
244
288
|
text-overflow: ellipsis;
|
|
@@ -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'
|
|
@@ -357,8 +360,7 @@ export var TeamProfileCardTriggerInternal = /*#__PURE__*/function (_React$PureCo
|
|
|
357
360
|
},
|
|
358
361
|
zIndex: layers.modal(),
|
|
359
362
|
shouldFlip: true,
|
|
360
|
-
autoFocus: this.props.trigger !== 'hover' && !this.openedByHover
|
|
361
|
-
shouldRenderToParent: true
|
|
363
|
+
autoFocus: this.props.trigger !== 'hover' && !this.openedByHover
|
|
362
364
|
}));
|
|
363
365
|
}
|
|
364
366
|
}, {
|
|
@@ -377,6 +379,9 @@ _defineProperty(TeamProfileCardTriggerInternal, "defaultProps", {
|
|
|
377
379
|
actions: [],
|
|
378
380
|
trigger: 'hover',
|
|
379
381
|
position: 'bottom-start',
|
|
380
|
-
triggerLinkType: 'link'
|
|
382
|
+
triggerLinkType: 'link',
|
|
383
|
+
displayConfig: {
|
|
384
|
+
showKudos: true
|
|
385
|
+
}
|
|
381
386
|
});
|
|
382
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));
|
|
@@ -284,8 +285,7 @@ var ProfilecardTrigger = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
284
285
|
},
|
|
285
286
|
zIndex: layers.modal(),
|
|
286
287
|
shouldUseCaptureOnOutsideClick: true,
|
|
287
|
-
autoFocus: this.props.trigger === 'click'
|
|
288
|
-
shouldRenderToParent: true
|
|
288
|
+
autoFocus: this.props.trigger === 'click'
|
|
289
289
|
}), this.state.shouldShowGiveKudos && /*#__PURE__*/React.createElement(Suspense, {
|
|
290
290
|
fallback: null
|
|
291
291
|
}, /*#__PURE__*/React.createElement(GiveKudosLauncherLazy, {
|
|
@@ -316,7 +316,10 @@ var ProfilecardTrigger = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
316
316
|
_defineProperty(ProfilecardTrigger, "defaultProps", {
|
|
317
317
|
actions: [],
|
|
318
318
|
trigger: 'hover',
|
|
319
|
-
position: 'bottom-start'
|
|
319
|
+
position: 'bottom-start',
|
|
320
|
+
displayConfig: {
|
|
321
|
+
showKudos: true
|
|
322
|
+
}
|
|
320
323
|
});
|
|
321
324
|
var ProfilecardTriggerLegacy = withAnalyticsEvents()(ProfilecardTrigger);
|
|
322
325
|
export default function ProfilecardTriggerSwitch(props) {
|
|
@@ -321,8 +321,7 @@ export default function ProfilecardTriggerNext(_ref) {
|
|
|
321
321
|
},
|
|
322
322
|
zIndex: layers.modal(),
|
|
323
323
|
shouldUseCaptureOnOutsideClick: true,
|
|
324
|
-
autoFocus: trigger === 'click'
|
|
325
|
-
shouldRenderToParent: true
|
|
324
|
+
autoFocus: trigger === 'click'
|
|
326
325
|
}), shouldShowGiveKudos && /*#__PURE__*/React.createElement(Suspense, {
|
|
327
326
|
fallback: null
|
|
328
327
|
}, /*#__PURE__*/React.createElement(GiveKudosLauncherLazy, {
|
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)"
|