@atlaskit/profilecard 22.1.0 → 22.2.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.
Files changed (39) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
  3. package/dist/cjs/client/getTeamFromAGG.js +1 -1
  4. package/dist/cjs/components/Error/ErrorMessage.js +1 -1
  5. package/dist/cjs/components/Team/TeamForbiddenErrorState.js +1 -1
  6. package/dist/cjs/components/Team/TeamLoadingState.js +2 -2
  7. package/dist/cjs/components/Team/TeamProfileCard.js +8 -7
  8. package/dist/cjs/styled/Error.compiled.css +9 -0
  9. package/dist/cjs/styled/Error.js +33 -5
  10. package/dist/cjs/styled/TeamCard.compiled.css +41 -0
  11. package/dist/cjs/styled/TeamCard.js +145 -47
  12. package/dist/cjs/util/analytics.js +1 -1
  13. package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
  14. package/dist/es2019/client/getTeamFromAGG.js +1 -1
  15. package/dist/es2019/components/Error/ErrorMessage.js +1 -1
  16. package/dist/es2019/components/Team/TeamForbiddenErrorState.js +1 -1
  17. package/dist/es2019/components/Team/TeamLoadingState.js +2 -2
  18. package/dist/es2019/components/Team/TeamProfileCard.js +6 -5
  19. package/dist/es2019/styled/Error.compiled.css +9 -0
  20. package/dist/es2019/styled/Error.js +28 -5
  21. package/dist/es2019/styled/TeamCard.compiled.css +41 -0
  22. package/dist/es2019/styled/TeamCard.js +118 -48
  23. package/dist/es2019/util/analytics.js +1 -1
  24. package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
  25. package/dist/esm/client/getTeamFromAGG.js +1 -1
  26. package/dist/esm/components/Error/ErrorMessage.js +1 -1
  27. package/dist/esm/components/Team/TeamForbiddenErrorState.js +1 -1
  28. package/dist/esm/components/Team/TeamLoadingState.js +2 -2
  29. package/dist/esm/components/Team/TeamProfileCard.js +6 -5
  30. package/dist/esm/styled/Error.compiled.css +9 -0
  31. package/dist/esm/styled/Error.js +34 -5
  32. package/dist/esm/styled/TeamCard.compiled.css +41 -0
  33. package/dist/esm/styled/TeamCard.js +146 -48
  34. package/dist/esm/util/analytics.js +1 -1
  35. package/dist/types/styled/Error.d.ts +11 -13
  36. package/dist/types/styled/TeamCard.d.ts +47 -62
  37. package/dist/types-ts4.5/styled/Error.d.ts +11 -13
  38. package/dist/types-ts4.5/styled/TeamCard.d.ts +47 -62
  39. package/package.json +2 -2
@@ -1,18 +1,58 @@
1
+ /* TeamCard.tsx generated by @compiled/babel-plugin v0.36.0 */
1
2
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
3
+ import _extends from "@babel/runtime/helpers/extends";
2
4
  var _templateObject;
5
+ import "./TeamCard.compiled.css";
6
+ import { ax, ix } from "@compiled/react/runtime";
7
+ import React from 'react';
8
+
3
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
10
  import styled from '@emotion/styled';
11
+ import { cx } from '@atlaskit/css';
12
+ import { fg } from '@atlaskit/platform-feature-flags';
13
+ import { Box, Text } from '@atlaskit/primitives/compiled';
5
14
  import { N20, N200 } from '@atlaskit/theme/colors';
6
15
  import { borderRadius } from '@atlaskit/theme/constants';
7
16
  import { bgColor, teamHeaderBgColor } from './constants';
