@atlaskit/user-picker 11.16.1 → 11.18.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 +18 -0
- package/afm-cc/tsconfig.json +2 -1
- package/afm-jira/tsconfig.json +2 -1
- package/afm-products/tsconfig.json +2 -1
- package/dist/cjs/analytics.js +1 -1
- package/dist/cjs/components/AvatarOrIcon.js +66 -0
- package/dist/cjs/components/BaseUserPicker.js +45 -8
- package/dist/cjs/components/CustomOption/main.js +16 -1
- package/dist/cjs/components/ExternalUserOption/main.js +15 -0
- package/dist/cjs/components/MultiValue.js +18 -2
- package/dist/cjs/components/SingleValue.js +13 -3
- package/dist/cjs/components/SingleValueContainer.js +16 -2
- package/dist/cjs/components/TeamOption/main.js +19 -3
- package/dist/cjs/components/UserOption.js +17 -1
- package/dist/cjs/components/UserPicker.js +3 -1
- package/dist/cjs/i18n/cs.js +44 -3
- package/dist/cjs/i18n/da.js +44 -3
- package/dist/cjs/i18n/de.js +44 -3
- package/dist/cjs/i18n/en.js +44 -3
- package/dist/cjs/i18n/en_GB.js +44 -3
- package/dist/cjs/i18n/en_ZZ.js +44 -3
- package/dist/cjs/i18n/es.js +44 -3
- package/dist/cjs/i18n/fi.js +44 -3
- package/dist/cjs/i18n/fr.js +44 -3
- package/dist/cjs/i18n/hr.js +44 -3
- package/dist/cjs/i18n/hu.js +44 -3
- package/dist/cjs/i18n/it.js +44 -3
- package/dist/cjs/i18n/ja.js +44 -3
- package/dist/cjs/i18n/ko.js +44 -3
- package/dist/cjs/i18n/nb.js +44 -3
- package/dist/cjs/i18n/nl.js +44 -3
- package/dist/cjs/i18n/pl.js +44 -3
- package/dist/cjs/i18n/pt_BR.js +44 -3
- package/dist/cjs/i18n/ru.js +44 -3
- package/dist/cjs/i18n/sl.js +44 -3
- package/dist/cjs/i18n/sr_RS.js +44 -3
- package/dist/cjs/i18n/sr_YR.js +44 -3
- package/dist/cjs/i18n/sv.js +44 -3
- package/dist/cjs/i18n/th.js +44 -3
- package/dist/cjs/i18n/tr.js +44 -3
- package/dist/cjs/i18n/uk.js +44 -3
- package/dist/cjs/i18n/vi.js +44 -3
- package/dist/cjs/i18n/zh.js +44 -3
- package/dist/cjs/i18n/zh_TW.js +44 -3
- package/dist/es2019/analytics.js +1 -1
- package/dist/es2019/components/AvatarOrIcon.js +58 -0
- package/dist/es2019/components/BaseUserPicker.js +41 -8
- package/dist/es2019/components/CustomOption/main.js +15 -1
- package/dist/es2019/components/ExternalUserOption/main.js +16 -1
- package/dist/es2019/components/MultiValue.js +18 -2
- package/dist/es2019/components/SingleValue.js +14 -4
- package/dist/es2019/components/SingleValueContainer.js +16 -2
- package/dist/es2019/components/TeamOption/main.js +16 -1
- package/dist/es2019/components/UserOption.js +18 -2
- package/dist/es2019/components/UserPicker.js +3 -1
- package/dist/es2019/i18n/cs.js +44 -3
- package/dist/es2019/i18n/da.js +44 -3
- package/dist/es2019/i18n/de.js +44 -3
- package/dist/es2019/i18n/en.js +44 -3
- package/dist/es2019/i18n/en_GB.js +44 -3
- package/dist/es2019/i18n/en_ZZ.js +44 -3
- package/dist/es2019/i18n/es.js +44 -3
- package/dist/es2019/i18n/fi.js +44 -3
- package/dist/es2019/i18n/fr.js +44 -3
- package/dist/es2019/i18n/hr.js +44 -3
- package/dist/es2019/i18n/hu.js +44 -3
- package/dist/es2019/i18n/it.js +44 -3
- package/dist/es2019/i18n/ja.js +44 -3
- package/dist/es2019/i18n/ko.js +44 -3
- package/dist/es2019/i18n/nb.js +44 -3
- package/dist/es2019/i18n/nl.js +44 -3
- package/dist/es2019/i18n/pl.js +44 -3
- package/dist/es2019/i18n/pt_BR.js +44 -3
- package/dist/es2019/i18n/ru.js +44 -3
- package/dist/es2019/i18n/sl.js +44 -3
- package/dist/es2019/i18n/sr_RS.js +44 -3
- package/dist/es2019/i18n/sr_YR.js +44 -3
- package/dist/es2019/i18n/sv.js +44 -3
- package/dist/es2019/i18n/th.js +44 -3
- package/dist/es2019/i18n/tr.js +44 -3
- package/dist/es2019/i18n/uk.js +44 -3
- package/dist/es2019/i18n/vi.js +44 -3
- package/dist/es2019/i18n/zh.js +44 -3
- package/dist/es2019/i18n/zh_TW.js +44 -3
- package/dist/esm/analytics.js +1 -1
- package/dist/esm/components/AvatarOrIcon.js +59 -0
- package/dist/esm/components/BaseUserPicker.js +45 -8
- package/dist/esm/components/CustomOption/main.js +16 -1
- package/dist/esm/components/ExternalUserOption/main.js +15 -0
- package/dist/esm/components/MultiValue.js +18 -2
- package/dist/esm/components/SingleValue.js +14 -4
- package/dist/esm/components/SingleValueContainer.js +16 -2
- package/dist/esm/components/TeamOption/main.js +19 -3
- package/dist/esm/components/UserOption.js +17 -1
- package/dist/esm/components/UserPicker.js +3 -1
- package/dist/esm/i18n/cs.js +44 -3
- package/dist/esm/i18n/da.js +44 -3
- package/dist/esm/i18n/de.js +44 -3
- package/dist/esm/i18n/en.js +44 -3
- package/dist/esm/i18n/en_GB.js +44 -3
- package/dist/esm/i18n/en_ZZ.js +44 -3
- package/dist/esm/i18n/es.js +44 -3
- package/dist/esm/i18n/fi.js +44 -3
- package/dist/esm/i18n/fr.js +44 -3
- package/dist/esm/i18n/hr.js +44 -3
- package/dist/esm/i18n/hu.js +44 -3
- package/dist/esm/i18n/it.js +44 -3
- package/dist/esm/i18n/ja.js +44 -3
- package/dist/esm/i18n/ko.js +44 -3
- package/dist/esm/i18n/nb.js +44 -3
- package/dist/esm/i18n/nl.js +44 -3
- package/dist/esm/i18n/pl.js +44 -3
- package/dist/esm/i18n/pt_BR.js +44 -3
- package/dist/esm/i18n/ru.js +44 -3
- package/dist/esm/i18n/sl.js +44 -3
- package/dist/esm/i18n/sr_RS.js +44 -3
- package/dist/esm/i18n/sr_YR.js +44 -3
- package/dist/esm/i18n/sv.js +44 -3
- package/dist/esm/i18n/th.js +44 -3
- package/dist/esm/i18n/tr.js +44 -3
- package/dist/esm/i18n/uk.js +44 -3
- package/dist/esm/i18n/vi.js +44 -3
- package/dist/esm/i18n/zh.js +44 -3
- package/dist/esm/i18n/zh_TW.js +44 -3
- package/dist/types/components/AvatarOrIcon.d.ts +17 -0
- package/dist/types/components/BaseUserPicker.d.ts +8 -3
- package/dist/types/components/PopupUserPicker.d.ts +6 -0
- package/dist/types/components/UserPicker.d.ts +4 -1
- package/dist/types/i18n/cs.d.ts +44 -2
- package/dist/types/i18n/da.d.ts +44 -2
- package/dist/types/i18n/de.d.ts +44 -2
- package/dist/types/i18n/en.d.ts +44 -2
- package/dist/types/i18n/en_GB.d.ts +44 -2
- package/dist/types/i18n/en_ZZ.d.ts +44 -2
- package/dist/types/i18n/es.d.ts +44 -2
- package/dist/types/i18n/fi.d.ts +44 -2
- package/dist/types/i18n/fr.d.ts +44 -2
- package/dist/types/i18n/hr.d.ts +44 -2
- package/dist/types/i18n/hu.d.ts +44 -2
- package/dist/types/i18n/it.d.ts +44 -2
- package/dist/types/i18n/ja.d.ts +44 -2
- package/dist/types/i18n/ko.d.ts +44 -2
- package/dist/types/i18n/nb.d.ts +44 -2
- package/dist/types/i18n/nl.d.ts +44 -2
- package/dist/types/i18n/pl.d.ts +44 -2
- package/dist/types/i18n/pt_BR.d.ts +44 -2
- package/dist/types/i18n/ru.d.ts +44 -2
- package/dist/types/i18n/sl.d.ts +44 -2
- package/dist/types/i18n/sr_RS.d.ts +44 -2
- package/dist/types/i18n/sr_YR.d.ts +44 -2
- package/dist/types/i18n/sv.d.ts +44 -2
- package/dist/types/i18n/th.d.ts +44 -2
- package/dist/types/i18n/tr.d.ts +44 -2
- package/dist/types/i18n/uk.d.ts +44 -2
- package/dist/types/i18n/vi.d.ts +44 -2
- package/dist/types/i18n/zh.d.ts +44 -2
- package/dist/types/i18n/zh_TW.d.ts +44 -2
- package/dist/types/types.d.ts +11 -0
- package/dist/types-ts4.5/components/AvatarOrIcon.d.ts +17 -0
- package/dist/types-ts4.5/components/BaseUserPicker.d.ts +8 -3
- package/dist/types-ts4.5/components/PopupUserPicker.d.ts +6 -0
- package/dist/types-ts4.5/components/UserPicker.d.ts +4 -1
- package/dist/types-ts4.5/i18n/cs.d.ts +44 -2
- package/dist/types-ts4.5/i18n/da.d.ts +44 -2
- package/dist/types-ts4.5/i18n/de.d.ts +44 -2
- package/dist/types-ts4.5/i18n/en.d.ts +44 -2
- package/dist/types-ts4.5/i18n/en_GB.d.ts +44 -2
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +44 -2
- package/dist/types-ts4.5/i18n/es.d.ts +44 -2
- package/dist/types-ts4.5/i18n/fi.d.ts +44 -2
- package/dist/types-ts4.5/i18n/fr.d.ts +44 -2
- package/dist/types-ts4.5/i18n/hr.d.ts +44 -2
- package/dist/types-ts4.5/i18n/hu.d.ts +44 -2
- package/dist/types-ts4.5/i18n/it.d.ts +44 -2
- package/dist/types-ts4.5/i18n/ja.d.ts +44 -2
- package/dist/types-ts4.5/i18n/ko.d.ts +44 -2
- package/dist/types-ts4.5/i18n/nb.d.ts +44 -2
- package/dist/types-ts4.5/i18n/nl.d.ts +44 -2
- package/dist/types-ts4.5/i18n/pl.d.ts +44 -2
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +44 -2
- package/dist/types-ts4.5/i18n/ru.d.ts +44 -2
- package/dist/types-ts4.5/i18n/sl.d.ts +44 -2
- package/dist/types-ts4.5/i18n/sr_RS.d.ts +44 -2
- package/dist/types-ts4.5/i18n/sr_YR.d.ts +44 -2
- package/dist/types-ts4.5/i18n/sv.d.ts +44 -2
- package/dist/types-ts4.5/i18n/th.d.ts +44 -2
- package/dist/types-ts4.5/i18n/tr.d.ts +44 -2
- package/dist/types-ts4.5/i18n/uk.d.ts +44 -2
- package/dist/types-ts4.5/i18n/vi.d.ts +44 -2
- package/dist/types-ts4.5/i18n/zh.d.ts +44 -2
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +44 -2
- package/dist/types-ts4.5/types.d.ts +11 -0
- package/package.json +11 -8
|
@@ -4,5 +4,47 @@
|
|
|
4
4
|
* This file is automatically generated by Traduki 2.0.
|
|
5
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'fabric.elements.user-picker.custom.type.label': string;
|
|
9
|
+
'fabric.elements.user-picker.email.add': string;
|
|
10
|
+
'fabric.elements.user-picker.email.add.potential': string;
|
|
11
|
+
'fabric.elements.user-picker.email.select.to.add': string;
|
|
12
|
+
'fabric.elements.user-picker.email.type.label': string;
|
|
13
|
+
'fabric.elements.user-picker.error.message': string;
|
|
14
|
+
'fabric.elements.user-picker.external.sourced.error': string;
|
|
15
|
+
'fabric.elements.user-picker.external.sourced.from': string;
|
|
16
|
+
'fabric.elements.user-picker.external.user.type.label': string;
|
|
17
|
+
'fabric.elements.user-picker.github.provider': string;
|
|
18
|
+
'fabric.elements.user-picker.google.provider': string;
|
|
19
|
+
'fabric.elements.user-picker.group.byline': string;
|
|
20
|
+
'fabric.elements.user-picker.group.byline.admin-managed': string;
|
|
21
|
+
'fabric.elements.user-picker.group.type.label': string;
|
|
22
|
+
'fabric.elements.user-picker.guest.lozenge.text': string;
|
|
23
|
+
'fabric.elements.user-picker.guest.lozenge.tooltip.group': string;
|
|
24
|
+
'fabric.elements.user-picker.guest.lozenge.tooltip.user': string;
|
|
25
|
+
'fabric.elements.user-picker.member.lozenge.text': string;
|
|
26
|
+
'fabric.elements.user-picker.microsoft.provider': string;
|
|
27
|
+
'fabric.elements.user-picker.multi.remove-item': string;
|
|
28
|
+
'fabric.elements.user-picker.other.type.label': string;
|
|
29
|
+
'fabric.elements.user-picker.placeholder': string;
|
|
30
|
+
'fabric.elements.user-picker.placeholder.add-more': string;
|
|
31
|
+
'fabric.elements.user-picker.single.clear': string;
|
|
32
|
+
'fabric.elements.user-picker.slack.provider': string;
|
|
33
|
+
'fabric.elements.user-picker.source.confluence': string;
|
|
34
|
+
'fabric.elements.user-picker.source.jira': string;
|
|
35
|
+
'fabric.elements.user-picker.source.other-atlassian': string;
|
|
36
|
+
'fabric.elements.user-picker.source.other-atlassian-appify': string;
|
|
37
|
+
'fabric.elements.user-picker.team.byline': string;
|
|
38
|
+
'fabric.elements.user-picker.team.byline.official': string;
|
|
39
|
+
'fabric.elements.user-picker.team.member.50plus': string;
|
|
40
|
+
'fabric.elements.user-picker.team.member.50plus.including.you': string;
|
|
41
|
+
'fabric.elements.user-picker.team.member.50plus.official': string;
|
|
42
|
+
'fabric.elements.user-picker.team.member.50plus.official.including.you': string;
|
|
43
|
+
'fabric.elements.user-picker.team.member.count': string;
|
|
44
|
+
'fabric.elements.user-picker.team.member.count.including.you': string;
|
|
45
|
+
'fabric.elements.user-picker.team.member.count.official': string;
|
|
46
|
+
'fabric.elements.user-picker.team.member.count.official.including.you': string;
|
|
47
|
+
'fabric.elements.user-picker.team.type.label': string;
|
|
48
|
+
'fabric.elements.user-picker.user.type.label': string;
|
|
49
|
+
};
|
|
50
|
+
export default _default;
|
|
@@ -4,5 +4,47 @@
|
|
|
4
4
|
* This file is automatically generated by Traduki 2.0.
|
|
5
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'fabric.elements.user-picker.custom.type.label': string;
|
|
9
|
+
'fabric.elements.user-picker.email.add': string;
|
|
10
|
+
'fabric.elements.user-picker.email.add.potential': string;
|
|
11
|
+
'fabric.elements.user-picker.email.select.to.add': string;
|
|
12
|
+
'fabric.elements.user-picker.email.type.label': string;
|
|
13
|
+
'fabric.elements.user-picker.error.message': string;
|
|
14
|
+
'fabric.elements.user-picker.external.sourced.error': string;
|
|
15
|
+
'fabric.elements.user-picker.external.sourced.from': string;
|
|
16
|
+
'fabric.elements.user-picker.external.user.type.label': string;
|
|
17
|
+
'fabric.elements.user-picker.github.provider': string;
|
|
18
|
+
'fabric.elements.user-picker.google.provider': string;
|
|
19
|
+
'fabric.elements.user-picker.group.byline': string;
|
|
20
|
+
'fabric.elements.user-picker.group.byline.admin-managed': string;
|
|
21
|
+
'fabric.elements.user-picker.group.type.label': string;
|
|
22
|
+
'fabric.elements.user-picker.guest.lozenge.text': string;
|
|
23
|
+
'fabric.elements.user-picker.guest.lozenge.tooltip.group': string;
|
|
24
|
+
'fabric.elements.user-picker.guest.lozenge.tooltip.user': string;
|
|
25
|
+
'fabric.elements.user-picker.member.lozenge.text': string;
|
|
26
|
+
'fabric.elements.user-picker.microsoft.provider': string;
|
|
27
|
+
'fabric.elements.user-picker.multi.remove-item': string;
|
|
28
|
+
'fabric.elements.user-picker.other.type.label': string;
|
|
29
|
+
'fabric.elements.user-picker.placeholder': string;
|
|
30
|
+
'fabric.elements.user-picker.placeholder.add-more': string;
|
|
31
|
+
'fabric.elements.user-picker.single.clear': string;
|
|
32
|
+
'fabric.elements.user-picker.slack.provider': string;
|
|
33
|
+
'fabric.elements.user-picker.source.confluence': string;
|
|
34
|
+
'fabric.elements.user-picker.source.jira': string;
|
|
35
|
+
'fabric.elements.user-picker.source.other-atlassian': string;
|
|
36
|
+
'fabric.elements.user-picker.source.other-atlassian-appify': string;
|
|
37
|
+
'fabric.elements.user-picker.team.byline': string;
|
|
38
|
+
'fabric.elements.user-picker.team.byline.official': string;
|
|
39
|
+
'fabric.elements.user-picker.team.member.50plus': string;
|
|
40
|
+
'fabric.elements.user-picker.team.member.50plus.including.you': string;
|
|
41
|
+
'fabric.elements.user-picker.team.member.50plus.official': string;
|
|
42
|
+
'fabric.elements.user-picker.team.member.50plus.official.including.you': string;
|
|
43
|
+
'fabric.elements.user-picker.team.member.count': string;
|
|
44
|
+
'fabric.elements.user-picker.team.member.count.including.you': string;
|
|
45
|
+
'fabric.elements.user-picker.team.member.count.official': string;
|
|
46
|
+
'fabric.elements.user-picker.team.member.count.official.including.you': string;
|
|
47
|
+
'fabric.elements.user-picker.team.type.label': string;
|
|
48
|
+
'fabric.elements.user-picker.user.type.label': string;
|
|
49
|
+
};
|
|
50
|
+
export default _default;
|
|
@@ -4,5 +4,47 @@
|
|
|
4
4
|
* This file is automatically generated by Traduki 2.0.
|
|
5
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'fabric.elements.user-picker.custom.type.label': string;
|
|
9
|
+
'fabric.elements.user-picker.email.add': string;
|
|
10
|
+
'fabric.elements.user-picker.email.add.potential': string;
|
|
11
|
+
'fabric.elements.user-picker.email.select.to.add': string;
|
|
12
|
+
'fabric.elements.user-picker.email.type.label': string;
|
|
13
|
+
'fabric.elements.user-picker.error.message': string;
|
|
14
|
+
'fabric.elements.user-picker.external.sourced.error': string;
|
|
15
|
+
'fabric.elements.user-picker.external.sourced.from': string;
|
|
16
|
+
'fabric.elements.user-picker.external.user.type.label': string;
|
|
17
|
+
'fabric.elements.user-picker.github.provider': string;
|
|
18
|
+
'fabric.elements.user-picker.google.provider': string;
|
|
19
|
+
'fabric.elements.user-picker.group.byline': string;
|
|
20
|
+
'fabric.elements.user-picker.group.byline.admin-managed': string;
|
|
21
|
+
'fabric.elements.user-picker.group.type.label': string;
|
|
22
|
+
'fabric.elements.user-picker.guest.lozenge.text': string;
|
|
23
|
+
'fabric.elements.user-picker.guest.lozenge.tooltip.group': string;
|
|
24
|
+
'fabric.elements.user-picker.guest.lozenge.tooltip.user': string;
|
|
25
|
+
'fabric.elements.user-picker.member.lozenge.text': string;
|
|
26
|
+
'fabric.elements.user-picker.microsoft.provider': string;
|
|
27
|
+
'fabric.elements.user-picker.multi.remove-item': string;
|
|
28
|
+
'fabric.elements.user-picker.other.type.label': string;
|
|
29
|
+
'fabric.elements.user-picker.placeholder': string;
|
|
30
|
+
'fabric.elements.user-picker.placeholder.add-more': string;
|
|
31
|
+
'fabric.elements.user-picker.single.clear': string;
|
|
32
|
+
'fabric.elements.user-picker.slack.provider': string;
|
|
33
|
+
'fabric.elements.user-picker.source.confluence': string;
|
|
34
|
+
'fabric.elements.user-picker.source.jira': string;
|
|
35
|
+
'fabric.elements.user-picker.source.other-atlassian': string;
|
|
36
|
+
'fabric.elements.user-picker.source.other-atlassian-appify': string;
|
|
37
|
+
'fabric.elements.user-picker.team.byline': string;
|
|
38
|
+
'fabric.elements.user-picker.team.byline.official': string;
|
|
39
|
+
'fabric.elements.user-picker.team.member.50plus': string;
|
|
40
|
+
'fabric.elements.user-picker.team.member.50plus.including.you': string;
|
|
41
|
+
'fabric.elements.user-picker.team.member.50plus.official': string;
|
|
42
|
+
'fabric.elements.user-picker.team.member.50plus.official.including.you': string;
|
|
43
|
+
'fabric.elements.user-picker.team.member.count': string;
|
|
44
|
+
'fabric.elements.user-picker.team.member.count.including.you': string;
|
|
45
|
+
'fabric.elements.user-picker.team.member.count.official': string;
|
|
46
|
+
'fabric.elements.user-picker.team.member.count.official.including.you': string;
|
|
47
|
+
'fabric.elements.user-picker.team.type.label': string;
|
|
48
|
+
'fabric.elements.user-picker.user.type.label': string;
|
|
49
|
+
};
|
|
50
|
+
export default _default;
|
|
@@ -78,6 +78,8 @@ export type UserPickerProps = WithAnalyticsEventsProps & {
|
|
|
78
78
|
isClearable?: boolean;
|
|
79
79
|
/** Disable all interactions with the picker, putting it in a read-only state. */
|
|
80
80
|
isDisabled?: boolean;
|
|
81
|
+
/** Checks if the footer is focused or not. This is needed to keep the menu open when the footer is focused */
|
|
82
|
+
isFooterFocused?: boolean;
|
|
81
83
|
/** Display the picker with a style to show the value is invalid */
|
|
82
84
|
isInvalid?: boolean;
|
|
83
85
|
/** Show the loading indicator. */
|
|
@@ -111,6 +113,8 @@ export type UserPickerProps = WithAnalyticsEventsProps & {
|
|
|
111
113
|
maxOptions?: number;
|
|
112
114
|
/** Sets max height of the user picker. If not set, the height will grow based on number of picked users. */
|
|
113
115
|
maxPickerHeight?: number;
|
|
116
|
+
/** Whether the menu is open or not. */
|
|
117
|
+
menuIsOpen?: boolean;
|
|
114
118
|
/** Sets the minimum width for the menu. If not set, menu will always have the same width of the field. */
|
|
115
119
|
menuMinWidth?: number;
|
|
116
120
|
/** Whether the menu should use a portal, and where it should attach. */
|
|
@@ -164,6 +168,8 @@ export type UserPickerProps = WithAnalyticsEventsProps & {
|
|
|
164
168
|
required?: boolean;
|
|
165
169
|
/** Input text value. */
|
|
166
170
|
search?: string;
|
|
171
|
+
/** Sets if the footer is focused or not. This is needed to keep the menu open when the footer is focused */
|
|
172
|
+
setIsFooterFocused?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
167
173
|
/** Override default behavior and show the clear indicator. */
|
|
168
174
|
showClearIndicator?: boolean;
|
|
169
175
|
/** Positioning strategy for the popper element */
|
|
@@ -268,6 +274,8 @@ export interface OptionData {
|
|
|
268
274
|
appType?: string | null;
|
|
269
275
|
avatarUrl?: any;
|
|
270
276
|
fixed?: boolean;
|
|
277
|
+
icon?: ReactNode;
|
|
278
|
+
iconColor?: string;
|
|
271
279
|
id: string;
|
|
272
280
|
includeTeamsUpdates?: boolean;
|
|
273
281
|
isDisabled?: boolean;
|
|
@@ -293,6 +301,7 @@ export interface User extends OptionData {
|
|
|
293
301
|
byline?: string;
|
|
294
302
|
email?: string;
|
|
295
303
|
highlight?: UserHighlight;
|
|
304
|
+
icon?: ReactNode;
|
|
296
305
|
isExternal?: boolean;
|
|
297
306
|
publicName?: string;
|
|
298
307
|
title?: string;
|
|
@@ -316,6 +325,7 @@ export interface Team extends OptionData {
|
|
|
316
325
|
byline?: string;
|
|
317
326
|
description?: string;
|
|
318
327
|
highlight?: TeamHighlight;
|
|
328
|
+
icon?: ReactNode;
|
|
319
329
|
includesYou?: boolean;
|
|
320
330
|
includeTeamsUpdates?: boolean;
|
|
321
331
|
memberCount?: number;
|
|
@@ -335,6 +345,7 @@ export interface Custom extends OptionData {
|
|
|
335
345
|
avatarUrl?: string;
|
|
336
346
|
byline?: string;
|
|
337
347
|
highlight?: CustomHighlight;
|
|
348
|
+
icon?: ReactNode;
|
|
338
349
|
type: 'custom';
|
|
339
350
|
}
|
|
340
351
|
export type Value = OptionData | OptionData[] | null | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/user-picker",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.18.0",
|
|
4
4
|
"description": "Fabric component for display a dropdown to select a user from",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -44,20 +44,20 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@atlaskit/afm-i18n-platform-elements-user-picker": "2.7.0",
|
|
46
46
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
47
|
-
"@atlaskit/avatar": "^25.
|
|
48
|
-
"@atlaskit/icon": "^29.
|
|
47
|
+
"@atlaskit/avatar": "^25.6.0",
|
|
48
|
+
"@atlaskit/icon": "^29.1.0",
|
|
49
49
|
"@atlaskit/logo": "^19.9.0",
|
|
50
50
|
"@atlaskit/lozenge": "^13.1.0",
|
|
51
51
|
"@atlaskit/people-teams-ui-public": "^3.7.0",
|
|
52
52
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
53
53
|
"@atlaskit/popper": "^7.1.0",
|
|
54
|
-
"@atlaskit/primitives": "^16.
|
|
55
|
-
"@atlaskit/select": "^21.
|
|
54
|
+
"@atlaskit/primitives": "^16.4.0",
|
|
55
|
+
"@atlaskit/select": "^21.5.0",
|
|
56
56
|
"@atlaskit/spinner": "^19.0.0",
|
|
57
57
|
"@atlaskit/teams-avatar": "^2.4.0",
|
|
58
58
|
"@atlaskit/theme": "^21.0.0",
|
|
59
|
-
"@atlaskit/tokens": "^8.
|
|
60
|
-
"@atlaskit/tooltip": "^20.
|
|
59
|
+
"@atlaskit/tokens": "^8.5.0",
|
|
60
|
+
"@atlaskit/tooltip": "^20.11.0",
|
|
61
61
|
"@atlaskit/ufo": "^0.4.0",
|
|
62
62
|
"@babel/runtime": "^7.0.0",
|
|
63
63
|
"@compiled/react": "^0.18.6",
|
|
@@ -121,7 +121,10 @@
|
|
|
121
121
|
"jira_ai_agent_avatar_user_picker_user_option": {
|
|
122
122
|
"type": "boolean"
|
|
123
123
|
},
|
|
124
|
-
"
|
|
124
|
+
"a11y-create-team-is-not-focusable-and-has-no-btn": {
|
|
125
|
+
"type": "boolean"
|
|
126
|
+
},
|
|
127
|
+
"atlaskit_user_picker_support_icon": {
|
|
125
128
|
"type": "boolean"
|
|
126
129
|
}
|
|
127
130
|
}
|