@atlaskit/profilecard 19.3.0 → 19.3.2
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 +12 -0
- package/client/package.json +2 -2
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/util/analytics.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/client/TeamCentralCardClient.d.ts +2 -2
- package/dist/types/client/errorUtils.d.ts +1 -1
- package/dist/types/client/graphqlUtils.d.ts +1 -1
- package/dist/types/components/Icon/IconLabel.d.ts +1 -1
- package/dist/types/components/User/OverflowProfileCardButtons.d.ts +1 -1
- package/dist/types/components/User/ReportingLinesDetails.d.ts +1 -1
- package/dist/types/i18n/cs.d.ts +6 -6
- package/dist/types/i18n/da.d.ts +6 -6
- package/dist/types/i18n/de.d.ts +6 -6
- package/dist/types/i18n/en.d.ts +6 -6
- package/dist/types/i18n/en_GB.d.ts +6 -6
- package/dist/types/i18n/en_ZZ.d.ts +6 -6
- package/dist/types/i18n/es.d.ts +6 -6
- package/dist/types/i18n/et.d.ts +6 -6
- package/dist/types/i18n/fi.d.ts +6 -6
- package/dist/types/i18n/fr.d.ts +6 -6
- package/dist/types/i18n/hu.d.ts +6 -6
- package/dist/types/i18n/is.d.ts +6 -6
- package/dist/types/i18n/it.d.ts +6 -6
- package/dist/types/i18n/ja.d.ts +6 -6
- package/dist/types/i18n/ko.d.ts +6 -6
- package/dist/types/i18n/languages.d.ts +6 -6
- package/dist/types/i18n/nb.d.ts +6 -6
- package/dist/types/i18n/nl.d.ts +6 -6
- package/dist/types/i18n/pl.d.ts +6 -6
- package/dist/types/i18n/pt_BR.d.ts +6 -6
- package/dist/types/i18n/pt_PT.d.ts +6 -6
- package/dist/types/i18n/ro.d.ts +6 -6
- package/dist/types/i18n/ru.d.ts +6 -6
- package/dist/types/i18n/sk.d.ts +6 -6
- package/dist/types/i18n/sv.d.ts +6 -6
- package/dist/types/i18n/th.d.ts +6 -6
- package/dist/types/i18n/tr.d.ts +6 -6
- package/dist/types/i18n/uk.d.ts +6 -6
- package/dist/types/i18n/vi.d.ts +6 -6
- package/dist/types/i18n/zh.d.ts +6 -6
- package/dist/types/i18n/zh_TW.d.ts +6 -6
- package/dist/types/types.d.ts +10 -10
- package/dist/types/util/analytics.d.ts +14 -14
- package/dist/types/util/click.d.ts +1 -1
- package/dist/types-ts4.5/client/CachingClient.d.ts +18 -0
- package/dist/types-ts4.5/client/ProfileCardClient.d.ts +18 -0
- package/dist/types-ts4.5/client/TeamCentralCardClient.d.ts +32 -0
- package/dist/types-ts4.5/client/TeamProfileCardClient.d.ts +9 -0
- package/dist/types-ts4.5/client/UserProfileCardClient.d.ts +18 -0
- package/dist/types-ts4.5/client/errorUtils.d.ts +9 -0
- package/dist/types-ts4.5/client/getTeamFromAGG.d.ts +28 -0
- package/dist/types-ts4.5/client/graphqlUtils.d.ts +19 -0
- package/dist/types-ts4.5/client/index.d.ts +6 -0
- package/dist/types-ts4.5/components/Error/AccessLockSVG.d.ts +3 -0
- package/dist/types-ts4.5/components/Error/ErrorBoundary.d.ts +10 -0
- package/dist/types-ts4.5/components/Error/ErrorIllustration.d.ts +2 -0
- package/dist/types-ts4.5/components/Error/ErrorMessage.d.ts +10 -0
- package/dist/types-ts4.5/components/Error/index.d.ts +3 -0
- package/dist/types-ts4.5/components/Icon/IconLabel.d.ts +12 -0
- package/dist/types-ts4.5/components/Icon/index.d.ts +1 -0
- package/dist/types-ts4.5/components/Team/TeamForbiddenErrorState.d.ts +6 -0
- package/dist/types-ts4.5/components/Team/TeamLoadingState.d.ts +6 -0
- package/dist/types-ts4.5/components/Team/TeamProfileCard.d.ts +4 -0
- package/dist/types-ts4.5/components/Team/TeamProfileCardTrigger.d.ts +50 -0
- package/dist/types-ts4.5/components/Team/index.d.ts +4 -0
- package/dist/types-ts4.5/components/Team/lazyTeamProfileCard.d.ts +2 -0
- package/dist/types-ts4.5/components/User/OverflowProfileCardButtons.d.ts +9 -0
- package/dist/types-ts4.5/components/User/ProfileCard.d.ts +5 -0
- package/dist/types-ts4.5/components/User/ProfileCardDetails.d.ts +3 -0
- package/dist/types-ts4.5/components/User/ProfileCardResourced.d.ts +22 -0
- package/dist/types-ts4.5/components/User/ProfileCardTrigger.d.ts +4 -0
- package/dist/types-ts4.5/components/User/ReportingLinesDetails.d.ts +5 -0
- package/dist/types-ts4.5/components/User/UserLoadingState.d.ts +7 -0
- package/dist/types-ts4.5/components/User/index.d.ts +4 -0
- package/dist/types-ts4.5/components/User/lazyProfileCard.d.ts +2 -0
- package/dist/types-ts4.5/i18n/cs.d.ts +41 -0
- package/dist/types-ts4.5/i18n/da.d.ts +41 -0
- package/dist/types-ts4.5/i18n/de.d.ts +41 -0
- package/dist/types-ts4.5/i18n/en.d.ts +41 -0
- package/dist/types-ts4.5/i18n/en_GB.d.ts +41 -0
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +39 -0
- package/dist/types-ts4.5/i18n/es.d.ts +41 -0
- package/dist/types-ts4.5/i18n/et.d.ts +27 -0
- package/dist/types-ts4.5/i18n/fi.d.ts +41 -0
- package/dist/types-ts4.5/i18n/fr.d.ts +41 -0
- package/dist/types-ts4.5/i18n/hu.d.ts +41 -0
- package/dist/types-ts4.5/i18n/index.d.ts +36 -0
- package/dist/types-ts4.5/i18n/is.d.ts +27 -0
- package/dist/types-ts4.5/i18n/it.d.ts +41 -0
- package/dist/types-ts4.5/i18n/ja.d.ts +41 -0
- package/dist/types-ts4.5/i18n/ko.d.ts +41 -0
- package/dist/types-ts4.5/i18n/languages.d.ts +33 -0
- package/dist/types-ts4.5/i18n/nb.d.ts +41 -0
- package/dist/types-ts4.5/i18n/nl.d.ts +41 -0
- package/dist/types-ts4.5/i18n/pl.d.ts +41 -0
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +41 -0
- package/dist/types-ts4.5/i18n/pt_PT.d.ts +27 -0
- package/dist/types-ts4.5/i18n/ro.d.ts +27 -0
- package/dist/types-ts4.5/i18n/ru.d.ts +41 -0
- package/dist/types-ts4.5/i18n/sk.d.ts +27 -0
- package/dist/types-ts4.5/i18n/sv.d.ts +41 -0
- package/dist/types-ts4.5/i18n/th.d.ts +41 -0
- package/dist/types-ts4.5/i18n/tr.d.ts +41 -0
- package/dist/types-ts4.5/i18n/uk.d.ts +41 -0
- package/dist/types-ts4.5/i18n/vi.d.ts +41 -0
- package/dist/types-ts4.5/i18n/zh.d.ts +41 -0
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +41 -0
- package/dist/types-ts4.5/index.d.ts +18 -0
- package/dist/types-ts4.5/internal/filterActions.d.ts +3 -0
- package/dist/types-ts4.5/internal/relative-date.d.ts +3 -0
- package/dist/types-ts4.5/messages.d.ts +163 -0
- package/dist/types-ts4.5/mocks/index.d.ts +4 -0
- package/dist/types-ts4.5/mocks/mock-profile-client.d.ts +1 -0
- package/dist/types-ts4.5/mocks/mock-team-client.d.ts +7 -0
- package/dist/types-ts4.5/mocks/profile-data.d.ts +41 -0
- package/dist/types-ts4.5/mocks/reporting-lines-data.d.ts +2 -0
- package/dist/types-ts4.5/mocks/simple-mock-clients.d.ts +14 -0
- package/dist/types-ts4.5/mocks/team-data.d.ts +7 -0
- package/dist/types-ts4.5/mocks/util.d.ts +6 -0
- package/dist/types-ts4.5/styled/Card.d.ts +99 -0
- package/dist/types-ts4.5/styled/Error.d.ts +21 -0
- package/dist/types-ts4.5/styled/ReportingLines.d.ts +21 -0
- package/dist/types-ts4.5/styled/TeamCard.d.ts +64 -0
- package/dist/types-ts4.5/styled/constants.d.ts +13 -0
- package/dist/types-ts4.5/types.d.ts +358 -0
- package/dist/types-ts4.5/util/analytics.d.ts +58 -0
- package/dist/types-ts4.5/util/click.d.ts +4 -0
- package/dist/types-ts4.5/util/config.d.ts +2 -0
- package/dist/types-ts4.5/util/performance.d.ts +1 -0
- package/dist/types-ts4.5/util/withOuterListeners.d.ts +6 -0
- package/messages/package.json +2 -2
- package/mocks/package.json +2 -2
- package/package.json +13 -5
- package/team/package.json +2 -2
- package/tmp/api-report-tmp.d.ts +570 -0
- package/types/package.json +2 -2
- package/user/package.json +2 -2
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'pt.profile-card.closed.account': string;
|
|
9
|
+
'pt.profile-card.closed.account.has.date.a.few.months': string;
|
|
10
|
+
'pt.profile-card.closed.account.has.date.last.month': string;
|
|
11
|
+
'pt.profile-card.closed.account.has.date.more.than.a.year': string;
|
|
12
|
+
'pt.profile-card.closed.account.has.date.several.months': string;
|
|
13
|
+
'pt.profile-card.closed.account.has.date.this.month': string;
|
|
14
|
+
'pt.profile-card.closed.account.has.date.this.week': string;
|
|
15
|
+
'pt.profile-card.closed.account.no.date': string;
|
|
16
|
+
'pt.profile-card.disabled.account.default.name': string;
|
|
17
|
+
'pt.profile-card.general.msg.disabled.user': string;
|
|
18
|
+
'pt.profile-card.give-kudos': string;
|
|
19
|
+
'pt.profile-card.inactive.account': string;
|
|
20
|
+
'pt.profile-card.inactive.account.has.date.a.few.months': string;
|
|
21
|
+
'pt.profile-card.inactive.account.has.date.last.month': string;
|
|
22
|
+
'pt.profile-card.inactive.account.has.date.more.than.a.year': string;
|
|
23
|
+
'pt.profile-card.inactive.account.has.date.several.months': string;
|
|
24
|
+
'pt.profile-card.inactive.account.has.date.this.month': string;
|
|
25
|
+
'pt.profile-card.inactive.account.has.date.this.week': string;
|
|
26
|
+
'pt.profile-card.inactive.account.no.date': string;
|
|
27
|
+
'pt.profile-card.more-icon-label': string;
|
|
28
|
+
'pt.team-profile-card.directReports.heading': string;
|
|
29
|
+
'pt.team-profile-card.error.refresh-button': string;
|
|
30
|
+
'pt.team-profile-card.error.suggestion': string;
|
|
31
|
+
'pt.team-profile-card.error.title': string;
|
|
32
|
+
'pt.team-profile-card.forbidden-error-state.description': string;
|
|
33
|
+
'pt.team-profile-card.forbidden-error-state.title': string;
|
|
34
|
+
'pt.team-profile-card.manager.heading': string;
|
|
35
|
+
'pt.team-profile-card.team.action.view-profile': string;
|
|
36
|
+
'pt.team-profile-card.team.member.count': string;
|
|
37
|
+
'pt.team-profile-card.team.member.count-including-you': string;
|
|
38
|
+
'pt.team-profile-card.team.member.many': string;
|
|
39
|
+
'pt.team-profile-card.team.member.many-including-you': string;
|
|
40
|
+
};
|
|
41
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import ProfileCardClient from './client/ProfileCardClient';
|
|
2
|
+
import TeamProfileClient from './client/TeamProfileCardClient';
|
|
3
|
+
import UserProfileClient, { modifyResponse } from './client/UserProfileCardClient';
|
|
4
|
+
import TeamProfileCardTrigger from './components/Team/TeamProfileCardTrigger';
|
|
5
|
+
import ProfileCard from './components/User/ProfileCard';
|
|
6
|
+
import ProfileCardResourced from './components/User/ProfileCardResourced';
|
|
7
|
+
import ProfileCardTrigger from './components/User/ProfileCardTrigger';
|
|
8
|
+
import { DELAY_MS_HIDE, DELAY_MS_SHOW } from './util/config';
|
|
9
|
+
export { default as withOuterListeners } from './util/withOuterListeners';
|
|
10
|
+
export type { WithOuterListenersProps } from './util/withOuterListeners';
|
|
11
|
+
export type { ProfileCardErrorType, ProfilecardTriggerPosition, RelativeDateKeyType, StatusModifiedDateType, StatusType, TriggerType, ApiClientResponse, MessageIntlProviderProps, ProfileCardAction, ProfileCardClientData, ProfileCardResourcedProps, ProfileCardResourcedState, ProfileCardTriggerProps, ProfileCardTriggerState, ProfileClientOptions, ProfilecardProps, Team, } from './types';
|
|
12
|
+
export { default as TeamProfileCard } from './components/Team/TeamProfileCard';
|
|
13
|
+
export { ProfileCard };
|
|
14
|
+
export { ProfileCardTrigger };
|
|
15
|
+
export { TeamProfileCardTrigger };
|
|
16
|
+
export { ProfileCardClient as ProfileClient, TeamProfileClient, UserProfileClient, modifyResponse, };
|
|
17
|
+
export { DELAY_MS_SHOW, DELAY_MS_HIDE };
|
|
18
|
+
export default ProfileCardResourced;
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
declare const messages: {
|
|
2
|
+
inactiveAccountMsg: {
|
|
3
|
+
id: string;
|
|
4
|
+
defaultMessage: string;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
generalDescMsgForDisabledUser: {
|
|
8
|
+
id: string;
|
|
9
|
+
defaultMessage: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
inactiveAccountDescMsgNoDate: {
|
|
13
|
+
id: string;
|
|
14
|
+
defaultMessage: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
inactiveAccountDescMsgHasDateThisWeek: {
|
|
18
|
+
id: string;
|
|
19
|
+
defaultMessage: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
inactiveAccountDescMsgHasDateThisMonth: {
|
|
23
|
+
id: string;
|
|
24
|
+
defaultMessage: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
inactiveAccountDescMsgHasDateLastMonth: {
|
|
28
|
+
id: string;
|
|
29
|
+
defaultMessage: string;
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
inactiveAccountDescMsgHasDateAFewMonths: {
|
|
33
|
+
id: string;
|
|
34
|
+
defaultMessage: string;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
37
|
+
inactiveAccountDescMsgHasDateSeveralMonths: {
|
|
38
|
+
id: string;
|
|
39
|
+
defaultMessage: string;
|
|
40
|
+
description: string;
|
|
41
|
+
};
|
|
42
|
+
inactiveAccountDescMsgHasDateMoreThanAYear: {
|
|
43
|
+
id: string;
|
|
44
|
+
defaultMessage: string;
|
|
45
|
+
description: string;
|
|
46
|
+
};
|
|
47
|
+
closedAccountMsg: {
|
|
48
|
+
id: string;
|
|
49
|
+
defaultMessage: string;
|
|
50
|
+
description: string;
|
|
51
|
+
};
|
|
52
|
+
closedAccountDescMsgNoDate: {
|
|
53
|
+
id: string;
|
|
54
|
+
defaultMessage: string;
|
|
55
|
+
description: string;
|
|
56
|
+
};
|
|
57
|
+
closedAccountDescMsgHasDateThisWeek: {
|
|
58
|
+
id: string;
|
|
59
|
+
defaultMessage: string;
|
|
60
|
+
description: string;
|
|
61
|
+
};
|
|
62
|
+
closedAccountDescMsgHasDateThisMonth: {
|
|
63
|
+
id: string;
|
|
64
|
+
defaultMessage: string;
|
|
65
|
+
description: string;
|
|
66
|
+
};
|
|
67
|
+
closedAccountDescMsgHasDateLastMonth: {
|
|
68
|
+
id: string;
|
|
69
|
+
defaultMessage: string;
|
|
70
|
+
description: string;
|
|
71
|
+
};
|
|
72
|
+
closedAccountDescMsgHasDateAFewMonths: {
|
|
73
|
+
id: string;
|
|
74
|
+
defaultMessage: string;
|
|
75
|
+
description: string;
|
|
76
|
+
};
|
|
77
|
+
closedAccountDescMsgHasDateSeveralMonths: {
|
|
78
|
+
id: string;
|
|
79
|
+
defaultMessage: string;
|
|
80
|
+
description: string;
|
|
81
|
+
};
|
|
82
|
+
closedAccountDescMsgHasDateMoreThanAYear: {
|
|
83
|
+
id: string;
|
|
84
|
+
defaultMessage: string;
|
|
85
|
+
description: string;
|
|
86
|
+
};
|
|
87
|
+
disabledAccountDefaultName: {
|
|
88
|
+
id: string;
|
|
89
|
+
defaultMessage: string;
|
|
90
|
+
description: string;
|
|
91
|
+
};
|
|
92
|
+
teamViewProfile: {
|
|
93
|
+
id: string;
|
|
94
|
+
defaultMessage: string;
|
|
95
|
+
description: string;
|
|
96
|
+
};
|
|
97
|
+
memberCount: {
|
|
98
|
+
id: string;
|
|
99
|
+
defaultMessage: string;
|
|
100
|
+
description: string;
|
|
101
|
+
};
|
|
102
|
+
memberCountIncludingYou: {
|
|
103
|
+
id: string;
|
|
104
|
+
defaultMessage: string;
|
|
105
|
+
description: string;
|
|
106
|
+
};
|
|
107
|
+
membersMoreThan50: {
|
|
108
|
+
id: string;
|
|
109
|
+
defaultMessage: string;
|
|
110
|
+
description: string;
|
|
111
|
+
};
|
|
112
|
+
membersMoreThan50IncludingYou: {
|
|
113
|
+
id: string;
|
|
114
|
+
defaultMessage: string;
|
|
115
|
+
description: string;
|
|
116
|
+
};
|
|
117
|
+
teamErrorTitle: {
|
|
118
|
+
id: string;
|
|
119
|
+
defaultMessage: string;
|
|
120
|
+
description: string;
|
|
121
|
+
};
|
|
122
|
+
teamErrorText: {
|
|
123
|
+
id: string;
|
|
124
|
+
defaultMessage: string;
|
|
125
|
+
description: string;
|
|
126
|
+
};
|
|
127
|
+
teamErrorButton: {
|
|
128
|
+
id: string;
|
|
129
|
+
defaultMessage: string;
|
|
130
|
+
description: string;
|
|
131
|
+
};
|
|
132
|
+
teamForbiddenErrorStateTitle: {
|
|
133
|
+
id: string;
|
|
134
|
+
defaultMessage: string;
|
|
135
|
+
description: string;
|
|
136
|
+
};
|
|
137
|
+
teamForbiddenErrorStateDescription: {
|
|
138
|
+
id: string;
|
|
139
|
+
defaultMessage: string;
|
|
140
|
+
description: string;
|
|
141
|
+
};
|
|
142
|
+
managerSectionHeading: {
|
|
143
|
+
id: string;
|
|
144
|
+
defaultMessage: string;
|
|
145
|
+
description: string;
|
|
146
|
+
};
|
|
147
|
+
directReportsSectionHeading: {
|
|
148
|
+
id: string;
|
|
149
|
+
defaultMessage: string;
|
|
150
|
+
description: string;
|
|
151
|
+
};
|
|
152
|
+
giveKudosButton: {
|
|
153
|
+
id: string;
|
|
154
|
+
defaultMessage: string;
|
|
155
|
+
description: string;
|
|
156
|
+
};
|
|
157
|
+
profileCardMoreIconLabel: {
|
|
158
|
+
id: string;
|
|
159
|
+
defaultMessage: string;
|
|
160
|
+
description: string;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
export default messages;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default as getMockProfileClient } from './mock-profile-client';
|
|
2
|
+
export { default as getMockTeamClient } from './mock-team-client';
|
|
3
|
+
export { default as profiles } from './profile-data';
|
|
4
|
+
export { simpleMockTeamClient, simpleMockUserClient, simpleProfileClient, } from './simple-mock-clients';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function getMockProfileClient(BaseProfileClient: any, modifyResponse: any): any;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
declare const profiles: ({
|
|
2
|
+
User: {
|
|
3
|
+
avatarUrl: string;
|
|
4
|
+
fullName: string;
|
|
5
|
+
nickname: string;
|
|
6
|
+
email: string;
|
|
7
|
+
location: string;
|
|
8
|
+
meta: string;
|
|
9
|
+
remoteTimeString: string;
|
|
10
|
+
remoteWeekdayIndex: number;
|
|
11
|
+
remoteWeekdayString: string;
|
|
12
|
+
status?: undefined;
|
|
13
|
+
};
|
|
14
|
+
} | {
|
|
15
|
+
User: {
|
|
16
|
+
avatarUrl: string;
|
|
17
|
+
fullName: string;
|
|
18
|
+
nickname: string;
|
|
19
|
+
email: string;
|
|
20
|
+
location: string;
|
|
21
|
+
meta: string;
|
|
22
|
+
status: string;
|
|
23
|
+
remoteTimeString: string;
|
|
24
|
+
remoteWeekdayIndex: number;
|
|
25
|
+
remoteWeekdayString: string;
|
|
26
|
+
};
|
|
27
|
+
} | {
|
|
28
|
+
User: {
|
|
29
|
+
avatarUrl: string;
|
|
30
|
+
fullName: string;
|
|
31
|
+
nickname: string;
|
|
32
|
+
email: string;
|
|
33
|
+
meta: string;
|
|
34
|
+
location?: undefined;
|
|
35
|
+
remoteTimeString?: undefined;
|
|
36
|
+
remoteWeekdayIndex?: undefined;
|
|
37
|
+
remoteWeekdayString?: undefined;
|
|
38
|
+
status?: undefined;
|
|
39
|
+
};
|
|
40
|
+
})[];
|
|
41
|
+
export default profiles;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import ProfileCardClient from '../client/ProfileCardClient';
|
|
2
|
+
import TeamProfileCardClient from '../client/TeamProfileCardClient';
|
|
3
|
+
import UserProfileCardClient from '../client/UserProfileCardClient';
|
|
4
|
+
import { ProfileCardClientData, Team } from '../types';
|
|
5
|
+
declare class SimpleMockTeamClient extends TeamProfileCardClient {
|
|
6
|
+
makeRequest(teamId: string): Promise<Team>;
|
|
7
|
+
}
|
|
8
|
+
declare class SimpleMockUserClient extends UserProfileCardClient {
|
|
9
|
+
makeRequest(cloudId: string, userId: string): Promise<ProfileCardClientData>;
|
|
10
|
+
}
|
|
11
|
+
export declare const simpleMockUserClient: SimpleMockUserClient;
|
|
12
|
+
export declare const simpleMockTeamClient: SimpleMockTeamClient;
|
|
13
|
+
export declare const simpleProfileClient: ProfileCardClient;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Team } from '../types';
|
|
2
|
+
export default function teamData({ headerImage, displayName, members: memberCount, description, }: {
|
|
3
|
+
headerImage?: 'None' | 'Picture';
|
|
4
|
+
displayName?: 'Short' | 'Medium' | 'Long' | 'Overlong';
|
|
5
|
+
members?: number;
|
|
6
|
+
description?: 'None' | 'Short' | 'Medium' | 'Long' | 'Overlong';
|
|
7
|
+
}): Team;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface FullNameLabelProps {
|
|
3
|
+
noMeta?: boolean;
|
|
4
|
+
isDisabledAccount?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const CardContainerEmpty: import("@emotion/styled").StyledComponent<{
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
as?: React.ElementType<any> | undefined;
|
|
9
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
10
|
+
export declare const CardWrapper: import("@emotion/styled").StyledComponent<{
|
|
11
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
+
as?: React.ElementType<any> | undefined;
|
|
13
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
14
|
+
export declare const ProfileImage: import("@emotion/styled").StyledComponent<{
|
|
15
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
+
as?: React.ElementType<any> | undefined;
|
|
17
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
18
|
+
export declare const ActionsFlexSpacer: import("@emotion/styled").StyledComponent<{
|
|
19
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
20
|
+
as?: React.ElementType<any> | undefined;
|
|
21
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
22
|
+
export declare const KudosBlobAnimationStyle: import("@emotion/styled").StyledComponent<{
|
|
23
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
24
|
+
as?: React.ElementType<any> | undefined;
|
|
25
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
26
|
+
export declare const KudosBlobAnimation: React.FC;
|
|
27
|
+
export declare const AnimatedKudosButton: import("@emotion/styled").StyledComponent<{
|
|
28
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
29
|
+
as?: React.ElementType<any> | undefined;
|
|
30
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
31
|
+
export declare const ActionButtonGroup: import("@emotion/styled").StyledComponent<{
|
|
32
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
33
|
+
as?: React.ElementType<any> | undefined;
|
|
34
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
35
|
+
export declare const OverflowActionButtonsWrapper: import("@emotion/styled").StyledComponent<{
|
|
36
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
37
|
+
as?: React.ElementType<any> | undefined;
|
|
38
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
39
|
+
export declare const CardContent: import("@emotion/styled").StyledComponent<{
|
|
40
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
41
|
+
as?: React.ElementType<any> | undefined;
|
|
42
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
43
|
+
export declare const DetailsGroup: import("@emotion/styled").StyledComponent<{
|
|
44
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
45
|
+
as?: React.ElementType<any> | undefined;
|
|
46
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
47
|
+
export declare const DisabledInfo: import("@emotion/styled").StyledComponent<{
|
|
48
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
49
|
+
as?: React.ElementType<any> | undefined;
|
|
50
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
51
|
+
export declare const FullNameLabel: import("@emotion/styled").StyledComponent<{
|
|
52
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
53
|
+
as?: React.ElementType<any> | undefined;
|
|
54
|
+
} & FullNameLabelProps, React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
55
|
+
export declare const LozengeWrapper: import("@emotion/styled").StyledComponent<{
|
|
56
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
57
|
+
as?: React.ElementType<any> | undefined;
|
|
58
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
59
|
+
export declare const CustomLozengeContainer: import("@emotion/styled").StyledComponent<{
|
|
60
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
61
|
+
as?: React.ElementType<any> | undefined;
|
|
62
|
+
} & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
63
|
+
children?: React.ReactNode;
|
|
64
|
+
} & {
|
|
65
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
66
|
+
}, {}, {}>;
|
|
67
|
+
export declare const JobTitleLabel: import("@emotion/styled").StyledComponent<{
|
|
68
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
69
|
+
as?: React.ElementType<any> | undefined;
|
|
70
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
71
|
+
export declare const AppTitleLabel: import("@emotion/styled").StyledComponent<{
|
|
72
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
73
|
+
as?: React.ElementType<any> | undefined;
|
|
74
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
75
|
+
export declare const SpinnerContainer: import("@emotion/styled").StyledComponent<{
|
|
76
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
77
|
+
as?: React.ElementType<any> | undefined;
|
|
78
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
79
|
+
interface CardContainerProps {
|
|
80
|
+
isDisabledUser?: boolean;
|
|
81
|
+
withoutElevation?: boolean;
|
|
82
|
+
}
|
|
83
|
+
export declare const CardContainer: import("@emotion/styled").StyledComponent<{
|
|
84
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
85
|
+
as?: React.ElementType<any> | undefined;
|
|
86
|
+
} & CardContainerProps, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
87
|
+
export declare const DetailsLabel: import("@emotion/styled").StyledComponent<{
|
|
88
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
89
|
+
as?: React.ElementType<any> | undefined;
|
|
90
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
91
|
+
export declare const DetailsLabelIcon: import("@emotion/styled").StyledComponent<{
|
|
92
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
93
|
+
as?: React.ElementType<any> | undefined;
|
|
94
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
95
|
+
export declare const DetailsLabelText: import("@emotion/styled").StyledComponent<{
|
|
96
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
97
|
+
as?: React.ElementType<any> | undefined;
|
|
98
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
99
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
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> | 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> | undefined;
|
|
9
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
|
|
10
|
+
export declare const ErrorText: import("@emotion/styled").StyledComponent<{
|
|
11
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
+
as?: import("react").ElementType<any> | undefined;
|
|
13
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
14
|
+
export declare const TeamErrorTitle: import("@emotion/styled").StyledComponent<{
|
|
15
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
+
as?: import("react").ElementType<any> | undefined;
|
|
17
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
|
|
18
|
+
export declare const TeamErrorText: import("@emotion/styled").StyledComponent<{
|
|
19
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
20
|
+
as?: import("react").ElementType<any> | undefined;
|
|
21
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const ReportingLinesSection: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
+
export declare const ReportingLinesHeading: import("@emotion/styled").StyledComponent<{
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
as?: import("react").ElementType<any> | undefined;
|
|
9
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
|
|
10
|
+
export declare const ManagerSection: import("@emotion/styled").StyledComponent<{
|
|
11
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
+
as?: import("react").ElementType<any> | undefined;
|
|
13
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
14
|
+
export declare const ManagerName: import("@emotion/styled").StyledComponent<{
|
|
15
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
+
as?: import("react").ElementType<any> | undefined;
|
|
17
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
18
|
+
export declare const OffsetWrapper: import("@emotion/styled").StyledComponent<{
|
|
19
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
20
|
+
as?: import("react").ElementType<any> | undefined;
|
|
21
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,64 @@
|
|
|
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> | 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> | 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> | 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> | undefined;
|
|
17
|
+
} & {
|
|
18
|
+
image?: string | undefined;
|
|
19
|
+
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> | 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> | 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> | 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> | 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> | 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> | 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> | 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> | 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> | 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> | 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> | undefined;
|
|
64
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const bgColor: "var(--ds-surface-overlay)";
|
|
2
|
+
export declare const headerBgColor: "var(--ds-background-brand-bold)";
|
|
3
|
+
export declare const teamHeaderBgColor: "var(--ds-background-neutral)";
|
|
4
|
+
export declare const headerBgColorDisabledUser: "var(--ds-background-disabled)";
|
|
5
|
+
export declare const headerTextColor: "var(--ds-text-inverse)";
|
|
6
|
+
export declare const headerTextColorInactive: "var(--ds-text)";
|
|
7
|
+
export declare const appLabelBgColor: "var(--ds-background-neutral)";
|
|
8
|
+
export declare const appLabelTextColor: "var(--ds-text)";
|
|
9
|
+
export declare const labelTextColor: "var(--ds-text)";
|
|
10
|
+
export declare const labelIconColor: "var(--ds-text-subtlest)";
|
|
11
|
+
export declare const errorIconColor: "var(--ds-text-disabled)";
|
|
12
|
+
export declare const errorTitleColor: "var(--ds-text)";
|
|
13
|
+
export declare const errorTextColor: "var(--ds-text-subtlest)";
|