@atlaskit/profilecard 22.0.2 → 22.1.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 +14 -0
- package/afm-cc/tsconfig.json +3 -0
- package/afm-jira/tsconfig.json +3 -0
- package/afm-post-office/tsconfig.json +3 -0
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/Icon/IconLabel.js +5 -6
- package/dist/cjs/components/User/OverflowProfileCardButtons.js +1 -1
- package/dist/cjs/components/User/ProfileCard.js +4 -4
- package/dist/cjs/components/User/ProfileCardDetails.js +3 -2
- package/dist/cjs/components/User/ProfileCardResourced.js +1 -1
- package/dist/cjs/components/User/ProfileCardTrigger.js +1 -1
- package/dist/cjs/styled/Card.compiled.css +78 -0
- package/dist/cjs/styled/Card.js +225 -46
- package/dist/cjs/styled/ReportingLines.compiled.css +10 -0
- package/dist/cjs/styled/ReportingLines.js +44 -7
- 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/Icon/IconLabel.js +5 -6
- package/dist/es2019/components/User/OverflowProfileCardButtons.js +1 -1
- package/dist/es2019/components/User/ProfileCard.js +4 -4
- package/dist/es2019/components/User/ProfileCardDetails.js +3 -2
- package/dist/es2019/components/User/ProfileCardResourced.js +1 -1
- package/dist/es2019/components/User/ProfileCardTrigger.js +1 -1
- package/dist/es2019/styled/Card.compiled.css +78 -0
- package/dist/es2019/styled/Card.js +199 -46
- package/dist/es2019/styled/ReportingLines.compiled.css +10 -0
- package/dist/es2019/styled/ReportingLines.js +42 -7
- 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/Icon/IconLabel.js +5 -6
- package/dist/esm/components/User/OverflowProfileCardButtons.js +1 -1
- package/dist/esm/components/User/ProfileCard.js +4 -4
- package/dist/esm/components/User/ProfileCardDetails.js +3 -2
- package/dist/esm/components/User/ProfileCardResourced.js +1 -1
- package/dist/esm/components/User/ProfileCardTrigger.js +1 -1
- package/dist/esm/styled/Card.compiled.css +78 -0
- package/dist/esm/styled/Card.js +225 -48
- package/dist/esm/styled/ReportingLines.compiled.css +10 -0
- package/dist/esm/styled/ReportingLines.js +46 -7
- package/dist/esm/util/analytics.js +1 -1
- package/dist/types/components/Agent/Actions.d.ts +2 -2
- package/dist/types/components/Agent/AgentDeleteConfirmationModal.d.ts +2 -2
- package/dist/types/components/Agent/AgentProfileCard.d.ts +2 -2
- package/dist/types/components/Agent/AgentProfileCardResourced.d.ts +1 -1
- package/dist/types/components/Agent/AgentProfileCardTrigger.d.ts +2 -2
- package/dist/types/components/Agent/AgentProfileCardWrapper.d.ts +1 -1
- package/dist/types/components/Agent/ConversationStarters.d.ts +2 -2
- package/dist/types/components/Agent/lazyAgentProfileCard.d.ts +1 -1
- package/dist/types/components/Error/AccessLockSVG.d.ts +2 -2
- package/dist/types/components/Error/ErrorIllustration.d.ts +2 -2
- package/dist/types/components/Error/ErrorMessage.d.ts +2 -2
- package/dist/types/components/Icon/IconLabel.d.ts +2 -1
- package/dist/types/components/Team/TeamForbiddenErrorState.d.ts +2 -2
- package/dist/types/components/Team/TeamLoadingState.d.ts +2 -2
- package/dist/types/components/Team/TeamProfileCard.d.ts +2 -2
- package/dist/types/components/Team/TeamProfileCardTrigger.d.ts +5 -5
- package/dist/types/components/Team/lazyTeamProfileCard.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 +2 -2
- package/dist/types/components/User/ProfileCardTrigger.d.ts +2 -2
- package/dist/types/components/User/ReportingLinesDetails.d.ts +2 -2
- package/dist/types/components/User/UserLoadingState.d.ts +2 -2
- package/dist/types/components/common/LoadingState.d.ts +2 -2
- package/dist/types/components/common/ProfileCardTrigger.d.ts +2 -2
- package/dist/types/components/common/ProfileCardWrapper.d.ts +1 -1
- package/dist/types/styled/Card.d.ts +64 -84
- package/dist/types/styled/Error.d.ts +3 -3
- package/dist/types/styled/ReportingLines.d.ts +13 -17
- package/dist/types/styled/TeamCard.d.ts +15 -15
- package/dist/types-ts4.5/components/Agent/Actions.d.ts +2 -2
- package/dist/types-ts4.5/components/Agent/AgentDeleteConfirmationModal.d.ts +2 -2
- package/dist/types-ts4.5/components/Agent/AgentProfileCard.d.ts +2 -2
- package/dist/types-ts4.5/components/Agent/AgentProfileCardResourced.d.ts +1 -1
- package/dist/types-ts4.5/components/Agent/AgentProfileCardTrigger.d.ts +2 -2
- package/dist/types-ts4.5/components/Agent/AgentProfileCardWrapper.d.ts +1 -1
- package/dist/types-ts4.5/components/Agent/ConversationStarters.d.ts +2 -2
- package/dist/types-ts4.5/components/Agent/lazyAgentProfileCard.d.ts +1 -1
- package/dist/types-ts4.5/components/Error/AccessLockSVG.d.ts +2 -2
- package/dist/types-ts4.5/components/Error/ErrorIllustration.d.ts +2 -2
- package/dist/types-ts4.5/components/Error/ErrorMessage.d.ts +2 -2
- package/dist/types-ts4.5/components/Icon/IconLabel.d.ts +2 -1
- package/dist/types-ts4.5/components/Team/TeamForbiddenErrorState.d.ts +2 -2
- package/dist/types-ts4.5/components/Team/TeamLoadingState.d.ts +2 -2
- package/dist/types-ts4.5/components/Team/TeamProfileCard.d.ts +2 -2
- package/dist/types-ts4.5/components/Team/TeamProfileCardTrigger.d.ts +5 -5
- package/dist/types-ts4.5/components/Team/lazyTeamProfileCard.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 +2 -2
- package/dist/types-ts4.5/components/User/ProfileCardTrigger.d.ts +2 -2
- package/dist/types-ts4.5/components/User/ReportingLinesDetails.d.ts +2 -2
- package/dist/types-ts4.5/components/User/UserLoadingState.d.ts +2 -2
- package/dist/types-ts4.5/components/common/LoadingState.d.ts +2 -2
- package/dist/types-ts4.5/components/common/ProfileCardTrigger.d.ts +2 -2
- package/dist/types-ts4.5/components/common/ProfileCardWrapper.d.ts +1 -1
- package/dist/types-ts4.5/styled/Card.d.ts +64 -84
- package/dist/types-ts4.5/styled/Error.d.ts +3 -3
- package/dist/types-ts4.5/styled/ReportingLines.d.ts +13 -17
- package/dist/types-ts4.5/styled/TeamCard.d.ts +15 -15
- package/package.json +10 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 22.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#113227](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/113227)
|
|
8
|
+
[`d8c1edd78e6d4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d8c1edd78e6d4) -
|
|
9
|
+
Compiled migration - user profile card
|
|
10
|
+
|
|
11
|
+
## 22.0.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 22.0.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
package/afm-jira/tsconfig.json
CHANGED
|
@@ -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', "22.0
|
|
14
|
+
headers.append('atl-client-version', "22.1.0");
|
|
15
15
|
return headers;
|
|
16
16
|
};
|
|
17
17
|
function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -66,7 +66,7 @@ var addHeaders = exports.addHeaders = function addHeaders(headers) {
|
|
|
66
66
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
67
67
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
68
68
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
69
|
-
headers.append('atl-client-version', "22.0
|
|
69
|
+
headers.append('atl-client-version', "22.1.0");
|
|
70
70
|
return headers;
|
|
71
71
|
};
|
|
72
72
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -16,6 +16,7 @@ var _clockRecent = _interopRequireDefault(require("@atlaskit/icon/core/migration
|
|
|
16
16
|
var _email = _interopRequireDefault(require("@atlaskit/icon/core/migration/email"));
|
|
17
17
|
var _location = _interopRequireDefault(require("@atlaskit/icon/core/migration/location"));
|
|
18
18
|
var _officeBuilding = _interopRequireDefault(require("@atlaskit/icon/core/migration/office-building"));
|
|
19
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
19
20
|
var _Card = require("../../styled/Card");
|
|
20
21
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
21
22
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
@@ -43,13 +44,11 @@ var IconLabel = exports.default = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
43
44
|
var displayIcon = IconElement ? /*#__PURE__*/_react.default.createElement(IconElement, {
|
|
44
45
|
label: "".concat(this.props.icon),
|
|
45
46
|
LEGACY_size: "small",
|
|
46
|
-
color: "currentColor
|
|
47
|
+
color: (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? "var(--ds-text-subtlest, #626F86)" : 'currentColor'
|
|
47
48
|
}) : null;
|
|
48
|
-
return /*#__PURE__*/_react.default.createElement(_Card.DetailsLabel,
|
|
49
|
-
|
|
50
|
-
}, displayIcon), /*#__PURE__*/_react.default.createElement(_Card.DetailsLabelText,
|
|
51
|
-
as: "dd"
|
|
52
|
-
}, this.props.children));
|
|
49
|
+
return /*#__PURE__*/_react.default.createElement(_Card.DetailsLabel, {
|
|
50
|
+
extraTopSpace: this.props.extraTopSpace
|
|
51
|
+
}, /*#__PURE__*/_react.default.createElement(_Card.DetailsLabelIcon, null, displayIcon), /*#__PURE__*/_react.default.createElement(_Card.DetailsLabelText, null, this.props.children));
|
|
53
52
|
}
|
|
54
53
|
}]);
|
|
55
54
|
}(_react.default.PureComponent);
|
|
@@ -45,7 +45,7 @@ var OverflowProfileCardButtons = exports.OverflowProfileCardButtons = function O
|
|
|
45
45
|
});
|
|
46
46
|
}, [numActions, fireAnalyticsWithDuration]);
|
|
47
47
|
return /*#__PURE__*/_react.default.createElement(_Card.OverflowActionButtonsWrapper, {
|
|
48
|
-
|
|
48
|
+
testId: "profilecard-actions-overflow"
|
|
49
49
|
}, /*#__PURE__*/_react.default.createElement(_dropdownMenu.default, {
|
|
50
50
|
onOpenChange: onOpenChange,
|
|
51
51
|
placement: 'bottom-end',
|
|
@@ -57,9 +57,9 @@ var useKudos = function useKudos(cloudId, userId, teamCentralBaseUrl, openKudosD
|
|
|
57
57
|
};
|
|
58
58
|
var Wrapper = function Wrapper(props) {
|
|
59
59
|
return /*#__PURE__*/_react.default.createElement(_Card.CardWrapper, {
|
|
60
|
-
|
|
60
|
+
testId: "profilecard",
|
|
61
61
|
role: "dialog",
|
|
62
|
-
|
|
62
|
+
labelledBy: "profilecard-name-label"
|
|
63
63
|
}, props.children);
|
|
64
64
|
};
|
|
65
65
|
var ProfilecardInternal = exports.ProfilecardInternal = function ProfilecardInternal(props) {
|
|
@@ -162,7 +162,7 @@ var Actions = function Actions(_ref) {
|
|
|
162
162
|
var regularActions = actions.slice(0, _OverflowProfileCardButtons.ACTION_OVERFLOW_THRESHOLD);
|
|
163
163
|
var overflowActions = actions.length > _OverflowProfileCardButtons.ACTION_OVERFLOW_THRESHOLD ? actions.slice(_OverflowProfileCardButtons.ACTION_OVERFLOW_THRESHOLD) : undefined;
|
|
164
164
|
return /*#__PURE__*/_react.default.createElement(_Card.ActionButtonGroup, {
|
|
165
|
-
|
|
165
|
+
testId: "profilecard-actions"
|
|
166
166
|
}, regularActions.map(function (action, index) {
|
|
167
167
|
var isKudos = action.id === GIVE_KUDOS_ACTION_ID;
|
|
168
168
|
var button = /*#__PURE__*/_react.default.createElement(_focusRing.default, {
|
|
@@ -204,7 +204,7 @@ var LoadingView = function LoadingView(_ref2) {
|
|
|
204
204
|
});
|
|
205
205
|
}, [fireAnalyticsWithDuration]);
|
|
206
206
|
return /*#__PURE__*/_react.default.createElement(_Card.SpinnerContainer, {
|
|
207
|
-
|
|
207
|
+
testId: "profilecard-spinner-container"
|
|
208
208
|
}, /*#__PURE__*/_react.default.createElement(_spinner.default, null));
|
|
209
209
|
};
|
|
210
210
|
var _default = exports.default = (0, _analyticsNext.withAnalyticsEvents)()(ProfilecardInternal);
|
|
@@ -90,7 +90,7 @@ var CustomLozenges = function CustomLozenges(_ref) {
|
|
|
90
90
|
var BotProfileCardDetails = function BotProfileCardDetails(props) {
|
|
91
91
|
var fullName = props.fullName,
|
|
92
92
|
nickname = props.nickname;
|
|
93
|
-
return /*#__PURE__*/_react.default.createElement(_Card.DetailsGroup, null, renderName(nickname, fullName), /*#__PURE__*/_react.default.createElement(_Card.AppTitleLabel, null, "
|
|
93
|
+
return /*#__PURE__*/_react.default.createElement(_Card.DetailsGroup, null, renderName(nickname, fullName), /*#__PURE__*/_react.default.createElement(_Card.AppTitleLabel, null, "APP"));
|
|
94
94
|
};
|
|
95
95
|
var DisabledProfileCardDetails = function DisabledProfileCardDetails(props) {
|
|
96
96
|
var companyName = props.companyName,
|
|
@@ -130,7 +130,8 @@ var ProfileCardDetails = exports.ProfileCardDetails = function ProfileCardDetail
|
|
|
130
130
|
as: "dl",
|
|
131
131
|
xcss: detailedListWrapperStyles
|
|
132
132
|
}, /*#__PURE__*/_react.default.createElement(_Icon.IconLabel, {
|
|
133
|
-
icon: "email"
|
|
133
|
+
icon: "email",
|
|
134
|
+
extraTopSpace: true
|
|
134
135
|
}, props.email), /*#__PURE__*/_react.default.createElement(_Icon.IconLabel, {
|
|
135
136
|
icon: "time"
|
|
136
137
|
}, props.timestring), /*#__PURE__*/_react.default.createElement(_Icon.IconLabel, {
|
|
@@ -176,7 +176,7 @@ var ProfileCardResourced = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
176
176
|
}));
|
|
177
177
|
} else if (hasError) {
|
|
178
178
|
return /*#__PURE__*/_react.default.createElement(_Card.CardWrapper, {
|
|
179
|
-
|
|
179
|
+
testId: "profile-card-resourced-error-state"
|
|
180
180
|
}, /*#__PURE__*/_react.default.createElement(_Error.ErrorMessage, {
|
|
181
181
|
errorType: error,
|
|
182
182
|
reload: this.clientFetchProfile,
|
|
@@ -410,7 +410,7 @@ function ProfilecardTriggerNext(_ref2) {
|
|
|
410
410
|
var LoadingView = function LoadingView(_ref4) {
|
|
411
411
|
var fireAnalytics = _ref4.fireAnalytics;
|
|
412
412
|
return /*#__PURE__*/_react.default.createElement(_Card.CardWrapper, {
|
|
413
|
-
|
|
413
|
+
testId: "profilecard.profilecardtrigger.loading"
|
|
414
414
|
}, /*#__PURE__*/_react.default.createElement(_UserLoadingState.default, {
|
|
415
415
|
fireAnalytics: fireAnalytics
|
|
416
416
|
}));
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
._11c81vlj{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._11c8qk37{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
|
|
3
|
+
._2rkoglpi{border-radius:var(--ds-border-radius,4px)}
|
|
4
|
+
._zulp12x7{gap:var(--ds-space-075,6px)}
|
|
5
|
+
._zulpu2gc{gap:var(--ds-space-100,8px)}
|
|
6
|
+
._12vemgnk{background-repeat:no-repeat}
|
|
7
|
+
._154i1ejb{top:var(--ds-space-300,24px)}
|
|
8
|
+
._154ixy5q{top:var(--ds-space-400,2pc)}
|
|
9
|
+
._154ize3t{top:var(--ds-space-0,0)}
|
|
10
|
+
._16jlkb7n{flex-grow:1}
|
|
11
|
+
._16qs1cd0{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #091e4226,0 0 1px #091e424f)}
|
|
12
|
+
._18m915vq{overflow-y:hidden}
|
|
13
|
+
._18u01epz{margin-left:var(--ds-space-1000,5pc)}
|
|
14
|
+
._18u0u2gc{margin-left:var(--ds-space-100,8px)}
|
|
15
|
+
._18u0utpp{margin-left:var(--ds-space-150,9pt)}
|
|
16
|
+
._18u0ze3t{margin-left:var(--ds-space-0,0)}
|
|
17
|
+
._19bv12x7{padding-left:var(--ds-space-075,6px)}
|
|
18
|
+
._19bv1ejb{padding-left:var(--ds-space-300,24px)}
|
|
19
|
+
._19bvxy5q{padding-left:var(--ds-space-400,2pc)}
|
|
20
|
+
._19pk1b66{margin-top:var(--ds-space-050,4px)}
|
|
21
|
+
._19pkpxbi{margin-top:var(--ds-space-200,1pc)}
|
|
22
|
+
._19pkutpp{margin-top:var(--ds-space-150,9pt)}
|
|
23
|
+
._19pkxy5q{margin-top:var(--ds-space-400,2pc)}
|
|
24
|
+
._19pkze3t{margin-top:var(--ds-space-0,0)}
|
|
25
|
+
._1bah1h6o{justify-content:center}
|
|
26
|
+
._1bah1y6m{justify-content:flex-start}
|
|
27
|
+
._1bahesu3{justify-content:flex-end}
|
|
28
|
+
._1bsb18pt{width:228px}
|
|
29
|
+
._1bsb1gwv{width:360px}
|
|
30
|
+
._1bsb1ns9{width:-moz-fit-content;width:fit-content}
|
|
31
|
+
._1bsb1w81{width:150px}
|
|
32
|
+
._1bsb7vkz{width:1pc}
|
|
33
|
+
._1bsbzwfg{width:2pc}
|
|
34
|
+
._1bto1l2s{text-overflow:ellipsis}
|
|
35
|
+
._1e0c1o8l{display:inline-block}
|
|
36
|
+
._1e0c1txw{display:flex}
|
|
37
|
+
._1e0c1ule{display:block}
|
|
38
|
+
._1e0cglyw{display:none}
|
|
39
|
+
._1itk1419{background-image:linear-gradient(to bottom,var(--ds-background-brand-bold,#0c66e4) 0,var(--ds-background-brand-bold,#0c66e4) 100%)}
|
|
40
|
+
._1itkkf3t{background-image:linear-gradient(to bottom,var(--ds-background-disabled,#091e4208) 0,var(--ds-background-disabled,#091e4208) 100%)}
|
|
41
|
+
._1itkq1hn{background-image:radial-gradient(circle,var(--ds-background-information-pressed,#85b8ff) 0,var(--ds-background-discovery-pressed,#b8acf6) 25%,transparent 50%)}
|
|
42
|
+
._1lrw14bs{background-size:100% 6pc}
|
|
43
|
+
._1ltv1ejb{left:var(--ds-space-300,24px)}
|
|
44
|
+
._1ltvze3t{left:var(--ds-space-0,0)}
|
|
45
|
+
._1n261g80{flex-wrap:wrap}
|
|
46
|
+
._1o9zidpf{flex-shrink:0}
|
|
47
|
+
._1pby1mrw{z-index:-1}
|
|
48
|
+
._1reo15vq{overflow-x:hidden}
|
|
49
|
+
._1tkebv7e{min-height:136px}
|
|
50
|
+
._1xi2ze3t{right:var(--ds-space-0,0)}
|
|
51
|
+
._2hwxze3t{margin-right:var(--ds-space-0,0)}
|
|
52
|
+
._2lx21bp4{flex-direction:column}
|
|
53
|
+
._2lx2vrvc{flex-direction:row}
|
|
54
|
+
._4cvr1h6o{align-items:center}
|
|
55
|
+
._4t3i16xz{height:6pc}
|
|
56
|
+
._4t3i1w81{height:150px}
|
|
57
|
+
._4t3i7vkz{height:1pc}
|
|
58
|
+
._4t3izwfg{height:2pc}
|
|
59
|
+
._5sagi11n{animation-duration:3s}
|
|
60
|
+
._94n5ze3t{bottom:var(--ds-space-0,0)}
|
|
61
|
+
._ca0q1ejb{padding-top:var(--ds-space-300,24px)}
|
|
62
|
+
._i0dl1wug{flex-basis:auto}
|
|
63
|
+
._j7hq1q51{animation-name:k1ojqp0a}
|
|
64
|
+
._kqswh2mm{position:relative}
|
|
65
|
+
._kqswstnw{position:absolute}
|
|
66
|
+
._mkrz1rip{clip-path:inset(0 0 0 0 round 3px)}
|
|
67
|
+
._n3td1ejb{padding-bottom:var(--ds-space-300,24px)}
|
|
68
|
+
._o5721q9c{white-space:nowrap}
|
|
69
|
+
._otyrze3t{margin-bottom:var(--ds-space-0,0)}
|
|
70
|
+
._s7n4jp4b{vertical-align:top}
|
|
71
|
+
._syaz131l{color:var(--ds-text-subtlest,#626f86)}
|
|
72
|
+
._syaz1fxt{color:var(--ds-text,#172b4d)}
|
|
73
|
+
._tip8kb7n{animation-iteration-count:1}
|
|
74
|
+
._u5f312x7{padding-right:var(--ds-space-075,6px)}
|
|
75
|
+
._u5f31ejb{padding-right:var(--ds-space-300,24px)}
|
|
76
|
+
._uiztglyw{-webkit-user-select:none;-ms-user-select:none;user-select:none}
|
|
77
|
+
._y3gnusic{text-align:right}
|
|
78
|
+
@keyframes k1ojqp0a{0%{transform:translate(-5pc,-50px)}to{transform:translate(90px,-70px)}}
|
package/dist/cjs/styled/Card.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* Card.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -5,11 +6,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.SpinnerContainer = 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.CardWrapper = exports.CardContent = exports.CardContainer = exports.AppTitleLabel = exports.AnimationWrapper = exports.AnimatedKudosButton = exports.ActionsFlexSpacer = exports.ActionButtonGroup = void 0;
|
|
8
|
-
|
|
9
|
+
require("./Card.compiled.css");
|
|
10
|
+
var _runtime = require("@compiled/react/runtime");
|
|
9
11
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
10
12
|
var _react = _interopRequireDefault(require("react"));
|
|
11
13
|
var _react2 = require("@emotion/react");
|
|
12
14
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
15
|
+
var _css = require("@atlaskit/css");
|
|
16
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
17
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
13
18
|
var _colors = require("@atlaskit/theme/colors");
|
|
14
19
|
var _constants = require("@atlaskit/theme/constants");
|
|
15
20
|
var _constants2 = require("./constants");
|
|
@@ -17,67 +22,222 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
|
|
|
17
22
|
/* eslint-disable @atlaskit/design-system/no-styled-tagged-template-expression -- needs manual remediation */
|
|
18
23
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
19
24
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
|
+
var kudosButtonAnimationTransformationCompiled = null;
|
|
26
|
+
var styles = {
|
|
27
|
+
cardWrapper: "_2rkoglpi _1bsb1gwv",
|
|
28
|
+
profileImage: "_kqswstnw _154i1ejb _1ltv1ejb",
|
|
29
|
+
actionsFlexSpacer: "_16jlkb7n _1o9zidpf _i0dl1wug",
|
|
30
|
+
kudosBlobAnimationStyle: "_1e0cglyw _4t3i1w81 _1bsb1w81 _1pby1mrw _kqswstnw _154ixy5q",
|
|
31
|
+
animationWrapper: "_mkrz1rip _kqswstnw _154ize3t _1ltvze3t _94n5ze3t _1xi2ze3t",
|
|
32
|
+
animatedKudosButton: "_18u0u2gc",
|
|
33
|
+
actionButtonGroup: "_zulp12x7 _uiztglyw _19pkpxbi _2hwxze3t _18u0ze3t _otyrze3t _y3gnusic _1bahesu3 _1e0c1txw",
|
|
34
|
+
overflowActionButtonsWrapper: "_1e0c1o8l _1bsbzwfg _4t3izwfg",
|
|
35
|
+
cardContent: "_1e0c1txw _2lx21bp4 _1tkebv7e",
|
|
36
|
+
detailsGroup: "_1e0c1txw _2lx21bp4 _18u01epz _19bvxy5q _1bsb18pt",
|
|
37
|
+
disabledInfo: "_11c81vlj _syaz1fxt _19pkutpp _2hwxze3t _18u0ze3t _otyrze3t",
|
|
38
|
+
lozengeWrapper: "_19pkpxbi _1e0c1ule",
|
|
39
|
+
customLozengeContainer: "_1e0c1txw _2lx2vrvc _1n261g80 _1bah1y6m _19pkutpp",
|
|
40
|
+
spinnerContainer: "_4cvr1h6o _1e0c1txw _4t3i16xz _1bah1h6o _kqswh2mm",
|
|
41
|
+
cardContainer: "_1reo15vq _18m915vq _kqswh2mm _12vemgnk _1lrw14bs _ca0q1ejb _19bv1ejb _u5f31ejb _n3td1ejb",
|
|
42
|
+
cardContainerActiveUser: "_1itk1419",
|
|
43
|
+
cardContainerDisabledUser: "_1itkkf3t",
|
|
44
|
+
cardContainerWithElevation: "_2rkoglpi _16qs1cd0",
|
|
45
|
+
detailsLabel: "_zulpu2gc _1e0c1txw _4cvr1h6o _1bah1y6m _19pkutpp _2hwxze3t _18u0ze3t _otyrze3t _o5721q9c",
|
|
46
|
+
detailsLabelExtraTopSpace: "_19pkxy5q",
|
|
47
|
+
detailsLabelIcon: "_1e0c1txw _1o9zidpf _syaz131l _1bsb7vkz _4t3i7vkz _s7n4jp4b _19pkze3t",
|
|
48
|
+
detailsLabelText: "_1reo15vq _18m915vq _11c8qk37 _1bto1l2s _syaz1fxt _19pkze3t _18u0ze3t",
|
|
49
|
+
kudosBlobAnimation: "_1e0cglyw _4t3i1w81 _1bsb1w81 _1pby1mrw _kqswstnw _j7hq1q51 _tip8kb7n _5sagi11n _1itkq1hn",
|
|
50
|
+
jobTitleLabel: "_19pkze3t _otyrze3t _18u0utpp _2hwxze3t",
|
|
51
|
+
appTitleLabel: "_2rkoglpi _syaz1fxt _u5f312x7 _19bv12x7 _1bsb1ns9 _19pk1b66 _otyrze3t _18u0utpp _2hwxze3t"
|
|
52
|
+
};
|
|
53
|
+
var CardWrapper = exports.CardWrapper = function CardWrapper(_ref) {
|
|
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
|
+
};
|
|
20
70
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
21
|
-
var
|
|
22
|
-
|
|
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;
|
|
74
|
+
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
75
|
+
xcss: (0, _css.cx)(styles.profileImage)
|
|
76
|
+
}, children) : /*#__PURE__*/_react.default.createElement(ProfileImageLegacy, null, children);
|
|
77
|
+
};
|
|
23
78
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
24
|
-
var
|
|
25
|
-
|
|
79
|
+
var ProfileImageLegacy = _styled.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\tposition: absolute;\n\ttop: ", ";\n\tleft: ", ";\n"])), "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)");
|
|
80
|
+
var ActionsFlexSpacer = exports.ActionsFlexSpacer = function ActionsFlexSpacer() {
|
|
81
|
+
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
82
|
+
xcss: (0, _css.cx)(styles.actionsFlexSpacer)
|
|
83
|
+
}) : /*#__PURE__*/_react.default.createElement(ActionsFlexSpacerLegacy, null);
|
|
84
|
+
};
|
|
26
85
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
27
|
-
var
|
|
86
|
+
var ActionsFlexSpacerLegacy = _styled.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\tflex: 1 0 auto;\n"])));
|
|
28
87
|
|
|
29
88
|
// eslint-disable-next-line @atlaskit/design-system/no-keyframes-tagged-template-expression -- needs manual remediation
|
|
30
89
|
var kudosButtonAnimationTransformation = (0, _react2.keyframes)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n 0% { transform: translate(-80px, -50px); }\n 100% { transform: translate(90px, -70px); }\n"])));
|
|
90
|
+
var KudosBlobAnimationStyle = exports.KudosBlobAnimationStyle = function KudosBlobAnimationStyle() {
|
|
91
|
+
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
92
|
+
xcss: (0, _css.cx)(styles.kudosBlobAnimationStyle)
|
|
93
|
+
}) :
|
|
94
|
+
/*#__PURE__*/
|
|
95
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
96
|
+
_react.default.createElement(KudosBlobAnimationStyleLegacy, {
|
|
97
|
+
className: "kudos-blob-animation"
|
|
98
|
+
});
|
|
99
|
+
};
|
|
31
100
|
|
|
32
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
33
|
-
var
|
|
34
|
-
var KudosBlobAnimation = exports.KudosBlobAnimation = function KudosBlobAnimation(
|
|
35
|
-
return (
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
101
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
102
|
+
var KudosBlobAnimationStyleLegacy = _styled.default.div(_templateObject5 || (_templateObject5 = (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
|
+
var KudosBlobAnimation = exports.KudosBlobAnimation = function KudosBlobAnimation() {
|
|
104
|
+
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
105
|
+
xcss: (0, _css.cx)(styles.kudosBlobAnimationStyle)
|
|
106
|
+
}) : /*#__PURE__*/_react.default.createElement(KudosBlobAnimationLegacy, null);
|
|
107
|
+
};
|
|
108
|
+
var KudosBlobAnimationLegacy = function KudosBlobAnimationLegacy() {
|
|
109
|
+
return /*#__PURE__*/_react.default.createElement(KudosBlobAnimationStyle, null);
|
|
110
|
+
};
|
|
111
|
+
var AnimationWrapper = exports.AnimationWrapper = function AnimationWrapper(_ref3) {
|
|
112
|
+
var children = _ref3.children;
|
|
113
|
+
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
114
|
+
xcss: (0, _css.cx)(styles.animationWrapper)
|
|
115
|
+
}, children) : /*#__PURE__*/_react.default.createElement(AnimationWrapperLegacy, null, children);
|
|
42
116
|
};
|
|
43
117
|
|
|
44
118
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
45
|
-
var
|
|
46
|
-
|
|
119
|
+
var AnimationWrapperLegacy = _styled.default.div(_templateObject6 || (_templateObject6 = (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)());
|
|
120
|
+
var AnimatedKudosButton = exports.AnimatedKudosButton = function AnimatedKudosButton(_ref4) {
|
|
121
|
+
var children = _ref4.children;
|
|
122
|
+
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
123
|
+
xcss: (0, _css.cx)(styles.animatedKudosButton)
|
|
124
|
+
}, children) : /*#__PURE__*/_react.default.createElement(AnimatedKudosButtonLegacy, null, children);
|
|
125
|
+
};
|
|
47
126
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
48
|
-
var
|
|
49
|
-
|
|
127
|
+
var AnimatedKudosButtonLegacy = _styled.default.div(_templateObject7 || (_templateObject7 = (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)");
|
|
128
|
+
var ActionButtonGroup = exports.ActionButtonGroup = function ActionButtonGroup(_ref5) {
|
|
129
|
+
var children = _ref5.children,
|
|
130
|
+
testId = _ref5.testId;
|
|
131
|
+
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
132
|
+
testId: testId,
|
|
133
|
+
xcss: (0, _css.cx)(styles.actionButtonGroup)
|
|
134
|
+
}, children) : /*#__PURE__*/_react.default.createElement(ActionButtonGroupLegacy, {
|
|
135
|
+
"data-testid": testId
|
|
136
|
+
}, children);
|
|
137
|
+
};
|
|
50
138
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
51
|
-
var
|
|
52
|
-
|
|
139
|
+
var ActionButtonGroupLegacy = _styled.default.div(_templateObject8 || (_templateObject8 = (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)");
|
|
140
|
+
var OverflowActionButtonsWrapper = exports.OverflowActionButtonsWrapper = function OverflowActionButtonsWrapper(_ref6) {
|
|
141
|
+
var children = _ref6.children,
|
|
142
|
+
testId = _ref6.testId;
|
|
143
|
+
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
144
|
+
testId: testId,
|
|
145
|
+
xcss: (0, _css.cx)(styles.overflowActionButtonsWrapper)
|
|
146
|
+
}, children) : /*#__PURE__*/_react.default.createElement(OverflowActionButtonsWrapperLegacy, {
|
|
147
|
+
"data-testid": testId
|
|
148
|
+
}, children);
|
|
149
|
+
};
|
|
53
150
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
54
|
-
var
|
|
55
|
-
|
|
151
|
+
var OverflowActionButtonsWrapperLegacy = _styled.default.div(_templateObject9 || (_templateObject9 = (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)");
|
|
152
|
+
var CardContent = exports.CardContent = function CardContent(_ref7) {
|
|
153
|
+
var children = _ref7.children;
|
|
154
|
+
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
155
|
+
xcss: (0, _css.cx)(styles.cardContent)
|
|
156
|
+
}, children) : /*#__PURE__*/_react.default.createElement(CardContentLegacy, null, children);
|
|
157
|
+
};
|
|
56
158
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
57
|
-
var
|
|
58
|
-
|
|
159
|
+
var CardContentLegacy = _styled.default.div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tmin-height: 136px;\n"])));
|
|
160
|
+
var DetailsGroup = exports.DetailsGroup = function DetailsGroup(_ref8) {
|
|
161
|
+
var children = _ref8.children;
|
|
162
|
+
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
163
|
+
xcss: (0, _css.cx)(styles.detailsGroup)
|
|
164
|
+
}, children) : /*#__PURE__*/_react.default.createElement(DetailsGroupLegacy, null, children);
|
|
165
|
+
};
|
|
59
166
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
60
|
-
var
|
|
61
|
-
|
|
167
|
+
var DetailsGroupLegacy = _styled.default.div(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tmargin-left: 116px;\n\twidth: 196px;\n"])));
|
|
168
|
+
var DisabledInfo = exports.DisabledInfo = function DisabledInfo(_ref9) {
|
|
169
|
+
var children = _ref9.children;
|
|
170
|
+
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
171
|
+
xcss: (0, _css.cx)(styles.disabledInfo)
|
|
172
|
+
}, children) : /*#__PURE__*/_react.default.createElement(DisabledInfoLegacy, null, children);
|
|
173
|
+
};
|
|
62
174
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
63
|
-
var
|
|
64
|
-
|
|
175
|
+
var DisabledInfoLegacy = _styled.default.div(_templateObject12 || (_templateObject12 = (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, system-ui, \"Helvetica Neue\", sans-serif)", _constants2.labelTextColor, "var(--ds-space-150, 12px)");
|
|
176
|
+
var LozengeWrapper = exports.LozengeWrapper = function LozengeWrapper(_ref10) {
|
|
177
|
+
var children = _ref10.children;
|
|
178
|
+
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
179
|
+
xcss: (0, _css.cx)(styles.lozengeWrapper)
|
|
180
|
+
}, children) : /*#__PURE__*/_react.default.createElement(LozengeWrapperLegacy, null, children);
|
|
181
|
+
};
|
|
65
182
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
66
|
-
var
|
|
67
|
-
|
|
183
|
+
var LozengeWrapperLegacy = _styled.default.div(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n\tmargin-top: ", ";\n\ttext-transform: uppercase;\n\tdisplay: block;\n"])), "var(--ds-space-200, 16px)");
|
|
184
|
+
var CustomLozengeContainer = exports.CustomLozengeContainer = function CustomLozengeContainer(_ref11) {
|
|
185
|
+
var children = _ref11.children;
|
|
186
|
+
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
187
|
+
xcss: (0, _css.cx)(styles.customLozengeContainer)
|
|
188
|
+
}, children) : /*#__PURE__*/_react.default.createElement(CustomLozengeContainerLegacy, null, children);
|
|
189
|
+
};
|
|
68
190
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
69
|
-
var
|
|
70
|
-
|
|
191
|
+
var CustomLozengeContainerLegacy = (0, _styled.default)(LozengeWrapper)(_templateObject14 || (_templateObject14 = (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)");
|
|
192
|
+
var JobTitleLabel = exports.JobTitleLabel = function JobTitleLabel(_ref12) {
|
|
193
|
+
var children = _ref12.children;
|
|
194
|
+
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
195
|
+
xcss: (0, _css.cx)(styles.jobTitleLabel)
|
|
196
|
+
}, /*#__PURE__*/_react.default.createElement(_compiled.Text, {
|
|
197
|
+
maxLines: 1,
|
|
198
|
+
color: "color.text.inverse"
|
|
199
|
+
}, children)) : /*#__PURE__*/_react.default.createElement(JobTitleLabelLegacy, null, children);
|
|
200
|
+
};
|
|
71
201
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
72
|
-
var
|
|
73
|
-
|
|
202
|
+
var JobTitleLabelLegacy = _styled.default.span(_templateObject15 || (_templateObject15 = (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, system-ui, \"Helvetica Neue\", sans-serif)", _constants2.headerTextColor, "var(--ds-space-150, 12px)");
|
|
203
|
+
var AppTitleLabel = exports.AppTitleLabel = function AppTitleLabel(_ref13) {
|
|
204
|
+
var children = _ref13.children;
|
|
205
|
+
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
206
|
+
xcss: (0, _css.cx)(styles.appTitleLabel),
|
|
207
|
+
backgroundColor: "color.background.neutral"
|
|
208
|
+
}, /*#__PURE__*/_react.default.createElement(_compiled.Text, {
|
|
209
|
+
color: "color.text",
|
|
210
|
+
size: "UNSAFE_small",
|
|
211
|
+
weight: "bold"
|
|
212
|
+
}, children)) : /*#__PURE__*/_react.default.createElement(AppTitleLabelLegacy, null, children);
|
|
213
|
+
};
|
|
74
214
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
75
|
-
var
|
|
76
|
-
|
|
215
|
+
var AppTitleLabelLegacy = _styled.default.span(_templateObject16 || (_templateObject16 = (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, system-ui, \"Helvetica Neue\", sans-serif)", "var(--ds-space-050, 4px)", "var(--ds-space-150, 12px)");
|
|
216
|
+
var SpinnerContainer = exports.SpinnerContainer = function SpinnerContainer(_ref14) {
|
|
217
|
+
var children = _ref14.children,
|
|
218
|
+
testId = _ref14.testId;
|
|
219
|
+
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
220
|
+
testId: testId,
|
|
221
|
+
xcss: (0, _css.cx)(styles.spinnerContainer)
|
|
222
|
+
}, children) : /*#__PURE__*/_react.default.createElement(SpinnerContainerLegacy, {
|
|
223
|
+
"data-testid": testId
|
|
224
|
+
}, children);
|
|
225
|
+
};
|
|
77
226
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
78
|
-
var
|
|
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;
|
|
232
|
+
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
233
|
+
xcss: (0, _css.cx)(styles.cardContainer, isDisabledUser ? styles.cardContainerDisabledUser : styles.cardContainerActiveUser, !withoutElevation && styles.cardContainerWithElevation)
|
|
234
|
+
}, children) : /*#__PURE__*/_react.default.createElement(CardContainerLegacy, {
|
|
235
|
+
isDisabledUser: isDisabledUser,
|
|
236
|
+
withoutElevation: withoutElevation
|
|
237
|
+
}, children);
|
|
238
|
+
};
|
|
79
239
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
80
|
-
var
|
|
240
|
+
var CardContainerLegacy = _styled.default.div(_templateObject18 || (_templateObject18 = (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) {
|
|
81
241
|
return props.isDisabledUser ? _constants2.headerBgColorDisabledUser : _constants2.headerBgColor;
|
|
82
242
|
}, function (props) {
|
|
83
243
|
return props.isDisabledUser ? _constants2.headerBgColorDisabledUser : _constants2.headerBgColor;
|
|
@@ -86,12 +246,31 @@ var CardContainer = exports.CardContainer = _styled.default.div(_templateObject1
|
|
|
86
246
|
}, function (props) {
|
|
87
247
|
return props.withoutElevation ? '' : "".concat((0, _constants.borderRadius)(), "px");
|
|
88
248
|
});
|
|
89
|
-
|
|
249
|
+
var DetailsLabel = exports.DetailsLabel = function DetailsLabel(_ref16) {
|
|
250
|
+
var children = _ref16.children,
|
|
251
|
+
_ref16$extraTopSpace = _ref16.extraTopSpace,
|
|
252
|
+
extraTopSpace = _ref16$extraTopSpace === void 0 ? false : _ref16$extraTopSpace;
|
|
253
|
+
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
254
|
+
xcss: (0, _css.cx)(styles.detailsLabel, extraTopSpace && styles.detailsLabelExtraTopSpace)
|
|
255
|
+
}, children) : /*#__PURE__*/_react.default.createElement(DetailsLabelLegacy, null, children);
|
|
256
|
+
};
|
|
90
257
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
91
|
-
var
|
|
92
|
-
|
|
258
|
+
var DetailsLabelLegacy = _styled.default.div(_templateObject19 || (_templateObject19 = (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)");
|
|
259
|
+
var DetailsLabelIcon = exports.DetailsLabelIcon = function DetailsLabelIcon(_ref17) {
|
|
260
|
+
var children = _ref17.children;
|
|
261
|
+
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
262
|
+
as: "dt",
|
|
263
|
+
xcss: (0, _css.cx)(styles.detailsLabelIcon)
|
|
264
|
+
}, children) : /*#__PURE__*/_react.default.createElement(DetailsLabelIconLegacy, null, children);
|
|
265
|
+
};
|
|
93
266
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
94
|
-
var
|
|
95
|
-
|
|
267
|
+
var DetailsLabelIconLegacy = _styled.default.dt(_templateObject20 || (_templateObject20 = (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)");
|
|
268
|
+
var DetailsLabelText = exports.DetailsLabelText = function DetailsLabelText(_ref18) {
|
|
269
|
+
var children = _ref18.children;
|
|
270
|
+
return (0, _platformFeatureFlags.fg)('compiled-migration-profilecard') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
271
|
+
as: "dd",
|
|
272
|
+
xcss: (0, _css.cx)(styles.detailsLabelText)
|
|
273
|
+
}, children) : /*#__PURE__*/_react.default.createElement(DetailsLabelTextLegacy, null, children);
|
|
274
|
+
};
|
|
96
275
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
97
|
-
var
|
|
276
|
+
var DetailsLabelTextLegacy = _styled.default.dd(_templateObject21 || (_templateObject21 = (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, system-ui, \"Helvetica Neue\", sans-serif)", "var(--ds-space-050, 4px)", "var(--ds-space-050, 4px)");
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
._11c81vlj{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._18u01b66{margin-left:var(--ds-space-050,4px)}
|
|
3
|
+
._18u0r5cr{margin-left:var(--ds-space-negative-050,-4px)}
|
|
4
|
+
._18u0u2gc{margin-left:var(--ds-space-100,8px)}
|
|
5
|
+
._19pk1b66{margin-top:var(--ds-space-050,4px)}
|
|
6
|
+
._19pku2gc{margin-top:var(--ds-space-100,8px)}
|
|
7
|
+
._1e0c1txw{display:flex}
|
|
8
|
+
._2hwx1b66{margin-right:var(--ds-space-050,4px)}
|
|
9
|
+
._4cvr1h6o{align-items:center}
|
|
10
|
+
._otyr1b66{margin-bottom:var(--ds-space-050,4px)}
|