8
-
17
+ var styles = {
18
+ cardtriggerwrapper: "_1e0c1kw7",
19
+ cardwrapper: "_2rkoglpi _1bsbnklw _kqswh2mm",
20
+ teamforbiddenerrorstatewrapper: "_1bsbnklw _kqswh2mm",
21
+ cardheader: "_1itk1g60 _12vemgnk _ouxl1ssb _1lrw1dfr _4t3i1qr7",
22
+ cardcontent: "_1e0c1txw _2lx21bp4 _ca0q1ejb _u5f31ejb _n3td1ejb _19bv1ejb _1tke1l8a",
23
+ teamname: "_11c8o0gd _1reo15vq _18m915vq _1p1dglyw _c71lckbl _1e0ccj1k",
24
+ membercount: "_syaz1wmz _19pk1b66",
25
+ avatarsection: "_19pkpxbi _18u01i6y",
26
+ descriptionwrapper: "_19pkpxbi _4cvr1h6o _1e0c1txw",
27
+ description: "_1reo15vq _18m915vq _c71l1wqb _1e0ccj1k",
28
+ actionbuttons: "_1bsb1osq _1e0c1txw _1bah1yb4 _19pk1ejb _2hwx10v4 _otyridpf _18u0x0bf",
29
+ wrappedbutton: "_i0dlidpf _16jlkb7n _18u0u2gc",
30
+ morebutton: "_18u0u2gc",
31
+ loadingwrapper: "_y3gn1h6o _19pk1jfw _otyr1jfw",
32
+ accesslocksvgwrapper: "_otyr1ejb"
33
+ };
34
+ export var CardTriggerWrapper = function CardTriggerWrapper() {
35
+ return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
36
+ xcss: cx(styles.cardtriggerwrapper)
37
+ }) : /*#__PURE__*/React.createElement(CardTriggerWrapperLegacy, null);
38
+ };
9
39
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
10
- export var CardTriggerWrapper = styled.div({
40
+ var CardTriggerWrapperLegacy = styled.div({
11
41
  display: 'inherit'
12
42
  });
13
-
43
+ export var CardWrapper = function CardWrapper(_ref) {
44
+ var testId = _ref.testId,
45
+ children = _ref.children;
46
+ return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
47
+ xcss: cx(styles.cardwrapper),
48
+ backgroundColor: "elevation.surface.overlay",
49
+ testId: testId
50
+ }, children) : /*#__PURE__*/React.createElement(CardWrapperLegacy, {
51
+ "data-testid": testId
52
+ }, children);
53
+ };
14
54
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
15
- export var CardWrapper = styled.div({
55
+ var CardWrapperLegacy = styled.div({
16
56
  // 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
57
  backgroundColor: bgColor,
18
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
@@ -23,32 +63,64 @@ export var CardWrapper = styled.div({
23
63
  WebkitFontSmoothing: 'antialiased',
24
64
  MozOsxFontSmoothing: 'grayscale'
25
65
  });
26
-
66
+ export var TeamForbiddenErrorStateWrapper = function TeamForbiddenErrorStateWrapper(props) {
67
+ return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, _extends({
68
+ xcss: cx(styles.teamforbiddenerrorstatewrapper)
69
+ }, props)) : /*#__PURE__*/React.createElement(TeamForbiddenErrorStateWrapperLegacy, {
70
+ "data-testid": props.testId
71
+ }, props.children);
72
+ };
27
73
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
28
- export var TeamForbiddenErrorStateWrapper = styled.div({
74
+ var TeamForbiddenErrorStateWrapperLegacy = styled.div({
29
75
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
30
76
  width: '320px',
31
77
  position: 'relative'
32
78
  });
79
+ export var CardHeader = function CardHeader(_ref2) {
80
+ var image = _ref2.image,
81
+ isLoading = _ref2.isLoading,
82
+ label = _ref2.label;
83
+ return fg('compiled-migration-profilecard') ? isLoading || !image ? /*#__PURE__*/React.createElement(Box, {
84
+ xcss: cx(styles.cardheader),
85
+ backgroundColor: "color.background.neutral"
86
+ }) : /*#__PURE__*/React.createElement(Box, {
87
+ as: "img",
88
+ alt: label || '',
89
+ src: image,
90
+ xcss: cx(styles.cardheader),
91
+ backgroundColor: "color.background.neutral"
92
+ }) : /*#__PURE__*/React.createElement(CardHeaderLegacy, {
93
+ image: image,
94
+ isLoading: isLoading
95
+ });
96
+ };
33
97
 
34
98
  // 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
35
- export var CardHeader = 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
+ 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) {
36
100
  return props.isLoading ? "var(--ds-background-neutral, ".concat(N20, ")") : props.image ? '' : teamHeaderBgColor;
37
101
  }, function (props) {
38
102
  return props.image ? "url(".concat(props.image, ")") : '';
39
103
  });
40
-
104
+ export var CardContent = function CardContent(props) {
105
+ return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, _extends({
106
+ xcss: cx(styles.cardcontent)
107
+ }, props)) : /*#__PURE__*/React.createElement(CardContentLegacy, props);
108
+ };
41
109
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
42
- export var CardContent = styled.div({
110
+ var CardContentLegacy = styled.div({
43
111
  display: 'flex',
44
112
  flexDirection: 'column',
45
113
  padding: "var(--ds-space-300, 24px)",
46
114
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
47
115
  minHeight: '104px'
48
116
  });
49
-
117
+ export var TeamName = function TeamName(props) {
118
+ return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, _extends({
119
+ xcss: cx(styles.teamname)
120
+ }, props)) : /*#__PURE__*/React.createElement(TeamNameLegacy, props);
121
+ };
50
122
  // 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
51
- export var TeamName = styled.h6({
123
+ var TeamNameLegacy = styled.h6({
52
124
  font: "var(--ds-font-heading-medium, normal 500 20px/24px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
53
125
  textTransform: 'none',
54
126
  overflow: 'hidden',
@@ -57,78 +129,104 @@ export var TeamName = styled.h6({
57
129
  WebkitLineClamp: 2,
58
130
  WebkitBoxOrient: 'vertical'
59
131
  });
60
-
132
+ export var MemberCount = function MemberCount(props) {
133
+ return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, _extends({
134
+ xcss: cx(styles.membercount)
135
+ }, props)) : /*#__PURE__*/React.createElement(MemberCountLegacy, props);
136
+ };
61
137
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
62
- export var MemberCount = styled.div({
138
+ var MemberCountLegacy = styled.div({
63
139
  color: "var(--ds-text-subtlest, ".concat(N200, ")"),
64
140
  marginTop: "var(--ds-space-050, 4px)"
65
141
  });
66
-
67
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
68
- export var AvatarSection = styled.div({
142
+ export var AvatarSection = function AvatarSection(props) {
143
+ return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, _extends({
144
+ xcss: cx(styles.avatarsection)
145
+ }, props)) : /*#__PURE__*/React.createElement(AvatarSectionLegacy, props);
146
+ };
147
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/use-primitives -- Ignored via go/DSP-18766
148
+ var AvatarSectionLegacy = styled.div({
69
149
  marginTop: "var(--ds-space-200, 16px)",
70
150
  marginLeft: "var(--ds-space-negative-025, -2px)"
71
151
  });
72
-
152
+ export var DescriptionWrapper = function DescriptionWrapper(props) {
153
+ return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, _extends({
154
+ xcss: cx(styles.descriptionwrapper)
155
+ }, props)) : /*#__PURE__*/React.createElement(DescriptionWrapperLegacy, props);
156
+ };
73
157
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
74
- export var DescriptionWrapper = styled.div({
158
+ var DescriptionWrapperLegacy = styled.div({
75
159
  marginTop: "var(--ds-space-200, 16px)",
76
160
  alignItems: 'center',
77
161
  display: 'flex'
78
162
  });
79
-
163
+ export var Description = function Description(props) {
164
+ return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, {
165
+ xcss: cx(styles.description)
166
+ }, /*#__PURE__*/React.createElement(Text, _extends({
167
+ maxLines: 3
168
+ }, props))) : /*#__PURE__*/React.createElement(DescriptionLegacy, props);
169
+ };
80
170
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
81
- export var Description = styled.span({
171
+ var DescriptionLegacy = styled.span({
82
172
  overflow: 'hidden',
83
173
  maxHeight: '60px',
84
174
  display: '-webkit-box',
85
175
  WebkitLineClamp: 3,
86
176
  WebkitBoxOrient: 'vertical'
87
177
  });
88
-
178
+ export var ActionButtons = function ActionButtons(props) {
179
+ return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, _extends({
180
+ xcss: cx(styles.actionbuttons),
181
+ backgroundColor: "elevation.surface.overlay"
182
+ }, props)) : /*#__PURE__*/React.createElement(ActionButtonsLegacy, props);
183
+ };
89
184
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
90
- export var ActionButtons = styled.div({
185
+ var ActionButtonsLegacy = styled.div({
91
186
  width: 'calc(100% + 8px)',
92
187
  display: 'flex',
93
188
  justifyContent: 'space-between',
94
189
  margin: "var(--ds-space-300, 24px)".concat(" ", "var(--ds-space-negative-300, -24px)", " 0 ", "var(--ds-space-negative-100, -8px)"),
95
190
  backgroundColor: "var(--ds-surface-overlay, hsla(0, 100%, 100%, 0.2))"
96
191
  });
97
-
192
+ export var WrappedButton = function WrappedButton(props) {
193
+ return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, _extends({
194
+ xcss: cx(styles.wrappedbutton)
195
+ }, props)) : /*#__PURE__*/React.createElement(WrappedButtonLegacy, props);
196
+ };
98
197
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
99
- export var WrappedButton = styled.div({
198
+ var WrappedButtonLegacy = styled.div({
100
199
  flexBasis: 0,
101
200
  flexGrow: 1,
102
201
  marginLeft: "var(--ds-space-100, 8px)"
103
202
  });
104
-
105
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
106
- export var MoreButton = styled.div({
203
+ export var MoreButton = function MoreButton(props) {
204
+ return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, _extends({
205
+ xcss: cx(styles.morebutton)
206
+ }, props)) : /*#__PURE__*/React.createElement(MoreButtonLegacy, props);
207
+ };
208
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/use-primitives -- Ignored via go/DSP-18766
209
+ var MoreButtonLegacy = styled.div({
107
210
  marginLeft: "var(--ds-space-100, 8px)"
108
211
  });
109
-
212
+ export var LoadingWrapper = function LoadingWrapper(props) {
213
+ return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, _extends({
214
+ xcss: cx(styles.loadingwrapper)
215
+ }, props)) : /*#__PURE__*/React.createElement(LoadingWrapperLegacy, {
216
+ "data-testid": props.testId
217
+ }, props.children);
218
+ };
110
219
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
111
- export var LoadingWrapper = styled.div({
220
+ var LoadingWrapperLegacy = styled.div({
112
221
  textAlign: 'center',
113
222
  marginTop: "var(--ds-space-500, 40px)"
114
223
  });
115
-
116
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
117
- export var AccessLockSVGWrapper = styled.div({
224
+ export var AccessLockSVGWrapper = function AccessLockSVGWrapper(props) {
225
+ return fg('compiled-migration-profilecard') ? /*#__PURE__*/React.createElement(Box, _extends({
226
+ xcss: cx(styles.accesslocksvgwrapper)
227
+ }, props)) : /*#__PURE__*/React.createElement(AccessLockSVGWrapperLegacy, props);
228
+ };
229
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/use-primitives -- Ignored via go/DSP-18766
230
+ var AccessLockSVGWrapperLegacy = styled.div({
118
231
  marginBottom: "var(--ds-space-300, 24px)"
119
- });
120
-
121
- // export const LoadingTeamName = styled.div`
122
- // width: 175px;
123
- // height: ${gridSize () *3)px;
124
- // border-radius: ${borderRadius}px;
125
- // background-color: #f4f5f7;
126
- // `;
127
-
128
- // export const LoadingMemberCount = styled.div`
129
- // width: 81px;
130
- // height: ${gridSize () *2)px;
131
- // border-radius: 3px;
132
- // background-color: #f4f5f7;
133
- // margin: 4px 0;
134
- // `;
232
+ });
@@ -39,7 +39,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
39
39
  actionSubjectId: actionSubjectId,
40
40
  attributes: _objectSpread(_objectSpread({
41
41
  packageName: "@atlaskit/profilecard",
42
- packageVersion: "22.1.0"
42
+ packageVersion: "22.2.0"
43
43
  }, attributes), {}, {
44
44
  firedAt: Math.round(getPageTime())
45
45
  })
@@ -1,13 +1,11 @@
1
- /// <reference types="react" />
2
- export declare const ErrorWrapper: import("@emotion/styled").StyledComponent<{
3
- theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
- export declare const ErrorTitle: import("@emotion/styled").StyledComponent<{
7
- theme?: import("@emotion/react").Theme | undefined;
8
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
9
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
10
- export declare const TeamErrorText: import("@emotion/styled").StyledComponent<{
11
- theme?: import("@emotion/react").Theme | undefined;
12
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
13
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
1
+ import React from 'react';
2
+ export declare const ErrorWrapper: (props: {
3
+ children: React.ReactNode;
4
+ testId?: string;
5
+ }) => React.JSX.Element;
6
+ export declare const ErrorTitle: (props: {
7
+ children: React.ReactNode;
8
+ }) => React.JSX.Element;
9
+ export declare const TeamErrorText: (props: {
10
+ children: React.ReactNode;
11
+ }) => React.JSX.Element;
@@ -1,64 +1,49 @@
1
- /// <reference types="react" />
2
- export declare const CardTriggerWrapper: import("@emotion/styled").StyledComponent<{
3
- theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
- export declare const CardWrapper: import("@emotion/styled").StyledComponent<{
7
- theme?: import("@emotion/react").Theme | undefined;
8
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
9
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
- export declare const TeamForbiddenErrorStateWrapper: import("@emotion/styled").StyledComponent<{
11
- theme?: import("@emotion/react").Theme | undefined;
12
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
13
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
14
- export declare const CardHeader: import("@emotion/styled").StyledComponent<{
15
- theme?: import("@emotion/react").Theme | undefined;
16
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
17
- } & {
1
+ import React from 'react';
2
+ export declare const CardTriggerWrapper: () => React.JSX.Element;
3
+ export declare const CardWrapper: ({ testId, children, }: {
4
+ testId?: string | undefined;
5
+ children: React.ReactNode;
6
+ }) => React.JSX.Element;
7
+ export declare const TeamForbiddenErrorStateWrapper: (props: {
8
+ children: React.ReactNode;
9
+ testId?: string;
10
+ }) => React.JSX.Element;
11
+ export declare const CardHeader: ({ image, isLoading, label, }: {
18
12
  image?: string | undefined;
19
13
  isLoading?: boolean | undefined;
20
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
21
- export declare const CardContent: import("@emotion/styled").StyledComponent<{
22
- theme?: import("@emotion/react").Theme | undefined;
23
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
24
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
25
- export declare const TeamName: import("@emotion/styled").StyledComponent<{
26
- theme?: import("@emotion/react").Theme | undefined;
27
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
28
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
29
- export declare const MemberCount: import("@emotion/styled").StyledComponent<{
30
- theme?: import("@emotion/react").Theme | undefined;
31
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
32
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
33
- export declare const AvatarSection: import("@emotion/styled").StyledComponent<{
34
- theme?: import("@emotion/react").Theme | undefined;
35
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
36
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
37
- export declare const DescriptionWrapper: import("@emotion/styled").StyledComponent<{
38
- theme?: import("@emotion/react").Theme | undefined;
39
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
40
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
41
- export declare const Description: import("@emotion/styled").StyledComponent<{
42
- theme?: import("@emotion/react").Theme | undefined;
43
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
44
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
45
- export declare const ActionButtons: import("@emotion/styled").StyledComponent<{
46
- theme?: import("@emotion/react").Theme | undefined;
47
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
48
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
49
- export declare const WrappedButton: import("@emotion/styled").StyledComponent<{
50
- theme?: import("@emotion/react").Theme | undefined;
51
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
52
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
53
- export declare const MoreButton: import("@emotion/styled").StyledComponent<{
54
- theme?: import("@emotion/react").Theme | undefined;
55
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
56
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
57
- export declare const LoadingWrapper: import("@emotion/styled").StyledComponent<{
58
- theme?: import("@emotion/react").Theme | undefined;
59
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
60
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
61
- export declare const AccessLockSVGWrapper: import("@emotion/styled").StyledComponent<{
62
- theme?: import("@emotion/react").Theme | undefined;
63
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
64
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
14
+ label?: string | undefined;
15
+ }) => React.JSX.Element;
16
+ export declare const CardContent: (props: {
17
+ children: React.ReactNode;
18
+ }) => React.JSX.Element;
19
+ export declare const TeamName: (props: {
20
+ children: React.ReactNode;
21
+ }) => React.JSX.Element;
22
+ export declare const MemberCount: (props: {
23
+ children: React.ReactNode;
24
+ }) => React.JSX.Element;
25
+ export declare const AvatarSection: (props: {
26
+ children: React.ReactNode;
27
+ }) => React.JSX.Element;
28
+ export declare const DescriptionWrapper: (props: {
29
+ children: React.ReactNode;
30
+ }) => React.JSX.Element;
31
+ export declare const Description: (props: {
32
+ children: React.ReactNode;
33
+ }) => React.JSX.Element;
34
+ export declare const ActionButtons: (props: {
35
+ children: React.ReactNode;
36
+ }) => React.JSX.Element;
37
+ export declare const WrappedButton: (props: {
38
+ children: React.ReactNode;
39
+ }) => React.JSX.Element;
40
+ export declare const MoreButton: (props: {
41
+ children: React.ReactNode;
42
+ }) => React.JSX.Element;
43
+ export declare const LoadingWrapper: (props: {
44
+ testId?: string;
45
+ children: React.ReactNode;
46
+ }) => React.JSX.Element;
47
+ export declare const AccessLockSVGWrapper: (props: {
48
+ children: React.ReactNode;
49
+ }) => React.JSX.Element;
@@ -1,13 +1,11 @@
1
- /// <reference types="react" />
2
- export declare const ErrorWrapper: import("@emotion/styled").StyledComponent<{
3
- theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
- export declare const ErrorTitle: import("@emotion/styled").StyledComponent<{
7
- theme?: import("@emotion/react").Theme | undefined;
8
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
9
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
10
- export declare const TeamErrorText: import("@emotion/styled").StyledComponent<{
11
- theme?: import("@emotion/react").Theme | undefined;
12
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
13
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
1
+ import React from 'react';
2
+ export declare const ErrorWrapper: (props: {
3
+ children: React.ReactNode;
4
+ testId?: string;
5
+ }) => React.JSX.Element;
6
+ export declare const ErrorTitle: (props: {
7
+ children: React.ReactNode;
8
+ }) => React.JSX.Element;
9
+ export declare const TeamErrorText: (props: {
10
+ children: React.ReactNode;
11
+ }) => React.JSX.Element;
@@ -1,64 +1,49 @@
1
- /// <reference types="react" />
2
- export declare const CardTriggerWrapper: import("@emotion/styled").StyledComponent<{
3
- theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
- export declare const CardWrapper: import("@emotion/styled").StyledComponent<{
7
- theme?: import("@emotion/react").Theme | undefined;
8
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
9
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
- export declare const TeamForbiddenErrorStateWrapper: import("@emotion/styled").StyledComponent<{
11
- theme?: import("@emotion/react").Theme | undefined;
12
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
13
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
14
- export declare const CardHeader: import("@emotion/styled").StyledComponent<{
15
- theme?: import("@emotion/react").Theme | undefined;
16
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
17
- } & {
1
+ import React from 'react';
2
+ export declare const CardTriggerWrapper: () => React.JSX.Element;
3
+ export declare const CardWrapper: ({ testId, children, }: {
4
+ testId?: string | undefined;
5
+ children: React.ReactNode;
6
+ }) => React.JSX.Element;
7
+ export declare const TeamForbiddenErrorStateWrapper: (props: {
8
+ children: React.ReactNode;
9
+ testId?: string;
10
+ }) => React.JSX.Element;
11
+ export declare const CardHeader: ({ image, isLoading, label, }: {
18
12
  image?: string | undefined;
19
13
  isLoading?: boolean | undefined;
20
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
21
- export declare const CardContent: import("@emotion/styled").StyledComponent<{
22
- theme?: import("@emotion/react").Theme | undefined;
23
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
24
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
25
- export declare const TeamName: import("@emotion/styled").StyledComponent<{
26
- theme?: import("@emotion/react").Theme | undefined;
27
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
28
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
29
- export declare const MemberCount: import("@emotion/styled").StyledComponent<{
30
- theme?: import("@emotion/react").Theme | undefined;
31
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
32
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
33
- export declare const AvatarSection: import("@emotion/styled").StyledComponent<{
34
- theme?: import("@emotion/react").Theme | undefined;
35
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
36
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
37
- export declare const DescriptionWrapper: import("@emotion/styled").StyledComponent<{
38
- theme?: import("@emotion/react").Theme | undefined;
39
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
40
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
41
- export declare const Description: import("@emotion/styled").StyledComponent<{
42
- theme?: import("@emotion/react").Theme | undefined;
43
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
44
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
45
- export declare const ActionButtons: import("@emotion/styled").StyledComponent<{
46
- theme?: import("@emotion/react").Theme | undefined;
47
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
48
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
49
- export declare const WrappedButton: import("@emotion/styled").StyledComponent<{
50
- theme?: import("@emotion/react").Theme | undefined;
51
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
52
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
53
- export declare const MoreButton: import("@emotion/styled").StyledComponent<{
54
- theme?: import("@emotion/react").Theme | undefined;
55
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
56
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
57
- export declare const LoadingWrapper: import("@emotion/styled").StyledComponent<{
58
- theme?: import("@emotion/react").Theme | undefined;
59
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
60
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
61
- export declare const AccessLockSVGWrapper: import("@emotion/styled").StyledComponent<{
62
- theme?: import("@emotion/react").Theme | undefined;
63
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
64
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
14
+ label?: string | undefined;
15
+ }) => React.JSX.Element;
16
+ export declare const CardContent: (props: {
17
+ children: React.ReactNode;
18
+ }) => React.JSX.Element;
19
+ export declare const TeamName: (props: {
20
+ children: React.ReactNode;
21
+ }) => React.JSX.Element;
22
+ export declare const MemberCount: (props: {
23
+ children: React.ReactNode;
24
+ }) => React.JSX.Element;
25
+ export declare const AvatarSection: (props: {
26
+ children: React.ReactNode;
27
+ }) => React.JSX.Element;
28
+ export declare const DescriptionWrapper: (props: {
29
+ children: React.ReactNode;
30
+ }) => React.JSX.Element;
31
+ export declare const Description: (props: {
32
+ children: React.ReactNode;
33
+ }) => React.JSX.Element;
34
+ export declare const ActionButtons: (props: {
35
+ children: React.ReactNode;
36
+ }) => React.JSX.Element;
37
+ export declare const WrappedButton: (props: {
38
+ children: React.ReactNode;
39
+ }) => React.JSX.Element;
40
+ export declare const MoreButton: (props: {
41
+ children: React.ReactNode;
42
+ }) => React.JSX.Element;
43
+ export declare const LoadingWrapper: (props: {
44
+ testId?: string;
45
+ children: React.ReactNode;
46
+ }) => React.JSX.Element;
47
+ export declare const AccessLockSVGWrapper: (props: {
48
+ children: React.ReactNode;
49
+ }) => React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "22.1.0",
3
+ "version": "22.2.0",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -60,7 +60,7 @@
60
60
  "@atlaskit/empty-state": "^8.2.0",
61
61
  "@atlaskit/focus-ring": "^2.1.0",
62
62
  "@atlaskit/give-kudos": "^3.1.0",
63
- "@atlaskit/icon": "^23.8.0",
63
+ "@atlaskit/icon": "^23.9.0",
64
64
  "@atlaskit/lozenge": "^11.13.0",
65
65
  "@atlaskit/menu": "^2.14.0",
66
66
  "@atlaskit/modal-dialog": "^12.20.0",