@atlaskit/profilecard 16.7.0 → 16.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/cjs/components/User/ProfileCard.js +13 -4
- package/dist/cjs/i18n/cs.js +1 -0
- package/dist/cjs/i18n/da.js +1 -0
- package/dist/cjs/i18n/de.js +1 -0
- package/dist/cjs/i18n/en.js +1 -0
- package/dist/cjs/i18n/en_GB.js +1 -0
- package/dist/cjs/i18n/en_ZZ.js +1 -0
- package/dist/cjs/i18n/es.js +1 -0
- package/dist/cjs/i18n/fi.js +1 -0
- package/dist/cjs/i18n/fr.js +1 -0
- package/dist/cjs/i18n/hu.js +1 -0
- package/dist/cjs/i18n/it.js +1 -0
- package/dist/cjs/i18n/ja.js +1 -0
- package/dist/cjs/i18n/ko.js +1 -0
- package/dist/cjs/i18n/nb.js +1 -0
- package/dist/cjs/i18n/nl.js +1 -0
- package/dist/cjs/i18n/pl.js +1 -0
- package/dist/cjs/i18n/pt_BR.js +1 -0
- package/dist/cjs/i18n/ru.js +1 -0
- package/dist/cjs/i18n/sv.js +1 -0
- package/dist/cjs/i18n/th.js +1 -0
- package/dist/cjs/i18n/tr.js +1 -0
- package/dist/cjs/i18n/uk.js +1 -0
- package/dist/cjs/i18n/vi.js +1 -0
- package/dist/cjs/i18n/zh.js +1 -0
- package/dist/cjs/i18n/zh_TW.js +1 -0
- package/dist/cjs/styled/Card.js +29 -18
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/User/ProfileCard.js +14 -5
- package/dist/es2019/i18n/cs.js +1 -0
- package/dist/es2019/i18n/da.js +1 -0
- package/dist/es2019/i18n/de.js +1 -0
- package/dist/es2019/i18n/en.js +1 -0
- package/dist/es2019/i18n/en_GB.js +1 -0
- package/dist/es2019/i18n/en_ZZ.js +1 -0
- package/dist/es2019/i18n/es.js +1 -0
- package/dist/es2019/i18n/fi.js +1 -0
- package/dist/es2019/i18n/fr.js +1 -0
- package/dist/es2019/i18n/hu.js +1 -0
- package/dist/es2019/i18n/it.js +1 -0
- package/dist/es2019/i18n/ja.js +1 -0
- package/dist/es2019/i18n/ko.js +1 -0
- package/dist/es2019/i18n/nb.js +1 -0
- package/dist/es2019/i18n/nl.js +1 -0
- package/dist/es2019/i18n/pl.js +1 -0
- package/dist/es2019/i18n/pt_BR.js +1 -0
- package/dist/es2019/i18n/ru.js +1 -0
- package/dist/es2019/i18n/sv.js +1 -0
- package/dist/es2019/i18n/th.js +1 -0
- package/dist/es2019/i18n/tr.js +1 -0
- package/dist/es2019/i18n/uk.js +1 -0
- package/dist/es2019/i18n/vi.js +1 -0
- package/dist/es2019/i18n/zh.js +1 -0
- package/dist/es2019/i18n/zh_TW.js +1 -0
- package/dist/es2019/styled/Card.js +37 -1
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/User/ProfileCard.js +14 -5
- package/dist/esm/i18n/cs.js +1 -0
- package/dist/esm/i18n/da.js +1 -0
- package/dist/esm/i18n/de.js +1 -0
- package/dist/esm/i18n/en.js +1 -0
- package/dist/esm/i18n/en_GB.js +1 -0
- package/dist/esm/i18n/en_ZZ.js +1 -0
- package/dist/esm/i18n/es.js +1 -0
- package/dist/esm/i18n/fi.js +1 -0
- package/dist/esm/i18n/fr.js +1 -0
- package/dist/esm/i18n/hu.js +1 -0
- package/dist/esm/i18n/it.js +1 -0
- package/dist/esm/i18n/ja.js +1 -0
- package/dist/esm/i18n/ko.js +1 -0
- package/dist/esm/i18n/nb.js +1 -0
- package/dist/esm/i18n/nl.js +1 -0
- package/dist/esm/i18n/pl.js +1 -0
- package/dist/esm/i18n/pt_BR.js +1 -0
- package/dist/esm/i18n/ru.js +1 -0
- package/dist/esm/i18n/sv.js +1 -0
- package/dist/esm/i18n/th.js +1 -0
- package/dist/esm/i18n/tr.js +1 -0
- package/dist/esm/i18n/uk.js +1 -0
- package/dist/esm/i18n/vi.js +1 -0
- package/dist/esm/i18n/zh.js +1 -0
- package/dist/esm/i18n/zh_TW.js +1 -0
- package/dist/esm/styled/Card.js +22 -18
- package/dist/esm/util/analytics.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/components/User/ProfileCard.d.ts +1 -0
- package/dist/types/i18n/cs.d.ts +1 -0
- package/dist/types/i18n/da.d.ts +1 -0
- package/dist/types/i18n/de.d.ts +1 -0
- package/dist/types/i18n/en.d.ts +1 -0
- package/dist/types/i18n/en_GB.d.ts +1 -0
- package/dist/types/i18n/en_ZZ.d.ts +1 -0
- package/dist/types/i18n/es.d.ts +1 -0
- package/dist/types/i18n/fi.d.ts +1 -0
- package/dist/types/i18n/fr.d.ts +1 -0
- package/dist/types/i18n/hu.d.ts +1 -0
- package/dist/types/i18n/it.d.ts +1 -0
- package/dist/types/i18n/ja.d.ts +1 -0
- package/dist/types/i18n/ko.d.ts +1 -0
- package/dist/types/i18n/nb.d.ts +1 -0
- package/dist/types/i18n/nl.d.ts +1 -0
- package/dist/types/i18n/pl.d.ts +1 -0
- package/dist/types/i18n/pt_BR.d.ts +1 -0
- package/dist/types/i18n/ru.d.ts +1 -0
- package/dist/types/i18n/sv.d.ts +1 -0
- package/dist/types/i18n/th.d.ts +1 -0
- package/dist/types/i18n/tr.d.ts +1 -0
- package/dist/types/i18n/uk.d.ts +1 -0
- package/dist/types/i18n/vi.d.ts +1 -0
- package/dist/types/i18n/zh.d.ts +1 -0
- package/dist/types/i18n/zh_TW.d.ts +1 -0
- package/dist/types/styled/Card.d.ts +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 16.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`319c46e77de`](https://bitbucket.org/atlassian/atlassian-frontend/commits/319c46e77de) - [ux] Adding a button background animation when the give kudos button on the profile card is hovered over
|
|
8
|
+
|
|
3
9
|
## 16.7.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -77,6 +77,7 @@ var Profilecard = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
77
77
|
|
|
78
78
|
(0, _classCallCheck2.default)(this, Profilecard);
|
|
79
79
|
_this = _super.call(this, props);
|
|
80
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "GIVE_KUDOS_ACTION_ID", 'give-kudos');
|
|
80
81
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "durationSince", function (from) {
|
|
81
82
|
var fromParsed = from || 0;
|
|
82
83
|
return fromParsed > 0 ? Date.now() - fromParsed : null;
|
|
@@ -106,8 +107,10 @@ var Profilecard = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
106
107
|
}
|
|
107
108
|
});
|
|
108
109
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "renderButton", function (action, idx) {
|
|
109
|
-
|
|
110
|
-
|
|
110
|
+
var isGiveKudosActionButton = action.id === _this.GIVE_KUDOS_ACTION_ID;
|
|
111
|
+
|
|
112
|
+
var actionButton = /*#__PURE__*/_react.default.createElement(_customThemeButton.default, {
|
|
113
|
+
appearance: "default",
|
|
111
114
|
key: action.id || idx,
|
|
112
115
|
onClick: function onClick(event) {
|
|
113
116
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
@@ -117,7 +120,13 @@ var Profilecard = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
117
120
|
return _this.onActionClick(action, args, event);
|
|
118
121
|
},
|
|
119
122
|
href: action.link
|
|
120
|
-
}, action.label);
|
|
123
|
+
}, action.label, isGiveKudosActionButton && /*#__PURE__*/_react.default.createElement(_Card.KudosBlobAnimation, null));
|
|
124
|
+
|
|
125
|
+
if (isGiveKudosActionButton) {
|
|
126
|
+
return /*#__PURE__*/_react.default.createElement(_Card.AnimatedKudosButton, null, actionButton);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
return actionButton;
|
|
121
130
|
});
|
|
122
131
|
_this.timeOpen = null;
|
|
123
132
|
|
|
@@ -156,7 +165,7 @@ var Profilecard = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
156
165
|
if (!this.props.isCurrentUser && this.props.isKudosEnabled) {
|
|
157
166
|
var kudosAction = {
|
|
158
167
|
label: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.default.giveKudosButton),
|
|
159
|
-
id:
|
|
168
|
+
id: this.GIVE_KUDOS_ACTION_ID,
|
|
160
169
|
callback: function callback() {
|
|
161
170
|
_this3.kudosButtonCallback();
|
|
162
171
|
},
|
package/dist/cjs/i18n/cs.js
CHANGED
|
@@ -23,6 +23,7 @@ var _default = {
|
|
|
23
23
|
'pt.profile-card.closed.account.no.date': 'Účet uživatele byl smazán.',
|
|
24
24
|
'pt.profile-card.disabled.account.default.name': 'Bývalý uživatel',
|
|
25
25
|
'pt.profile-card.general.msg.disabled.user': 'S touto osobou již nemůžete spolupracovat.',
|
|
26
|
+
'pt.profile-card.give-kudos': 'Pogratulovat',
|
|
26
27
|
'pt.profile-card.inactive.account': 'Deaktivovaný účet',
|
|
27
28
|
'pt.profile-card.inactive.account.has.date.a.few.months': 'Účet uživatele je deaktivovaný již několik měsíců.',
|
|
28
29
|
'pt.profile-card.inactive.account.has.date.last.month': 'Účet uživatele byl deaktivován minulý měsíc.',
|
package/dist/cjs/i18n/da.js
CHANGED
|
@@ -23,6 +23,7 @@ var _default = {
|
|
|
23
23
|
'pt.profile-card.closed.account.no.date': 'Personens konto er blevet slettet.',
|
|
24
24
|
'pt.profile-card.disabled.account.default.name': 'Forhenværende bruger',
|
|
25
25
|
'pt.profile-card.general.msg.disabled.user': 'Du kan ikke længere samarbejde med denne person.',
|
|
26
|
+
'pt.profile-card.give-kudos': 'Giv ros',
|
|
26
27
|
'pt.profile-card.inactive.account': 'Konto deaktiveret',
|
|
27
28
|
'pt.profile-card.inactive.account.has.date.a.few.months': 'Personens konto har været deaktiveret i nogle måneder.',
|
|
28
29
|
'pt.profile-card.inactive.account.has.date.last.month': 'Personens konto blev deaktiveret i sidste måned.',
|
package/dist/cjs/i18n/de.js
CHANGED
|
@@ -23,6 +23,7 @@ var _default = {
|
|
|
23
23
|
'pt.profile-card.closed.account.no.date': 'Das Konto dieser Person wurde gelöscht.',
|
|
24
24
|
'pt.profile-card.disabled.account.default.name': 'Ehemaliger Benutzer',
|
|
25
25
|
'pt.profile-card.general.msg.disabled.user': 'Sie können mit dieser Person nicht mehr zusammenarbeiten.',
|
|
26
|
+
'pt.profile-card.give-kudos': 'Loben',
|
|
26
27
|
'pt.profile-card.inactive.account': 'Konto deaktiviert',
|
|
27
28
|
'pt.profile-card.inactive.account.has.date.a.few.months': 'Das Konto dieser Person wurde vor wenigen Monaten gelöscht.',
|
|
28
29
|
'pt.profile-card.inactive.account.has.date.last.month': 'Das Konto dieser Person wurde letzten Monat deaktiviert.',
|
package/dist/cjs/i18n/en.js
CHANGED
|
@@ -23,6 +23,7 @@ var _default = {
|
|
|
23
23
|
'pt.profile-card.closed.account.no.date': 'Their account has been deleted.',
|
|
24
24
|
'pt.profile-card.disabled.account.default.name': 'Former user',
|
|
25
25
|
'pt.profile-card.general.msg.disabled.user': 'You can no longer collaborate with this person.',
|
|
26
|
+
'pt.profile-card.give-kudos': 'Give kudos',
|
|
26
27
|
'pt.profile-card.inactive.account': 'Account deactivated',
|
|
27
28
|
'pt.profile-card.inactive.account.has.date.a.few.months': 'Their account has been deactivated for a few months.',
|
|
28
29
|
'pt.profile-card.inactive.account.has.date.last.month': 'Their account was deactivated last month.',
|
package/dist/cjs/i18n/en_GB.js
CHANGED
|
@@ -23,6 +23,7 @@ var _default = {
|
|
|
23
23
|
'pt.profile-card.closed.account.no.date': 'Their account has been deleted.',
|
|
24
24
|
'pt.profile-card.disabled.account.default.name': 'Former user',
|
|
25
25
|
'pt.profile-card.general.msg.disabled.user': 'You can no longer collaborate with this person.',
|
|
26
|
+
'pt.profile-card.give-kudos': 'Give kudos',
|
|
26
27
|
'pt.profile-card.inactive.account': 'Account deactivated',
|
|
27
28
|
'pt.profile-card.inactive.account.has.date.a.few.months': 'Their account has been deactivated for a few months.',
|
|
28
29
|
'pt.profile-card.inactive.account.has.date.last.month': 'Their account was deactivated last month.',
|
package/dist/cjs/i18n/en_ZZ.js
CHANGED
|
@@ -23,6 +23,7 @@ var _default = {
|
|
|
23
23
|
'pt.profile-card.closed.account.no.date': 'Their account has been deleted.',
|
|
24
24
|
'pt.profile-card.disabled.account.default.name': 'Former user',
|
|
25
25
|
'pt.profile-card.general.msg.disabled.user': 'You can no longer collaborate with this person.',
|
|
26
|
+
'pt.profile-card.give-kudos': 'Give kudos',
|
|
26
27
|
'pt.profile-card.inactive.account': 'Account deactivated',
|
|
27
28
|
'pt.profile-card.inactive.account.has.date.a.few.months': 'Their account has been deactivated for a few months.',
|
|
28
29
|
'pt.profile-card.inactive.account.has.date.last.month': 'Their account was deactivated last month.',
|
package/dist/cjs/i18n/es.js
CHANGED
|
@@ -23,6 +23,7 @@ var _default = {
|
|
|
23
23
|
'pt.profile-card.closed.account.no.date': 'Su cuenta está eliminada.',
|
|
24
24
|
'pt.profile-card.disabled.account.default.name': 'Antiguo usuario',
|
|
25
25
|
'pt.profile-card.general.msg.disabled.user': 'Ya no puedes colaborar con esta persona.',
|
|
26
|
+
'pt.profile-card.give-kudos': 'Felicitar',
|
|
26
27
|
'pt.profile-card.inactive.account': 'Cuenta desactivada',
|
|
27
28
|
'pt.profile-card.inactive.account.has.date.a.few.months': 'Su cuenta se desactivó hace algunos meses.',
|
|
28
29
|
'pt.profile-card.inactive.account.has.date.last.month': 'Su cuenta se desactivó el mes pasado.',
|
package/dist/cjs/i18n/fi.js
CHANGED
|
@@ -23,6 +23,7 @@ var _default = {
|
|
|
23
23
|
'pt.profile-card.closed.account.no.date': 'Hänen tilinsä on poistettu.',
|
|
24
24
|
'pt.profile-card.disabled.account.default.name': 'Entinen käyttäjä',
|
|
25
25
|
'pt.profile-card.general.msg.disabled.user': 'Et voi enää tehdä yhteistyötä tämän henkilön kanssa.',
|
|
26
|
+
'pt.profile-card.give-kudos': 'Anna kehuja',
|
|
26
27
|
'pt.profile-card.inactive.account': 'Tili poistettu käytöstä',
|
|
27
28
|
'pt.profile-card.inactive.account.has.date.a.few.months': 'Hänen tilinsä on ollut poissa käytöstä muutaman kuukauden ajan.',
|
|
28
29
|
'pt.profile-card.inactive.account.has.date.last.month': 'Hänen tilinsä poistettiin käytöstä viime kuussa.',
|
package/dist/cjs/i18n/fr.js
CHANGED
|
@@ -23,6 +23,7 @@ var _default = {
|
|
|
23
23
|
'pt.profile-card.closed.account.no.date': 'Son compte a été supprimé.',
|
|
24
24
|
'pt.profile-card.disabled.account.default.name': 'Ancien utilisateur',
|
|
25
25
|
'pt.profile-card.general.msg.disabled.user': 'Vous ne pouvez plus collaborer avec cette personne.',
|
|
26
|
+
'pt.profile-card.give-kudos': 'Féliciter',
|
|
26
27
|
'pt.profile-card.inactive.account': 'Compte désactivé',
|
|
27
28
|
'pt.profile-card.inactive.account.has.date.a.few.months': 'Son compte a été désactivé il y a quelques mois.',
|
|
28
29
|
'pt.profile-card.inactive.account.has.date.last.month': 'Son compte a été désactivé le mois dernier.',
|
package/dist/cjs/i18n/hu.js
CHANGED
|
@@ -23,6 +23,7 @@ var _default = {
|
|
|
23
23
|
'pt.profile-card.closed.account.no.date': 'A fiókját töröltük.',
|
|
24
24
|
'pt.profile-card.disabled.account.default.name': 'Korábbi felhasználó',
|
|
25
25
|
'pt.profile-card.general.msg.disabled.user': 'A továbbiakban nem működhet együtt ezzel a személlyel.',
|
|
26
|
+
'pt.profile-card.give-kudos': 'Dicséret',
|
|
26
27
|
'pt.profile-card.inactive.account': 'A fiók inaktiválva.',
|
|
27
28
|
'pt.profile-card.inactive.account.has.date.a.few.months': 'A fiókját néhány hónapja inaktiváltuk.',
|
|
28
29
|
'pt.profile-card.inactive.account.has.date.last.month': 'A fiókját a múlt hónapban inaktiváltuk.',
|
package/dist/cjs/i18n/it.js
CHANGED
|
@@ -23,6 +23,7 @@ var _default = {
|
|
|
23
23
|
'pt.profile-card.closed.account.no.date': 'Il suo account è stato eliminato.',
|
|
24
24
|
'pt.profile-card.disabled.account.default.name': 'Ex utente',
|
|
25
25
|
'pt.profile-card.general.msg.disabled.user': 'Non puoi più collaborare con questa persona.',
|
|
26
|
+
'pt.profile-card.give-kudos': 'Complimentati',
|
|
26
27
|
'pt.profile-card.inactive.account': 'Account disattivato',
|
|
27
28
|
'pt.profile-card.inactive.account.has.date.a.few.months': 'Il suo account è disattivato da qualche mese.',
|
|
28
29
|
'pt.profile-card.inactive.account.has.date.last.month': 'Il suo account è stato disattivato il mese scorso.',
|
package/dist/cjs/i18n/ja.js
CHANGED
|
@@ -23,6 +23,7 @@ var _default = {
|
|
|
23
23
|
'pt.profile-card.closed.account.no.date': 'アカウントは削除されています。',
|
|
24
24
|
'pt.profile-card.disabled.account.default.name': '元ユーザー',
|
|
25
25
|
'pt.profile-card.general.msg.disabled.user': 'もうこの人とコラボレーションすることはできません。',
|
|
26
|
+
'pt.profile-card.give-kudos': '賞賛を送る',
|
|
26
27
|
'pt.profile-card.inactive.account': '無効なアカウント',
|
|
27
28
|
'pt.profile-card.inactive.account.has.date.a.few.months': 'アカウントは 2〜3 か月前に無効になりました。',
|
|
28
29
|
'pt.profile-card.inactive.account.has.date.last.month': 'アカウントは先月無効になりました。',
|
package/dist/cjs/i18n/ko.js
CHANGED
|
@@ -23,6 +23,7 @@ var _default = {
|
|
|
23
23
|
'pt.profile-card.closed.account.no.date': '계정이 삭제되었습니다.',
|
|
24
24
|
'pt.profile-card.disabled.account.default.name': '이전 사용자',
|
|
25
25
|
'pt.profile-card.general.msg.disabled.user': '더 이상 이 사람과 협업할 수 없습니다.',
|
|
26
|
+
'pt.profile-card.give-kudos': '칭찬하기',
|
|
26
27
|
'pt.profile-card.inactive.account': '계정이 비활성화됨',
|
|
27
28
|
'pt.profile-card.inactive.account.has.date.a.few.months': '계정이 몇 달 전에 비활성화되었습니다.',
|
|
28
29
|
'pt.profile-card.inactive.account.has.date.last.month': '계정이 지난달에 비활성화되었습니다.',
|
package/dist/cjs/i18n/nb.js
CHANGED
|
@@ -23,6 +23,7 @@ var _default = {
|
|
|
23
23
|
'pt.profile-card.closed.account.no.date': 'Vedkommendes konto er slettet.',
|
|
24
24
|
'pt.profile-card.disabled.account.default.name': 'Tidligere bruker',
|
|
25
25
|
'pt.profile-card.general.msg.disabled.user': 'Du kan ikke lenger samarbeide med denne personen.',
|
|
26
|
+
'pt.profile-card.give-kudos': 'Gi kudos',
|
|
26
27
|
'pt.profile-card.inactive.account': 'Kontoen er deaktivert',
|
|
27
28
|
'pt.profile-card.inactive.account.has.date.a.few.months': 'Vedkommendes konto har vært deaktivert i noen måneder.',
|
|
28
29
|
'pt.profile-card.inactive.account.has.date.last.month': 'Vedkommendes konto ble deaktivert denne måneden.',
|
package/dist/cjs/i18n/nl.js
CHANGED
|
@@ -23,6 +23,7 @@ var _default = {
|
|
|
23
23
|
'pt.profile-card.closed.account.no.date': 'Zijn/haar account is verwijderd.',
|
|
24
24
|
'pt.profile-card.disabled.account.default.name': 'Voormalige gebruiker',
|
|
25
25
|
'pt.profile-card.general.msg.disabled.user': 'Je kunt niet meer samenwerken met deze persoon.',
|
|
26
|
+
'pt.profile-card.give-kudos': 'Geef kudos',
|
|
26
27
|
'pt.profile-card.inactive.account': 'Account gedeactiveerd',
|
|
27
28
|
'pt.profile-card.inactive.account.has.date.a.few.months': 'Zijn/haar account is al een paar maanden gedeactiveerd.',
|
|
28
29
|
'pt.profile-card.inactive.account.has.date.last.month': 'Zijn/haar account is vorige maand gedeactiveerd.',
|
package/dist/cjs/i18n/pl.js
CHANGED
|
@@ -23,6 +23,7 @@ var _default = {
|
|
|
23
23
|
'pt.profile-card.closed.account.no.date': 'Jej konto zostało usunięte.',
|
|
24
24
|
'pt.profile-card.disabled.account.default.name': 'Były użytkownik',
|
|
25
25
|
'pt.profile-card.general.msg.disabled.user': 'Nie możesz już współpracować z tą osobą.',
|
|
26
|
+
'pt.profile-card.give-kudos': 'Przekaż wyrazy uznania',
|
|
26
27
|
'pt.profile-card.inactive.account': 'Konto zdezaktywowane',
|
|
27
28
|
'pt.profile-card.inactive.account.has.date.a.few.months': 'Jej konto zostało zdezaktywowane przynajmniej kilka miesięcy temu.',
|
|
28
29
|
'pt.profile-card.inactive.account.has.date.last.month': 'Jej konto zdezaktywowane w zeszłym miesiącu.',
|
package/dist/cjs/i18n/pt_BR.js
CHANGED
|
@@ -23,6 +23,7 @@ var _default = {
|
|
|
23
23
|
'pt.profile-card.closed.account.no.date': 'A conta do usuário foi excluída.',
|
|
24
24
|
'pt.profile-card.disabled.account.default.name': 'Ex-usuário',
|
|
25
25
|
'pt.profile-card.general.msg.disabled.user': 'Você não pode mais colaborar com essa pessoa.',
|
|
26
|
+
'pt.profile-card.give-kudos': 'Envie elogios',
|
|
26
27
|
'pt.profile-card.inactive.account': 'Conta desativada',
|
|
27
28
|
'pt.profile-card.inactive.account.has.date.a.few.months': 'A conta do usuário foi desativada há alguns meses.',
|
|
28
29
|
'pt.profile-card.inactive.account.has.date.last.month': 'A conta do usuário foi desativada no mês passado.',
|
package/dist/cjs/i18n/ru.js
CHANGED
|
@@ -23,6 +23,7 @@ var _default = {
|
|
|
23
23
|
'pt.profile-card.closed.account.no.date': 'Его аккаунт был удален.',
|
|
24
24
|
'pt.profile-card.disabled.account.default.name': 'Бывший пользователь',
|
|
25
25
|
'pt.profile-card.general.msg.disabled.user': 'Вы больше не можете работать с этим пользователем.',
|
|
26
|
+
'pt.profile-card.give-kudos': 'Похвалить',
|
|
26
27
|
'pt.profile-card.inactive.account': 'Аккаунт отключен',
|
|
27
28
|
'pt.profile-card.inactive.account.has.date.a.few.months': 'Его аккаунт был отключен несколько месяцев назад.',
|
|
28
29
|
'pt.profile-card.inactive.account.has.date.last.month': 'Его аккаунт был отключен в прошлом месяце.',
|
package/dist/cjs/i18n/sv.js
CHANGED
|
@@ -23,6 +23,7 @@ var _default = {
|
|
|
23
23
|
'pt.profile-card.closed.account.no.date': 'Personens konto har tagits bort.',
|
|
24
24
|
'pt.profile-card.disabled.account.default.name': 'Före detta användare',
|
|
25
25
|
'pt.profile-card.general.msg.disabled.user': 'Du kan inte längre samarbeta med den här personen.',
|
|
26
|
+
'pt.profile-card.give-kudos': 'Ge beröm',
|
|
26
27
|
'pt.profile-card.inactive.account': 'Kontot är inaktiverat',
|
|
27
28
|
'pt.profile-card.inactive.account.has.date.a.few.months': 'Personens konto har varit inaktiverat i några få månader.',
|
|
28
29
|
'pt.profile-card.inactive.account.has.date.last.month': 'Personens konto inaktiverades förra månaden.',
|
package/dist/cjs/i18n/th.js
CHANGED
|
@@ -23,6 +23,7 @@ var _default = {
|
|
|
23
23
|
'pt.profile-card.closed.account.no.date': 'บัญชีของผู้ใช้ถูกลบไปแล้ว',
|
|
24
24
|
'pt.profile-card.disabled.account.default.name': 'ผู้ใช้เดิม',
|
|
25
25
|
'pt.profile-card.general.msg.disabled.user': 'คุณไม่สามารถทำงานร่วมกับบุคคลนี้ได้อีก',
|
|
26
|
+
'pt.profile-card.give-kudos': 'แสดงความชื่นชม',
|
|
26
27
|
'pt.profile-card.inactive.account': 'ปิดใช้งานบัญชีแล้ว',
|
|
27
28
|
'pt.profile-card.inactive.account.has.date.a.few.months': 'บัญชีของผู้ใช้ถูกปิดใช้งานไปแล้วไม่กี่เดือน',
|
|
28
29
|
'pt.profile-card.inactive.account.has.date.last.month': 'บัญชีของผู้ใช้ถูกปิดใช้งานไปเมื่อเดือนที่แล้ว',
|
package/dist/cjs/i18n/tr.js
CHANGED
|
@@ -23,6 +23,7 @@ var _default = {
|
|
|
23
23
|
'pt.profile-card.closed.account.no.date': 'Bu kullanıcının hesabı silindi.',
|
|
24
24
|
'pt.profile-card.disabled.account.default.name': 'Eski kullanıcı',
|
|
25
25
|
'pt.profile-card.general.msg.disabled.user': 'Artık bu kişiyle iş birliği yapamazsınız.',
|
|
26
|
+
'pt.profile-card.give-kudos': 'Tebrik edin',
|
|
26
27
|
'pt.profile-card.inactive.account': 'Hesap devre dışı bırakıldı',
|
|
27
28
|
'pt.profile-card.inactive.account.has.date.a.few.months': 'Bu kullanıcının hesabı birkaç ay önce devre dışı bırakıldı.',
|
|
28
29
|
'pt.profile-card.inactive.account.has.date.last.month': 'Bu kullanıcının hesabı geçen ay devre dışı bırakıldı.',
|
package/dist/cjs/i18n/uk.js
CHANGED
|
@@ -23,6 +23,7 @@ var _default = {
|
|
|
23
23
|
'pt.profile-card.closed.account.no.date': 'Обліковий запис користувача видалено.',
|
|
24
24
|
'pt.profile-card.disabled.account.default.name': 'Колишній користувач',
|
|
25
25
|
'pt.profile-card.general.msg.disabled.user': 'Ви більше не можете співпрацювати з цим користувачем.',
|
|
26
|
+
'pt.profile-card.give-kudos': 'Похвалити',
|
|
26
27
|
'pt.profile-card.inactive.account': 'Обліковий запис деактивовано',
|
|
27
28
|
'pt.profile-card.inactive.account.has.date.a.few.months': 'Обліковий запис користувача деактивовано кілька місяців тому.',
|
|
28
29
|
'pt.profile-card.inactive.account.has.date.last.month': 'Обліковий запис користувача деактивовано минулого місяця.',
|
package/dist/cjs/i18n/vi.js
CHANGED
|
@@ -23,6 +23,7 @@ var _default = {
|
|
|
23
23
|
'pt.profile-card.closed.account.no.date': 'Tài khoản của họ đã bị xóa.',
|
|
24
24
|
'pt.profile-card.disabled.account.default.name': 'Người dùng cũ',
|
|
25
25
|
'pt.profile-card.general.msg.disabled.user': 'Bạn không thể hợp tác với người này được nữa.',
|
|
26
|
+
'pt.profile-card.give-kudos': 'Khen ngợi',
|
|
26
27
|
'pt.profile-card.inactive.account': 'Tài khoản đã bị hủy kích hoạt',
|
|
27
28
|
'pt.profile-card.inactive.account.has.date.a.few.months': 'Tài khoản của họ đã bị hủy kích hoạt một vài tháng.',
|
|
28
29
|
'pt.profile-card.inactive.account.has.date.last.month': 'Tài khoản của họ đã bị hủy kích hoạt tháng trước.',
|
package/dist/cjs/i18n/zh.js
CHANGED
|
@@ -23,6 +23,7 @@ var _default = {
|
|
|
23
23
|
'pt.profile-card.closed.account.no.date': '他们的帐户已被删除。',
|
|
24
24
|
'pt.profile-card.disabled.account.default.name': '前用户',
|
|
25
25
|
'pt.profile-card.general.msg.disabled.user': '您无法再与此人合作。',
|
|
26
|
+
'pt.profile-card.give-kudos': '给予称赞',
|
|
26
27
|
'pt.profile-card.inactive.account': '帐户已停用',
|
|
27
28
|
'pt.profile-card.inactive.account.has.date.a.few.months': '他们的帐户已被停用数月。',
|
|
28
29
|
'pt.profile-card.inactive.account.has.date.last.month': '他们的帐户上月已被停用。',
|
package/dist/cjs/i18n/zh_TW.js
CHANGED
|
@@ -23,6 +23,7 @@ var _default = {
|
|
|
23
23
|
'pt.profile-card.closed.account.no.date': '其帳戶已刪除。',
|
|
24
24
|
'pt.profile-card.disabled.account.default.name': '舊使用者',
|
|
25
25
|
'pt.profile-card.general.msg.disabled.user': '您無法再與此人員合作。',
|
|
26
|
+
'pt.profile-card.give-kudos': '給予讚美',
|
|
26
27
|
'pt.profile-card.inactive.account': '帳戶已停用',
|
|
27
28
|
'pt.profile-card.inactive.account.has.date.a.few.months': '其帳戶已停用幾個月了。',
|
|
28
29
|
'pt.profile-card.inactive.account.has.date.last.month': '其帳戶在上個月已停用。',
|
package/dist/cjs/styled/Card.js
CHANGED
|
@@ -7,7 +7,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
|
-
exports.SpinnerContainer = exports.ProfileImage = exports.OverflowActionButtonsWrapper = exports.LozengeWrapper = exports.JobTitleLabel = exports.FullNameLabel = exports.DisabledInfo = exports.DetailsLabelText = exports.DetailsLabelIcon = exports.DetailsLabel = exports.DetailsGroup = exports.CustomLozengeContainer = exports.CardWrapper = exports.CardContent = exports.CardContainerEmpty = exports.CardContainer = exports.AppTitleLabel = exports.ActionsFlexSpacer = exports.ActionButtonGroup = void 0;
|
|
10
|
+
exports.SpinnerContainer = exports.ProfileImage = exports.OverflowActionButtonsWrapper = exports.LozengeWrapper = exports.KudosBlobAnimation = exports.JobTitleLabel = exports.FullNameLabel = exports.DisabledInfo = exports.DetailsLabelText = exports.DetailsLabelIcon = exports.DetailsLabel = exports.DetailsGroup = exports.CustomLozengeContainer = exports.CardWrapper = exports.CardContent = exports.CardContainerEmpty = exports.CardContainer = exports.AppTitleLabel = exports.AnimatedKudosButton = exports.ActionsFlexSpacer = exports.ActionButtonGroup = void 0;
|
|
11
11
|
|
|
12
12
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
13
13
|
|
|
@@ -15,9 +15,11 @@ var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
|
15
15
|
|
|
16
16
|
var _constants = require("@atlaskit/theme/constants");
|
|
17
17
|
|
|
18
|
+
var _tokens = require("@atlaskit/tokens");
|
|
19
|
+
|
|
18
20
|
var _constants2 = require("../styled/constants");
|
|
19
21
|
|
|
20
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20;
|
|
22
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23;
|
|
21
23
|
|
|
22
24
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
25
|
|
|
@@ -42,28 +44,37 @@ exports.ProfileImage = ProfileImage;
|
|
|
42
44
|
var ActionsFlexSpacer = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n flex: 1 0 auto;\n"])));
|
|
43
45
|
|
|
44
46
|
exports.ActionsFlexSpacer = ActionsFlexSpacer;
|
|
47
|
+
var kudosButtonAnimationTransformation = (0, _styledComponents.keyframes)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["{\n 0% { transform: translate(-80px, -50px); }\n 100% { transform: translate(90px, -70px); }\n}"])));
|
|
48
|
+
|
|
49
|
+
var KudosBlobAnimation = _styledComponents.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n display: none;\n height: 150px;\n width: 150px;\n z-index: -1;\n position: absolute;\n animation-name: ", ";\n animation-iteration-count: 1;\n animation-duration: 3s;\n background-image: radial-gradient(\n circle,\n ", " 0%,\n ", " 25%,\n transparent 50%\n );\n overflow: hidden;\n"])), kudosButtonAnimationTransformation, (0, _tokens.token)('color.background.information.pressed', '#85B8FF'), (0, _tokens.token)('color.background.discovery.pressed', '#B8ACF6'));
|
|
50
|
+
|
|
51
|
+
exports.KudosBlobAnimation = KudosBlobAnimation;
|
|
52
|
+
|
|
53
|
+
var AnimatedKudosButton = _styledComponents.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n margin-left: ", "px;\n &:hover ", " {\n display: block;\n }\n\n button,\n a {\n clip-path: inset(0px 0px 0px 0px round ", "px);\n }\n"])), _constants.gridSize, KudosBlobAnimation, _constants.borderRadius);
|
|
54
|
+
|
|
55
|
+
exports.AnimatedKudosButton = AnimatedKudosButton;
|
|
45
56
|
|
|
46
|
-
var ActionButtonGroup = _styledComponents.default.div(
|
|
57
|
+
var ActionButtonGroup = _styledComponents.default.div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n user-select: none;\n margin: ", "px 0 0 0;\n text-align: right;\n display: flex;\n justify-content: flex-end;\n\n button,\n a,\n span {\n margin-left: ", "px;\n\n &:first-child {\n margin-left: 0;\n }\n }\n"])), 2 * (0, _constants.gridSize)(), _constants.gridSize);
|
|
47
58
|
|
|
48
59
|
exports.ActionButtonGroup = ActionButtonGroup;
|
|
49
60
|
|
|
50
|
-
var OverflowActionButtonsWrapper = _styledComponents.default.div(
|
|
61
|
+
var OverflowActionButtonsWrapper = _styledComponents.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n display: inline-block;\n width: 32px;\n height: 32px;\n margin-left: ", "px;\n"])), _constants.gridSize);
|
|
51
62
|
|
|
52
63
|
exports.OverflowActionButtonsWrapper = OverflowActionButtonsWrapper;
|
|
53
64
|
|
|
54
|
-
var CardContent = _styledComponents.default.div(
|
|
65
|
+
var CardContent = _styledComponents.default.div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n min-height: ", "px;\n"])), (0, _constants.gridSize)() * 17);
|
|
55
66
|
|
|
56
67
|
exports.CardContent = CardContent;
|
|
57
68
|
|
|
58
|
-
var DetailsGroup = _styledComponents.default.div(
|
|
69
|
+
var DetailsGroup = _styledComponents.default.div(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n margin-left: ", "px;\n width: ", "px;\n"])), (0, _constants.gridSize)() * 14.5, (0, _constants.gridSize)() * 24.5);
|
|
59
70
|
|
|
60
71
|
exports.DetailsGroup = DetailsGroup;
|
|
61
72
|
|
|
62
|
-
var DisabledInfo = _styledComponents.default.div(
|
|
73
|
+
var DisabledInfo = _styledComponents.default.div(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n font-size: ", "px;\n color: ", ";\n margin: ", "px 0 0 0;\n line-height: ", "px;\n"])), _constants.fontSizeSmall, _constants2.labelTextColor, (0, _constants.gridSize)() * 1.5, (0, _constants.gridSize)() * 2);
|
|
63
74
|
|
|
64
75
|
exports.DisabledInfo = DisabledInfo;
|
|
65
76
|
|
|
66
|
-
var FullNameLabel = _styledComponents.default.span(
|
|
77
|
+
var FullNameLabel = _styledComponents.default.span(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n font-size: 18px;\n color: ", ";\n margin: ", ";\n line-height: ", "em;\n"])), function (props) {
|
|
67
78
|
return props.isDisabledAccount ? _constants2.headerTextColorInactive : _constants2.headerTextColor;
|
|
68
79
|
}, function (props) {
|
|
69
80
|
return getFullNameMargin(props);
|
|
@@ -71,25 +82,25 @@ var FullNameLabel = _styledComponents.default.span(_templateObject10 || (_templa
|
|
|
71
82
|
|
|
72
83
|
exports.FullNameLabel = FullNameLabel;
|
|
73
84
|
|
|
74
|
-
var LozengeWrapper = _styledComponents.default.div(
|
|
85
|
+
var LozengeWrapper = _styledComponents.default.div(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2.default)(["\n margin-top: ", "px;\n text-transform: uppercase;\n display: block;\n"])), (0, _constants.gridSize)() * 2);
|
|
75
86
|
|
|
76
87
|
exports.LozengeWrapper = LozengeWrapper;
|
|
77
|
-
var CustomLozengeContainer = (0, _styledComponents.default)(LozengeWrapper)(
|
|
88
|
+
var CustomLozengeContainer = (0, _styledComponents.default)(LozengeWrapper)(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n justify-content: flex-start;\n margin-top: ", "px;\n > * {\n margin-top: ", "px;\n &:not(:last-child) {\n margin-right: ", "px;\n }\n }\n"])), (0, _constants.gridSize)() * 1.5, (0, _constants.gridSize)() / 2, (0, _constants.gridSize)() / 2);
|
|
78
89
|
exports.CustomLozengeContainer = CustomLozengeContainer;
|
|
79
90
|
|
|
80
|
-
var JobTitleLabel = _styledComponents.default.span(
|
|
91
|
+
var JobTitleLabel = _styledComponents.default.span(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteral2.default)(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n font-size: 14px;\n color: ", ";\n margin: 0 0 ", "px 0;\n line-height: ", "em;\n"])), _constants2.headerTextColor, (0, _constants.gridSize)() * 1.5, 24 / 14);
|
|
81
92
|
|
|
82
93
|
exports.JobTitleLabel = JobTitleLabel;
|
|
83
94
|
|
|
84
|
-
var AppTitleLabel = _styledComponents.default.span(
|
|
95
|
+
var AppTitleLabel = _styledComponents.default.span(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteral2.default)(["\n background: ", ";\n color: ", ";\n border-radius: ", ";\n padding: 0 6px;\n width: fit-content;\n font-weight: bold;\n text-transform: uppercase;\n\n font-size: 12px;\n margin: 4px 0 ", "px 0;\n line-height: ", "em;\n"])), _constants2.appLabelBgColor, _constants2.appLabelTextColor, (0, _constants.borderRadius)(), (0, _constants.gridSize)() * 1.5, 24 / 14);
|
|
85
96
|
|
|
86
97
|
exports.AppTitleLabel = AppTitleLabel;
|
|
87
98
|
|
|
88
|
-
var SpinnerContainer = _styledComponents.default.div(
|
|
99
|
+
var SpinnerContainer = _styledComponents.default.div(_templateObject18 || (_templateObject18 = (0, _taggedTemplateLiteral2.default)(["\n align-items: center;\n display: flex;\n height: ", "px;\n justify-content: center;\n position: relative;\n"])), (0, _constants.gridSize)() * 12);
|
|
89
100
|
|
|
90
101
|
exports.SpinnerContainer = SpinnerContainer;
|
|
91
102
|
|
|
92
|
-
var CardContainer = _styledComponents.default.div(
|
|
103
|
+
var CardContainer = _styledComponents.default.div(_templateObject19 || (_templateObject19 = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n background-image: linear-gradient(\n to bottom,\n ", "\n 0%,\n ", "\n 100%\n );\n background-repeat: no-repeat;\n background-size: 100% ", "px;\n box-sizing: content-box;\n padding: ", "px;\n ", "\n overflow: hidden;\n"])), function (props) {
|
|
93
104
|
return props.isDisabledUser ? _constants2.headerBgColorDisabledUser : _constants2.headerBgColor;
|
|
94
105
|
}, function (props) {
|
|
95
106
|
return props.isDisabledUser ? _constants2.headerBgColorDisabledUser : _constants2.headerBgColor;
|
|
@@ -98,19 +109,19 @@ var CardContainer = _styledComponents.default.div(_templateObject16 || (_templat
|
|
|
98
109
|
return '';
|
|
99
110
|
}
|
|
100
111
|
|
|
101
|
-
return (0, _styledComponents.css)(
|
|
112
|
+
return (0, _styledComponents.css)(_templateObject20 || (_templateObject20 = (0, _taggedTemplateLiteral2.default)(["\n box-shadow: ", ";\n border-radius: ", "px;\n "])), _constants2.boxShadow, _constants.borderRadius);
|
|
102
113
|
});
|
|
103
114
|
|
|
104
115
|
exports.CardContainer = CardContainer;
|
|
105
116
|
|
|
106
|
-
var DetailsLabel = _styledComponents.default.div(
|
|
117
|
+
var DetailsLabel = _styledComponents.default.div(_templateObject21 || (_templateObject21 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n line-height: ", "px;\n font-size: ", "px;\n margin: ", "px 0 0 0;\n white-space: nowrap;\n\n & + & {\n margin-top: ", "px;\n }\n"])), (0, _constants.gridSize)() * 3, (0, _constants.gridSize)() * 1.5, (0, _constants.gridSize)() * 2, (0, _constants.gridSize)() / 4);
|
|
107
118
|
|
|
108
119
|
exports.DetailsLabel = DetailsLabel;
|
|
109
120
|
|
|
110
|
-
var DetailsLabelIcon = _styledComponents.default.div(
|
|
121
|
+
var DetailsLabelIcon = _styledComponents.default.div(_templateObject22 || (_templateObject22 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-shrink: 0;\n color: ", ";\n width: ", "px;\n height: ", "px;\n padding: ", "px;\n vertical-align: top;\n\n svg {\n width: 100%;\n height: 100%;\n }\n"])), _constants2.labelIconColor, (0, _constants.gridSize)() * 2, (0, _constants.gridSize)() * 2, (0, _constants.gridSize)() / 2);
|
|
111
122
|
|
|
112
123
|
exports.DetailsLabelIcon = DetailsLabelIcon;
|
|
113
124
|
|
|
114
|
-
var DetailsLabelText = _styledComponents.default.span(
|
|
125
|
+
var DetailsLabelText = _styledComponents.default.span(_templateObject23 || (_templateObject23 = (0, _taggedTemplateLiteral2.default)(["\n overflow: hidden;\n text-overflow: ellipsis;\n color: ", ";\n padding-left: ", "px;\n"])), _constants2.labelTextColor, (0, _constants.gridSize)() / 2);
|
|
115
126
|
|
|
116
127
|
exports.DetailsLabelText = DetailsLabelText;
|
|
@@ -56,7 +56,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
56
56
|
actionSubjectId: actionSubjectId,
|
|
57
57
|
attributes: _objectSpread(_objectSpread({
|
|
58
58
|
packageName: "@atlaskit/profilecard",
|
|
59
|
-
packageVersion: "16.
|
|
59
|
+
packageVersion: "16.8.0"
|
|
60
60
|
}, attributes), {}, {
|
|
61
61
|
firedAt: (0, _performance.getPageTime)()
|
|
62
62
|
})
|
package/dist/cjs/version.json
CHANGED
|
@@ -11,7 +11,7 @@ import { token } from '@atlaskit/tokens';
|
|
|
11
11
|
import { AnalyticsName } from '../../internal/analytics';
|
|
12
12
|
import relativeDate from '../../internal/relative-date';
|
|
13
13
|
import messages from '../../messages';
|
|
14
|
-
import { ActionButtonGroup, ActionsFlexSpacer, AppTitleLabel, CardContainer, CardContent, CardWrapper, CustomLozengeContainer, DetailsGroup, DisabledInfo, FullNameLabel, JobTitleLabel, LozengeWrapper, ProfileImage, SpinnerContainer } from '../../styled/Card';
|
|
14
|
+
import { ActionButtonGroup, ActionsFlexSpacer, AnimatedKudosButton, AppTitleLabel, CardContainer, CardContent, CardWrapper, CustomLozengeContainer, DetailsGroup, DisabledInfo, FullNameLabel, JobTitleLabel, KudosBlobAnimation, LozengeWrapper, ProfileImage, SpinnerContainer } from '../../styled/Card';
|
|
15
15
|
import { isBasicClick } from '../../util/click';
|
|
16
16
|
import { ErrorMessage } from '../Error';
|
|
17
17
|
import { IconLabel } from '../Icon';
|
|
@@ -21,6 +21,8 @@ export default class Profilecard extends React.PureComponent {
|
|
|
21
21
|
constructor(props) {
|
|
22
22
|
super(props);
|
|
23
23
|
|
|
24
|
+
_defineProperty(this, "GIVE_KUDOS_ACTION_ID", 'give-kudos');
|
|
25
|
+
|
|
24
26
|
_defineProperty(this, "durationSince", from => {
|
|
25
27
|
const fromParsed = from || 0;
|
|
26
28
|
return fromParsed > 0 ? Date.now() - fromParsed : null;
|
|
@@ -53,12 +55,19 @@ export default class Profilecard extends React.PureComponent {
|
|
|
53
55
|
});
|
|
54
56
|
|
|
55
57
|
_defineProperty(this, "renderButton", (action, idx) => {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
+
const isGiveKudosActionButton = action.id === this.GIVE_KUDOS_ACTION_ID;
|
|
59
|
+
const actionButton = /*#__PURE__*/React.createElement(Button, {
|
|
60
|
+
appearance: "default",
|
|
58
61
|
key: action.id || idx,
|
|
59
62
|
onClick: (event, ...args) => this.onActionClick(action, args, event),
|
|
60
63
|
href: action.link
|
|
61
|
-
}, action.label);
|
|
64
|
+
}, action.label, isGiveKudosActionButton && /*#__PURE__*/React.createElement(KudosBlobAnimation, null));
|
|
65
|
+
|
|
66
|
+
if (isGiveKudosActionButton) {
|
|
67
|
+
return /*#__PURE__*/React.createElement(AnimatedKudosButton, null, actionButton);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
return actionButton;
|
|
62
71
|
});
|
|
63
72
|
|
|
64
73
|
this.timeOpen = null;
|
|
@@ -87,7 +96,7 @@ export default class Profilecard extends React.PureComponent {
|
|
|
87
96
|
if (!this.props.isCurrentUser && this.props.isKudosEnabled) {
|
|
88
97
|
const kudosAction = {
|
|
89
98
|
label: /*#__PURE__*/React.createElement(FormattedMessage, messages.giveKudosButton),
|
|
90
|
-
id:
|
|
99
|
+
id: this.GIVE_KUDOS_ACTION_ID,
|
|
91
100
|
callback: () => {
|
|
92
101
|
this.kudosButtonCallback();
|
|
93
102
|
},
|
package/dist/es2019/i18n/cs.js
CHANGED
|
@@ -16,6 +16,7 @@ export default {
|
|
|
16
16
|
'pt.profile-card.closed.account.no.date': 'Účet uživatele byl smazán.',
|
|
17
17
|
'pt.profile-card.disabled.account.default.name': 'Bývalý uživatel',
|
|
18
18
|
'pt.profile-card.general.msg.disabled.user': 'S touto osobou již nemůžete spolupracovat.',
|
|
19
|
+
'pt.profile-card.give-kudos': 'Pogratulovat',
|
|
19
20
|
'pt.profile-card.inactive.account': 'Deaktivovaný účet',
|
|
20
21
|
'pt.profile-card.inactive.account.has.date.a.few.months': 'Účet uživatele je deaktivovaný již několik měsíců.',
|
|
21
22
|
'pt.profile-card.inactive.account.has.date.last.month': 'Účet uživatele byl deaktivován minulý měsíc.',
|
package/dist/es2019/i18n/da.js
CHANGED
|
@@ -16,6 +16,7 @@ export default {
|
|
|
16
16
|
'pt.profile-card.closed.account.no.date': 'Personens konto er blevet slettet.',
|
|
17
17
|
'pt.profile-card.disabled.account.default.name': 'Forhenværende bruger',
|
|
18
18
|
'pt.profile-card.general.msg.disabled.user': 'Du kan ikke længere samarbejde med denne person.',
|
|
19
|
+
'pt.profile-card.give-kudos': 'Giv ros',
|
|
19
20
|
'pt.profile-card.inactive.account': 'Konto deaktiveret',
|
|
20
21
|
'pt.profile-card.inactive.account.has.date.a.few.months': 'Personens konto har været deaktiveret i nogle måneder.',
|
|
21
22
|
'pt.profile-card.inactive.account.has.date.last.month': 'Personens konto blev deaktiveret i sidste måned.',
|
package/dist/es2019/i18n/de.js
CHANGED
|
@@ -16,6 +16,7 @@ export default {
|
|
|
16
16
|
'pt.profile-card.closed.account.no.date': 'Das Konto dieser Person wurde gelöscht.',
|
|
17
17
|
'pt.profile-card.disabled.account.default.name': 'Ehemaliger Benutzer',
|
|
18
18
|
'pt.profile-card.general.msg.disabled.user': 'Sie können mit dieser Person nicht mehr zusammenarbeiten.',
|
|
19
|
+
'pt.profile-card.give-kudos': 'Loben',
|
|
19
20
|
'pt.profile-card.inactive.account': 'Konto deaktiviert',
|
|
20
21
|
'pt.profile-card.inactive.account.has.date.a.few.months': 'Das Konto dieser Person wurde vor wenigen Monaten gelöscht.',
|
|
21
22
|
'pt.profile-card.inactive.account.has.date.last.month': 'Das Konto dieser Person wurde letzten Monat deaktiviert.',
|
package/dist/es2019/i18n/en.js
CHANGED
|
@@ -16,6 +16,7 @@ export default {
|
|
|
16
16
|
'pt.profile-card.closed.account.no.date': 'Their account has been deleted.',
|
|
17
17
|
'pt.profile-card.disabled.account.default.name': 'Former user',
|
|
18
18
|
'pt.profile-card.general.msg.disabled.user': 'You can no longer collaborate with this person.',
|
|
19
|
+
'pt.profile-card.give-kudos': 'Give kudos',
|
|
19
20
|
'pt.profile-card.inactive.account': 'Account deactivated',
|
|
20
21
|
'pt.profile-card.inactive.account.has.date.a.few.months': 'Their account has been deactivated for a few months.',
|
|
21
22
|
'pt.profile-card.inactive.account.has.date.last.month': 'Their account was deactivated last month.',
|
|
@@ -16,6 +16,7 @@ export default {
|
|
|
16
16
|
'pt.profile-card.closed.account.no.date': 'Their account has been deleted.',
|
|
17
17
|
'pt.profile-card.disabled.account.default.name': 'Former user',
|
|
18
18
|
'pt.profile-card.general.msg.disabled.user': 'You can no longer collaborate with this person.',
|
|
19
|
+
'pt.profile-card.give-kudos': 'Give kudos',
|
|
19
20
|
'pt.profile-card.inactive.account': 'Account deactivated',
|
|
20
21
|
'pt.profile-card.inactive.account.has.date.a.few.months': 'Their account has been deactivated for a few months.',
|
|
21
22
|
'pt.profile-card.inactive.account.has.date.last.month': 'Their account was deactivated last month.',
|
|
@@ -16,6 +16,7 @@ export default {
|
|
|
16
16
|
'pt.profile-card.closed.account.no.date': 'Their account has been deleted.',
|
|
17
17
|
'pt.profile-card.disabled.account.default.name': 'Former user',
|
|
18
18
|
'pt.profile-card.general.msg.disabled.user': 'You can no longer collaborate with this person.',
|
|
19
|
+
'pt.profile-card.give-kudos': 'Give kudos',
|
|
19
20
|
'pt.profile-card.inactive.account': 'Account deactivated',
|
|
20
21
|
'pt.profile-card.inactive.account.has.date.a.few.months': 'Their account has been deactivated for a few months.',
|
|
21
22
|
'pt.profile-card.inactive.account.has.date.last.month': 'Their account was deactivated last month.',
|
package/dist/es2019/i18n/es.js
CHANGED
|
@@ -16,6 +16,7 @@ export default {
|
|
|
16
16
|
'pt.profile-card.closed.account.no.date': 'Su cuenta está eliminada.',
|
|
17
17
|
'pt.profile-card.disabled.account.default.name': 'Antiguo usuario',
|
|
18
18
|
'pt.profile-card.general.msg.disabled.user': 'Ya no puedes colaborar con esta persona.',
|
|
19
|
+
'pt.profile-card.give-kudos': 'Felicitar',
|
|
19
20
|
'pt.profile-card.inactive.account': 'Cuenta desactivada',
|
|
20
21
|
'pt.profile-card.inactive.account.has.date.a.few.months': 'Su cuenta se desactivó hace algunos meses.',
|
|
21
22
|
'pt.profile-card.inactive.account.has.date.last.month': 'Su cuenta se desactivó el mes pasado.',
|
package/dist/es2019/i18n/fi.js
CHANGED
|
@@ -16,6 +16,7 @@ export default {
|
|
|
16
16
|
'pt.profile-card.closed.account.no.date': 'Hänen tilinsä on poistettu.',
|
|
17
17
|
'pt.profile-card.disabled.account.default.name': 'Entinen käyttäjä',
|
|
18
18
|
'pt.profile-card.general.msg.disabled.user': 'Et voi enää tehdä yhteistyötä tämän henkilön kanssa.',
|
|
19
|
+
'pt.profile-card.give-kudos': 'Anna kehuja',
|
|
19
20
|
'pt.profile-card.inactive.account': 'Tili poistettu käytöstä',
|
|
20
21
|
'pt.profile-card.inactive.account.has.date.a.few.months': 'Hänen tilinsä on ollut poissa käytöstä muutaman kuukauden ajan.',
|
|
21
22
|
'pt.profile-card.inactive.account.has.date.last.month': 'Hänen tilinsä poistettiin käytöstä viime kuussa.',
|
package/dist/es2019/i18n/fr.js
CHANGED
|
@@ -16,6 +16,7 @@ export default {
|
|
|
16
16
|
'pt.profile-card.closed.account.no.date': 'Son compte a été supprimé.',
|
|
17
17
|
'pt.profile-card.disabled.account.default.name': 'Ancien utilisateur',
|
|
18
18
|
'pt.profile-card.general.msg.disabled.user': 'Vous ne pouvez plus collaborer avec cette personne.',
|
|
19
|
+
'pt.profile-card.give-kudos': 'Féliciter',
|
|
19
20
|
'pt.profile-card.inactive.account': 'Compte désactivé',
|
|
20
21
|
'pt.profile-card.inactive.account.has.date.a.few.months': 'Son compte a été désactivé il y a quelques mois.',
|
|
21
22
|
'pt.profile-card.inactive.account.has.date.last.month': 'Son compte a été désactivé le mois dernier.',
|
package/dist/es2019/i18n/hu.js
CHANGED
|
@@ -16,6 +16,7 @@ export default {
|
|
|
16
16
|
'pt.profile-card.closed.account.no.date': 'A fiókját töröltük.',
|
|
17
17
|
'pt.profile-card.disabled.account.default.name': 'Korábbi felhasználó',
|
|
18
18
|
'pt.profile-card.general.msg.disabled.user': 'A továbbiakban nem működhet együtt ezzel a személlyel.',
|
|
19
|
+
'pt.profile-card.give-kudos': 'Dicséret',
|
|
19
20
|
'pt.profile-card.inactive.account': 'A fiók inaktiválva.',
|
|
20
21
|
'pt.profile-card.inactive.account.has.date.a.few.months': 'A fiókját néhány hónapja inaktiváltuk.',
|
|
21
22
|
'pt.profile-card.inactive.account.has.date.last.month': 'A fiókját a múlt hónapban inaktiváltuk.',
|