@atlaskit/profilecard 23.16.4 → 23.16.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/Team/TeamLoadingState.js +4 -4
- package/dist/cjs/components/Team/TeamProfileCard.js +5 -4
- package/dist/cjs/components/User/ProfileCard.js +3 -2
- package/dist/cjs/components/User/ProfileCardResourced.js +4 -4
- package/dist/cjs/components/User/ProfileCardTrigger.js +2 -2
- package/dist/cjs/components/User/UserLoadingState.js +2 -2
- package/dist/cjs/components/common/LoadingState.js +2 -2
- package/dist/cjs/styled/Card.compiled.css +0 -3
- package/dist/cjs/styled/Card.js +59 -92
- package/dist/cjs/styled/TeamCard.compiled.css +1 -13
- package/dist/cjs/styled/TeamCard.js +2 -90
- package/dist/cjs/styled/TeamTrigger.compiled.css +16 -0
- package/dist/cjs/styled/TeamTrigger.js +108 -0
- package/dist/cjs/styled/UserTrigger.compiled.css +7 -0
- package/dist/cjs/styled/UserTrigger.js +56 -0
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/components/Team/TeamLoadingState.js +1 -1
- package/dist/es2019/components/Team/TeamProfileCard.js +2 -1
- package/dist/es2019/components/User/ProfileCard.js +2 -1
- package/dist/es2019/components/User/ProfileCardResourced.js +1 -1
- package/dist/es2019/components/User/ProfileCardTrigger.js +1 -1
- package/dist/es2019/components/User/UserLoadingState.js +1 -1
- package/dist/es2019/components/common/LoadingState.js +1 -1
- package/dist/es2019/styled/Card.compiled.css +0 -3
- package/dist/es2019/styled/Card.js +1 -42
- package/dist/es2019/styled/TeamCard.compiled.css +1 -13
- package/dist/es2019/styled/TeamCard.js +1 -84
- package/dist/es2019/styled/TeamTrigger.compiled.css +16 -0
- package/dist/es2019/styled/TeamTrigger.js +97 -0
- package/dist/es2019/styled/UserTrigger.compiled.css +7 -0
- package/dist/es2019/styled/UserTrigger.js +57 -0
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/components/Team/TeamLoadingState.js +1 -1
- package/dist/esm/components/Team/TeamProfileCard.js +2 -1
- package/dist/esm/components/User/ProfileCard.js +2 -1
- package/dist/esm/components/User/ProfileCardResourced.js +1 -1
- package/dist/esm/components/User/ProfileCardTrigger.js +1 -1
- package/dist/esm/components/User/UserLoadingState.js +1 -1
- package/dist/esm/components/common/LoadingState.js +1 -1
- package/dist/esm/styled/Card.compiled.css +0 -3
- package/dist/esm/styled/Card.js +59 -92
- package/dist/esm/styled/TeamCard.compiled.css +1 -13
- package/dist/esm/styled/TeamCard.js +1 -90
- package/dist/esm/styled/TeamTrigger.compiled.css +16 -0
- package/dist/esm/styled/TeamTrigger.js +103 -0
- package/dist/esm/styled/UserTrigger.compiled.css +7 -0
- package/dist/esm/styled/UserTrigger.js +52 -0
- package/dist/esm/util/analytics.js +1 -1
- package/dist/types/styled/Card.d.ts +0 -10
- package/dist/types/styled/TeamCard.d.ts +0 -17
- package/dist/types/styled/TeamTrigger.d.ts +18 -0
- package/dist/types/styled/UserTrigger.d.ts +11 -0
- package/dist/types-ts4.5/styled/Card.d.ts +0 -10
- package/dist/types-ts4.5/styled/TeamCard.d.ts +0 -17
- package/dist/types-ts4.5/styled/TeamTrigger.d.ts +18 -0
- package/dist/types-ts4.5/styled/UserTrigger.d.ts +11 -0
- package/package.json +2 -2
package/dist/esm/styled/Card.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* Card.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
2
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
3
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19
|
|
3
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19;
|
|
4
4
|
import "./Card.compiled.css";
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
/* eslint-disable @atlaskit/design-system/no-styled-tagged-template-expression -- needs manual remediation */
|
|
@@ -14,10 +14,9 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
14
14
|
import { Box, Text } from '@atlaskit/primitives/compiled';
|
|
15
15
|
import { B200, N50A, N60A } from '@atlaskit/theme/colors';
|
|
16
16
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
17
|
-
import { appLabelBgColor, appLabelTextColor,
|
|
17
|
+
import { appLabelBgColor, appLabelTextColor, headerBgColor, headerBgColorDisabledUser, headerTextColor, labelIconColor, labelTextColor } from './constants';
|
|
18
18
|
var kudosButtonAnimationTransformationCompiled = null;
|
|
19
19
|
var styles = {
|
|
20
|
-
cardWrapper: "_2rkoglpi _1bsb1gwv",
|
|
21
20
|
profileImage: "_kqswstnw _154i1ejb _1ltv1ejb",
|
|
22
21
|
actionsFlexSpacer: "_16jlkb7n _1o9zidpf _i0dl1wug",
|
|
23
22
|
kudosBlobAnimationStyle: "_1e0cglyw _4t3i1w81 _1bsb1w81 _1pby1mrw _kqswstnw _154ixy5q",
|
|
@@ -30,7 +29,6 @@ var styles = {
|
|
|
30
29
|
disabledInfo: "_11c81o8v _syaz1fxt _19pkutpp _2hwxze3t _18u0ze3t _otyrze3t",
|
|
31
30
|
lozengeWrapper: "_19pkpxbi _1e0c1ule",
|
|
32
31
|
customLozengeContainer: "_1e0c1txw _2lx2vrvc _1n261g80 _1bah1y6m _19pkutpp",
|
|
33
|
-
spinnerContainer: "_4cvr1h6o _1e0c1txw _4t3i16xz _1bah1h6o _kqswh2mm",
|
|
34
32
|
cardContainer: "_1reo15vq _18m915vq _kqswh2mm _12vemgnk _1lrw14bs _ca0q1ejb _19bv1ejb _u5f31ejb _n3td1ejb",
|
|
35
33
|
cardContainerActiveUser: "_1itk1419",
|
|
36
34
|
cardContainerDisabledUser: "_1itkkf3t",
|
|
@@ -43,43 +41,24 @@ var styles = {
|
|
|
43
41
|
jobTitleLabel: "_19pkze3t _otyrze3t _18u0utpp _2hwxze3t",
|
|
44
42
|
appTitleLabel: "_2rkoglpi _syaz1fxt _u5f312x7 _19bv12x7 _1bsb1ns9 _19pk1b66 _otyrze3t _18u0utpp _2hwxze3t"
|
|
45
43
|
};
|
|
46
|
-
export var
|
|
47
|
-
var children = _ref.children
|
|
48
|
-
role = _ref.role,
|
|
49
|
-
testId = _ref.testId,
|
|
50
|
-
labelledBy = _ref.labelledBy;
|
|
51
|
-
return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
|
|
52
|
-
xcss: cx(styles.cardWrapper),
|
|
53
|
-
backgroundColor: 'elevation.surface.overlay',
|
|
54
|
-
role: role,
|
|
55
|
-
testId: testId,
|
|
56
|
-
"aria-labelledby": labelledBy
|
|
57
|
-
}, children) : /*#__PURE__*/React.createElement(CardWrapperLegacy, {
|
|
58
|
-
"data-testid": testId,
|
|
59
|
-
role: role,
|
|
60
|
-
"aria-labelledby": labelledBy
|
|
61
|
-
}, children);
|
|
62
|
-
};
|
|
63
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
64
|
-
var CardWrapperLegacy = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tbackground-color: ", ";\n\tborder-radius: ", ";\n\twidth: 360px;\n"])), bgColor, "var(--ds-border-radius, 3px)");
|
|
65
|
-
export var ProfileImage = function ProfileImage(_ref2) {
|
|
66
|
-
var children = _ref2.children;
|
|
44
|
+
export var ProfileImage = function ProfileImage(_ref) {
|
|
45
|
+
var children = _ref.children;
|
|
67
46
|
return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
|
|
68
47
|
xcss: cx(styles.profileImage)
|
|
69
48
|
}, children) : /*#__PURE__*/React.createElement(ProfileImageLegacy, null, children);
|
|
70
49
|
};
|
|
71
50
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
72
|
-
var ProfileImageLegacy = styled.div(
|
|
51
|
+
var ProfileImageLegacy = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tposition: absolute;\n\ttop: ", ";\n\tleft: ", ";\n"])), "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)");
|
|
73
52
|
export var ActionsFlexSpacer = function ActionsFlexSpacer() {
|
|
74
53
|
return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
|
|
75
54
|
xcss: cx(styles.actionsFlexSpacer)
|
|
76
55
|
}) : /*#__PURE__*/React.createElement(ActionsFlexSpacerLegacy, null);
|
|
77
56
|
};
|
|
78
57
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
79
|
-
var ActionsFlexSpacerLegacy = styled.div(
|
|
58
|
+
var ActionsFlexSpacerLegacy = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\tflex: 1 0 auto;\n"])));
|
|
80
59
|
|
|
81
60
|
// eslint-disable-next-line @atlaskit/design-system/no-keyframes-tagged-template-expression -- needs manual remediation
|
|
82
|
-
var kudosButtonAnimationTransformation = keyframes(
|
|
61
|
+
var kudosButtonAnimationTransformation = keyframes(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n 0% { transform: translate(-80px, -50px); }\n 100% { transform: translate(90px, -70px); }\n"])));
|
|
83
62
|
export var KudosBlobAnimationStyle = function KudosBlobAnimationStyle() {
|
|
84
63
|
return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
|
|
85
64
|
xcss: cx(styles.kudosBlobAnimationStyle)
|
|
@@ -92,7 +71,7 @@ export var KudosBlobAnimationStyle = function KudosBlobAnimationStyle() {
|
|
|
92
71
|
};
|
|
93
72
|
|
|
94
73
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
95
|
-
var KudosBlobAnimationStyleLegacy = styled.div(
|
|
74
|
+
var KudosBlobAnimationStyleLegacy = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\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)");
|
|
96
75
|
export var KudosBlobAnimation = function KudosBlobAnimation() {
|
|
97
76
|
return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
|
|
98
77
|
xcss: cx(styles.kudosBlobAnimationStyle)
|
|
@@ -101,26 +80,26 @@ export var KudosBlobAnimation = function KudosBlobAnimation() {
|
|
|
101
80
|
var KudosBlobAnimationLegacy = function KudosBlobAnimationLegacy() {
|
|
102
81
|
return /*#__PURE__*/React.createElement(KudosBlobAnimationStyle, null);
|
|
103
82
|
};
|
|
104
|
-
export var AnimationWrapper = function AnimationWrapper(
|
|
105
|
-
var children =
|
|
83
|
+
export var AnimationWrapper = function AnimationWrapper(_ref2) {
|
|
84
|
+
var children = _ref2.children;
|
|
106
85
|
return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
|
|
107
86
|
xcss: cx(styles.animationWrapper)
|
|
108
87
|
}, children) : /*#__PURE__*/React.createElement(AnimationWrapperLegacy, null, children);
|
|
109
88
|
};
|
|
110
89
|
|
|
111
90
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
112
|
-
var AnimationWrapperLegacy = styled.div(
|
|
113
|
-
export var AnimatedKudosButton = function AnimatedKudosButton(
|
|
114
|
-
var children =
|
|
91
|
+
var AnimationWrapperLegacy = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\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"])), borderRadius());
|
|
92
|
+
export var AnimatedKudosButton = function AnimatedKudosButton(_ref3) {
|
|
93
|
+
var children = _ref3.children;
|
|
115
94
|
return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
|
|
116
95
|
xcss: cx(styles.animatedKudosButton)
|
|
117
96
|
}, children) : /*#__PURE__*/React.createElement(AnimatedKudosButtonLegacy, null, children);
|
|
118
97
|
};
|
|
119
98
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
120
|
-
var AnimatedKudosButtonLegacy = styled.div(
|
|
121
|
-
export var ActionButtonGroup = function ActionButtonGroup(
|
|
122
|
-
var children =
|
|
123
|
-
testId =
|
|
99
|
+
var AnimatedKudosButtonLegacy = styled.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\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)");
|
|
100
|
+
export var ActionButtonGroup = function ActionButtonGroup(_ref4) {
|
|
101
|
+
var children = _ref4.children,
|
|
102
|
+
testId = _ref4.testId;
|
|
124
103
|
return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
|
|
125
104
|
testId: testId,
|
|
126
105
|
xcss: cx(styles.actionButtonGroup)
|
|
@@ -129,10 +108,10 @@ export var ActionButtonGroup = function ActionButtonGroup(_ref5) {
|
|
|
129
108
|
}, children);
|
|
130
109
|
};
|
|
131
110
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
132
|
-
var ActionButtonGroupLegacy = styled.div(
|
|
133
|
-
export var OverflowActionButtonsWrapper = function OverflowActionButtonsWrapper(
|
|
134
|
-
var children =
|
|
135
|
-
testId =
|
|
111
|
+
var ActionButtonGroupLegacy = styled.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\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(B200, ")"), "var(--ds-border-width, 2px)", "var(--ds-border-width, 2px)");
|
|
112
|
+
export var OverflowActionButtonsWrapper = function OverflowActionButtonsWrapper(_ref5) {
|
|
113
|
+
var children = _ref5.children,
|
|
114
|
+
testId = _ref5.testId;
|
|
136
115
|
return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
|
|
137
116
|
testId: testId,
|
|
138
117
|
xcss: cx(styles.overflowActionButtonsWrapper)
|
|
@@ -141,49 +120,49 @@ export var OverflowActionButtonsWrapper = function OverflowActionButtonsWrapper(
|
|
|
141
120
|
}, children);
|
|
142
121
|
};
|
|
143
122
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
144
|
-
var OverflowActionButtonsWrapperLegacy = styled.div(
|
|
145
|
-
export var CardContent = function CardContent(
|
|
146
|
-
var children =
|
|
123
|
+
var OverflowActionButtonsWrapperLegacy = styled.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\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(B200, ")"), "var(--ds-border-width, 2px)", "var(--ds-border-width, 2px)");
|
|
124
|
+
export var CardContent = function CardContent(_ref6) {
|
|
125
|
+
var children = _ref6.children;
|
|
147
126
|
return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
|
|
148
127
|
xcss: cx(styles.cardContent)
|
|
149
128
|
}, children) : /*#__PURE__*/React.createElement(CardContentLegacy, null, children);
|
|
150
129
|
};
|
|
151
130
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
152
|
-
var CardContentLegacy = styled.div(
|
|
153
|
-
export var DetailsGroup = function DetailsGroup(
|
|
154
|
-
var children =
|
|
131
|
+
var CardContentLegacy = styled.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tmin-height: 136px;\n"])));
|
|
132
|
+
export var DetailsGroup = function DetailsGroup(_ref7) {
|
|
133
|
+
var children = _ref7.children;
|
|
155
134
|
return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
|
|
156
135
|
xcss: cx(styles.detailsGroup)
|
|
157
136
|
}, children) : /*#__PURE__*/React.createElement(DetailsGroupLegacy, null, children);
|
|
158
137
|
};
|
|
159
138
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
160
|
-
var DetailsGroupLegacy = styled.div(
|
|
161
|
-
export var DisabledInfo = function DisabledInfo(
|
|
162
|
-
var children =
|
|
139
|
+
var DetailsGroupLegacy = styled.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tmargin-left: 116px;\n\twidth: 196px;\n"])));
|
|
140
|
+
export var DisabledInfo = function DisabledInfo(_ref8) {
|
|
141
|
+
var children = _ref8.children;
|
|
163
142
|
return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
|
|
164
143
|
xcss: cx(styles.disabledInfo)
|
|
165
144
|
}, children) : /*#__PURE__*/React.createElement(DisabledInfoLegacy, null, children);
|
|
166
145
|
};
|
|
167
146
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
168
|
-
var DisabledInfoLegacy = styled.div(
|
|
169
|
-
export var LozengeWrapper = function LozengeWrapper(
|
|
170
|
-
var children =
|
|
147
|
+
var DisabledInfoLegacy = styled.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n\tfont: ", ";\n\tcolor: ", ";\n\tmargin: ", " 0 0 0;\n\tline-height: 16px;\n"])), "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)", labelTextColor, "var(--ds-space-150, 12px)");
|
|
148
|
+
export var LozengeWrapper = function LozengeWrapper(_ref9) {
|
|
149
|
+
var children = _ref9.children;
|
|
171
150
|
return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
|
|
172
151
|
xcss: cx(styles.lozengeWrapper)
|
|
173
152
|
}, children) : /*#__PURE__*/React.createElement(LozengeWrapperLegacy, null, children);
|
|
174
153
|
};
|
|
175
154
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
176
|
-
var LozengeWrapperLegacy = styled.div(
|
|
177
|
-
export var CustomLozengeContainer = function CustomLozengeContainer(
|
|
178
|
-
var children =
|
|
155
|
+
var LozengeWrapperLegacy = styled.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n\tmargin-top: ", ";\n\ttext-transform: uppercase;\n\tdisplay: block;\n"])), "var(--ds-space-200, 16px)");
|
|
156
|
+
export var CustomLozengeContainer = function CustomLozengeContainer(_ref10) {
|
|
157
|
+
var children = _ref10.children;
|
|
179
158
|
return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
|
|
180
159
|
xcss: cx(styles.customLozengeContainer)
|
|
181
160
|
}, children) : /*#__PURE__*/React.createElement(CustomLozengeContainerLegacy, null, children);
|
|
182
161
|
};
|
|
183
162
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
184
|
-
var CustomLozengeContainerLegacy = styled(LozengeWrapper)(
|
|
185
|
-
export var JobTitleLabel = function JobTitleLabel(
|
|
186
|
-
var children =
|
|
163
|
+
var CustomLozengeContainerLegacy = styled(LozengeWrapper)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\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)");
|
|
164
|
+
export var JobTitleLabel = function JobTitleLabel(_ref11) {
|
|
165
|
+
var children = _ref11.children;
|
|
187
166
|
return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
|
|
188
167
|
xcss: cx(styles.jobTitleLabel)
|
|
189
168
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
@@ -192,9 +171,9 @@ export var JobTitleLabel = function JobTitleLabel(_ref12) {
|
|
|
192
171
|
}, children)) : /*#__PURE__*/React.createElement(JobTitleLabelLegacy, null, children);
|
|
193
172
|
};
|
|
194
173
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
195
|
-
var JobTitleLabelLegacy = styled.span(
|
|
196
|
-
export var AppTitleLabel = function AppTitleLabel(
|
|
197
|
-
var children =
|
|
174
|
+
var JobTitleLabelLegacy = styled.span(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n\n\tfont: ", ";\n\tcolor: ", ";\n\tmargin: 0 0 ", " 0;\n"])), "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)", headerTextColor, "var(--ds-space-150, 12px)");
|
|
175
|
+
export var AppTitleLabel = function AppTitleLabel(_ref12) {
|
|
176
|
+
var children = _ref12.children;
|
|
198
177
|
return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
|
|
199
178
|
xcss: cx(styles.appTitleLabel),
|
|
200
179
|
backgroundColor: "color.background.neutral"
|
|
@@ -205,23 +184,11 @@ export var AppTitleLabel = function AppTitleLabel(_ref13) {
|
|
|
205
184
|
}, children)) : /*#__PURE__*/React.createElement(AppTitleLabelLegacy, null, children);
|
|
206
185
|
};
|
|
207
186
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
208
|
-
var AppTitleLabelLegacy = styled.span(
|
|
209
|
-
export var
|
|
210
|
-
var children =
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
testId: testId,
|
|
214
|
-
xcss: cx(styles.spinnerContainer)
|
|
215
|
-
}, children) : /*#__PURE__*/React.createElement(SpinnerContainerLegacy, {
|
|
216
|
-
"data-testid": testId
|
|
217
|
-
}, children);
|
|
218
|
-
};
|
|
219
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
220
|
-
var SpinnerContainerLegacy = styled.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n\talign-items: center;\n\tdisplay: flex;\n\theight: 96px;\n\tjustify-content: center;\n\tposition: relative;\n"])));
|
|
221
|
-
export var CardContainer = function CardContainer(_ref15) {
|
|
222
|
-
var children = _ref15.children,
|
|
223
|
-
isDisabledUser = _ref15.isDisabledUser,
|
|
224
|
-
withoutElevation = _ref15.withoutElevation;
|
|
187
|
+
var AppTitleLabelLegacy = styled.span(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\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"])), appLabelBgColor, appLabelTextColor, borderRadius(), "var(--ds-space-075, 6px)", "var(--ds-font-weight-bold, 700)", "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)", "var(--ds-space-050, 4px)", "var(--ds-space-150, 12px)");
|
|
188
|
+
export var CardContainer = function CardContainer(_ref13) {
|
|
189
|
+
var children = _ref13.children,
|
|
190
|
+
isDisabledUser = _ref13.isDisabledUser,
|
|
191
|
+
withoutElevation = _ref13.withoutElevation;
|
|
225
192
|
return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
|
|
226
193
|
xcss: cx(styles.cardContainer, isDisabledUser ? styles.cardContainerDisabledUser : styles.cardContainerActiveUser, !withoutElevation && styles.cardContainerWithElevation)
|
|
227
194
|
}, children) : /*#__PURE__*/React.createElement(CardContainerLegacy, {
|
|
@@ -230,7 +197,7 @@ export var CardContainer = function CardContainer(_ref15) {
|
|
|
230
197
|
}, children);
|
|
231
198
|
};
|
|
232
199
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
233
|
-
var CardContainerLegacy = styled.div(
|
|
200
|
+
var CardContainerLegacy = styled.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\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) {
|
|
234
201
|
return props.isDisabledUser ? headerBgColorDisabledUser : headerBgColor;
|
|
235
202
|
}, function (props) {
|
|
236
203
|
return props.isDisabledUser ? headerBgColorDisabledUser : headerBgColor;
|
|
@@ -239,31 +206,31 @@ var CardContainerLegacy = styled.div(_templateObject18 || (_templateObject18 = _
|
|
|
239
206
|
}, function (props) {
|
|
240
207
|
return props.withoutElevation ? '' : "".concat(borderRadius(), "px");
|
|
241
208
|
});
|
|
242
|
-
export var DetailsLabel = function DetailsLabel(
|
|
243
|
-
var children =
|
|
244
|
-
|
|
245
|
-
extraTopSpace =
|
|
209
|
+
export var DetailsLabel = function DetailsLabel(_ref14) {
|
|
210
|
+
var children = _ref14.children,
|
|
211
|
+
_ref14$extraTopSpace = _ref14.extraTopSpace,
|
|
212
|
+
extraTopSpace = _ref14$extraTopSpace === void 0 ? false : _ref14$extraTopSpace;
|
|
246
213
|
return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
|
|
247
214
|
xcss: cx(styles.detailsLabel, extraTopSpace && styles.detailsLabelExtraTopSpace)
|
|
248
215
|
}, children) : /*#__PURE__*/React.createElement(DetailsLabelLegacy, null, children);
|
|
249
216
|
};
|
|
250
217
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
251
|
-
var DetailsLabelLegacy = styled.div(
|
|
252
|
-
export var DetailsLabelIcon = function DetailsLabelIcon(
|
|
253
|
-
var children =
|
|
218
|
+
var DetailsLabelLegacy = styled.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\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)");
|
|
219
|
+
export var DetailsLabelIcon = function DetailsLabelIcon(_ref15) {
|
|
220
|
+
var children = _ref15.children;
|
|
254
221
|
return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
|
|
255
222
|
as: "dt",
|
|
256
223
|
xcss: cx(styles.detailsLabelIcon)
|
|
257
224
|
}, children) : /*#__PURE__*/React.createElement(DetailsLabelIconLegacy, null, children);
|
|
258
225
|
};
|
|
259
226
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
260
|
-
var DetailsLabelIconLegacy = styled.dt(
|
|
261
|
-
export var DetailsLabelText = function DetailsLabelText(
|
|
262
|
-
var children =
|
|
227
|
+
var DetailsLabelIconLegacy = styled.dt(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\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"])), labelIconColor, "var(--ds-space-200, 16px)", "var(--ds-space-200, 16px)", "var(--ds-space-050, 4px)");
|
|
228
|
+
export var DetailsLabelText = function DetailsLabelText(_ref16) {
|
|
229
|
+
var children = _ref16.children;
|
|
263
230
|
return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
|
|
264
231
|
as: "dd",
|
|
265
232
|
xcss: cx(styles.detailsLabelText)
|
|
266
233
|
}, children) : /*#__PURE__*/React.createElement(DetailsLabelTextLegacy, null, children);
|
|
267
234
|
};
|
|
268
235
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
269
|
-
var DetailsLabelTextLegacy = styled.dd(
|
|
236
|
+
var DetailsLabelTextLegacy = styled.dd(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\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"])), labelTextColor, "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)", "var(--ds-space-050, 4px)", "var(--ds-space-050, 4px)");
|
|
@@ -1,37 +1,25 @@
|
|
|
1
1
|
._11c8lodh{font:var(--ds-font-heading-medium,normal 500 20px/24px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
-
._2rkoglpi{border-radius:var(--ds-border-radius,4px)}
|
|
3
2
|
._16jlkb7n{flex-grow:1}
|
|
4
3
|
._18m915vq{overflow-y:hidden}
|
|
5
4
|
._18u01i6y{margin-left:var(--ds-space-negative-025,-2px)}
|
|
6
5
|
._18u0u2gc{margin-left:var(--ds-space-100,8px)}
|
|
7
6
|
._18u0x0bf{margin-left:var(--ds-space-negative-100,-8px)}
|
|
8
|
-
._19bv1ejb{padding-left:var(--ds-space-300,24px)}
|
|
9
7
|
._19pk1b66{margin-top:var(--ds-space-050,4px)}
|
|
10
8
|
._19pk1ejb{margin-top:var(--ds-space-300,24px)}
|
|
11
|
-
._19pk1jfw{margin-top:var(--ds-space-500,40px)}
|
|
12
9
|
._19pkpxbi{margin-top:var(--ds-space-200,1pc)}
|
|
13
10
|
._1bah1yb4{justify-content:space-between}
|
|
14
11
|
._1bsb1osq{width:100%}
|
|
15
12
|
._1bsbnklw{width:20pc}
|
|
16
|
-
._1e0c1kw7{display:inherit}
|
|
17
13
|
._1e0c1txw{display:flex}
|
|
18
14
|
._1e0ccj1k{display:-webkit-box}
|
|
19
15
|
._1p1dglyw{text-transform:none}
|
|
20
16
|
._1reo15vq{overflow-x:hidden}
|
|
21
|
-
._1tke1l8a{min-height:78pt}
|
|
22
17
|
._2hwx10v4{margin-right:var(--ds-space-negative-300,-24px)}
|
|
23
|
-
._2lx21bp4{flex-direction:column}
|
|
24
18
|
._4cvr1h6o{align-items:center}
|
|
25
|
-
._4t3i1qr7{height:8pc}
|
|
26
19
|
._c71l1wqb{max-height:60px}
|
|
27
20
|
._c71lckbl{max-height:3pc}
|
|
28
|
-
._ca0q1ejb{padding-top:var(--ds-space-300,24px)}
|
|
29
21
|
._i0dlidpf{flex-basis:0}
|
|
30
22
|
._kqswh2mm{position:relative}
|
|
31
|
-
._n3td1ejb{padding-bottom:var(--ds-space-300,24px)}
|
|
32
23
|
._otyr1ejb{margin-bottom:var(--ds-space-300,24px)}
|
|
33
|
-
._otyr1jfw{margin-bottom:var(--ds-space-500,40px)}
|
|
34
24
|
._otyridpf{margin-bottom:0}
|
|
35
|
-
._syaz1wmz{color:var(--ds-text-subtlest,#6b778c)}
|
|
36
|
-
._u5f31ejb{padding-right:var(--ds-space-300,24px)}
|
|
37
|
-
._y3gn1h6o{text-align:center}
|
|
25
|
+
._syaz1wmz{color:var(--ds-text-subtlest,#6b778c)}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/* TeamCard.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
3
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
-
var _templateObject;
|
|
5
3
|
import "./TeamCard.compiled.css";
|
|
6
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
7
5
|
import React from 'react';
|
|
@@ -12,16 +10,9 @@ import { cx } from '@atlaskit/css';
|
|
|
12
10
|
import Heading from '@atlaskit/heading';
|
|
13
11
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
12
|
import { Box, Text } from '@atlaskit/primitives/compiled';
|
|
15
|
-
import {
|
|
16
|
-
import { borderRadius } from '@atlaskit/theme/constants';
|
|
17
|
-
import { bgColor, teamHeaderBgColor } from './constants';
|
|
18
|
-
import { CoverImage } from './CoverImage';
|
|
13
|
+
import { N200 } from '@atlaskit/theme/colors';
|
|
19
14
|
var styles = {
|
|
20
|
-
cardtriggerwrapper: "_1e0c1kw7",
|
|
21
|
-
cardwrapper: "_2rkoglpi _1bsbnklw _kqswh2mm",
|
|
22
15
|
teamforbiddenerrorstatewrapper: "_1bsbnklw _kqswh2mm",
|
|
23
|
-
cardheader: "_4t3i1qr7 _1bsb1osq",
|
|
24
|
-
cardcontent: "_1e0c1txw _2lx21bp4 _ca0q1ejb _u5f31ejb _n3td1ejb _19bv1ejb _1tke1l8a",
|
|
25
16
|
teamname: "_11c8lodh _1reo15vq _18m915vq _1p1dglyw _c71lckbl _1e0ccj1k",
|
|
26
17
|
membercount: "_syaz1wmz _19pk1b66",
|
|
27
18
|
avatarsection: "_19pkpxbi _18u01i6y",
|
|
@@ -30,41 +21,8 @@ var styles = {
|
|
|
30
21
|
actionbuttons: "_1bsb1osq _1e0c1txw _1bah1yb4 _19pk1ejb _2hwx10v4 _otyridpf _18u0x0bf",
|
|
31
22
|
wrappedbutton: "_i0dlidpf _16jlkb7n _18u0u2gc",
|
|
32
23
|
morebutton: "_18u0u2gc",
|
|
33
|
-
loadingwrapper: "_y3gn1h6o _19pk1jfw _otyr1jfw",
|
|
34
24
|
accesslocksvgwrapper: "_otyr1ejb"
|
|
35
25
|
};
|
|
36
|
-
export var CardTriggerWrapper = function CardTriggerWrapper() {
|
|
37
|
-
return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
|
|
38
|
-
xcss: cx(styles.cardtriggerwrapper)
|
|
39
|
-
}) : /*#__PURE__*/React.createElement(CardTriggerWrapperLegacy, null);
|
|
40
|
-
};
|
|
41
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
42
|
-
var CardTriggerWrapperLegacy = styled.div({
|
|
43
|
-
display: 'inherit'
|
|
44
|
-
});
|
|
45
|
-
export var CardWrapper = function CardWrapper(_ref) {
|
|
46
|
-
var testId = _ref.testId,
|
|
47
|
-
children = _ref.children;
|
|
48
|
-
return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
|
|
49
|
-
xcss: cx(styles.cardwrapper),
|
|
50
|
-
backgroundColor: "elevation.surface.overlay",
|
|
51
|
-
testId: testId
|
|
52
|
-
}, children) : /*#__PURE__*/React.createElement(CardWrapperLegacy, {
|
|
53
|
-
"data-testid": testId
|
|
54
|
-
}, children);
|
|
55
|
-
};
|
|
56
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
57
|
-
var CardWrapperLegacy = styled.div({
|
|
58
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
59
|
-
backgroundColor: bgColor,
|
|
60
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
61
|
-
borderRadius: "".concat(borderRadius(), "px"),
|
|
62
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
63
|
-
width: '320px',
|
|
64
|
-
position: 'relative',
|
|
65
|
-
WebkitFontSmoothing: 'antialiased',
|
|
66
|
-
MozOsxFontSmoothing: 'grayscale'
|
|
67
|
-
});
|
|
68
26
|
export var TeamForbiddenErrorStateWrapper = function TeamForbiddenErrorStateWrapper(props) {
|
|
69
27
|
return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, _extends({
|
|
70
28
|
xcss: cx(styles.teamforbiddenerrorstatewrapper)
|
|
@@ -78,41 +36,6 @@ var TeamForbiddenErrorStateWrapperLegacy = styled.div({
|
|
|
78
36
|
width: '320px',
|
|
79
37
|
position: 'relative'
|
|
80
38
|
});
|
|
81
|
-
export var CardHeader = function CardHeader(_ref2) {
|
|
82
|
-
var image = _ref2.image,
|
|
83
|
-
isLoading = _ref2.isLoading,
|
|
84
|
-
label = _ref2.label;
|
|
85
|
-
return fg('compiled-migration-profilecard') ? isLoading || !image ? /*#__PURE__*/React.createElement(Box, {
|
|
86
|
-
xcss: cx(styles.cardheader),
|
|
87
|
-
backgroundColor: "color.background.neutral"
|
|
88
|
-
}) : /*#__PURE__*/React.createElement(CoverImage, {
|
|
89
|
-
alt: label || '',
|
|
90
|
-
src: image
|
|
91
|
-
}) : /*#__PURE__*/React.createElement(CardHeaderLegacy, {
|
|
92
|
-
image: image,
|
|
93
|
-
isLoading: isLoading
|
|
94
|
-
});
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
// 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
|
|
98
|
-
var CardHeaderLegacy = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\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: 128px;\n"])), function (props) {
|
|
99
|
-
return props.isLoading ? "var(--ds-background-neutral, ".concat(N20, ")") : props.image ? '' : teamHeaderBgColor;
|
|
100
|
-
}, function (props) {
|
|
101
|
-
return props.image ? "url(".concat(props.image, ")") : '';
|
|
102
|
-
});
|
|
103
|
-
export var CardContent = function CardContent(props) {
|
|
104
|
-
return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, _extends({
|
|
105
|
-
xcss: cx(styles.cardcontent)
|
|
106
|
-
}, props)) : /*#__PURE__*/React.createElement(CardContentLegacy, props);
|
|
107
|
-
};
|
|
108
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
109
|
-
var CardContentLegacy = styled.div({
|
|
110
|
-
display: 'flex',
|
|
111
|
-
flexDirection: 'column',
|
|
112
|
-
padding: "var(--ds-space-300, 24px)",
|
|
113
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
114
|
-
minHeight: '104px'
|
|
115
|
-
});
|
|
116
39
|
export var TeamName = function TeamName(props) {
|
|
117
40
|
return fg('compiled-migration-profilecard') ? fg('enable_profilecard_h2tag_a11y_fix') ? /*#__PURE__*/React.createElement(Box, {
|
|
118
41
|
xcss: cx(styles.teamname)
|
|
@@ -214,18 +137,6 @@ export var MoreButton = function MoreButton(props) {
|
|
|
214
137
|
var MoreButtonLegacy = styled.div({
|
|
215
138
|
marginLeft: "var(--ds-space-100, 8px)"
|
|
216
139
|
});
|
|
217
|
-
export var LoadingWrapper = function LoadingWrapper(props) {
|
|
218
|
-
return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, _extends({
|
|
219
|
-
xcss: cx(styles.loadingwrapper)
|
|
220
|
-
}, props)) : /*#__PURE__*/React.createElement(LoadingWrapperLegacy, {
|
|
221
|
-
"data-testid": props.testId
|
|
222
|
-
}, props.children);
|
|
223
|
-
};
|
|
224
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
225
|
-
var LoadingWrapperLegacy = styled.div({
|
|
226
|
-
textAlign: 'center',
|
|
227
|
-
marginTop: "var(--ds-space-500, 40px)"
|
|
228
|
-
});
|
|
229
140
|
export var AccessLockSVGWrapper = function AccessLockSVGWrapper(props) {
|
|
230
141
|
return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, _extends({
|
|
231
142
|
xcss: cx(styles.accesslocksvgwrapper)
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
|
|
2
|
+
._2rkoglpi{border-radius:var(--ds-border-radius,4px)}._19bv1ejb{padding-left:var(--ds-space-300,24px)}
|
|
3
|
+
._19pk1jfw{margin-top:var(--ds-space-500,40px)}
|
|
4
|
+
._1bsb1osq{width:100%}
|
|
5
|
+
._1bsbnklw{width:20pc}
|
|
6
|
+
._1e0c1kw7{display:inherit}
|
|
7
|
+
._1e0c1txw{display:flex}
|
|
8
|
+
._1tke1l8a{min-height:78pt}
|
|
9
|
+
._2lx21bp4{flex-direction:column}
|
|
10
|
+
._4t3i1qr7{height:8pc}
|
|
11
|
+
._ca0q1ejb{padding-top:var(--ds-space-300,24px)}
|
|
12
|
+
._kqswh2mm{position:relative}
|
|
13
|
+
._n3td1ejb{padding-bottom:var(--ds-space-300,24px)}
|
|
14
|
+
._otyr1jfw{margin-bottom:var(--ds-space-500,40px)}
|
|
15
|
+
._u5f31ejb{padding-right:var(--ds-space-300,24px)}
|
|
16
|
+
._y3gn1h6o{text-align:center}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/* TeamTrigger.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
4
|
+
var _templateObject;
|
|
5
|
+
import "./TeamTrigger.compiled.css";
|
|
6
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
7
|
+
import React from 'react';
|
|
8
|
+
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
|
+
import styled from '@emotion/styled';
|
|
11
|
+
import { cx } from '@atlaskit/css';
|
|
12
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
|
+
import { Box } from '@atlaskit/primitives/compiled';
|
|
14
|
+
import { N20 } from '@atlaskit/theme/colors';
|
|
15
|
+
import { borderRadius } from '@atlaskit/theme/constants';
|
|
16
|
+
import { bgColor, teamHeaderBgColor } from './constants';
|
|
17
|
+
import { CoverImage } from './CoverImage';
|
|
18
|
+
var styles = {
|
|
19
|
+
cardtriggerwrapper: "_1e0c1kw7",
|
|
20
|
+
cardwrapper: "_2rkoglpi _1bsbnklw _kqswh2mm",
|
|
21
|
+
cardheader: "_4t3i1qr7 _1bsb1osq",
|
|
22
|
+
cardcontent: "_1e0c1txw _2lx21bp4 _ca0q1ejb _u5f31ejb _n3td1ejb _19bv1ejb _1tke1l8a",
|
|
23
|
+
loadingwrapper: "_y3gn1h6o _19pk1jfw _otyr1jfw"
|
|
24
|
+
};
|
|
25
|
+
export var CardTriggerWrapper = function CardTriggerWrapper() {
|
|
26
|
+
return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
|
|
27
|
+
xcss: cx(styles.cardtriggerwrapper)
|
|
28
|
+
}) : /*#__PURE__*/React.createElement(CardTriggerWrapperLegacy, null);
|
|
29
|
+
};
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
31
|
+
var CardTriggerWrapperLegacy = styled.div({
|
|
32
|
+
display: 'inherit'
|
|
33
|
+
});
|
|
34
|
+
export var CardWrapper = function CardWrapper(_ref) {
|
|
35
|
+
var testId = _ref.testId,
|
|
36
|
+
children = _ref.children;
|
|
37
|
+
return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
|
|
38
|
+
xcss: cx(styles.cardwrapper),
|
|
39
|
+
backgroundColor: "elevation.surface.overlay",
|
|
40
|
+
testId: testId
|
|
41
|
+
}, children) : /*#__PURE__*/React.createElement(CardWrapperLegacy, {
|
|
42
|
+
"data-testid": testId
|
|
43
|
+
}, children);
|
|
44
|
+
};
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
46
|
+
var CardWrapperLegacy = styled.div({
|
|
47
|
+
// 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
|
+
backgroundColor: bgColor,
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
50
|
+
borderRadius: "".concat(borderRadius(), "px"),
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
52
|
+
width: '320px',
|
|
53
|
+
position: 'relative',
|
|
54
|
+
WebkitFontSmoothing: 'antialiased',
|
|
55
|
+
MozOsxFontSmoothing: 'grayscale'
|
|
56
|
+
});
|
|
57
|
+
export var CardHeader = function CardHeader(_ref2) {
|
|
58
|
+
var image = _ref2.image,
|
|
59
|
+
isLoading = _ref2.isLoading,
|
|
60
|
+
label = _ref2.label;
|
|
61
|
+
return fg('compiled-migration-profilecard') ? isLoading || !image ? /*#__PURE__*/React.createElement(Box, {
|
|
62
|
+
xcss: cx(styles.cardheader),
|
|
63
|
+
backgroundColor: "color.background.neutral"
|
|
64
|
+
}) : /*#__PURE__*/React.createElement(CoverImage, {
|
|
65
|
+
alt: label || '',
|
|
66
|
+
src: image
|
|
67
|
+
}) : /*#__PURE__*/React.createElement(CardHeaderLegacy, {
|
|
68
|
+
image: image,
|
|
69
|
+
isLoading: isLoading
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
// 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
|
|
74
|
+
var CardHeaderLegacy = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\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: 128px;\n"])), function (props) {
|
|
75
|
+
return props.isLoading ? "var(--ds-background-neutral, ".concat(N20, ")") : props.image ? '' : teamHeaderBgColor;
|
|
76
|
+
}, function (props) {
|
|
77
|
+
return props.image ? "url(".concat(props.image, ")") : '';
|
|
78
|
+
});
|
|
79
|
+
export var CardContent = function CardContent(props) {
|
|
80
|
+
return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, _extends({
|
|
81
|
+
xcss: cx(styles.cardcontent)
|
|
82
|
+
}, props)) : /*#__PURE__*/React.createElement(CardContentLegacy, props);
|
|
83
|
+
};
|
|
84
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
85
|
+
var CardContentLegacy = styled.div({
|
|
86
|
+
display: 'flex',
|
|
87
|
+
flexDirection: 'column',
|
|
88
|
+
padding: "var(--ds-space-300, 24px)",
|
|
89
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
90
|
+
minHeight: '104px'
|
|
91
|
+
});
|
|
92
|
+
export var LoadingWrapper = function LoadingWrapper(props) {
|
|
93
|
+
return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, _extends({
|
|
94
|
+
xcss: cx(styles.loadingwrapper)
|
|
95
|
+
}, props)) : /*#__PURE__*/React.createElement(LoadingWrapperLegacy, {
|
|
96
|
+
"data-testid": props.testId
|
|
97
|
+
}, props.children);
|
|
98
|
+
};
|
|
99
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
100
|
+
var LoadingWrapperLegacy = styled.div({
|
|
101
|
+
textAlign: 'center',
|
|
102
|
+
marginTop: "var(--ds-space-500, 40px)"
|
|
103
|
+
});
|