@atlaskit/profilecard 19.14.0 → 19.14.1
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 +1129 -1124
- package/afm-cc/tsconfig.json +3 -0
- package/dist/cjs/client/ProfileCardClient.js +7 -0
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/User/ProfileCardDetails.js +1 -1
- package/dist/cjs/styled/Card.js +42 -42
- package/dist/cjs/styled/Error.js +9 -5
- package/dist/cjs/styled/ReportingLines.js +8 -5
- package/dist/cjs/styled/TeamCard.js +21 -16
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/es2019/client/ProfileCardClient.js +7 -0
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/components/User/ProfileCardDetails.js +1 -1
- package/dist/es2019/styled/Card.js +207 -208
- package/dist/es2019/styled/Error.js +9 -5
- package/dist/es2019/styled/ReportingLines.js +8 -5
- package/dist/es2019/styled/TeamCard.js +27 -22
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/esm/client/ProfileCardClient.js +7 -0
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/components/User/ProfileCardDetails.js +1 -1
- package/dist/esm/styled/Card.js +42 -42
- package/dist/esm/styled/Error.js +9 -5
- package/dist/esm/styled/ReportingLines.js +8 -5
- package/dist/esm/styled/TeamCard.js +21 -16
- package/dist/esm/util/analytics.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/types.d.ts +83 -83
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +83 -83
- package/docs/0-intro.tsx +13 -18
- package/docs/1-profilecard-trigger.tsx +13 -19
- package/docs/2-team-profilecard.tsx +26 -32
- package/package.json +10 -8
- package/report.api.md +457 -496
package/afm-cc/tsconfig.json
CHANGED
|
@@ -8,6 +8,8 @@ exports.default = void 0;
|
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
10
10
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
11
|
+
var _atlassianContext = require("@atlaskit/atlassian-context");
|
|
12
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
13
|
var _TeamCentralCardClient = _interopRequireDefault(require("./TeamCentralCardClient"));
|
|
12
14
|
var _TeamProfileCardClient = _interopRequireDefault(require("./TeamProfileCardClient"));
|
|
13
15
|
var _UserProfileCardClient = _interopRequireDefault(require("./UserProfileCardClient"));
|
|
@@ -65,6 +67,11 @@ var ProfileCardClient = /*#__PURE__*/function () {
|
|
|
65
67
|
return ProfileCardClient;
|
|
66
68
|
}();
|
|
67
69
|
function maybeCreateTeamCentralClient(config, clients) {
|
|
70
|
+
if ((0, _platformFeatureFlags.getBooleanFF)('platform.profilecard-disable-team-central-client-in-fedramp_ilnm7')) {
|
|
71
|
+
if ((0, _atlassianContext.isFedRamp)()) {
|
|
72
|
+
return undefined;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
68
75
|
if (clients !== null && clients !== void 0 && clients.teamCentralClient) {
|
|
69
76
|
return clients.teamCentralClient;
|
|
70
77
|
}
|
|
@@ -57,7 +57,7 @@ var addHeaders = exports.addHeaders = function addHeaders(headers) {
|
|
|
57
57
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
58
58
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
59
59
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
60
|
-
headers.append('atl-client-version', "19.14.
|
|
60
|
+
headers.append('atl-client-version', "19.14.1");
|
|
61
61
|
return headers;
|
|
62
62
|
};
|
|
63
63
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -41,7 +41,7 @@ var disabledAccountDesc = function disabledAccountDesc(statusModifiedDate, disab
|
|
|
41
41
|
var secondSentence = /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.default[msgKey]);
|
|
42
42
|
return /*#__PURE__*/_react.default.createElement("p", {
|
|
43
43
|
"data-testid": "profilecard-disabled-account"
|
|
44
|
-
}, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.default.generalDescMsgForDisabledUser),
|
|
44
|
+
}, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.default.generalDescMsgForDisabledUser), " ", secondSentence);
|
|
45
45
|
};
|
|
46
46
|
var CustomLozenges = function CustomLozenges(_ref) {
|
|
47
47
|
var _ref$lozenges = _ref.lozenges,
|
package/dist/cjs/styled/Card.js
CHANGED
|
@@ -19,20 +19,20 @@ var getFullNameMargin = function getFullNameMargin(props) {
|
|
|
19
19
|
return props.noMeta ? "var(--ds-space-400, 32px)".concat(" 0 ", "var(--ds-space-150, 12px)", " 0") : "var(--ds-space-150, 12px)".concat(" 0 0 0");
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
23
|
-
var CardWrapper = exports.CardWrapper = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
23
|
+
var CardWrapper = exports.CardWrapper = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\tbackground-color: ", ";\n\tborder-radius: ", ";\n\twidth: ", "px;\n"])), _constants2.bgColor, "var(--ds-border-radius, 3px)", (0, _constants.gridSize)() * 45);
|
|
24
24
|
|
|
25
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
26
|
-
var ProfileImage = exports.ProfileImage = _styled.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
26
|
+
var ProfileImage = exports.ProfileImage = _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)");
|
|
27
27
|
|
|
28
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
29
|
-
var ActionsFlexSpacer = exports.ActionsFlexSpacer = _styled.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
29
|
+
var ActionsFlexSpacer = exports.ActionsFlexSpacer = _styled.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\tflex: 1 0 auto;\n"])));
|
|
30
30
|
|
|
31
31
|
// eslint-disable-next-line @atlaskit/design-system/no-keyframes-tagged-template-expression -- needs manual remediation
|
|
32
32
|
var kudosButtonAnimationTransformation = (0, _react2.keyframes)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n 0% { transform: translate(-80px, -50px); }\n 100% { transform: translate(90px, -70px); }\n"])));
|
|
33
33
|
|
|
34
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
35
|
-
var KudosBlobAnimationStyle = exports.KudosBlobAnimationStyle = _styled.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-keyframes -- Ignored via go/DSP-18766
|
|
35
|
+
var KudosBlobAnimationStyle = exports.KudosBlobAnimationStyle = _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"])), (0, _constants.gridSize)() * 4 / (0, _constants.fontSize)(), kudosButtonAnimationTransformation, "var(--ds-background-information-pressed, #85B8FF)", "var(--ds-background-discovery-pressed, #B8ACF6)");
|
|
36
36
|
var KudosBlobAnimation = exports.KudosBlobAnimation = function KudosBlobAnimation(props) {
|
|
37
37
|
return (
|
|
38
38
|
/*#__PURE__*/
|
|
@@ -43,29 +43,29 @@ var KudosBlobAnimation = exports.KudosBlobAnimation = function KudosBlobAnimatio
|
|
|
43
43
|
);
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
47
|
-
var AnimationWrapper = exports.AnimationWrapper = _styled.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
47
|
+
var AnimationWrapper = exports.AnimationWrapper = _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)());
|
|
48
48
|
|
|
49
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
50
|
-
var AnimatedKudosButton = exports.AnimatedKudosButton = _styled.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
50
|
+
var AnimatedKudosButton = exports.AnimatedKudosButton = _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)");
|
|
51
51
|
|
|
52
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
53
|
-
var ActionButtonGroup = exports.ActionButtonGroup = _styled.default.div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
53
|
+
var ActionButtonGroup = exports.ActionButtonGroup = _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)");
|
|
54
54
|
|
|
55
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
56
|
-
var OverflowActionButtonsWrapper = exports.OverflowActionButtonsWrapper = _styled.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
56
|
+
var OverflowActionButtonsWrapper = exports.OverflowActionButtonsWrapper = _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)");
|
|
57
57
|
|
|
58
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
59
|
-
var CardContent = exports.CardContent = _styled.default.div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n
|
|
58
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
59
|
+
var CardContent = exports.CardContent = _styled.default.div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tmin-height: ", "px;\n"])), (0, _constants.gridSize)() * 17);
|
|
60
60
|
|
|
61
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
62
|
-
var DetailsGroup = exports.DetailsGroup = _styled.default.div(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n
|
|
61
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
62
|
+
var DetailsGroup = exports.DetailsGroup = _styled.default.div(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tmargin-left: ", "px;\n\twidth: ", "px;\n"])), (0, _constants.gridSize)() * 14.5, (0, _constants.gridSize)() * 24.5);
|
|
63
63
|
|
|
64
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
65
|
-
var DisabledInfo = exports.DisabledInfo = _styled.default.div(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n
|
|
64
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
65
|
+
var DisabledInfo = exports.DisabledInfo = _styled.default.div(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n\tfont-size: ", "px;\n\tcolor: ", ";\n\tmargin: ", " 0 0 0;\n\tline-height: 16px;\n"])), (0, _constants.fontSizeSmall)(), _constants2.labelTextColor, "var(--ds-space-150, 12px)");
|
|
66
66
|
|
|
67
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
68
|
-
var FullNameLabel = exports.FullNameLabel = _styled.default.h2(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n
|
|
67
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
68
|
+
var FullNameLabel = exports.FullNameLabel = _styled.default.h2(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n\n\tfont-size: 18px;\n\tfont-weight: 400;\n\tletter-spacing: normal;\n\tcolor: ", ";\n\tmargin: ", ";\n\tline-height: ", "em;\n\t:first-child {\n\t\tmargin: ", ";\n\t}\n"])), function (props) {
|
|
69
69
|
return props.isDisabledAccount ? _constants2.headerTextColorInactive : _constants2.headerTextColor;
|
|
70
70
|
}, function (props) {
|
|
71
71
|
return getFullNameMargin(props);
|
|
@@ -73,22 +73,22 @@ var FullNameLabel = exports.FullNameLabel = _styled.default.h2(_templateObject13
|
|
|
73
73
|
return getFullNameMargin(props);
|
|
74
74
|
});
|
|
75
75
|
|
|
76
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
77
|
-
var LozengeWrapper = exports.LozengeWrapper = _styled.default.div(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2.default)(["\n
|
|
76
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
77
|
+
var LozengeWrapper = exports.LozengeWrapper = _styled.default.div(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2.default)(["\n\tmargin-top: ", ";\n\ttext-transform: uppercase;\n\tdisplay: block;\n"])), "var(--ds-space-200, 16px)");
|
|
78
78
|
|
|
79
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
80
|
-
var CustomLozengeContainer = exports.CustomLozengeContainer = (0, _styled.default)(LozengeWrapper)(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2.default)(["\n
|
|
79
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
80
|
+
var CustomLozengeContainer = exports.CustomLozengeContainer = (0, _styled.default)(LozengeWrapper)(_templateObject15 || (_templateObject15 = (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)");
|
|
81
81
|
|
|
82
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
83
|
-
var JobTitleLabel = exports.JobTitleLabel = _styled.default.span(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteral2.default)(["\n
|
|
82
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
83
|
+
var JobTitleLabel = exports.JobTitleLabel = _styled.default.span(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteral2.default)(["\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n\n\tfont-size: 14px;\n\tcolor: ", ";\n\tmargin: 0 0 ", " 0;\n\tline-height: ", "em;\n"])), _constants2.headerTextColor, "var(--ds-space-150, 12px)", 24 / 14);
|
|
84
84
|
|
|
85
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
86
|
-
var AppTitleLabel = exports.AppTitleLabel = _styled.default.span(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteral2.default)(["\n
|
|
85
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
86
|
+
var AppTitleLabel = exports.AppTitleLabel = _styled.default.span(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteral2.default)(["\n\tbackground: ", ";\n\tcolor: ", ";\n\tborder-radius: ", ";\n\tpadding: 0 ", ";\n\twidth: fit-content;\n\tfont-weight: bold;\n\ttext-transform: uppercase;\n\n\tfont-size: 12px;\n\tmargin: ", " 0 ", " 0;\n\tline-height: ", "em;\n"])), _constants2.appLabelBgColor, _constants2.appLabelTextColor, (0, _constants.borderRadius)(), "var(--ds-space-075, 6px)", "var(--ds-space-050, 4px)", "var(--ds-space-150, 12px)", 24 / 14);
|
|
87
87
|
|
|
88
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
89
|
-
var SpinnerContainer = exports.SpinnerContainer = _styled.default.div(_templateObject18 || (_templateObject18 = (0, _taggedTemplateLiteral2.default)(["\n
|
|
90
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
91
|
-
var CardContainer = exports.CardContainer = _styled.default.div(_templateObject19 || (_templateObject19 = (0, _taggedTemplateLiteral2.default)(["\n
|
|
88
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
89
|
+
var SpinnerContainer = exports.SpinnerContainer = _styled.default.div(_templateObject18 || (_templateObject18 = (0, _taggedTemplateLiteral2.default)(["\n\talign-items: center;\n\tdisplay: flex;\n\theight: ", "px;\n\tjustify-content: center;\n\tposition: relative;\n"])), (0, _constants.gridSize)() * 12);
|
|
90
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
91
|
+
var CardContainer = exports.CardContainer = _styled.default.div(_templateObject19 || (_templateObject19 = (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% ", "px;\n\tbox-sizing: content-box;\n\tpadding: ", ";\n\tbox-shadow: ", ";\n\tborder-radius: ", ";\n\n\toverflow: hidden;\n"])), function (props) {
|
|
92
92
|
return props.isDisabledUser ? _constants2.headerBgColorDisabledUser : _constants2.headerBgColor;
|
|
93
93
|
}, function (props) {
|
|
94
94
|
return props.isDisabledUser ? _constants2.headerBgColorDisabledUser : _constants2.headerBgColor;
|
|
@@ -98,11 +98,11 @@ var CardContainer = exports.CardContainer = _styled.default.div(_templateObject1
|
|
|
98
98
|
return props.withoutElevation ? '' : "".concat((0, _constants.borderRadius)(), "px");
|
|
99
99
|
});
|
|
100
100
|
|
|
101
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
102
|
-
var DetailsLabel = exports.DetailsLabel = _styled.default.div(_templateObject20 || (_templateObject20 = (0, _taggedTemplateLiteral2.default)(["\n
|
|
101
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
102
|
+
var DetailsLabel = exports.DetailsLabel = _styled.default.div(_templateObject20 || (_templateObject20 = (0, _taggedTemplateLiteral2.default)(["\n\tdisplay: flex;\n\talign-items: center;\n\tline-height: 24px;\n\tfont-size: ", "px;\n\tmargin: ", " 0 0 0;\n\twhite-space: nowrap;\n\n\t& + & {\n\t\tmargin-top: ", ";\n\t}\n"])), (0, _constants.gridSize)() * 1.5, "var(--ds-space-200, 16px)", "var(--ds-space-025, 2px)");
|
|
103
103
|
|
|
104
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
105
|
-
var DetailsLabelIcon = exports.DetailsLabelIcon = _styled.default.div(_templateObject21 || (_templateObject21 = (0, _taggedTemplateLiteral2.default)(["\n
|
|
104
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
105
|
+
var DetailsLabelIcon = exports.DetailsLabelIcon = _styled.default.div(_templateObject21 || (_templateObject21 = (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)");
|
|
106
106
|
|
|
107
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
108
|
-
var DetailsLabelText = exports.DetailsLabelText = _styled.default.span(_templateObject22 || (_templateObject22 = (0, _taggedTemplateLiteral2.default)(["\n
|
|
107
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
108
|
+
var DetailsLabelText = exports.DetailsLabelText = _styled.default.span(_templateObject22 || (_templateObject22 = (0, _taggedTemplateLiteral2.default)(["\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tcolor: ", ";\n\tpadding-left: ", ";\n"])), _constants2.labelTextColor, "var(--ds-space-050, 4px)");
|
package/dist/cjs/styled/Error.js
CHANGED
|
@@ -10,29 +10,33 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
10
10
|
var _constants = require("@atlaskit/theme/constants");
|
|
11
11
|
var _typography = require("@atlaskit/theme/typography");
|
|
12
12
|
var _constants2 = require("./constants");
|
|
13
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
14
14
|
var ErrorWrapper = exports.ErrorWrapper = _styled.default.div({
|
|
15
15
|
textAlign: 'center',
|
|
16
16
|
padding: "var(--ds-space-300, 24px)",
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
17
18
|
color: _constants2.errorIconColor
|
|
18
19
|
});
|
|
19
20
|
|
|
20
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
21
22
|
var ErrorTitle = exports.ErrorTitle = _styled.default.p({
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
22
24
|
color: _constants2.errorTitleColor,
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
23
26
|
lineHeight: "".concat((0, _constants.gridSize)() * 3, "px"),
|
|
24
27
|
margin: "var(--ds-space-100, 8px)".concat(" 0")
|
|
25
28
|
});
|
|
26
29
|
|
|
27
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
28
31
|
var ErrorText = exports.ErrorText = _styled.default.span({
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
29
33
|
color: _constants2.errorTextColor
|
|
30
34
|
});
|
|
31
35
|
|
|
32
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
33
37
|
var TeamErrorTitle = exports.TeamErrorTitle = _styled.default.p(_typography.h400);
|
|
34
38
|
|
|
35
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
36
40
|
var TeamErrorText = exports.TeamErrorText = _styled.default.p({
|
|
37
41
|
color: "var(--ds-text-subtlest, ".concat(_colors.N200, ")"),
|
|
38
42
|
marginTop: "var(--ds-space-100, 8px)"
|
|
@@ -8,35 +8,38 @@ exports.ReportingLinesSection = exports.ReportingLinesHeading = exports.OffsetWr
|
|
|
8
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
9
|
var _constants = require("@atlaskit/theme/constants");
|
|
10
10
|
var _constants2 = require("./constants");
|
|
11
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
12
12
|
var ReportingLinesSection = exports.ReportingLinesSection = _styled.default.div({
|
|
13
13
|
// Minor left margin to align better with existing icon fields
|
|
14
14
|
marginLeft: "var(--ds-space-050, 4px)",
|
|
15
15
|
marginTop: "var(--ds-space-100, 8px)"
|
|
16
16
|
});
|
|
17
17
|
|
|
18
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
19
19
|
var ReportingLinesHeading = exports.ReportingLinesHeading = _styled.default.h3({
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
20
21
|
color: _constants2.appLabelTextColor,
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
21
23
|
fontSize: "".concat((0, _constants.gridSize)() * 1.5, "px"),
|
|
22
24
|
fontWeight: 600,
|
|
23
25
|
marginBottom: "var(--ds-space-100, 8px)"
|
|
24
26
|
});
|
|
25
27
|
|
|
26
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
27
29
|
var ManagerSection = exports.ManagerSection = _styled.default.div({
|
|
28
30
|
display: 'flex',
|
|
29
31
|
alignItems: 'center',
|
|
30
32
|
margin: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-050, 4px)")
|
|
31
33
|
});
|
|
32
34
|
|
|
33
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
34
36
|
var ManagerName = exports.ManagerName = _styled.default.span({
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
35
38
|
fontSize: "".concat((0, _constants.gridSize)() * 1.5, "px"),
|
|
36
39
|
marginLeft: "var(--ds-space-100, 8px)"
|
|
37
40
|
});
|
|
38
41
|
|
|
39
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
40
43
|
var OffsetWrapper = exports.OffsetWrapper = _styled.default.div({
|
|
41
44
|
marginTop: "var(--ds-space-050, 4px)",
|
|
42
45
|
// Offset left margin so the avatar aligns with the heading
|
|
@@ -12,43 +12,48 @@ var _constants = require("@atlaskit/theme/constants");
|
|
|
12
12
|
var _typography = require("@atlaskit/theme/typography");
|
|
13
13
|
var _constants2 = require("./constants");
|
|
14
14
|
var _templateObject;
|
|
15
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
16
16
|
var CardTriggerWrapper = exports.CardTriggerWrapper = _styled.default.div({
|
|
17
17
|
display: 'inherit'
|
|
18
18
|
});
|
|
19
19
|
|
|
20
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
21
21
|
var CardWrapper = exports.CardWrapper = _styled.default.div({
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
22
23
|
backgroundColor: _constants2.bgColor,
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
23
25
|
borderRadius: "".concat((0, _constants.borderRadius)(), "px"),
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
24
27
|
width: "".concat((0, _constants.gridSize)() * 40, "px"),
|
|
25
28
|
position: 'relative',
|
|
26
29
|
WebkitFontSmoothing: 'antialiased',
|
|
27
30
|
MozOsxFontSmoothing: 'grayscale'
|
|
28
31
|
});
|
|
29
32
|
|
|
30
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
31
34
|
var TeamForbiddenErrorStateWrapper = exports.TeamForbiddenErrorStateWrapper = _styled.default.div({
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
32
36
|
width: "".concat((0, _constants.gridSize)() * 40, "px"),
|
|
33
37
|
position: 'relative'
|
|
34
38
|
});
|
|
35
39
|
|
|
36
|
-
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled --
|
|
37
|
-
var CardHeader = exports.CardHeader = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n
|
|
40
|
+
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
41
|
+
var CardHeader = exports.CardHeader = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\tbackground-color: ", ";\n\tbackground-image: ", ";\n\tbackground-repeat: no-repeat;\n\tbackground-position: center;\n\tbackground-size: cover;\n\tbox-sizing: content-box;\n\theight: ", "px;\n"])), function (props) {
|
|
38
42
|
return props.isLoading ? "var(--ds-background-neutral, ".concat(_colors.N20, ")") : props.image ? '' : _constants2.teamHeaderBgColor;
|
|
39
43
|
}, function (props) {
|
|
40
44
|
return props.image ? "url(".concat(props.image, ")") : '';
|
|
41
45
|
}, (0, _constants.gridSize)() * 16);
|
|
42
46
|
|
|
43
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
44
48
|
var CardContent = exports.CardContent = _styled.default.div({
|
|
45
49
|
display: 'flex',
|
|
46
50
|
flexDirection: 'column',
|
|
47
51
|
padding: "var(--ds-space-300, 24px)",
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
48
53
|
minHeight: "".concat((0, _constants.gridSize)() * 13, "px")
|
|
49
54
|
});
|
|
50
55
|
|
|
51
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
56
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
52
57
|
var TeamName = exports.TeamName = _styled.default.h6(_typography.h600, {
|
|
53
58
|
textTransform: 'none',
|
|
54
59
|
overflow: 'hidden',
|
|
@@ -58,26 +63,26 @@ var TeamName = exports.TeamName = _styled.default.h6(_typography.h600, {
|
|
|
58
63
|
WebkitBoxOrient: 'vertical'
|
|
59
64
|
});
|
|
60
65
|
|
|
61
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
66
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
62
67
|
var MemberCount = exports.MemberCount = _styled.default.div({
|
|
63
68
|
color: "var(--ds-text-subtlest, ".concat(_colors.N200, ")"),
|
|
64
69
|
marginTop: "var(--ds-space-050, 4px)"
|
|
65
70
|
});
|
|
66
71
|
|
|
67
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
72
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
68
73
|
var AvatarSection = exports.AvatarSection = _styled.default.div({
|
|
69
74
|
marginTop: "var(--ds-space-200, 16px)",
|
|
70
75
|
marginLeft: "var(--ds-space-negative-025, -2px)"
|
|
71
76
|
});
|
|
72
77
|
|
|
73
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
78
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
74
79
|
var DescriptionWrapper = exports.DescriptionWrapper = _styled.default.div({
|
|
75
80
|
marginTop: "var(--ds-space-200, 16px)",
|
|
76
81
|
alignItems: 'center',
|
|
77
82
|
display: 'flex'
|
|
78
83
|
});
|
|
79
84
|
|
|
80
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
85
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
81
86
|
var Description = exports.Description = _styled.default.span({
|
|
82
87
|
overflow: 'hidden',
|
|
83
88
|
maxHeight: '60px',
|
|
@@ -86,7 +91,7 @@ var Description = exports.Description = _styled.default.span({
|
|
|
86
91
|
WebkitBoxOrient: 'vertical'
|
|
87
92
|
});
|
|
88
93
|
|
|
89
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
94
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
90
95
|
var ActionButtons = exports.ActionButtons = _styled.default.div({
|
|
91
96
|
width: 'calc(100% + 8px)',
|
|
92
97
|
display: 'flex',
|
|
@@ -95,25 +100,25 @@ var ActionButtons = exports.ActionButtons = _styled.default.div({
|
|
|
95
100
|
backgroundColor: "var(--ds-surface-overlay, hsla(0, 100%, 100%, 0.2))"
|
|
96
101
|
});
|
|
97
102
|
|
|
98
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
103
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
99
104
|
var WrappedButton = exports.WrappedButton = _styled.default.div({
|
|
100
105
|
flexBasis: 0,
|
|
101
106
|
flexGrow: 1,
|
|
102
107
|
marginLeft: "var(--ds-space-100, 8px)"
|
|
103
108
|
});
|
|
104
109
|
|
|
105
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
110
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
106
111
|
var MoreButton = exports.MoreButton = _styled.default.div({
|
|
107
112
|
marginLeft: "var(--ds-space-100, 8px)"
|
|
108
113
|
});
|
|
109
114
|
|
|
110
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
115
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
111
116
|
var LoadingWrapper = exports.LoadingWrapper = _styled.default.div({
|
|
112
117
|
textAlign: 'center',
|
|
113
118
|
marginTop: "var(--ds-space-500, 40px)"
|
|
114
119
|
});
|
|
115
120
|
|
|
116
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
121
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
117
122
|
var AccessLockSVGWrapper = exports.AccessLockSVGWrapper = _styled.default.div({
|
|
118
123
|
marginBottom: "var(--ds-space-300, 24px)"
|
|
119
124
|
});
|
|
@@ -44,7 +44,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
44
44
|
actionSubjectId: actionSubjectId,
|
|
45
45
|
attributes: _objectSpread(_objectSpread({
|
|
46
46
|
packageName: "@atlaskit/profilecard",
|
|
47
|
-
packageVersion: "19.14.
|
|
47
|
+
packageVersion: "19.14.1"
|
|
48
48
|
}, attributes), {}, {
|
|
49
49
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
50
50
|
})
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { isFedRamp } from '@atlaskit/atlassian-context';
|
|
2
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
1
3
|
import TeamCentralCardClient from './TeamCentralCardClient';
|
|
2
4
|
import TeamProfileCardClient from './TeamProfileCardClient';
|
|
3
5
|
import UserProfileCardClient from './UserProfileCardClient';
|
|
@@ -38,6 +40,11 @@ class ProfileCardClient {
|
|
|
38
40
|
}
|
|
39
41
|
}
|
|
40
42
|
function maybeCreateTeamCentralClient(config, clients) {
|
|
43
|
+
if (getBooleanFF('platform.profilecard-disable-team-central-client-in-fedramp_ilnm7')) {
|
|
44
|
+
if (isFedRamp()) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
41
48
|
if (clients !== null && clients !== void 0 && clients.teamCentralClient) {
|
|
42
49
|
return clients.teamCentralClient;
|
|
43
50
|
}
|
|
@@ -67,7 +67,7 @@ export const addHeaders = headers => {
|
|
|
67
67
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
68
68
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
69
69
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
70
|
-
headers.append('atl-client-version', "19.14.
|
|
70
|
+
headers.append('atl-client-version', "19.14.1");
|
|
71
71
|
return headers;
|
|
72
72
|
};
|
|
73
73
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -31,7 +31,7 @@ const disabledAccountDesc = (statusModifiedDate, disabledAccountMessage, status
|
|
|
31
31
|
const secondSentence = /*#__PURE__*/React.createElement(FormattedMessage, messages[msgKey]);
|
|
32
32
|
return /*#__PURE__*/React.createElement("p", {
|
|
33
33
|
"data-testid": "profilecard-disabled-account"
|
|
34
|
-
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.generalDescMsgForDisabledUser),
|
|
34
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.generalDescMsgForDisabledUser), " ", secondSentence);
|
|
35
35
|
};
|
|
36
36
|
const CustomLozenges = ({
|
|
37
37
|
lozenges = []
|