@atlaskit/profilecard 23.16.3 → 23.16.5
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/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/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/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/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/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/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 +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 23.16.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#156607](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/156607)
|
|
8
|
+
[`88044bfdf186f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/88044bfdf186f) -
|
|
9
|
+
Splits styles for the profilecard triggers into separate files from the main card styles in order
|
|
10
|
+
to reduce the bundle size of the triggers, allowing more code to be loaded async
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
13
|
+
## 23.16.4
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 23.16.3
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -11,7 +11,7 @@ var _graphqlUtils = require("./graphqlUtils");
|
|
|
11
11
|
var ORG_ID_FROM_CLOUD_ID_QUERY = "query OrgIdFromCloudId($cloudId: ID!) {\n\ttenantContexts(cloudIds: [$cloudId]) {\n\t\torgId\n\t}\n}";
|
|
12
12
|
var addHeaders = function addHeaders(headers) {
|
|
13
13
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
14
|
-
headers.append('atl-client-version', "23.16.
|
|
14
|
+
headers.append('atl-client-version', "23.16.5");
|
|
15
15
|
return headers;
|
|
16
16
|
};
|
|
17
17
|
function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -65,7 +65,7 @@ var addHeaders = exports.addHeaders = function addHeaders(headers) {
|
|
|
65
65
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
66
66
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
67
67
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
68
|
-
headers.append('atl-client-version', "23.16.
|
|
68
|
+
headers.append('atl-client-version', "23.16.5");
|
|
69
69
|
return headers;
|
|
70
70
|
};
|
|
71
71
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
11
|
-
var
|
|
11
|
+
var _TeamTrigger = require("../../styled/TeamTrigger");
|
|
12
12
|
var _analytics = require("../../util/analytics");
|
|
13
13
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
14
14
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -21,11 +21,11 @@ var _default = exports.default = function _default(props) {
|
|
|
21
21
|
});
|
|
22
22
|
});
|
|
23
23
|
}, [analytics]);
|
|
24
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
24
|
+
return /*#__PURE__*/_react.default.createElement(_TeamTrigger.CardWrapper, {
|
|
25
25
|
testId: "team-profilecard"
|
|
26
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
26
|
+
}, /*#__PURE__*/_react.default.createElement(_TeamTrigger.CardHeader, {
|
|
27
27
|
isLoading: true
|
|
28
|
-
}), /*#__PURE__*/_react.default.createElement(
|
|
28
|
+
}), /*#__PURE__*/_react.default.createElement(_TeamTrigger.CardContent, null, /*#__PURE__*/_react.default.createElement(_TeamTrigger.LoadingWrapper, {
|
|
29
29
|
testId: "team-profilecard-spinner"
|
|
30
30
|
}, /*#__PURE__*/_react.default.createElement(_spinner.default, null))));
|
|
31
31
|
};
|
|
@@ -30,6 +30,7 @@ var _messages = _interopRequireDefault(require("../../messages"));
|
|
|
30
30
|
var _Card = require("../../styled/Card");
|
|
31
31
|
var _Error = require("../../styled/Error");
|
|
32
32
|
var _TeamCard = require("../../styled/TeamCard");
|
|
33
|
+
var _TeamTrigger = require("../../styled/TeamTrigger");
|
|
33
34
|
var _analytics = require("../../util/analytics");
|
|
34
35
|
var _click = require("../../util/click");
|
|
35
36
|
var _Error2 = require("../Error");
|
|
@@ -310,12 +311,12 @@ var TeamProfilecardContent = function TeamProfilecardContent(_ref5) {
|
|
|
310
311
|
});
|
|
311
312
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
312
313
|
}, [analytics]);
|
|
313
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
314
|
+
return /*#__PURE__*/_react.default.createElement(_TeamTrigger.CardWrapper, {
|
|
314
315
|
testId: "team-profilecard"
|
|
315
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
316
|
+
}, /*#__PURE__*/_react.default.createElement(_TeamTrigger.CardHeader, {
|
|
316
317
|
image: team.largeHeaderImageUrl || team.smallHeaderImageUrl,
|
|
317
318
|
label: team.displayName
|
|
318
|
-
}), /*#__PURE__*/_react.default.createElement(
|
|
319
|
+
}), /*#__PURE__*/_react.default.createElement(_TeamTrigger.CardContent, null, /*#__PURE__*/_react.default.createElement(_tooltip.default, {
|
|
319
320
|
content: team.displayName
|
|
320
321
|
}, /*#__PURE__*/_react.default.createElement(_compiled.Inline, null, /*#__PURE__*/_react.default.createElement(_TeamCard.TeamName, null, team.displayName), team.isVerified && /*#__PURE__*/_react.default.createElement(_verifiedTeamIcon.VerifiedTeamIcon, null))), /*#__PURE__*/_react.default.createElement(TeamMembers, {
|
|
321
322
|
analytics: analytics,
|
|
@@ -382,7 +383,7 @@ var TeamProfileCard = function TeamProfileCard(props) {
|
|
|
382
383
|
analytics: analytics
|
|
383
384
|
});
|
|
384
385
|
} else {
|
|
385
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
386
|
+
return /*#__PURE__*/_react.default.createElement(_TeamTrigger.CardWrapper, {
|
|
386
387
|
testId: "team-profilecard"
|
|
387
388
|
}, /*#__PURE__*/_react.default.createElement(ErrorMessage, {
|
|
388
389
|
analytics: analytics,
|
|
@@ -21,6 +21,7 @@ var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
|
21
21
|
var _colors = require("@atlaskit/theme/colors");
|
|
22
22
|
var _messages = _interopRequireDefault(require("../../messages"));
|
|
23
23
|
var _Card = require("../../styled/Card");
|
|
24
|
+
var _UserTrigger = require("../../styled/UserTrigger");
|
|
24
25
|
var _analytics = require("../../util/analytics");
|
|
25
26
|
var _click = require("../../util/click");
|
|
26
27
|
var _performance = require("../../util/performance");
|
|
@@ -58,7 +59,7 @@ var useKudos = function useKudos(cloudId, userId, teamCentralBaseUrl, openKudosD
|
|
|
58
59
|
};
|
|
59
60
|
};
|
|
60
61
|
var Wrapper = function Wrapper(props) {
|
|
61
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
62
|
+
return /*#__PURE__*/_react.default.createElement(_UserTrigger.CardWrapper, {
|
|
62
63
|
testId: "profilecard",
|
|
63
64
|
role: "dialog",
|
|
64
65
|
labelledBy: "profilecard-name-label"
|
|
@@ -218,7 +219,7 @@ var LoadingView = function LoadingView(_ref2) {
|
|
|
218
219
|
});
|
|
219
220
|
});
|
|
220
221
|
}, [fireAnalyticsWithDuration]);
|
|
221
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
222
|
+
return /*#__PURE__*/_react.default.createElement(_UserTrigger.SpinnerContainer, {
|
|
222
223
|
testId: "profilecard-spinner-container"
|
|
223
224
|
}, /*#__PURE__*/_react.default.createElement(_spinner.default, null));
|
|
224
225
|
};
|
|
@@ -18,7 +18,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
18
18
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
19
19
|
var _giveKudos = require("@atlaskit/give-kudos");
|
|
20
20
|
var _filterActions = _interopRequireDefault(require("../../internal/filterActions"));
|
|
21
|
-
var
|
|
21
|
+
var _UserTrigger = require("../../styled/UserTrigger");
|
|
22
22
|
var _analytics = require("../../util/analytics");
|
|
23
23
|
var _Error = require("../Error");
|
|
24
24
|
var _ProfileCard = _interopRequireDefault(require("./ProfileCard"));
|
|
@@ -171,11 +171,11 @@ var ProfileCardResourced = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
171
171
|
addFlag = _this$props3.addFlag;
|
|
172
172
|
var isFetchingOrNotStartToFetchYet = isLoading === true || isLoading === undefined;
|
|
173
173
|
if (isFetchingOrNotStartToFetchYet) {
|
|
174
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
174
|
+
return /*#__PURE__*/_react.default.createElement(_UserTrigger.CardWrapper, null, /*#__PURE__*/_react.default.createElement(_UserLoadingState.default, {
|
|
175
175
|
fireAnalytics: this.fireAnalytics
|
|
176
176
|
}));
|
|
177
177
|
} else if (hasError) {
|
|
178
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
178
|
+
return /*#__PURE__*/_react.default.createElement(_UserTrigger.CardWrapper, {
|
|
179
179
|
testId: "profile-card-resourced-error-state"
|
|
180
180
|
}, /*#__PURE__*/_react.default.createElement(_Error.ErrorMessage, {
|
|
181
181
|
errorType: error,
|
|
@@ -197,7 +197,7 @@ var ProfileCardResourced = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
197
197
|
teamCentralBaseUrl: teamCentralBaseUrl,
|
|
198
198
|
openKudosDrawer: this.openKudosDrawer
|
|
199
199
|
});
|
|
200
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
200
|
+
return /*#__PURE__*/_react.default.createElement(_UserTrigger.CardWrapper, null, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, isKudosEnabled && newProps.teamCentralBaseUrl && /*#__PURE__*/_react.default.createElement(_react.Suspense, {
|
|
201
201
|
fallback: null
|
|
202
202
|
}, /*#__PURE__*/_react.default.createElement(_giveKudos.GiveKudosLauncherLazy, {
|
|
203
203
|
isOpen: this.state.kudosDrawerOpen,
|
|
@@ -22,7 +22,7 @@ var _popup = _interopRequireDefault(require("@atlaskit/popup"));
|
|
|
22
22
|
var _constants = require("@atlaskit/theme/constants");
|
|
23
23
|
var _filterActions = _interopRequireDefault(require("../../internal/filterActions"));
|
|
24
24
|
var _getLabelMessage = _interopRequireDefault(require("../../internal/getLabelMessage"));
|
|
25
|
-
var
|
|
25
|
+
var _UserTrigger = require("../../styled/UserTrigger");
|
|
26
26
|
var _analytics = require("../../util/analytics");
|
|
27
27
|
var _config = require("../../util/config");
|
|
28
28
|
var _AgentProfileCardResourced = require("../Agent/AgentProfileCardResourced");
|
|
@@ -425,7 +425,7 @@ function ProfilecardTriggerNext(_ref2) {
|
|
|
425
425
|
}
|
|
426
426
|
var LoadingView = function LoadingView(_ref4) {
|
|
427
427
|
var fireAnalytics = _ref4.fireAnalytics;
|
|
428
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
428
|
+
return /*#__PURE__*/_react.default.createElement(_UserTrigger.CardWrapper, {
|
|
429
429
|
testId: "profilecard.profilecardtrigger.loading"
|
|
430
430
|
}, /*#__PURE__*/_react.default.createElement(_UserLoadingState.default, {
|
|
431
431
|
fireAnalytics: fireAnalytics
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
11
|
-
var
|
|
11
|
+
var _UserTrigger = require("../../styled/UserTrigger");
|
|
12
12
|
var _analytics = require("../../util/analytics");
|
|
13
13
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
14
14
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -17,6 +17,6 @@ var UserLoadingState = function UserLoadingState(_ref) {
|
|
|
17
17
|
(0, _react.useEffect)(function () {
|
|
18
18
|
fireAnalytics((0, _analytics.profileCardRendered)('user', 'spinner'));
|
|
19
19
|
}, [fireAnalytics]);
|
|
20
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
20
|
+
return /*#__PURE__*/_react.default.createElement(_UserTrigger.SpinnerContainer, null, /*#__PURE__*/_react.default.createElement(_spinner.default, null));
|
|
21
21
|
};
|
|
22
22
|
var _default = exports.default = UserLoadingState;
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.LoadingState = void 0;
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
11
|
-
var
|
|
11
|
+
var _UserTrigger = require("../../styled/UserTrigger");
|
|
12
12
|
var _analytics = require("../../util/analytics");
|
|
13
13
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
14
14
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -20,5 +20,5 @@ var LoadingState = exports.LoadingState = function LoadingState(_ref) {
|
|
|
20
20
|
fireAnalytics((0, _analytics.profileCardRendered)(profileType, 'spinner'));
|
|
21
21
|
}
|
|
22
22
|
}, [fireAnalytics, profileType]);
|
|
23
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
23
|
+
return /*#__PURE__*/_react.default.createElement(_UserTrigger.SpinnerContainer, null, /*#__PURE__*/_react.default.createElement(_spinner.default, null));
|
|
24
24
|
};
|
|
@@ -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}
|
package/dist/cjs/styled/Card.js
CHANGED
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.ProfileImage = exports.OverflowActionButtonsWrapper = exports.LozengeWrapper = exports.KudosBlobAnimationStyle = exports.KudosBlobAnimation = exports.JobTitleLabel = exports.DisabledInfo = exports.DetailsLabelText = exports.DetailsLabelIcon = exports.DetailsLabel = exports.DetailsGroup = exports.CustomLozengeContainer = exports.CardContent = exports.CardContainer = exports.AppTitleLabel = exports.AnimationWrapper = exports.AnimatedKudosButton = exports.ActionsFlexSpacer = exports.ActionButtonGroup = void 0;
|
|
9
9
|
require("./Card.compiled.css");
|
|
10
10
|
var _runtime = require("@compiled/react/runtime");
|
|
11
11
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
@@ -18,13 +18,12 @@ var _compiled = require("@atlaskit/primitives/compiled");
|
|
|
18
18
|
var _colors = require("@atlaskit/theme/colors");
|
|
19
19
|
var _constants = require("@atlaskit/theme/constants");
|
|
20
20
|
var _constants2 = require("./constants");
|
|
21
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19
|
|
21
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19;
|
|
22
22
|
/* eslint-disable @atlaskit/design-system/no-styled-tagged-template-expression -- needs manual remediation */
|
|
23
23
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
24
24
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
25
|
var kudosButtonAnimationTransformationCompiled = null;
|
|
26
26
|
var styles = {
|
|
27
|
-
cardWrapper: "_2rkoglpi _1bsb1gwv",
|
|
28
27
|
profileImage: "_kqswstnw _154i1ejb _1ltv1ejb",
|
|
29
28
|
actionsFlexSpacer: "_16jlkb7n _1o9zidpf _i0dl1wug",
|
|
30
29
|
kudosBlobAnimationStyle: "_1e0cglyw _4t3i1w81 _1bsb1w81 _1pby1mrw _kqswstnw _154ixy5q",
|
|
@@ -37,7 +36,6 @@ var styles = {
|
|
|
37
36
|
disabledInfo: "_11c81o8v _syaz1fxt _19pkutpp _2hwxze3t _18u0ze3t _otyrze3t",
|
|
38
37
|
lozengeWrapper: "_19pkpxbi _1e0c1ule",
|
|
39
38
|
customLozengeContainer: "_1e0c1txw _2lx2vrvc _1n261g80 _1bah1y6m _19pkutpp",
|
|
40
|
-
spinnerContainer: "_4cvr1h6o _1e0c1txw _4t3i16xz _1bah1h6o _kqswh2mm",
|
|
41
39
|
cardContainer: "_1reo15vq _18m915vq _kqswh2mm _12vemgnk _1lrw14bs _ca0q1ejb _19bv1ejb _u5f31ejb _n3td1ejb",
|
|
42
40
|
cardContainerActiveUser: "_1itk1419",
|
|
43
41
|
cardContainerDisabledUser: "_1itkkf3t",
|
|
@@ -50,43 +48,24 @@ var styles = {
|
|
|
50
48
|
jobTitleLabel: "_19pkze3t _otyrze3t _18u0utpp _2hwxze3t",
|
|
51
49
|
appTitleLabel: "_2rkoglpi _syaz1fxt _u5f312x7 _19bv12x7 _1bsb1ns9 _19pk1b66 _otyrze3t _18u0utpp _2hwxze3t"
|
|
52
50
|
};
|
|
53
|
-
var
|
|
54
|
-
var children = _ref.children
|
|
55
|
-
role = _ref.role,
|
|
56
|
-
testId = _ref.testId,
|
|
57
|
-
labelledBy = _ref.labelledBy;
|
|
58
|
-
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
59
|
-
xcss: (0, _css.cx)(styles.cardWrapper),
|
|
60
|
-
backgroundColor: 'elevation.surface.overlay',
|
|
61
|
-
role: role,
|
|
62
|
-
testId: testId,
|
|
63
|
-
"aria-labelledby": labelledBy
|
|
64
|
-
}, children) : /*#__PURE__*/_react.default.createElement(CardWrapperLegacy, {
|
|
65
|
-
"data-testid": testId,
|
|
66
|
-
role: role,
|
|
67
|
-
"aria-labelledby": labelledBy
|
|
68
|
-
}, children);
|
|
69
|
-
};
|
|
70
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
71
|
-
var CardWrapperLegacy = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\tbackground-color: ", ";\n\tborder-radius: ", ";\n\twidth: 360px;\n"])), _constants2.bgColor, "var(--ds-border-radius, 3px)");
|
|
72
|
-
var ProfileImage = exports.ProfileImage = function ProfileImage(_ref2) {
|
|
73
|
-
var children = _ref2.children;
|
|
51
|
+
var ProfileImage = exports.ProfileImage = function ProfileImage(_ref) {
|
|
52
|
+
var children = _ref.children;
|
|
74
53
|
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
75
54
|
xcss: (0, _css.cx)(styles.profileImage)
|
|
76
55
|
}, children) : /*#__PURE__*/_react.default.createElement(ProfileImageLegacy, null, children);
|
|
77
56
|
};
|
|
78
57
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
79
|
-
var ProfileImageLegacy = _styled.default.div(
|
|
58
|
+
var ProfileImageLegacy = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\tposition: absolute;\n\ttop: ", ";\n\tleft: ", ";\n"])), "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)");
|
|
80
59
|
var ActionsFlexSpacer = exports.ActionsFlexSpacer = function ActionsFlexSpacer() {
|
|
81
60
|
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
82
61
|
xcss: (0, _css.cx)(styles.actionsFlexSpacer)
|
|
83
62
|
}) : /*#__PURE__*/_react.default.createElement(ActionsFlexSpacerLegacy, null);
|
|
84
63
|
};
|
|
85
64
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
86
|
-
var ActionsFlexSpacerLegacy = _styled.default.div(
|
|
65
|
+
var ActionsFlexSpacerLegacy = _styled.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\tflex: 1 0 auto;\n"])));
|
|
87
66
|
|
|
88
67
|
// eslint-disable-next-line @atlaskit/design-system/no-keyframes-tagged-template-expression -- needs manual remediation
|
|
89
|
-
var kudosButtonAnimationTransformation = (0, _react2.keyframes)(
|
|
68
|
+
var kudosButtonAnimationTransformation = (0, _react2.keyframes)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n 0% { transform: translate(-80px, -50px); }\n 100% { transform: translate(90px, -70px); }\n"])));
|
|
90
69
|
var KudosBlobAnimationStyle = exports.KudosBlobAnimationStyle = function KudosBlobAnimationStyle() {
|
|
91
70
|
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
92
71
|
xcss: (0, _css.cx)(styles.kudosBlobAnimationStyle)
|
|
@@ -99,7 +78,7 @@ var KudosBlobAnimationStyle = exports.KudosBlobAnimationStyle = function KudosBl
|
|
|
99
78
|
};
|
|
100
79
|
|
|
101
80
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
102
|
-
var KudosBlobAnimationStyleLegacy = _styled.default.div(
|
|
81
|
+
var KudosBlobAnimationStyleLegacy = _styled.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n\tdisplay: none;\n\theight: 150px;\n\twidth: 150px;\n\tz-index: -1;\n\tposition: absolute;\n\ttop: ", "em;\n\tanimation-name: ", ";\n\tanimation-iteration-count: 1;\n\tanimation-duration: 3s;\n\tbackground-image: radial-gradient(\n\t\tcircle,\n\t\t", " 0%,\n\t\t", " 25%,\n\t\ttransparent 50%\n\t);\n\toverflow: hidden;\n"])), 32 / 14, kudosButtonAnimationTransformation, "var(--ds-background-information-pressed, #85B8FF)", "var(--ds-background-discovery-pressed, #B8ACF6)");
|
|
103
82
|
var KudosBlobAnimation = exports.KudosBlobAnimation = function KudosBlobAnimation() {
|
|
104
83
|
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
105
84
|
xcss: (0, _css.cx)(styles.kudosBlobAnimationStyle)
|
|
@@ -108,26 +87,26 @@ var KudosBlobAnimation = exports.KudosBlobAnimation = function KudosBlobAnimatio
|
|
|
108
87
|
var KudosBlobAnimationLegacy = function KudosBlobAnimationLegacy() {
|
|
109
88
|
return /*#__PURE__*/_react.default.createElement(KudosBlobAnimationStyle, null);
|
|
110
89
|
};
|
|
111
|
-
var AnimationWrapper = exports.AnimationWrapper = function AnimationWrapper(
|
|
112
|
-
var children =
|
|
90
|
+
var AnimationWrapper = exports.AnimationWrapper = function AnimationWrapper(_ref2) {
|
|
91
|
+
var children = _ref2.children;
|
|
113
92
|
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
114
93
|
xcss: (0, _css.cx)(styles.animationWrapper)
|
|
115
94
|
}, children) : /*#__PURE__*/_react.default.createElement(AnimationWrapperLegacy, null, children);
|
|
116
95
|
};
|
|
117
96
|
|
|
118
97
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
119
|
-
var AnimationWrapperLegacy = _styled.default.div(
|
|
120
|
-
var AnimatedKudosButton = exports.AnimatedKudosButton = function AnimatedKudosButton(
|
|
121
|
-
var children =
|
|
98
|
+
var AnimationWrapperLegacy = _styled.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n\tclip-path: inset(0px 0px 0px 0px round ", "px);\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tbottom: 0;\n\tright: 0;\n"])), (0, _constants.borderRadius)());
|
|
99
|
+
var AnimatedKudosButton = exports.AnimatedKudosButton = function AnimatedKudosButton(_ref3) {
|
|
100
|
+
var children = _ref3.children;
|
|
122
101
|
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
123
102
|
xcss: (0, _css.cx)(styles.animatedKudosButton)
|
|
124
103
|
}, children) : /*#__PURE__*/_react.default.createElement(AnimatedKudosButtonLegacy, null, children);
|
|
125
104
|
};
|
|
126
105
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
127
|
-
var AnimatedKudosButtonLegacy = _styled.default.div(
|
|
128
|
-
var ActionButtonGroup = exports.ActionButtonGroup = function ActionButtonGroup(
|
|
129
|
-
var children =
|
|
130
|
-
testId =
|
|
106
|
+
var AnimatedKudosButtonLegacy = _styled.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n\tmargin-left: ", ";\n\n\t/* Need babel-plugin-emotion to use component selector */\n\t/* Previously with styled-components: &:hover {KudosBlobAnimation} { */\n\t&:focus-within .kudos-blob-animation,\n\t&:focus .kudos-blob-animation,\n\t&:hover .kudos-blob-animation {\n\t\tdisplay: block;\n\t}\n"])), "var(--ds-space-100, 8px)");
|
|
107
|
+
var ActionButtonGroup = exports.ActionButtonGroup = function ActionButtonGroup(_ref4) {
|
|
108
|
+
var children = _ref4.children,
|
|
109
|
+
testId = _ref4.testId;
|
|
131
110
|
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
132
111
|
testId: testId,
|
|
133
112
|
xcss: (0, _css.cx)(styles.actionButtonGroup)
|
|
@@ -136,10 +115,10 @@ var ActionButtonGroup = exports.ActionButtonGroup = function ActionButtonGroup(_
|
|
|
136
115
|
}, children);
|
|
137
116
|
};
|
|
138
117
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
139
|
-
var ActionButtonGroupLegacy = _styled.default.div(
|
|
140
|
-
var OverflowActionButtonsWrapper = exports.OverflowActionButtonsWrapper = function OverflowActionButtonsWrapper(
|
|
141
|
-
var children =
|
|
142
|
-
testId =
|
|
118
|
+
var ActionButtonGroupLegacy = _styled.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n\tuser-select: none;\n\tmargin: ", " 0 0 0;\n\ttext-align: right;\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\n\tbutton,\n\ta {\n\t\tposition: relative;\n\t}\n\n\tbutton,\n\ta,\n\tspan {\n\t\tmargin-left: ", ";\n\n\t\t&:first-child {\n\t\t\tmargin-left: ", ";\n\t\t}\n\t}\n\n\ta,\n\tbutton {\n\t\t&:focus {\n\t\t\toutline-color: ", ";\n\t\t\toutline-offset: ", ";\n\t\t\toutline-style: solid;\n\t\t\toutline-width: ", ";\n\t\t}\n\t}\n"])), "var(--ds-space-200, 16px)", "var(--ds-space-100, 8px)", "var(--ds-space-0, 0px)", "var(--ds-border-focused, ".concat(_colors.B200, ")"), "var(--ds-border-width, 2px)", "var(--ds-border-width, 2px)");
|
|
119
|
+
var OverflowActionButtonsWrapper = exports.OverflowActionButtonsWrapper = function OverflowActionButtonsWrapper(_ref5) {
|
|
120
|
+
var children = _ref5.children,
|
|
121
|
+
testId = _ref5.testId;
|
|
143
122
|
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
144
123
|
testId: testId,
|
|
145
124
|
xcss: (0, _css.cx)(styles.overflowActionButtonsWrapper)
|
|
@@ -148,49 +127,49 @@ var OverflowActionButtonsWrapper = exports.OverflowActionButtonsWrapper = functi
|
|
|
148
127
|
}, children);
|
|
149
128
|
};
|
|
150
129
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
151
|
-
var OverflowActionButtonsWrapperLegacy = _styled.default.div(
|
|
152
|
-
var CardContent = exports.CardContent = function CardContent(
|
|
153
|
-
var children =
|
|
130
|
+
var OverflowActionButtonsWrapperLegacy = _styled.default.div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n\tdisplay: inline-block;\n\twidth: ", ";\n\theight: ", ";\n\tmargin-left: ", ";\n\n\tbutton {\n\t\t&:focus {\n\t\t\toutline-color: ", ";\n\t\t\toutline-offset: ", ";\n\t\t\toutline-style: solid;\n\t\t\toutline-width: ", ";\n\t\t}\n\t}\n"])), "var(--ds-space-400, 32px)", "var(--ds-space-400, 32px)", "var(--ds-space-100, 8px)", "var(--ds-border-focused, ".concat(_colors.B200, ")"), "var(--ds-border-width, 2px)", "var(--ds-border-width, 2px)");
|
|
131
|
+
var CardContent = exports.CardContent = function CardContent(_ref6) {
|
|
132
|
+
var children = _ref6.children;
|
|
154
133
|
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
155
134
|
xcss: (0, _css.cx)(styles.cardContent)
|
|
156
135
|
}, children) : /*#__PURE__*/_react.default.createElement(CardContentLegacy, null, children);
|
|
157
136
|
};
|
|
158
137
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
159
|
-
var CardContentLegacy = _styled.default.div(
|
|
160
|
-
var DetailsGroup = exports.DetailsGroup = function DetailsGroup(
|
|
161
|
-
var children =
|
|
138
|
+
var CardContentLegacy = _styled.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tmin-height: 136px;\n"])));
|
|
139
|
+
var DetailsGroup = exports.DetailsGroup = function DetailsGroup(_ref7) {
|
|
140
|
+
var children = _ref7.children;
|
|
162
141
|
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
163
142
|
xcss: (0, _css.cx)(styles.detailsGroup)
|
|
164
143
|
}, children) : /*#__PURE__*/_react.default.createElement(DetailsGroupLegacy, null, children);
|
|
165
144
|
};
|
|
166
145
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
167
|
-
var DetailsGroupLegacy = _styled.default.div(
|
|
168
|
-
var DisabledInfo = exports.DisabledInfo = function DisabledInfo(
|
|
169
|
-
var children =
|
|
146
|
+
var DetailsGroupLegacy = _styled.default.div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tmargin-left: 116px;\n\twidth: 196px;\n"])));
|
|
147
|
+
var DisabledInfo = exports.DisabledInfo = function DisabledInfo(_ref8) {
|
|
148
|
+
var children = _ref8.children;
|
|
170
149
|
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
171
150
|
xcss: (0, _css.cx)(styles.disabledInfo)
|
|
172
151
|
}, children) : /*#__PURE__*/_react.default.createElement(DisabledInfoLegacy, null, children);
|
|
173
152
|
};
|
|
174
153
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
175
|
-
var DisabledInfoLegacy = _styled.default.div(
|
|
176
|
-
var LozengeWrapper = exports.LozengeWrapper = function LozengeWrapper(
|
|
177
|
-
var children =
|
|
154
|
+
var DisabledInfoLegacy = _styled.default.div(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n\tfont: ", ";\n\tcolor: ", ";\n\tmargin: ", " 0 0 0;\n\tline-height: 16px;\n"])), "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)", _constants2.labelTextColor, "var(--ds-space-150, 12px)");
|
|
155
|
+
var LozengeWrapper = exports.LozengeWrapper = function LozengeWrapper(_ref9) {
|
|
156
|
+
var children = _ref9.children;
|
|
178
157
|
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
179
158
|
xcss: (0, _css.cx)(styles.lozengeWrapper)
|
|
180
159
|
}, children) : /*#__PURE__*/_react.default.createElement(LozengeWrapperLegacy, null, children);
|
|
181
160
|
};
|
|
182
161
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
183
|
-
var LozengeWrapperLegacy = _styled.default.div(
|
|
184
|
-
var CustomLozengeContainer = exports.CustomLozengeContainer = function CustomLozengeContainer(
|
|
185
|
-
var children =
|
|
162
|
+
var LozengeWrapperLegacy = _styled.default.div(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n\tmargin-top: ", ";\n\ttext-transform: uppercase;\n\tdisplay: block;\n"])), "var(--ds-space-200, 16px)");
|
|
163
|
+
var CustomLozengeContainer = exports.CustomLozengeContainer = function CustomLozengeContainer(_ref10) {
|
|
164
|
+
var children = _ref10.children;
|
|
186
165
|
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
187
166
|
xcss: (0, _css.cx)(styles.customLozengeContainer)
|
|
188
167
|
}, children) : /*#__PURE__*/_react.default.createElement(CustomLozengeContainerLegacy, null, children);
|
|
189
168
|
};
|
|
190
169
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
191
|
-
var CustomLozengeContainerLegacy = (0, _styled.default)(LozengeWrapper)(
|
|
192
|
-
var JobTitleLabel = exports.JobTitleLabel = function JobTitleLabel(
|
|
193
|
-
var children =
|
|
170
|
+
var CustomLozengeContainerLegacy = (0, _styled.default)(LozengeWrapper)(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: wrap;\n\tjustify-content: flex-start;\n\tmargin-top: ", ";\n\t> * {\n\t\tmargin-top: ", ";\n\t\t&:not(:last-child) {\n\t\t\tmargin-right: ", ";\n\t\t}\n\t}\n"])), "var(--ds-space-150, 12px)", "var(--ds-space-050, 4px)", "var(--ds-space-050, 4px)");
|
|
171
|
+
var JobTitleLabel = exports.JobTitleLabel = function JobTitleLabel(_ref11) {
|
|
172
|
+
var children = _ref11.children;
|
|
194
173
|
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
195
174
|
xcss: (0, _css.cx)(styles.jobTitleLabel)
|
|
196
175
|
}, /*#__PURE__*/_react.default.createElement(_compiled.Text, {
|
|
@@ -199,9 +178,9 @@ var JobTitleLabel = exports.JobTitleLabel = function JobTitleLabel(_ref12) {
|
|
|
199
178
|
}, children)) : /*#__PURE__*/_react.default.createElement(JobTitleLabelLegacy, null, children);
|
|
200
179
|
};
|
|
201
180
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
202
|
-
var JobTitleLabelLegacy = _styled.default.span(
|
|
203
|
-
var AppTitleLabel = exports.AppTitleLabel = function AppTitleLabel(
|
|
204
|
-
var children =
|
|
181
|
+
var JobTitleLabelLegacy = _styled.default.span(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2.default)(["\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n\n\tfont: ", ";\n\tcolor: ", ";\n\tmargin: 0 0 ", " 0;\n"])), "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)", _constants2.headerTextColor, "var(--ds-space-150, 12px)");
|
|
182
|
+
var AppTitleLabel = exports.AppTitleLabel = function AppTitleLabel(_ref12) {
|
|
183
|
+
var children = _ref12.children;
|
|
205
184
|
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
206
185
|
xcss: (0, _css.cx)(styles.appTitleLabel),
|
|
207
186
|
backgroundColor: "color.background.neutral"
|
|
@@ -212,23 +191,11 @@ var AppTitleLabel = exports.AppTitleLabel = function AppTitleLabel(_ref13) {
|
|
|
212
191
|
}, children)) : /*#__PURE__*/_react.default.createElement(AppTitleLabelLegacy, null, children);
|
|
213
192
|
};
|
|
214
193
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
215
|
-
var AppTitleLabelLegacy = _styled.default.span(
|
|
216
|
-
var
|
|
217
|
-
var children =
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
testId: testId,
|
|
221
|
-
xcss: (0, _css.cx)(styles.spinnerContainer)
|
|
222
|
-
}, children) : /*#__PURE__*/_react.default.createElement(SpinnerContainerLegacy, {
|
|
223
|
-
"data-testid": testId
|
|
224
|
-
}, children);
|
|
225
|
-
};
|
|
226
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
227
|
-
var SpinnerContainerLegacy = _styled.default.div(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteral2.default)(["\n\talign-items: center;\n\tdisplay: flex;\n\theight: 96px;\n\tjustify-content: center;\n\tposition: relative;\n"])));
|
|
228
|
-
var CardContainer = exports.CardContainer = function CardContainer(_ref15) {
|
|
229
|
-
var children = _ref15.children,
|
|
230
|
-
isDisabledUser = _ref15.isDisabledUser,
|
|
231
|
-
withoutElevation = _ref15.withoutElevation;
|
|
194
|
+
var AppTitleLabelLegacy = _styled.default.span(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2.default)(["\n\tbackground: ", ";\n\tcolor: ", ";\n\tborder-radius: ", ";\n\tpadding: 0 ", ";\n\twidth: fit-content;\n\tfont-weight: ", ";\n\ttext-transform: uppercase;\n\n\tfont: ", ";\n\tmargin: ", " 0 ", " 0;\n"])), _constants2.appLabelBgColor, _constants2.appLabelTextColor, (0, _constants.borderRadius)(), "var(--ds-space-075, 6px)", "var(--ds-font-weight-bold, 700)", "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)", "var(--ds-space-050, 4px)", "var(--ds-space-150, 12px)");
|
|
195
|
+
var CardContainer = exports.CardContainer = function CardContainer(_ref13) {
|
|
196
|
+
var children = _ref13.children,
|
|
197
|
+
isDisabledUser = _ref13.isDisabledUser,
|
|
198
|
+
withoutElevation = _ref13.withoutElevation;
|
|
232
199
|
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
233
200
|
xcss: (0, _css.cx)(styles.cardContainer, isDisabledUser ? styles.cardContainerDisabledUser : styles.cardContainerActiveUser, !withoutElevation && styles.cardContainerWithElevation)
|
|
234
201
|
}, children) : /*#__PURE__*/_react.default.createElement(CardContainerLegacy, {
|
|
@@ -237,7 +204,7 @@ var CardContainer = exports.CardContainer = function CardContainer(_ref15) {
|
|
|
237
204
|
}, children);
|
|
238
205
|
};
|
|
239
206
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
240
|
-
var CardContainerLegacy = _styled.default.div(
|
|
207
|
+
var CardContainerLegacy = _styled.default.div(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteral2.default)(["\n\tposition: relative;\n\t-webkit-font-smoothing: antialiased;\n\t-moz-osx-font-smoothing: grayscale;\n\tbackground-image: linear-gradient(\n\t\tto bottom,\n\t\t", "\n\t\t\t0%,\n\t\t", " 100%\n\t);\n\tbackground-repeat: no-repeat;\n\tbackground-size: 100% 96px;\n\tbox-sizing: content-box;\n\tpadding: ", ";\n\tbox-shadow: ", ";\n\tborder-radius: ", ";\n\n\toverflow: hidden;\n"])), function (props) {
|
|
241
208
|
return props.isDisabledUser ? _constants2.headerBgColorDisabledUser : _constants2.headerBgColor;
|
|
242
209
|
}, function (props) {
|
|
243
210
|
return props.isDisabledUser ? _constants2.headerBgColorDisabledUser : _constants2.headerBgColor;
|
|
@@ -246,31 +213,31 @@ var CardContainerLegacy = _styled.default.div(_templateObject18 || (_templateObj
|
|
|
246
213
|
}, function (props) {
|
|
247
214
|
return props.withoutElevation ? '' : "".concat((0, _constants.borderRadius)(), "px");
|
|
248
215
|
});
|
|
249
|
-
var DetailsLabel = exports.DetailsLabel = function DetailsLabel(
|
|
250
|
-
var children =
|
|
251
|
-
|
|
252
|
-
extraTopSpace =
|
|
216
|
+
var DetailsLabel = exports.DetailsLabel = function DetailsLabel(_ref14) {
|
|
217
|
+
var children = _ref14.children,
|
|
218
|
+
_ref14$extraTopSpace = _ref14.extraTopSpace,
|
|
219
|
+
extraTopSpace = _ref14$extraTopSpace === void 0 ? false : _ref14$extraTopSpace;
|
|
253
220
|
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
254
221
|
xcss: (0, _css.cx)(styles.detailsLabel, extraTopSpace && styles.detailsLabelExtraTopSpace)
|
|
255
222
|
}, children) : /*#__PURE__*/_react.default.createElement(DetailsLabelLegacy, null, children);
|
|
256
223
|
};
|
|
257
224
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
258
|
-
var DetailsLabelLegacy = _styled.default.div(
|
|
259
|
-
var DetailsLabelIcon = exports.DetailsLabelIcon = function DetailsLabelIcon(
|
|
260
|
-
var children =
|
|
225
|
+
var DetailsLabelLegacy = _styled.default.div(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteral2.default)(["\n\tdisplay: flex;\n\talign-items: center;\n\tmargin: ", " 0 0 0;\n\twhite-space: nowrap;\n\n\t& + & {\n\t\tmargin-top: ", ";\n\t}\n"])), "var(--ds-space-200, 16px)", "var(--ds-space-025, 2px)");
|
|
226
|
+
var DetailsLabelIcon = exports.DetailsLabelIcon = function DetailsLabelIcon(_ref15) {
|
|
227
|
+
var children = _ref15.children;
|
|
261
228
|
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
262
229
|
as: "dt",
|
|
263
230
|
xcss: (0, _css.cx)(styles.detailsLabelIcon)
|
|
264
231
|
}, children) : /*#__PURE__*/_react.default.createElement(DetailsLabelIconLegacy, null, children);
|
|
265
232
|
};
|
|
266
233
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
267
|
-
var DetailsLabelIconLegacy = _styled.default.dt(
|
|
268
|
-
var DetailsLabelText = exports.DetailsLabelText = function DetailsLabelText(
|
|
269
|
-
var children =
|
|
234
|
+
var DetailsLabelIconLegacy = _styled.default.dt(_templateObject18 || (_templateObject18 = (0, _taggedTemplateLiteral2.default)(["\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tcolor: ", ";\n\twidth: ", ";\n\theight: ", ";\n\tpadding: ", ";\n\tvertical-align: top;\n\n\tsvg {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t}\n"])), _constants2.labelIconColor, "var(--ds-space-200, 16px)", "var(--ds-space-200, 16px)", "var(--ds-space-050, 4px)");
|
|
235
|
+
var DetailsLabelText = exports.DetailsLabelText = function DetailsLabelText(_ref16) {
|
|
236
|
+
var children = _ref16.children;
|
|
270
237
|
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
271
238
|
as: "dd",
|
|
272
239
|
xcss: (0, _css.cx)(styles.detailsLabelText)
|
|
273
240
|
}, children) : /*#__PURE__*/_react.default.createElement(DetailsLabelTextLegacy, null, children);
|
|
274
241
|
};
|
|
275
242
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
276
|
-
var DetailsLabelTextLegacy = _styled.default.dd(
|
|
243
|
+
var DetailsLabelTextLegacy = _styled.default.dd(_templateObject19 || (_templateObject19 = (0, _taggedTemplateLiteral2.default)(["\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tcolor: ", ";\n\tfont: ", ";\n\tpadding-block: ", ";\n\tpadding-left: ", ";\n\tmargin-inline-start: 0;\n\tmargin-top: 0;\n"])), _constants2.labelTextColor, "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)", "var(--ds-space-050, 4px)", "var(--ds-space-050, 4px)");
|
|
@@ -1,37 +1,25 @@
|
|
|
1
1
|
._11c8lodh{font:var(--ds-font-heading-medium,normal 500 20px/24px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
-
._2rkoglpi{border-radius:var(--ds-border-radius,4px)}
|
|
3
2
|
._16jlkb7n{flex-grow:1}
|
|
4
3
|
._18m915vq{overflow-y:hidden}
|
|
5
4
|
._18u01i6y{margin-left:var(--ds-space-negative-025,-2px)}
|
|
6
5
|
._18u0u2gc{margin-left:var(--ds-space-100,8px)}
|
|
7
6
|
._18u0x0bf{margin-left:var(--ds-space-negative-100,-8px)}
|
|
8
|
-
._19bv1ejb{padding-left:var(--ds-space-300,24px)}
|
|
9
7
|
._19pk1b66{margin-top:var(--ds-space-050,4px)}
|
|
10
8
|
._19pk1ejb{margin-top:var(--ds-space-300,24px)}
|
|
11
|
-
._19pk1jfw{margin-top:var(--ds-space-500,40px)}
|
|
12
9
|
._19pkpxbi{margin-top:var(--ds-space-200,1pc)}
|
|
13
10
|
._1bah1yb4{justify-content:space-between}
|
|
14
11
|
._1bsb1osq{width:100%}
|
|
15
12
|
._1bsbnklw{width:20pc}
|
|
16
|
-
._1e0c1kw7{display:inherit}
|
|
17
13
|
._1e0c1txw{display:flex}
|
|
18
14
|
._1e0ccj1k{display:-webkit-box}
|
|
19
15
|
._1p1dglyw{text-transform:none}
|
|
20
16
|
._1reo15vq{overflow-x:hidden}
|
|
21
|
-
._1tke1l8a{min-height:78pt}
|
|
22
17
|
._2hwx10v4{margin-right:var(--ds-space-negative-300,-24px)}
|
|
23
|
-
._2lx21bp4{flex-direction:column}
|
|
24
18
|
._4cvr1h6o{align-items:center}
|
|
25
|
-
._4t3i1qr7{height:8pc}
|
|
26
19
|
._c71l1wqb{max-height:60px}
|
|
27
20
|
._c71lckbl{max-height:3pc}
|
|
28
|
-
._ca0q1ejb{padding-top:var(--ds-space-300,24px)}
|
|
29
21
|
._i0dlidpf{flex-basis:0}
|
|
30
22
|
._kqswh2mm{position:relative}
|
|
31
|
-
._n3td1ejb{padding-bottom:var(--ds-space-300,24px)}
|
|
32
23
|
._otyr1ejb{margin-bottom:var(--ds-space-300,24px)}
|
|
33
|
-
._otyr1jfw{margin-bottom:var(--ds-space-500,40px)}
|
|
34
24
|
._otyridpf{margin-bottom:0}
|
|
35
|
-
._syaz1wmz{color:var(--ds-text-subtlest,#6b778c)}
|
|
36
|
-
._u5f31ejb{padding-right:var(--ds-space-300,24px)}
|
|
37
|
-
._y3gn1h6o{text-align:center}
|
|
25
|
+
._syaz1wmz{color:var(--ds-text-subtlest,#6b778c)}
|