@atlaskit/profilecard 23.16.4 → 23.16.7
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 +27 -0
- package/dist/cjs/client/UserProfileCardClient.js +5 -4
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/Team/TeamLoadingState.js +4 -4
- package/dist/cjs/components/Team/TeamProfileCard.js +5 -4
- package/dist/cjs/components/User/ProfileCard.js +3 -2
- package/dist/cjs/components/User/ProfileCardResourced.js +4 -4
- package/dist/cjs/components/User/ProfileCardTrigger.js +2 -2
- package/dist/cjs/components/User/UserLoadingState.js +2 -2
- package/dist/cjs/components/common/LoadingState.js +2 -2
- package/dist/cjs/components/team-profile-card/team-connections/main.js +8 -2
- package/dist/cjs/styled/Card.compiled.css +0 -3
- package/dist/cjs/styled/Card.js +59 -92
- package/dist/cjs/styled/TeamCard.compiled.css +1 -13
- package/dist/cjs/styled/TeamCard.js +2 -90
- package/dist/cjs/styled/TeamTrigger.compiled.css +16 -0
- package/dist/cjs/styled/TeamTrigger.js +108 -0
- package/dist/cjs/styled/UserTrigger.compiled.css +7 -0
- package/dist/cjs/styled/UserTrigger.js +56 -0
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/es2019/client/UserProfileCardClient.js +3 -2
- package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/components/Team/TeamLoadingState.js +1 -1
- package/dist/es2019/components/Team/TeamProfileCard.js +2 -1
- package/dist/es2019/components/User/ProfileCard.js +2 -1
- package/dist/es2019/components/User/ProfileCardResourced.js +1 -1
- package/dist/es2019/components/User/ProfileCardTrigger.js +1 -1
- package/dist/es2019/components/User/UserLoadingState.js +1 -1
- package/dist/es2019/components/common/LoadingState.js +1 -1
- package/dist/es2019/components/team-profile-card/team-connections/main.js +8 -2
- package/dist/es2019/styled/Card.compiled.css +0 -3
- package/dist/es2019/styled/Card.js +1 -42
- package/dist/es2019/styled/TeamCard.compiled.css +1 -13
- package/dist/es2019/styled/TeamCard.js +1 -84
- package/dist/es2019/styled/TeamTrigger.compiled.css +16 -0
- package/dist/es2019/styled/TeamTrigger.js +97 -0
- package/dist/es2019/styled/UserTrigger.compiled.css +7 -0
- package/dist/es2019/styled/UserTrigger.js +57 -0
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/esm/client/UserProfileCardClient.js +5 -4
- package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/components/Team/TeamLoadingState.js +1 -1
- package/dist/esm/components/Team/TeamProfileCard.js +2 -1
- package/dist/esm/components/User/ProfileCard.js +2 -1
- package/dist/esm/components/User/ProfileCardResourced.js +1 -1
- package/dist/esm/components/User/ProfileCardTrigger.js +1 -1
- package/dist/esm/components/User/UserLoadingState.js +1 -1
- package/dist/esm/components/common/LoadingState.js +1 -1
- package/dist/esm/components/team-profile-card/team-connections/main.js +8 -2
- package/dist/esm/styled/Card.compiled.css +0 -3
- package/dist/esm/styled/Card.js +59 -92
- package/dist/esm/styled/TeamCard.compiled.css +1 -13
- package/dist/esm/styled/TeamCard.js +1 -90
- package/dist/esm/styled/TeamTrigger.compiled.css +16 -0
- package/dist/esm/styled/TeamTrigger.js +103 -0
- package/dist/esm/styled/UserTrigger.compiled.css +7 -0
- package/dist/esm/styled/UserTrigger.js +52 -0
- package/dist/esm/util/analytics.js +1 -1
- package/dist/types/styled/Card.d.ts +0 -10
- package/dist/types/styled/TeamCard.d.ts +0 -17
- package/dist/types/styled/TeamTrigger.d.ts +18 -0
- package/dist/types/styled/UserTrigger.d.ts +11 -0
- package/dist/types-ts4.5/styled/Card.d.ts +0 -10
- package/dist/types-ts4.5/styled/TeamCard.d.ts +0 -17
- package/dist/types-ts4.5/styled/TeamTrigger.d.ts +18 -0
- package/dist/types-ts4.5/styled/UserTrigger.d.ts +11 -0
- package/package.json +10 -7
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/* TeamTrigger.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import "./TeamTrigger.compiled.css";
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
import React from 'react';
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
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';
|
|
12
|
+
import { N20 } from '@atlaskit/theme/colors';
|
|
13
|
+
import { borderRadius } from '@atlaskit/theme/constants';
|
|
14
|
+
import { bgColor, teamHeaderBgColor } from './constants';
|
|
15
|
+
import { CoverImage } from './CoverImage';
|
|
16
|
+
const styles = {
|
|
17
|
+
cardtriggerwrapper: "_1e0c1kw7",
|
|
18
|
+
cardwrapper: "_2rkoglpi _1bsbnklw _kqswh2mm",
|
|
19
|
+
cardheader: "_4t3i1qr7 _1bsb1osq",
|
|
20
|
+
cardcontent: "_1e0c1txw _2lx21bp4 _ca0q1ejb _u5f31ejb _n3td1ejb _19bv1ejb _1tke1l8a",
|
|
21
|
+
loadingwrapper: "_y3gn1h6o _19pk1jfw _otyr1jfw"
|
|
22
|
+
};
|
|
23
|
+
export const CardTriggerWrapper = () => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
|
|
24
|
+
xcss: cx(styles.cardtriggerwrapper)
|
|
25
|
+
}) : /*#__PURE__*/React.createElement(CardTriggerWrapperLegacy, null);
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
27
|
+
const CardTriggerWrapperLegacy = styled.div({
|
|
28
|
+
display: 'inherit'
|
|
29
|
+
});
|
|
30
|
+
export const CardWrapper = ({
|
|
31
|
+
testId,
|
|
32
|
+
children
|
|
33
|
+
}) => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
|
|
34
|
+
xcss: cx(styles.cardwrapper),
|
|
35
|
+
backgroundColor: "elevation.surface.overlay",
|
|
36
|
+
testId: testId
|
|
37
|
+
}, children) : /*#__PURE__*/React.createElement(CardWrapperLegacy, {
|
|
38
|
+
"data-testid": testId
|
|
39
|
+
}, children);
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
41
|
+
const CardWrapperLegacy = styled.div({
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
43
|
+
backgroundColor: bgColor,
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
45
|
+
borderRadius: `${borderRadius()}px`,
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
47
|
+
width: '320px',
|
|
48
|
+
position: 'relative',
|
|
49
|
+
WebkitFontSmoothing: 'antialiased',
|
|
50
|
+
MozOsxFontSmoothing: 'grayscale'
|
|
51
|
+
});
|
|
52
|
+
export const CardHeader = ({
|
|
53
|
+
image,
|
|
54
|
+
isLoading,
|
|
55
|
+
label
|
|
56
|
+
}) => fg('compiled-migration-profilecard') ? isLoading || !image ? /*#__PURE__*/React.createElement(Box, {
|
|
57
|
+
xcss: cx(styles.cardheader),
|
|
58
|
+
backgroundColor: "color.background.neutral"
|
|
59
|
+
}) : /*#__PURE__*/React.createElement(CoverImage, {
|
|
60
|
+
alt: label || '',
|
|
61
|
+
src: image
|
|
62
|
+
}) : /*#__PURE__*/React.createElement(CardHeaderLegacy, {
|
|
63
|
+
image: image,
|
|
64
|
+
isLoading: isLoading
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
// 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
|
|
68
|
+
const CardHeaderLegacy = styled.div`
|
|
69
|
+
background-color: ${props => props.isLoading ? `var(--ds-background-neutral, ${N20})` : props.image ? '' : teamHeaderBgColor};
|
|
70
|
+
background-image: ${props => props.image ? `url(${props.image})` : ''};
|
|
71
|
+
background-repeat: no-repeat;
|
|
72
|
+
background-position: center;
|
|
73
|
+
background-size: cover;
|
|
74
|
+
box-sizing: content-box;
|
|
75
|
+
height: 128px;
|
|
76
|
+
`;
|
|
77
|
+
export const CardContent = props => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, _extends({
|
|
78
|
+
xcss: cx(styles.cardcontent)
|
|
79
|
+
}, props)) : /*#__PURE__*/React.createElement(CardContentLegacy, props);
|
|
80
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
81
|
+
const CardContentLegacy = styled.div({
|
|
82
|
+
display: 'flex',
|
|
83
|
+
flexDirection: 'column',
|
|
84
|
+
padding: "var(--ds-space-300, 24px)",
|
|
85
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
86
|
+
minHeight: '104px'
|
|
87
|
+
});
|
|
88
|
+
export const LoadingWrapper = props => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, _extends({
|
|
89
|
+
xcss: cx(styles.loadingwrapper)
|
|
90
|
+
}, props)) : /*#__PURE__*/React.createElement(LoadingWrapperLegacy, {
|
|
91
|
+
"data-testid": props.testId
|
|
92
|
+
}, props.children);
|
|
93
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
94
|
+
const LoadingWrapperLegacy = styled.div({
|
|
95
|
+
textAlign: 'center',
|
|
96
|
+
marginTop: "var(--ds-space-500, 40px)"
|
|
97
|
+
});
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* UserTrigger.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
// PLEASE NOTE: This file is sync-loaded with the trigger components. Only add components here that
|
|
3
|
+
// are necessary for the main render of the trigger component to help maintain bundle size.
|
|
4
|
+
/* eslint-disable @atlaskit/design-system/no-styled-tagged-template-expression -- needs manual remediation */
|
|
5
|
+
import "./UserTrigger.compiled.css";
|
|
6
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
7
|
+
import React from 'react';
|
|
8
|
+
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
|
+
import styled from '@emotion/styled';
|
|
11
|
+
import { cx } from '@atlaskit/css';
|
|
12
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
|
+
import { Box } from '@atlaskit/primitives/compiled';
|
|
14
|
+
import { bgColor } from './constants';
|
|
15
|
+
const styles = {
|
|
16
|
+
cardWrapper: "_2rkoglpi _1bsb1gwv",
|
|
17
|
+
spinnerContainer: "_4cvr1h6o _1e0c1txw _4t3i16xz _1bah1h6o _kqswh2mm"
|
|
18
|
+
};
|
|
19
|
+
export const CardWrapper = ({
|
|
20
|
+
children,
|
|
21
|
+
role,
|
|
22
|
+
testId,
|
|
23
|
+
labelledBy
|
|
24
|
+
}) => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
|
|
25
|
+
xcss: cx(styles.cardWrapper),
|
|
26
|
+
backgroundColor: 'elevation.surface.overlay',
|
|
27
|
+
role: role,
|
|
28
|
+
testId: testId,
|
|
29
|
+
"aria-labelledby": labelledBy
|
|
30
|
+
}, children) : /*#__PURE__*/React.createElement(CardWrapperLegacy, {
|
|
31
|
+
"data-testid": testId,
|
|
32
|
+
role: role,
|
|
33
|
+
"aria-labelledby": labelledBy
|
|
34
|
+
}, children);
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
36
|
+
const CardWrapperLegacy = styled.div`
|
|
37
|
+
background-color: ${bgColor};
|
|
38
|
+
border-radius: ${"var(--ds-border-radius, 3px)"};
|
|
39
|
+
width: 360px;
|
|
40
|
+
`;
|
|
41
|
+
export const SpinnerContainer = ({
|
|
42
|
+
children,
|
|
43
|
+
testId
|
|
44
|
+
}) => fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
|
|
45
|
+
testId: testId,
|
|
46
|
+
xcss: cx(styles.spinnerContainer)
|
|
47
|
+
}, children) : /*#__PURE__*/React.createElement(SpinnerContainerLegacy, {
|
|
48
|
+
"data-testid": testId
|
|
49
|
+
}, children);
|
|
50
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
51
|
+
const SpinnerContainerLegacy = styled.div`
|
|
52
|
+
align-items: center;
|
|
53
|
+
display: flex;
|
|
54
|
+
height: 96px;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
position: relative;
|
|
57
|
+
`;
|
|
@@ -32,7 +32,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
|
|
|
32
32
|
actionSubjectId,
|
|
33
33
|
attributes: {
|
|
34
34
|
packageName: "@atlaskit/profilecard",
|
|
35
|
-
packageVersion: "23.16.
|
|
35
|
+
packageVersion: "23.16.7",
|
|
36
36
|
...attributes,
|
|
37
37
|
firedAt: Math.round(getPageTime())
|
|
38
38
|
}
|
|
@@ -99,7 +99,7 @@ var UserProfileCardClient = /*#__PURE__*/function (_CachingClient) {
|
|
|
99
99
|
value: function () {
|
|
100
100
|
var _makeRequest = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(cloudId, userId) {
|
|
101
101
|
var _user$extendedProfile, _user$extendedProfile2, _user$extendedProfile3, _user$extendedProfile4, _user$extendedProfile5;
|
|
102
|
-
var gatewayGraphqlUrl, urlWithOperationName, userQueryPromise, user, timestring, localWeekdayIndex;
|
|
102
|
+
var gatewayGraphqlUrl, urlWithOperationName, userQueryPromise, user, timestring, localWeekdayIndex, timeFormat;
|
|
103
103
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
104
104
|
while (1) switch (_context2.prev = _context2.next) {
|
|
105
105
|
case 0:
|
|
@@ -111,11 +111,12 @@ var UserProfileCardClient = /*#__PURE__*/function (_CachingClient) {
|
|
|
111
111
|
case 5:
|
|
112
112
|
user = _context2.sent;
|
|
113
113
|
localWeekdayIndex = new Date().getDay().toString();
|
|
114
|
+
timeFormat = fg('platform_profilecard-update-time-format') ? 'h:mmaaa' : 'h:mmbbb';
|
|
114
115
|
if (user.zoneinfo) {
|
|
115
116
|
if (localTime(user.zoneinfo, 'i') === localWeekdayIndex) {
|
|
116
|
-
timestring = localTime(user.zoneinfo,
|
|
117
|
+
timestring = localTime(user.zoneinfo, timeFormat) || undefined;
|
|
117
118
|
} else {
|
|
118
|
-
timestring = localTime(user.zoneinfo,
|
|
119
|
+
timestring = localTime(user.zoneinfo, "eee ".concat(timeFormat)) || undefined;
|
|
119
120
|
}
|
|
120
121
|
}
|
|
121
122
|
return _context2.abrupt("return", _objectSpread(_objectSpread({}, user), {}, {
|
|
@@ -132,7 +133,7 @@ var UserProfileCardClient = /*#__PURE__*/function (_CachingClient) {
|
|
|
132
133
|
companyName: (_user$extendedProfile5 = user.extendedProfile) === null || _user$extendedProfile5 === void 0 ? void 0 : _user$extendedProfile5.organization,
|
|
133
134
|
timestring: timestring
|
|
134
135
|
}));
|
|
135
|
-
case
|
|
136
|
+
case 10:
|
|
136
137
|
case "end":
|
|
137
138
|
return _context2.stop();
|
|
138
139
|
}
|
|
@@ -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', "23.16.
|
|
7
|
+
headers.append('atl-client-version', "23.16.7");
|
|
8
8
|
return headers;
|
|
9
9
|
};
|
|
10
10
|
export function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -56,7 +56,7 @@ export var addHeaders = function addHeaders(headers) {
|
|
|
56
56
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
57
57
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
58
58
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
59
|
-
headers.append('atl-client-version', "23.16.
|
|
59
|
+
headers.append('atl-client-version', "23.16.7");
|
|
60
60
|
return headers;
|
|
61
61
|
};
|
|
62
62
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
2
|
import Spinner from '@atlaskit/spinner';
|
|
3
|
-
import { CardContent, CardHeader, CardWrapper, LoadingWrapper } from '../../styled/
|
|
3
|
+
import { CardContent, CardHeader, CardWrapper, LoadingWrapper } from '../../styled/TeamTrigger';
|
|
4
4
|
import { profileCardRendered } from '../../util/analytics';
|
|
5
5
|
export default (function (props) {
|
|
6
6
|
var analytics = props.analytics;
|
|
@@ -23,7 +23,8 @@ import Tooltip from '@atlaskit/tooltip';
|
|
|
23
23
|
import messages from '../../messages';
|
|
24
24
|
import { AnimatedKudosButton, AnimationWrapper, KudosBlobAnimation } from '../../styled/Card';
|
|
25
25
|
import { ErrorWrapper, TeamErrorText } from '../../styled/Error';
|
|
26
|
-
import { ActionButtons, AvatarSection,
|
|
26
|
+
import { ActionButtons, AvatarSection, Description, DescriptionWrapper, MemberCount, MoreButton, TeamName, WrappedButton } from '../../styled/TeamCard';
|
|
27
|
+
import { CardContent, CardHeader, CardWrapper } from '../../styled/TeamTrigger';
|
|
27
28
|
import { actionClicked, errorRetryClicked, moreActionsClicked, moreMembersClicked, profileCardRendered, teamAvatarClicked } from '../../util/analytics';
|
|
28
29
|
import { isBasicClick } from '../../util/click';
|
|
29
30
|
import { ErrorIllustration } from '../Error';
|
|
@@ -12,7 +12,8 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
12
12
|
import Spinner from '@atlaskit/spinner';
|
|
13
13
|
import { N0 } from '@atlaskit/theme/colors';
|
|
14
14
|
import messages from '../../messages';
|
|
15
|
-
import { ActionButtonGroup, ActionsFlexSpacer, AnimatedKudosButton, AnimationWrapper, CardContainer, CardContent,
|
|
15
|
+
import { ActionButtonGroup, ActionsFlexSpacer, AnimatedKudosButton, AnimationWrapper, CardContainer, CardContent, KudosBlobAnimation, ProfileImage } from '../../styled/Card';
|
|
16
|
+
import { CardWrapper, SpinnerContainer } from '../../styled/UserTrigger';
|
|
16
17
|
import { actionClicked, fireEvent, profileCardRendered } from '../../util/analytics';
|
|
17
18
|
import { isBasicClick } from '../../util/click';
|
|
18
19
|
import { getPageTime } from '../../util/performance';
|
|
@@ -14,7 +14,7 @@ import React, { Suspense } from 'react';
|
|
|
14
14
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
15
15
|
import { GiveKudosLauncherLazy, KudosType } from '@atlaskit/give-kudos';
|
|
16
16
|
import filterActions from '../../internal/filterActions';
|
|
17
|
-
import { CardWrapper } from '../../styled/
|
|
17
|
+
import { CardWrapper } from '../../styled/UserTrigger';
|
|
18
18
|
import { fireEvent } from '../../util/analytics';
|
|
19
19
|
import { ErrorMessage } from '../Error';
|
|
20
20
|
import ProfileCard from './ProfileCard';
|
|
@@ -18,7 +18,7 @@ import Popup from '@atlaskit/popup';
|
|
|
18
18
|
import { layers } from '@atlaskit/theme/constants';
|
|
19
19
|
import filterActionsInner from '../../internal/filterActions';
|
|
20
20
|
import getLabelMessage from '../../internal/getLabelMessage';
|
|
21
|
-
import { CardWrapper } from '../../styled/
|
|
21
|
+
import { CardWrapper } from '../../styled/UserTrigger';
|
|
22
22
|
import { cardTriggered, fireEvent } from '../../util/analytics';
|
|
23
23
|
import { DELAY_MS_HIDE, DELAY_MS_SHOW } from '../../util/config';
|
|
24
24
|
import { AgentProfileCardResourced } from '../Agent/AgentProfileCardResourced';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
2
|
import AkSpinner from '@atlaskit/spinner';
|
|
3
|
-
import { SpinnerContainer } from '../../styled/
|
|
3
|
+
import { SpinnerContainer } from '../../styled/UserTrigger';
|
|
4
4
|
import { profileCardRendered } from '../../util/analytics';
|
|
5
5
|
var UserLoadingState = function UserLoadingState(_ref) {
|
|
6
6
|
var fireAnalytics = _ref.fireAnalytics;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
2
|
import AkSpinner from '@atlaskit/spinner';
|
|
3
|
-
import { SpinnerContainer } from '../../styled/
|
|
3
|
+
import { SpinnerContainer } from '../../styled/UserTrigger';
|
|
4
4
|
import { profileCardRendered } from '../../util/analytics';
|
|
5
5
|
export var LoadingState = function LoadingState(_ref) {
|
|
6
6
|
var fireAnalytics = _ref.fireAnalytics,
|
|
@@ -18,7 +18,10 @@ export var TeamConnections = function TeamConnections(_ref) {
|
|
|
18
18
|
title = _ref.title,
|
|
19
19
|
containerIcon = _ref.containerIcon,
|
|
20
20
|
link = _ref.link;
|
|
21
|
-
var _getContainerProperti = getContainerProperties(
|
|
21
|
+
var _getContainerProperti = getContainerProperties({
|
|
22
|
+
containerType: containerType,
|
|
23
|
+
iconSize: 'medium'
|
|
24
|
+
}),
|
|
22
25
|
description = _getContainerProperti.description,
|
|
23
26
|
icon = _getContainerProperti.icon,
|
|
24
27
|
containerTypeText = _getContainerProperti.containerTypeText;
|
|
@@ -68,7 +71,10 @@ export var NewTeamConnections = function NewTeamConnections(_ref2) {
|
|
|
68
71
|
title = _ref2.title,
|
|
69
72
|
containerIcon = _ref2.containerIcon,
|
|
70
73
|
link = _ref2.link;
|
|
71
|
-
var _getContainerProperti2 = getContainerProperties(
|
|
74
|
+
var _getContainerProperti2 = getContainerProperties({
|
|
75
|
+
containerType: containerType,
|
|
76
|
+
iconSize: 'medium'
|
|
77
|
+
}),
|
|
72
78
|
description = _getContainerProperti2.description,
|
|
73
79
|
icon = _getContainerProperti2.icon,
|
|
74
80
|
containerTypeText = _getContainerProperti2.containerTypeText;
|
|
@@ -22,11 +22,9 @@
|
|
|
22
22
|
._19pkutpp{margin-top:var(--ds-space-150,9pt)}
|
|
23
23
|
._19pkxy5q{margin-top:var(--ds-space-400,2pc)}
|
|
24
24
|
._19pkze3t{margin-top:var(--ds-space-0,0)}
|
|
25
|
-
._1bah1h6o{justify-content:center}
|
|
26
25
|
._1bah1y6m{justify-content:flex-start}
|
|
27
26
|
._1bahesu3{justify-content:flex-end}
|
|
28
27
|
._1bsb18pt{width:228px}
|
|
29
|
-
._1bsb1gwv{width:360px}
|
|
30
28
|
._1bsb1ns9{width:-moz-fit-content;width:fit-content}
|
|
31
29
|
._1bsb1w81{width:150px}
|
|
32
30
|
._1bsb7vkz{width:1pc}
|
|
@@ -52,7 +50,6 @@
|
|
|
52
50
|
._2lx21bp4{flex-direction:column}
|
|
53
51
|
._2lx2vrvc{flex-direction:row}
|
|
54
52
|
._4cvr1h6o{align-items:center}
|
|
55
|
-
._4t3i16xz{height:6pc}
|
|
56
53
|
._4t3i1w81{height:150px}
|
|
57
54
|
._4t3i7vkz{height:1pc}
|
|
58
55
|
._4t3izwfg{height:2pc}
|