@atlaskit/user-picker 9.7.4 → 10.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/analytics.js +2 -53
- package/dist/cjs/clients/UserSourceProvider.js +11 -33
- package/dist/cjs/components/AddOptionAvatar.js +2 -9
- package/dist/cjs/components/AvatarItemOption.js +4 -29
- package/dist/cjs/components/BaseUserPicker.js +56 -156
- package/dist/cjs/components/ClearIndicator.js +4 -35
- package/dist/cjs/components/CustomOption/index.js +0 -7
- package/dist/cjs/components/CustomOption/main.js +4 -30
- package/dist/cjs/components/EmailOption/index.js +0 -7
- package/dist/cjs/components/EmailOption/main.js +2 -29
- package/dist/cjs/components/ExternalUserOption/ExternalAvatarItemOption.js +4 -15
- package/dist/cjs/components/ExternalUserOption/InfoIcon.js +4 -13
- package/dist/cjs/components/ExternalUserOption/SourcesTooltipContent.js +4 -20
- package/dist/cjs/components/ExternalUserOption/index.js +0 -7
- package/dist/cjs/components/ExternalUserOption/main.js +10 -48
- package/dist/cjs/components/ExternalUserSourcesContainer.js +5 -13
- package/dist/cjs/components/GroupOption/index.js +0 -7
- package/dist/cjs/components/GroupOption/main.js +4 -31
- package/dist/cjs/components/HighlightText.js +3 -27
- package/dist/cjs/components/Input.js +0 -23
- package/dist/cjs/components/MessagesIntlProvider.js +3 -20
- package/dist/cjs/components/MultiValue.js +21 -57
- package/dist/cjs/components/MultiValueContainer.js +8 -47
- package/dist/cjs/components/Option.js +5 -27
- package/dist/cjs/components/PopupControl.js +0 -22
- package/dist/cjs/components/PopupInput.js +0 -22
- package/dist/cjs/components/PopupUserPicker.js +10 -39
- package/dist/cjs/components/SingleValue.js +6 -17
- package/dist/cjs/components/SingleValueContainer.js +8 -37
- package/dist/cjs/components/SizeableAvatar.js +4 -20
- package/dist/cjs/components/TeamOption/index.js +0 -7
- package/dist/cjs/components/TeamOption/main.js +9 -37
- package/dist/cjs/components/UserOption.js +7 -34
- package/dist/cjs/components/UserPicker.js +14 -50
- package/dist/cjs/components/assets/github.js +0 -4
- package/dist/cjs/components/assets/google.js +0 -4
- package/dist/cjs/components/assets/microsoft.js +0 -4
- package/dist/cjs/components/assets/slack.js +0 -4
- package/dist/cjs/components/batch.js +0 -3
- package/dist/cjs/components/components.js +0 -17
- package/dist/cjs/components/creatable.js +2 -15
- package/dist/cjs/components/creatableEmailSuggestion.js +7 -18
- package/dist/cjs/components/emailValidation.js +0 -4
- package/dist/cjs/components/i18n.js +0 -2
- package/dist/cjs/components/popup.js +0 -3
- package/dist/cjs/components/styles.js +10 -26
- package/dist/cjs/components/utils.js +0 -53
- package/dist/cjs/i18n/cs.js +1 -1
- package/dist/cjs/i18n/da.js +1 -1
- package/dist/cjs/i18n/de.js +1 -1
- package/dist/cjs/i18n/en.js +31 -4
- package/dist/cjs/i18n/en_GB.js +31 -4
- package/dist/cjs/i18n/en_ZZ.js +1 -1
- package/dist/cjs/i18n/es.js +1 -1
- package/dist/cjs/i18n/et.js +0 -1
- package/dist/cjs/i18n/fi.js +1 -1
- package/dist/cjs/i18n/fr.js +1 -1
- package/dist/cjs/i18n/hu.js +1 -1
- package/dist/cjs/i18n/index.js +0 -31
- package/dist/cjs/i18n/it.js +1 -1
- package/dist/cjs/i18n/ja.js +1 -1
- package/dist/cjs/i18n/ko.js +1 -1
- package/dist/cjs/i18n/nb.js +1 -1
- package/dist/cjs/i18n/nl.js +1 -1
- package/dist/cjs/i18n/pl.js +1 -1
- package/dist/cjs/i18n/pt_BR.js +1 -1
- package/dist/cjs/i18n/pt_PT.js +0 -1
- package/dist/cjs/i18n/ru.js +1 -1
- package/dist/cjs/i18n/sk.js +0 -1
- package/dist/cjs/i18n/sv.js +1 -1
- package/dist/cjs/i18n/th.js +1 -1
- package/dist/cjs/i18n/tr.js +1 -1
- package/dist/cjs/i18n/uk.js +1 -1
- package/dist/cjs/i18n/vi.js +1 -1
- package/dist/cjs/i18n/zh.js +1 -1
- package/dist/cjs/i18n/zh_TW.js +1 -1
- package/dist/cjs/index.js +0 -5
- package/dist/cjs/util/i18n-util.js +0 -43
- package/dist/cjs/util/ufoExperiences.js +0 -17
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/analytics.js +18 -35
- package/dist/es2019/clients/UserSourceProvider.js +0 -6
- package/dist/es2019/components/AddOptionAvatar.js +0 -2
- package/dist/es2019/components/AvatarItemOption.js +1 -10
- package/dist/es2019/components/BaseUserPicker.js +9 -84
- package/dist/es2019/components/ClearIndicator.js +5 -11
- package/dist/es2019/components/CustomOption/index.js +1 -3
- package/dist/es2019/components/CustomOption/main.js +0 -10
- package/dist/es2019/components/EmailOption/index.js +1 -3
- package/dist/es2019/components/EmailOption/main.js +0 -9
- package/dist/es2019/components/ExternalUserOption/ExternalAvatarItemOption.js +1 -4
- package/dist/es2019/components/ExternalUserOption/index.js +1 -3
- package/dist/es2019/components/ExternalUserOption/main.js +0 -15
- package/dist/es2019/components/ExternalUserSourcesContainer.js +0 -2
- package/dist/es2019/components/GroupOption/index.js +1 -3
- package/dist/es2019/components/GroupOption/main.js +0 -7
- package/dist/es2019/components/HighlightText.js +0 -11
- package/dist/es2019/components/Input.js +0 -5
- package/dist/es2019/components/MessagesIntlProvider.js +2 -4
- package/dist/es2019/components/MultiValue.js +3 -15
- package/dist/es2019/components/MultiValueContainer.js +4 -24
- package/dist/es2019/components/Option.js +0 -9
- package/dist/es2019/components/PopupControl.js +0 -4
- package/dist/es2019/components/PopupInput.js +0 -6
- package/dist/es2019/components/PopupUserPicker.js +0 -8
- package/dist/es2019/components/SingleValue.js +0 -1
- package/dist/es2019/components/SingleValueContainer.js +0 -8
- package/dist/es2019/components/SizeableAvatar.js +0 -1
- package/dist/es2019/components/TeamOption/index.js +1 -3
- package/dist/es2019/components/TeamOption/main.js +2 -12
- package/dist/es2019/components/UserOption.js +0 -9
- package/dist/es2019/components/UserPicker.js +6 -8
- package/dist/es2019/components/batch.js +0 -1
- package/dist/es2019/components/components.js +3 -4
- package/dist/es2019/components/creatable.js +2 -9
- package/dist/es2019/components/creatableEmailSuggestion.js +7 -12
- package/dist/es2019/components/emailValidation.js +0 -2
- package/dist/es2019/components/styles.js +30 -22
- package/dist/es2019/components/utils.js +2 -8
- 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 +31 -4
- package/dist/es2019/i18n/en_GB.js +31 -4
- 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/index.js +2 -1
- package/dist/es2019/util/i18n-util.js +30 -120
- package/dist/es2019/util/ufoExperiences.js +0 -3
- package/dist/es2019/version.json +1 -1
- package/dist/esm/analytics.js +2 -30
- package/dist/esm/clients/UserSourceProvider.js +11 -21
- package/dist/esm/components/AddOptionAvatar.js +1 -3
- package/dist/esm/components/AvatarItemOption.js +5 -18
- package/dist/esm/components/BaseUserPicker.js +56 -167
- package/dist/esm/components/ClearIndicator.js +5 -23
- package/dist/esm/components/CustomOption/index.js +1 -3
- package/dist/esm/components/CustomOption/main.js +4 -22
- package/dist/esm/components/EmailOption/index.js +1 -3
- package/dist/esm/components/EmailOption/main.js +2 -20
- package/dist/esm/components/ExternalUserOption/ExternalAvatarItemOption.js +5 -11
- package/dist/esm/components/ExternalUserOption/InfoIcon.js +3 -5
- package/dist/esm/components/ExternalUserOption/SourcesTooltipContent.js +3 -3
- package/dist/esm/components/ExternalUserOption/index.js +1 -3
- package/dist/esm/components/ExternalUserOption/main.js +10 -35
- package/dist/esm/components/ExternalUserSourcesContainer.js +5 -8
- package/dist/esm/components/GroupOption/index.js +1 -3
- package/dist/esm/components/GroupOption/main.js +4 -19
- package/dist/esm/components/HighlightText.js +3 -21
- package/dist/esm/components/Input.js +0 -14
- package/dist/esm/components/MessagesIntlProvider.js +3 -10
- package/dist/esm/components/MultiValue.js +21 -39
- package/dist/esm/components/MultiValueContainer.js +8 -37
- package/dist/esm/components/Option.js +5 -15
- package/dist/esm/components/PopupControl.js +0 -11
- package/dist/esm/components/PopupInput.js +0 -14
- package/dist/esm/components/PopupUserPicker.js +10 -28
- package/dist/esm/components/SingleValue.js +6 -8
- package/dist/esm/components/SingleValueContainer.js +8 -25
- package/dist/esm/components/SizeableAvatar.js +4 -12
- package/dist/esm/components/TeamOption/index.js +1 -3
- package/dist/esm/components/TeamOption/main.js +9 -27
- package/dist/esm/components/UserOption.js +7 -24
- package/dist/esm/components/UserPicker.js +14 -26
- package/dist/esm/components/batch.js +0 -2
- package/dist/esm/components/components.js +1 -6
- package/dist/esm/components/creatable.js +2 -9
- package/dist/esm/components/creatableEmailSuggestion.js +7 -12
- package/dist/esm/components/emailValidation.js +0 -2
- package/dist/esm/components/styles.js +10 -21
- package/dist/esm/components/utils.js +0 -11
- 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 +31 -4
- package/dist/esm/i18n/en_GB.js +31 -4
- 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/index.js +2 -1
- package/dist/esm/util/i18n-util.js +30 -126
- package/dist/esm/util/ufoExperiences.js +0 -9
- package/dist/esm/version.json +1 -1
- 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 +28 -1
- package/dist/types/i18n/en_GB.d.ts +28 -1
- 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/types.d.ts +1 -1
- package/package.json +3 -2
- package/report.api.md +1 -4
- package/tmp/api-report-tmp.d.ts +1 -1
|
@@ -1,22 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
-
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
8
|
exports.getMessagesForLocale = void 0;
|
|
11
|
-
|
|
12
9
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
13
|
-
|
|
14
10
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
15
|
-
|
|
16
11
|
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); }
|
|
17
|
-
|
|
18
12
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
|
-
|
|
20
13
|
/**
|
|
21
14
|
* Tries to get the most specific messages bundle for a given locale.
|
|
22
15
|
*
|
|
@@ -37,227 +30,193 @@ var getMessagesForLocale = /*#__PURE__*/function () {
|
|
|
37
30
|
_context.t0 = locale;
|
|
38
31
|
_context.next = _context.t0 === 'cs' ? 3 : _context.t0 === 'da' ? 4 : _context.t0 === 'de' ? 5 : _context.t0 === 'en' ? 6 : _context.t0 === 'en_GB' ? 7 : _context.t0 === 'es' ? 8 : _context.t0 === 'et' ? 9 : _context.t0 === 'fi' ? 10 : _context.t0 === 'fr' ? 11 : _context.t0 === 'hu' ? 12 : _context.t0 === 'is' ? 13 : _context.t0 === 'it' ? 14 : _context.t0 === 'ja' ? 15 : _context.t0 === 'ko' ? 16 : _context.t0 === 'nb' ? 17 : _context.t0 === 'nl' ? 18 : _context.t0 === 'pl' ? 19 : _context.t0 === 'pt_BR' ? 20 : _context.t0 === 'pt-BR' ? 20 : _context.t0 === 'pt_PT' ? 21 : _context.t0 === 'pt-PT' ? 21 : _context.t0 === 'ro' ? 22 : _context.t0 === 'ru' ? 23 : _context.t0 === 'sk' ? 24 : _context.t0 === 'sv' ? 25 : _context.t0 === 'th' ? 26 : _context.t0 === 'tr' ? 27 : _context.t0 === 'uk' ? 28 : _context.t0 === 'vi' ? 29 : _context.t0 === 'zh_TW' ? 30 : _context.t0 === 'zh' ? 31 : 32;
|
|
39
32
|
break;
|
|
40
|
-
|
|
41
33
|
case 3:
|
|
42
34
|
return _context.abrupt("return", Promise.resolve().then(function () {
|
|
43
35
|
return _interopRequireWildcard(require('../i18n/cs'));
|
|
44
36
|
}).then(function (mod) {
|
|
45
37
|
return mod.default;
|
|
46
38
|
}));
|
|
47
|
-
|
|
48
39
|
case 4:
|
|
49
40
|
return _context.abrupt("return", Promise.resolve().then(function () {
|
|
50
41
|
return _interopRequireWildcard(require('../i18n/da'));
|
|
51
42
|
}).then(function (mod) {
|
|
52
43
|
return mod.default;
|
|
53
44
|
}));
|
|
54
|
-
|
|
55
45
|
case 5:
|
|
56
46
|
return _context.abrupt("return", Promise.resolve().then(function () {
|
|
57
47
|
return _interopRequireWildcard(require('../i18n/de'));
|
|
58
48
|
}).then(function (mod) {
|
|
59
49
|
return mod.default;
|
|
60
50
|
}));
|
|
61
|
-
|
|
62
51
|
case 6:
|
|
63
52
|
return _context.abrupt("return", Promise.resolve().then(function () {
|
|
64
53
|
return _interopRequireWildcard(require('../i18n/en'));
|
|
65
54
|
}).then(function (mod) {
|
|
66
55
|
return mod.default;
|
|
67
56
|
}));
|
|
68
|
-
|
|
69
57
|
case 7:
|
|
70
58
|
return _context.abrupt("return", Promise.resolve().then(function () {
|
|
71
59
|
return _interopRequireWildcard(require('../i18n/en_GB'));
|
|
72
60
|
}).then(function (mod) {
|
|
73
61
|
return mod.default;
|
|
74
62
|
}));
|
|
75
|
-
|
|
76
63
|
case 8:
|
|
77
64
|
return _context.abrupt("return", Promise.resolve().then(function () {
|
|
78
65
|
return _interopRequireWildcard(require('../i18n/es'));
|
|
79
66
|
}).then(function (mod) {
|
|
80
67
|
return mod.default;
|
|
81
68
|
}));
|
|
82
|
-
|
|
83
69
|
case 9:
|
|
84
70
|
return _context.abrupt("return", Promise.resolve().then(function () {
|
|
85
71
|
return _interopRequireWildcard(require('../i18n/et'));
|
|
86
72
|
}).then(function (mod) {
|
|
87
73
|
return mod.default;
|
|
88
74
|
}));
|
|
89
|
-
|
|
90
75
|
case 10:
|
|
91
76
|
return _context.abrupt("return", Promise.resolve().then(function () {
|
|
92
77
|
return _interopRequireWildcard(require('../i18n/fi'));
|
|
93
78
|
}).then(function (mod) {
|
|
94
79
|
return mod.default;
|
|
95
80
|
}));
|
|
96
|
-
|
|
97
81
|
case 11:
|
|
98
82
|
return _context.abrupt("return", Promise.resolve().then(function () {
|
|
99
83
|
return _interopRequireWildcard(require('../i18n/fr'));
|
|
100
84
|
}).then(function (mod) {
|
|
101
85
|
return mod.default;
|
|
102
86
|
}));
|
|
103
|
-
|
|
104
87
|
case 12:
|
|
105
88
|
return _context.abrupt("return", Promise.resolve().then(function () {
|
|
106
89
|
return _interopRequireWildcard(require('../i18n/hu'));
|
|
107
90
|
}).then(function (mod) {
|
|
108
91
|
return mod.default;
|
|
109
92
|
}));
|
|
110
|
-
|
|
111
93
|
case 13:
|
|
112
94
|
return _context.abrupt("return", Promise.resolve().then(function () {
|
|
113
95
|
return _interopRequireWildcard(require('../i18n/is'));
|
|
114
96
|
}).then(function (mod) {
|
|
115
97
|
return mod.default;
|
|
116
98
|
}));
|
|
117
|
-
|
|
118
99
|
case 14:
|
|
119
100
|
return _context.abrupt("return", Promise.resolve().then(function () {
|
|
120
101
|
return _interopRequireWildcard(require('../i18n/it'));
|
|
121
102
|
}).then(function (mod) {
|
|
122
103
|
return mod.default;
|
|
123
104
|
}));
|
|
124
|
-
|
|
125
105
|
case 15:
|
|
126
106
|
return _context.abrupt("return", Promise.resolve().then(function () {
|
|
127
107
|
return _interopRequireWildcard(require('../i18n/ja'));
|
|
128
108
|
}).then(function (mod) {
|
|
129
109
|
return mod.default;
|
|
130
110
|
}));
|
|
131
|
-
|
|
132
111
|
case 16:
|
|
133
112
|
return _context.abrupt("return", Promise.resolve().then(function () {
|
|
134
113
|
return _interopRequireWildcard(require('../i18n/ko'));
|
|
135
114
|
}).then(function (mod) {
|
|
136
115
|
return mod.default;
|
|
137
116
|
}));
|
|
138
|
-
|
|
139
117
|
case 17:
|
|
140
118
|
return _context.abrupt("return", Promise.resolve().then(function () {
|
|
141
119
|
return _interopRequireWildcard(require('../i18n/nb'));
|
|
142
120
|
}).then(function (mod) {
|
|
143
121
|
return mod.default;
|
|
144
122
|
}));
|
|
145
|
-
|
|
146
123
|
case 18:
|
|
147
124
|
return _context.abrupt("return", Promise.resolve().then(function () {
|
|
148
125
|
return _interopRequireWildcard(require('../i18n/nl'));
|
|
149
126
|
}).then(function (mod) {
|
|
150
127
|
return mod.default;
|
|
151
128
|
}));
|
|
152
|
-
|
|
153
129
|
case 19:
|
|
154
130
|
return _context.abrupt("return", Promise.resolve().then(function () {
|
|
155
131
|
return _interopRequireWildcard(require('../i18n/pl'));
|
|
156
132
|
}).then(function (mod) {
|
|
157
133
|
return mod.default;
|
|
158
134
|
}));
|
|
159
|
-
|
|
160
135
|
case 20:
|
|
161
136
|
return _context.abrupt("return", Promise.resolve().then(function () {
|
|
162
137
|
return _interopRequireWildcard(require('../i18n/pt_BR'));
|
|
163
138
|
}).then(function (mod) {
|
|
164
139
|
return mod.default;
|
|
165
140
|
}));
|
|
166
|
-
|
|
167
141
|
case 21:
|
|
168
142
|
return _context.abrupt("return", Promise.resolve().then(function () {
|
|
169
143
|
return _interopRequireWildcard(require('../i18n/pt_PT'));
|
|
170
144
|
}).then(function (mod) {
|
|
171
145
|
return mod.default;
|
|
172
146
|
}));
|
|
173
|
-
|
|
174
147
|
case 22:
|
|
175
148
|
return _context.abrupt("return", Promise.resolve().then(function () {
|
|
176
149
|
return _interopRequireWildcard(require('../i18n/ro'));
|
|
177
150
|
}).then(function (mod) {
|
|
178
151
|
return mod.default;
|
|
179
152
|
}));
|
|
180
|
-
|
|
181
153
|
case 23:
|
|
182
154
|
return _context.abrupt("return", Promise.resolve().then(function () {
|
|
183
155
|
return _interopRequireWildcard(require('../i18n/ru'));
|
|
184
156
|
}).then(function (mod) {
|
|
185
157
|
return mod.default;
|
|
186
158
|
}));
|
|
187
|
-
|
|
188
159
|
case 24:
|
|
189
160
|
return _context.abrupt("return", Promise.resolve().then(function () {
|
|
190
161
|
return _interopRequireWildcard(require('../i18n/sk'));
|
|
191
162
|
}).then(function (mod) {
|
|
192
163
|
return mod.default;
|
|
193
164
|
}));
|
|
194
|
-
|
|
195
165
|
case 25:
|
|
196
166
|
return _context.abrupt("return", Promise.resolve().then(function () {
|
|
197
167
|
return _interopRequireWildcard(require('../i18n/sv'));
|
|
198
168
|
}).then(function (mod) {
|
|
199
169
|
return mod.default;
|
|
200
170
|
}));
|
|
201
|
-
|
|
202
171
|
case 26:
|
|
203
172
|
return _context.abrupt("return", Promise.resolve().then(function () {
|
|
204
173
|
return _interopRequireWildcard(require('../i18n/th'));
|
|
205
174
|
}).then(function (mod) {
|
|
206
175
|
return mod.default;
|
|
207
176
|
}));
|
|
208
|
-
|
|
209
177
|
case 27:
|
|
210
178
|
return _context.abrupt("return", Promise.resolve().then(function () {
|
|
211
179
|
return _interopRequireWildcard(require('../i18n/tr'));
|
|
212
180
|
}).then(function (mod) {
|
|
213
181
|
return mod.default;
|
|
214
182
|
}));
|
|
215
|
-
|
|
216
183
|
case 28:
|
|
217
184
|
return _context.abrupt("return", Promise.resolve().then(function () {
|
|
218
185
|
return _interopRequireWildcard(require('../i18n/uk'));
|
|
219
186
|
}).then(function (mod) {
|
|
220
187
|
return mod.default;
|
|
221
188
|
}));
|
|
222
|
-
|
|
223
189
|
case 29:
|
|
224
190
|
return _context.abrupt("return", Promise.resolve().then(function () {
|
|
225
191
|
return _interopRequireWildcard(require('../i18n/vi'));
|
|
226
192
|
}).then(function (mod) {
|
|
227
193
|
return mod.default;
|
|
228
194
|
}));
|
|
229
|
-
|
|
230
195
|
case 30:
|
|
231
196
|
return _context.abrupt("return", Promise.resolve().then(function () {
|
|
232
197
|
return _interopRequireWildcard(require('../i18n/zh_TW'));
|
|
233
198
|
}).then(function (mod) {
|
|
234
199
|
return mod.default;
|
|
235
200
|
}));
|
|
236
|
-
|
|
237
201
|
case 31:
|
|
238
202
|
return _context.abrupt("return", Promise.resolve().then(function () {
|
|
239
203
|
return _interopRequireWildcard(require('../i18n/zh'));
|
|
240
204
|
}).then(function (mod) {
|
|
241
205
|
return mod.default;
|
|
242
206
|
}));
|
|
243
|
-
|
|
244
207
|
case 32:
|
|
245
208
|
fragments = locale.split(/[_-]/);
|
|
246
|
-
|
|
247
209
|
if (!(fragments.length === 2)) {
|
|
248
210
|
_context.next = 37;
|
|
249
211
|
break;
|
|
250
212
|
}
|
|
251
|
-
|
|
252
213
|
return _context.abrupt("return", getMessagesForLocale(fragments[0]));
|
|
253
|
-
|
|
254
214
|
case 37:
|
|
255
215
|
return _context.abrupt("return", Promise.resolve().then(function () {
|
|
256
216
|
return _interopRequireWildcard(require('../i18n/en'));
|
|
257
217
|
}).then(function (mod) {
|
|
258
218
|
return mod.default;
|
|
259
219
|
}));
|
|
260
|
-
|
|
261
220
|
case 38:
|
|
262
221
|
case "end":
|
|
263
222
|
return _context.stop();
|
|
@@ -265,10 +224,8 @@ var getMessagesForLocale = /*#__PURE__*/function () {
|
|
|
265
224
|
}
|
|
266
225
|
}, _callee);
|
|
267
226
|
}));
|
|
268
|
-
|
|
269
227
|
return function getMessagesForLocale(_x) {
|
|
270
228
|
return _ref.apply(this, arguments);
|
|
271
229
|
};
|
|
272
230
|
}();
|
|
273
|
-
|
|
274
231
|
exports.getMessagesForLocale = getMessagesForLocale;
|
|
@@ -1,30 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.userPickerRenderedUfoExperience = exports.userPickerOptionsShownUfoExperience = exports.UfoErrorBoundary = void 0;
|
|
9
|
-
|
|
10
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
|
-
|
|
12
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
13
|
-
|
|
14
10
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
|
-
|
|
16
11
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
17
|
-
|
|
18
12
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
19
|
-
|
|
20
13
|
var _react = _interopRequireDefault(require("react"));
|
|
21
|
-
|
|
22
14
|
var _ufo = require("@atlaskit/ufo");
|
|
23
|
-
|
|
24
15
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
25
|
-
|
|
26
16
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
27
|
-
|
|
28
17
|
var userPickerRenderedUfoExperience = new _ufo.ConcurrentExperience('user-picker-rendered', {
|
|
29
18
|
platform: {
|
|
30
19
|
component: 'user-picker'
|
|
@@ -41,22 +30,17 @@ var userPickerOptionsShownUfoExperience = new _ufo.ConcurrentExperience('user-pi
|
|
|
41
30
|
performanceType: _ufo.ExperiencePerformanceTypes.InlineResult
|
|
42
31
|
});
|
|
43
32
|
exports.userPickerOptionsShownUfoExperience = userPickerOptionsShownUfoExperience;
|
|
44
|
-
|
|
45
33
|
var UfoErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
46
34
|
(0, _inherits2.default)(UfoErrorBoundary, _React$Component);
|
|
47
|
-
|
|
48
35
|
var _super = _createSuper(UfoErrorBoundary);
|
|
49
|
-
|
|
50
36
|
function UfoErrorBoundary() {
|
|
51
37
|
(0, _classCallCheck2.default)(this, UfoErrorBoundary);
|
|
52
38
|
return _super.apply(this, arguments);
|
|
53
39
|
}
|
|
54
|
-
|
|
55
40
|
(0, _createClass2.default)(UfoErrorBoundary, [{
|
|
56
41
|
key: "componentDidCatch",
|
|
57
42
|
value: function componentDidCatch() {
|
|
58
43
|
var instance = userPickerRenderedUfoExperience.getInstance(this.props.id);
|
|
59
|
-
|
|
60
44
|
if (instance.state.id !== _ufo.UFOExperienceState.FAILED.id) {
|
|
61
45
|
instance.failure();
|
|
62
46
|
}
|
|
@@ -69,5 +53,4 @@ var UfoErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
|
69
53
|
}]);
|
|
70
54
|
return UfoErrorBoundary;
|
|
71
55
|
}(_react.default.Component);
|
|
72
|
-
|
|
73
56
|
exports.UfoErrorBoundary = UfoErrorBoundary;
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/analytics.js
CHANGED
|
@@ -16,7 +16,6 @@ export const startSession = () => ({
|
|
|
16
16
|
lastKey: undefined
|
|
17
17
|
});
|
|
18
18
|
export const createAndFireEventInElementsChannel = createAndFireEvent('fabric-elements');
|
|
19
|
-
|
|
20
19
|
const createEvent = (eventType, action, actionSubject, attributes = {}) => ({
|
|
21
20
|
eventType,
|
|
22
21
|
action,
|
|
@@ -27,39 +26,35 @@ const createEvent = (eventType, action, actionSubject, attributes = {}) => ({
|
|
|
27
26
|
...attributes
|
|
28
27
|
}
|
|
29
28
|
});
|
|
30
|
-
|
|
31
29
|
const checkValidId = id => {
|
|
32
30
|
return UUID_REGEXP_NEW_AAID.test(id) || UUID_REGEXP_OLD_AAID.test(id) || UUID_REGEXP_TEAMS_GROUPS.test(id);
|
|
33
31
|
};
|
|
34
|
-
|
|
35
32
|
const optionData2Analytics = option => {
|
|
36
33
|
const {
|
|
37
34
|
id,
|
|
38
35
|
type
|
|
39
|
-
} = option;
|
|
40
|
-
|
|
36
|
+
} = option;
|
|
37
|
+
// id's of email types are emails which is PII
|
|
41
38
|
const validatedData = {
|
|
42
39
|
id: checkValidId(id) ? id : null,
|
|
43
40
|
type: type || null
|
|
44
41
|
};
|
|
45
|
-
|
|
46
42
|
if (isExternalUser(option)) {
|
|
47
|
-
return {
|
|
43
|
+
return {
|
|
44
|
+
...validatedData,
|
|
48
45
|
type: 'external_user',
|
|
49
46
|
sources: option.sources,
|
|
50
47
|
externalUserType: option.externalUserType
|
|
51
48
|
};
|
|
52
49
|
}
|
|
53
|
-
|
|
54
50
|
if (isCustom(option) && option.analyticsType) {
|
|
55
|
-
return {
|
|
51
|
+
return {
|
|
52
|
+
...validatedData,
|
|
56
53
|
type: option.analyticsType
|
|
57
54
|
};
|
|
58
55
|
}
|
|
59
|
-
|
|
60
56
|
return validatedData;
|
|
61
57
|
};
|
|
62
|
-
|
|
63
58
|
const buildValueForAnalytics = value => {
|
|
64
59
|
if (value) {
|
|
65
60
|
const valueToConvert = Array.isArray(value) ? value : [value];
|
|
@@ -67,21 +62,20 @@ const buildValueForAnalytics = value => {
|
|
|
67
62
|
data
|
|
68
63
|
}) => optionData2Analytics(data));
|
|
69
64
|
}
|
|
70
|
-
|
|
71
65
|
return [];
|
|
72
66
|
};
|
|
73
|
-
|
|
74
67
|
const createDefaultPickerAttributes = (props, session, journeyId) => ({
|
|
75
68
|
context: props.fieldId,
|
|
76
69
|
sessionId: sessionId(session),
|
|
77
70
|
pickerType: pickerType(props),
|
|
78
71
|
journeyId
|
|
79
72
|
});
|
|
80
|
-
|
|
81
|
-
|
|
73
|
+
export const focusEvent = (props, state, session, journeyId) => createEvent('ui', 'focused', 'userPicker', {
|
|
74
|
+
...createDefaultPickerAttributes(props, session, journeyId),
|
|
82
75
|
values: buildValueForAnalytics(state.value)
|
|
83
76
|
});
|
|
84
|
-
export const clearEvent = (props, state, session, journeyId) => createEvent('ui', 'cleared', 'userPicker', {
|
|
77
|
+
export const clearEvent = (props, state, session, journeyId) => createEvent('ui', 'cleared', 'userPicker', {
|
|
78
|
+
...createDefaultPickerAttributes(props, session, journeyId),
|
|
85
79
|
pickerOpen: state.menuIsOpen,
|
|
86
80
|
values: values(state)
|
|
87
81
|
});
|
|
@@ -92,7 +86,8 @@ export const deleteEvent = (props, state, session, journeyId, ...args) => create
|
|
|
92
86
|
value: optionData2Analytics(args[0]),
|
|
93
87
|
pickerOpen: state.menuIsOpen
|
|
94
88
|
});
|
|
95
|
-
export const cancelEvent = (props, _, session, journeyId, ...args) => createEvent('ui', 'cancelled', 'userPicker', {
|
|
89
|
+
export const cancelEvent = (props, _, session, journeyId, ...args) => createEvent('ui', 'cancelled', 'userPicker', {
|
|
90
|
+
...createDefaultPickerAttributes(props, session, journeyId),
|
|
96
91
|
sessionDuration: sessionDuration(session),
|
|
97
92
|
queryLength: queryLength(args[0]),
|
|
98
93
|
spaceInQuery: spaceInQuery(args[0]),
|
|
@@ -100,7 +95,8 @@ export const cancelEvent = (props, _, session, journeyId, ...args) => createEven
|
|
|
100
95
|
downKeyCount: downKeyCount(session)
|
|
101
96
|
});
|
|
102
97
|
export const selectEvent = (props, state, session, journeyId, ...args) => {
|
|
103
|
-
return createEvent('ui', selectEventType(session), 'userPicker', {
|
|
98
|
+
return createEvent('ui', selectEventType(session), 'userPicker', {
|
|
99
|
+
...createDefaultPickerAttributes(props, session, journeyId),
|
|
104
100
|
sessionDuration: sessionDuration(session),
|
|
105
101
|
position: position(state, args[0]),
|
|
106
102
|
queryLength: queryLength(state),
|
|
@@ -113,7 +109,8 @@ export const selectEvent = (props, state, session, journeyId, ...args) => {
|
|
|
113
109
|
};
|
|
114
110
|
export const searchedEvent = (props, state, session, journeyId) => {
|
|
115
111
|
const searchResults = results(state);
|
|
116
|
-
return createEvent('operational', 'searched', 'userPicker', {
|
|
112
|
+
return createEvent('operational', 'searched', 'userPicker', {
|
|
113
|
+
...createDefaultPickerAttributes(props, session, journeyId),
|
|
117
114
|
sessionDuration: sessionDuration(session),
|
|
118
115
|
durationSinceInputChange: durationSinceInputChange(session),
|
|
119
116
|
queryLength: queryLength(state),
|
|
@@ -122,70 +119,56 @@ export const searchedEvent = (props, state, session, journeyId) => {
|
|
|
122
119
|
numberOfResults: searchResults.length
|
|
123
120
|
});
|
|
124
121
|
};
|
|
125
|
-
export const failedEvent = (props, _, session, journeyId) => createEvent('operational', 'failed', 'userPicker', {
|
|
122
|
+
export const failedEvent = (props, _, session, journeyId) => createEvent('operational', 'failed', 'userPicker', {
|
|
123
|
+
...createDefaultPickerAttributes(props, session, journeyId)
|
|
126
124
|
});
|
|
127
125
|
export const userInfoEvent = (sources, accountId) => createEvent('ui', 'displayed', 'userInfo', {
|
|
128
126
|
sources,
|
|
129
127
|
// accountId can be PII if it is an email so check that it's an AAID first
|
|
130
128
|
accountId: checkValidId(accountId) ? accountId : null
|
|
131
129
|
});
|
|
132
|
-
|
|
133
130
|
function queryLength(state) {
|
|
134
131
|
return state.inputValue.length;
|
|
135
132
|
}
|
|
136
|
-
|
|
137
133
|
function selectEventType(session) {
|
|
138
134
|
return session && session.lastKey === 13 ? 'pressed' : 'clicked';
|
|
139
135
|
}
|
|
140
|
-
|
|
141
136
|
function upKeyCount(session) {
|
|
142
137
|
return session ? session.upCount : null;
|
|
143
138
|
}
|
|
144
|
-
|
|
145
139
|
function downKeyCount(session) {
|
|
146
140
|
return session ? session.downCount : null;
|
|
147
141
|
}
|
|
148
|
-
|
|
149
142
|
function spaceInQuery(state) {
|
|
150
143
|
return state.inputValue.indexOf(' ') !== -1;
|
|
151
144
|
}
|
|
152
|
-
|
|
153
145
|
function sessionDuration(session) {
|
|
154
146
|
return session ? Date.now() - session.start : null;
|
|
155
147
|
}
|
|
156
|
-
|
|
157
148
|
function durationSinceInputChange(session) {
|
|
158
149
|
return session ? Date.now() - session.inputChangeTime : null;
|
|
159
150
|
}
|
|
160
|
-
|
|
161
151
|
function sessionId(session) {
|
|
162
152
|
return session && session.id;
|
|
163
153
|
}
|
|
164
|
-
|
|
165
154
|
function position(state, value) {
|
|
166
155
|
return value ? state.options.findIndex(option => option === value.data) : -1;
|
|
167
156
|
}
|
|
168
|
-
|
|
169
157
|
function pickerType(props) {
|
|
170
158
|
return props.isMulti ? 'multi' : 'single';
|
|
171
159
|
}
|
|
172
|
-
|
|
173
160
|
function result(option) {
|
|
174
161
|
return option ? optionData2Analytics(option.data) : null;
|
|
175
162
|
}
|
|
176
|
-
|
|
177
163
|
function results(state) {
|
|
178
164
|
return (state.options || []).map(optionData2Analytics);
|
|
179
165
|
}
|
|
180
|
-
|
|
181
166
|
function isLoading(props, state) {
|
|
182
167
|
return state.count > 0 || props.isLoading;
|
|
183
168
|
}
|
|
184
|
-
|
|
185
169
|
function values(state) {
|
|
186
170
|
return state.value ? Array.isArray(state.value) ? state.value.map(option => optionData2Analytics(option.data)) : [optionData2Analytics(state.value.data)] : [];
|
|
187
171
|
}
|
|
188
|
-
|
|
189
172
|
function numberOfResults(state) {
|
|
190
173
|
return (state.options || []).length;
|
|
191
174
|
}
|
|
@@ -19,27 +19,22 @@ export const useUserSource = (accountId, shouldFetchSources, existingSources) =>
|
|
|
19
19
|
if (typeof AbortController === 'undefined') {
|
|
20
20
|
return;
|
|
21
21
|
}
|
|
22
|
-
|
|
23
22
|
return new AbortController();
|
|
24
23
|
}, []);
|
|
25
24
|
useEffect(() => {
|
|
26
25
|
let isMounted = true;
|
|
27
|
-
|
|
28
26
|
const cleanup = () => {
|
|
29
27
|
abortController === null || abortController === void 0 ? void 0 : abortController.abort();
|
|
30
28
|
isMounted = false;
|
|
31
29
|
};
|
|
32
|
-
|
|
33
30
|
if (!fetchUserSource || !shouldFetchSources) {
|
|
34
31
|
setLoading(false);
|
|
35
32
|
return cleanup;
|
|
36
33
|
}
|
|
37
|
-
|
|
38
34
|
fetchUserSource(accountId, abortController === null || abortController === void 0 ? void 0 : abortController.signal).then(externalSources => {
|
|
39
35
|
if (!isMounted) {
|
|
40
36
|
return;
|
|
41
37
|
}
|
|
42
|
-
|
|
43
38
|
setLoading(false);
|
|
44
39
|
const externalSourceTypes = externalSources.map(source => source.sourceType);
|
|
45
40
|
setExternalSources(externalSourceTypes);
|
|
@@ -47,7 +42,6 @@ export const useUserSource = (accountId, shouldFetchSources, existingSources) =>
|
|
|
47
42
|
if (!isMounted) {
|
|
48
43
|
return;
|
|
49
44
|
}
|
|
50
|
-
|
|
51
45
|
setLoading(false);
|
|
52
46
|
setError(error);
|
|
53
47
|
});
|
|
@@ -3,7 +3,6 @@ import EmailIcon from '@atlaskit/icon/glyph/email';
|
|
|
3
3
|
import { N40, N500 } from '@atlaskit/theme/colors';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { css, jsx } from '@emotion/react';
|
|
6
|
-
|
|
7
6
|
const getEmailAvatarWrapperStyle = isLozenge => {
|
|
8
7
|
const padding = isLozenge ? 0 : 4;
|
|
9
8
|
return css({
|
|
@@ -14,7 +13,6 @@ const getEmailAvatarWrapperStyle = isLozenge => {
|
|
|
14
13
|
alignItems: 'center'
|
|
15
14
|
});
|
|
16
15
|
};
|
|
17
|
-
|
|
18
16
|
export const AddOptionAvatar = ({
|
|
19
17
|
isLozenge,
|
|
20
18
|
label
|
|
@@ -4,14 +4,11 @@ import { gridSize } from '@atlaskit/theme/constants';
|
|
|
4
4
|
import { css, jsx } from '@emotion/react';
|
|
5
5
|
import Lozenge from '@atlaskit/lozenge';
|
|
6
6
|
import { isLozengeText } from './utils';
|
|
7
|
-
const AsyncTooltip = /*#__PURE__*/React.lazy(() => import(
|
|
8
|
-
/* webpackChunkName: "@atlaskit-internal_@atlaskit/tooltip" */
|
|
9
|
-
'@atlaskit/tooltip').then(module => {
|
|
7
|
+
const AsyncTooltip = /*#__PURE__*/React.lazy(() => import( /* webpackChunkName: "@atlaskit-internal_@atlaskit/tooltip" */'@atlaskit/tooltip').then(module => {
|
|
10
8
|
return {
|
|
11
9
|
default: module.default
|
|
12
10
|
};
|
|
13
11
|
}));
|
|
14
|
-
|
|
15
12
|
const wrapper = isDisabled => css({
|
|
16
13
|
alignItems: 'center',
|
|
17
14
|
boxSizing: 'border-box',
|
|
@@ -23,7 +20,6 @@ const wrapper = isDisabled => css({
|
|
|
23
20
|
cursor: isDisabled ? 'not-allowed' : 'pointer',
|
|
24
21
|
opacity: isDisabled ? "var(--ds-opacity-disabled, 0.4)" : undefined
|
|
25
22
|
});
|
|
26
|
-
|
|
27
23
|
const optionWrapper = css({
|
|
28
24
|
maxWidth: '100%',
|
|
29
25
|
minWidth: 0,
|
|
@@ -31,7 +27,6 @@ const optionWrapper = css({
|
|
|
31
27
|
lineHeight: '1.4',
|
|
32
28
|
paddingLeft: `${gridSize()}px`
|
|
33
29
|
});
|
|
34
|
-
|
|
35
30
|
const getTextStyle = isSecondary => {
|
|
36
31
|
const secondaryCssArgs = isSecondary ? {
|
|
37
32
|
fontSize: '0.85em'
|
|
@@ -44,7 +39,6 @@ const getTextStyle = isSecondary => {
|
|
|
44
39
|
...secondaryCssArgs
|
|
45
40
|
});
|
|
46
41
|
};
|
|
47
|
-
|
|
48
42
|
const additionalInfo = css({
|
|
49
43
|
float: 'right'
|
|
50
44
|
});
|
|
@@ -72,13 +66,10 @@ export const AvatarItemOption = ({
|
|
|
72
66
|
content: lozenge.tooltip
|
|
73
67
|
}, jsx(Lozenge, lozenge, lozenge.text)));
|
|
74
68
|
}
|
|
75
|
-
|
|
76
69
|
return jsx(Lozenge, lozenge, lozenge.text);
|
|
77
70
|
}
|
|
78
|
-
|
|
79
71
|
return lozenge;
|
|
80
72
|
};
|
|
81
|
-
|
|
82
73
|
return jsx("span", {
|
|
83
74
|
css: wrapper(isDisabled)
|
|
84
75
|
}, avatar, jsx("div", {
|