@atlaskit/user-picker 11.4.2 → 11.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/afm-cc/tsconfig.json +8 -2
  3. package/afm-dev-agents/tsconfig.json +75 -0
  4. package/afm-jira/tsconfig.json +7 -1
  5. package/afm-passionfruit/tsconfig.json +75 -0
  6. package/afm-post-office/tsconfig.json +7 -1
  7. package/afm-rovo-extension/tsconfig.json +7 -1
  8. package/afm-townsquare/tsconfig.json +7 -1
  9. package/afm-volt/tsconfig.json +7 -1
  10. package/analytics/package.json +1 -1
  11. package/build/tsconfig.json +8 -2
  12. package/dist/cjs/analytics.js +1 -1
  13. package/dist/cjs/components/AddOptionAvatar.js +9 -5
  14. package/dist/cjs/components/MultiValue.js +2 -1
  15. package/dist/cjs/components/UserPicker.js +1 -1
  16. package/dist/cjs/components/styles.js +4 -3
  17. package/dist/cjs/i18n/da.js +1 -0
  18. package/dist/cjs/i18n/de.js +1 -0
  19. package/dist/cjs/i18n/hu.js +8 -1
  20. package/dist/cjs/i18n/pl.js +1 -0
  21. package/dist/cjs/i18n/tr.js +1 -0
  22. package/dist/cjs/i18n/zh.js +1 -0
  23. package/dist/es2019/analytics.js +1 -1
  24. package/dist/es2019/components/AddOptionAvatar.js +10 -6
  25. package/dist/es2019/components/MultiValue.js +2 -1
  26. package/dist/es2019/components/UserPicker.js +1 -1
  27. package/dist/es2019/components/styles.js +4 -3
  28. package/dist/es2019/i18n/da.js +1 -0
  29. package/dist/es2019/i18n/de.js +1 -0
  30. package/dist/es2019/i18n/hu.js +8 -1
  31. package/dist/es2019/i18n/pl.js +1 -0
  32. package/dist/es2019/i18n/tr.js +1 -0
  33. package/dist/es2019/i18n/zh.js +1 -0
  34. package/dist/esm/analytics.js +1 -1
  35. package/dist/esm/components/AddOptionAvatar.js +9 -5
  36. package/dist/esm/components/MultiValue.js +2 -1
  37. package/dist/esm/components/UserPicker.js +1 -1
  38. package/dist/esm/components/styles.js +4 -3
  39. package/dist/esm/i18n/da.js +1 -0
  40. package/dist/esm/i18n/de.js +1 -0
  41. package/dist/esm/i18n/hu.js +8 -1
  42. package/dist/esm/i18n/pl.js +1 -0
  43. package/dist/esm/i18n/tr.js +1 -0
  44. package/dist/esm/i18n/zh.js +1 -0
  45. package/dist/types/components/AddOptionAvatar.d.ts +1 -0
  46. package/dist/types/components/BaseUserPicker.d.ts +65 -64
  47. package/dist/types/components/Control.d.ts +0 -1
  48. package/dist/types/components/ExternalUserOption/index.d.ts +1 -1
  49. package/dist/types/components/ExternalUserOption/main.d.ts +1 -1
  50. package/dist/types/components/PopupUserPicker.d.ts +77 -75
  51. package/dist/types/components/SingleValue.d.ts +0 -1
  52. package/dist/types/components/UserPicker.d.ts +64 -63
  53. package/dist/types/components/components.d.ts +1 -72
  54. package/dist/types/components/creatable.d.ts +2 -2
  55. package/dist/types/components/popup.d.ts +1 -1
  56. package/dist/types/components/styles.d.ts +1 -1
  57. package/dist/types/components/utils.d.ts +2 -2
  58. package/dist/types/i18n/da.d.ts +1 -0
  59. package/dist/types/i18n/de.d.ts +1 -0
  60. package/dist/types/i18n/hu.d.ts +7 -0
  61. package/dist/types/i18n/pl.d.ts +1 -0
  62. package/dist/types/i18n/tr.d.ts +1 -0
  63. package/dist/types/i18n/zh.d.ts +1 -0
  64. package/dist/types/types.d.ts +3 -0
  65. package/dist/types/util/group-options-by-type/index.d.ts +1 -1
  66. package/dist/types-ts4.5/components/AddOptionAvatar.d.ts +1 -0
  67. package/dist/types-ts4.5/components/BaseUserPicker.d.ts +65 -64
  68. package/dist/types-ts4.5/components/Control.d.ts +0 -1
  69. package/dist/types-ts4.5/components/ExternalUserOption/index.d.ts +1 -1
  70. package/dist/types-ts4.5/components/ExternalUserOption/main.d.ts +1 -1
  71. package/dist/types-ts4.5/components/PopupUserPicker.d.ts +77 -75
  72. package/dist/types-ts4.5/components/SingleValue.d.ts +0 -1
  73. package/dist/types-ts4.5/components/UserPicker.d.ts +64 -63
  74. package/dist/types-ts4.5/components/components.d.ts +1 -72
  75. package/dist/types-ts4.5/components/creatable.d.ts +2 -2
  76. package/dist/types-ts4.5/components/popup.d.ts +1 -1
  77. package/dist/types-ts4.5/components/styles.d.ts +1 -1
  78. package/dist/types-ts4.5/components/utils.d.ts +2 -2
  79. package/dist/types-ts4.5/i18n/da.d.ts +1 -0
  80. package/dist/types-ts4.5/i18n/de.d.ts +1 -0
  81. package/dist/types-ts4.5/i18n/hu.d.ts +7 -0
  82. package/dist/types-ts4.5/i18n/pl.d.ts +1 -0
  83. package/dist/types-ts4.5/i18n/tr.d.ts +1 -0
  84. package/dist/types-ts4.5/i18n/zh.d.ts +1 -0
  85. package/dist/types-ts4.5/types.d.ts +3 -0
  86. package/dist/types-ts4.5/util/group-options-by-type/index.d.ts +1 -1
  87. package/option/package.json +1 -1
  88. package/package.json +12 -7
  89. package/tsconfig.json +8 -3
  90. package/types/package.json +1 -1
@@ -21,82 +21,83 @@ export declare class PopupUserPickerWithoutAnalytics extends React.Component<Pop
21
21
  }
22
22
  export declare const PopupUserPicker: React.ForwardRefExoticComponent<Omit<Pick<Omit<{
23
23
  fieldId: string | null;
24
- options?: import("../types").OptionData[] | undefined;
25
- width?: string | number | undefined;
26
- menuMinWidth?: number | undefined;
27
- maxPickerHeight?: number | undefined;
28
- textFieldBackgroundColor?: boolean | undefined;
29
- loadOptions?: import("../types").LoadOptions | undefined;
30
- loadOptionsErrorMessage?: ((value: {
24
+ options?: import("../types").OptionData[];
25
+ width?: number | string;
26
+ height?: number | string;
27
+ menuMinWidth?: number;
28
+ maxPickerHeight?: number;
29
+ textFieldBackgroundColor?: boolean;
30
+ loadOptions?: import("../types").LoadOptions;
31
+ loadOptionsErrorMessage?: (value: {
31
32
  inputValue: string;
32
- }) => React.ReactNode) | undefined;
33
- loadUserSource?: import("../types").LoadUserSource | undefined;
34
- onChange?: import("../types").OnChange | undefined;
35
- isMulti?: boolean | undefined;
36
- search?: string | undefined;
37
- anchor?: React.ComponentType<any> | undefined;
38
- open?: boolean | undefined;
39
- isLoading?: boolean | undefined;
40
- onInputChange?: import("../types").OnInputChange | undefined;
41
- onSelection?: import("../types").OnOption | undefined;
42
- onFocus?: import("../types").OnPicker | undefined;
43
- onBlur?: import("../types").OnPicker | undefined;
44
- onClear?: import("../types").OnPicker | undefined;
45
- onOpen?: import("../types").OnPicker | undefined;
46
- onClose?: import("../types").OnPicker | undefined;
47
- onKeyDown?: ((event: React.KeyboardEvent<Element>) => void) | undefined;
48
- appearance?: import("../types").Appearance | undefined;
49
- subtle?: boolean | undefined;
50
- noBorder?: boolean | undefined;
51
- styles?: import("@atlaskit/select").StylesConfig | undefined;
52
- components?: Partial<import("packages/design-system/react-select/dist/types/components").SelectComponents<import("../types").OptionData, boolean, import("@atlaskit/select").GroupType<import("../types").OptionData>>> | undefined;
33
+ }) => React.ReactNode;
34
+ loadUserSource?: import("../types").LoadUserSource;
35
+ onChange?: import("../types").OnChange;
36
+ isMulti?: boolean;
37
+ search?: string;
38
+ anchor?: React.ComponentType<any>;
39
+ open?: boolean;
40
+ isLoading?: boolean;
41
+ onInputChange?: import("../types").OnInputChange;
42
+ onSelection?: import("../types").OnOption;
43
+ onFocus?: import("../types").OnPicker;
44
+ onBlur?: import("../types").OnPicker;
45
+ onClear?: import("../types").OnPicker;
46
+ onOpen?: import("../types").OnPicker;
47
+ onClose?: import("../types").OnPicker;
48
+ onKeyDown?: (event: React.KeyboardEvent) => void;
49
+ appearance?: import("../types").Appearance;
50
+ subtle?: boolean;
51
+ noBorder?: boolean;
52
+ styles?: import("@atlaskit/select").StylesConfig;
53
+ components?: import("@atlaskit/select").SelectComponentsConfig<import("../types").OptionData, boolean>;
53
54
  defaultValue?: import("../types").DefaultValue;
54
55
  placeholder?: React.ReactNode;
55
- placeholderAvatar?: "team" | "person" | undefined;
56
- addMoreMessage?: string | undefined;
57
- noOptionsMessage?: React.ReactNode | ((value: {
56
+ placeholderAvatar?: "person" | "team";
57
+ addMoreMessage?: string;
58
+ noOptionsMessage?: ((value: {
58
59
  inputValue: string;
59
- }) => React.ReactNode);
60
+ }) => string | null | React.ReactNode) | null | React.ReactNode;
60
61
  footer?: React.ReactNode;
61
62
  value?: import("../types").Value;
62
- isDisabled?: boolean | undefined;
63
- isInvalid?: boolean | undefined;
64
- isClearable?: boolean | undefined;
65
- clearValueLabel?: string | undefined;
66
- menuPosition?: "fixed" | "absolute" | undefined;
67
- captureMenuScroll?: boolean | undefined;
68
- menuPortalTarget?: HTMLElement | undefined;
69
- allowEmail?: boolean | undefined;
70
- suggestEmailsForDomain?: string | undefined;
71
- emailLabel?: string | undefined;
72
- disableInput?: boolean | undefined;
73
- isValidEmail?: import("./emailValidation").EmailValidator | undefined;
74
- autoFocus?: boolean | undefined;
75
- maxOptions?: number | undefined;
76
- inputId?: string | undefined;
77
- closeMenuOnScroll?: boolean | EventListener | undefined;
78
- menuShouldBlockScroll?: boolean | undefined;
79
- ariaLabel?: string | undefined;
80
- ariaLabelledBy?: string | undefined;
81
- ariaDescribedBy?: string | undefined;
82
- ariaLive?: "polite" | "off" | "assertive" | undefined;
83
- name?: string | undefined;
63
+ isDisabled?: boolean;
64
+ isInvalid?: boolean;
65
+ isClearable?: boolean;
66
+ clearValueLabel?: string;
67
+ menuPosition?: "absolute" | "fixed";
68
+ captureMenuScroll?: boolean;
69
+ menuPortalTarget?: HTMLElement;
70
+ allowEmail?: boolean;
71
+ suggestEmailsForDomain?: string;
72
+ emailLabel?: string;
73
+ disableInput?: boolean;
74
+ isValidEmail?: import("./emailValidation").EmailValidator;
75
+ autoFocus?: boolean;
76
+ maxOptions?: number;
77
+ inputId?: string;
78
+ closeMenuOnScroll?: boolean | EventListener;
79
+ menuShouldBlockScroll?: boolean;
80
+ ariaLabel?: string;
81
+ ariaLabelledBy?: string;
82
+ ariaDescribedBy?: string;
83
+ ariaLive?: "polite" | "off" | "assertive";
84
+ name?: string;
84
85
  header?: React.ReactNode;
85
- required?: boolean | undefined;
86
- UNSAFE_hasDraggableParentComponent?: boolean | undefined;
87
- openMenuOnClick?: boolean | undefined;
88
- strategy?: "fixed" | "absolute" | undefined;
89
- showClearIndicator?: boolean | undefined;
90
- forwardedRef?: React.ForwardedRef<import("../types").UserPickerRef> | undefined;
91
- groupByTypeOrder?: NonNullable<"user" | "team" | "email" | "group" | "custom" | "external_user" | undefined>[] | undefined;
86
+ required?: boolean;
87
+ UNSAFE_hasDraggableParentComponent?: boolean;
88
+ openMenuOnClick?: boolean;
89
+ strategy?: "fixed" | "absolute";
90
+ showClearIndicator?: boolean;
91
+ forwardedRef?: React.ForwardedRef<import("../types").UserPickerRef>;
92
+ groupByTypeOrder?: NonNullable<import("../types").OptionData["type"]>[];
92
93
  } & {
93
94
  target: import("../types").Target;
94
- popupTitle?: string | undefined;
95
- boundariesElement?: import("../types").BoundariesElement | undefined;
96
- offset?: [number, number] | undefined;
97
- placement?: import("@popperjs/core").Placement | undefined;
98
- rootBoundary?: import("../types").RootBoundary | undefined;
99
- shouldFlip?: boolean | undefined;
95
+ popupTitle?: string;
96
+ boundariesElement?: import("../types").BoundariesElement;
97
+ offset?: [number, number];
98
+ placement?: import("@popperjs/core").Placement;
99
+ rootBoundary?: import("../types").RootBoundary;
100
+ shouldFlip?: boolean;
100
101
  }, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, never> & {
101
102
  options?: import("../types").OptionData[] | undefined;
102
103
  search?: string | undefined;
@@ -105,25 +106,25 @@ export declare const PopupUserPicker: React.ForwardRefExoticComponent<Omit<Pick<
105
106
  offset?: [number, number] | undefined;
106
107
  autoFocus?: boolean | undefined;
107
108
  captureMenuScroll?: boolean | undefined;
108
- closeMenuOnScroll?: boolean | EventListener | undefined;
109
- components?: Partial<import("packages/design-system/react-select/dist/types/components").SelectComponents<import("../types").OptionData, boolean, import("@atlaskit/select").GroupType<import("../types").OptionData>>> | undefined;
109
+ closeMenuOnScroll?: (boolean | EventListener) | undefined;
110
+ components?: import("@atlaskit/select").SelectComponentsConfig<import("../types").OptionData, boolean> | undefined;
110
111
  inputId?: string | undefined;
111
112
  isClearable?: boolean | undefined;
112
113
  isInvalid?: boolean | undefined;
113
114
  isLoading?: boolean | undefined;
114
115
  isMulti?: boolean | undefined;
115
- menuPosition?: "fixed" | "absolute" | undefined;
116
+ menuPosition?: "absolute" | "fixed" | undefined;
116
117
  menuPortalTarget?: HTMLElement | undefined;
117
118
  menuShouldBlockScroll?: boolean | undefined;
118
119
  name?: string | undefined;
119
120
  noOptionsMessage?: React.ReactNode | ((value: {
120
121
  inputValue: string;
121
- }) => React.ReactNode);
122
+ }) => string | null | React.ReactNode);
122
123
  onBlur?: import("../types").OnPicker | undefined;
123
124
  onChange?: import("../types").OnChange | undefined;
124
125
  onFocus?: import("../types").OnPicker | undefined;
125
126
  onInputChange?: import("../types").OnInputChange | undefined;
126
- onKeyDown?: ((event: React.KeyboardEvent<Element>) => void) | undefined;
127
+ onKeyDown?: ((event: React.KeyboardEvent) => void) | undefined;
127
128
  openMenuOnClick?: boolean | undefined;
128
129
  styles?: import("@atlaskit/select").StylesConfig | undefined;
129
130
  value?: import("../types").Value;
@@ -134,7 +135,8 @@ export declare const PopupUserPicker: React.ForwardRefExoticComponent<Omit<Pick<
134
135
  defaultValue?: import("../types").DefaultValue;
135
136
  anchor?: React.ComponentType<any> | undefined;
136
137
  fieldId?: string | null | undefined;
137
- width?: string | number | undefined;
138
+ width?: number | string | undefined;
139
+ height?: number | string | undefined;
138
140
  menuMinWidth?: number | undefined;
139
141
  maxPickerHeight?: number | undefined;
140
142
  textFieldBackgroundColor?: boolean | undefined;
@@ -150,7 +152,7 @@ export declare const PopupUserPicker: React.ForwardRefExoticComponent<Omit<Pick<
150
152
  onClose?: import("../types").OnPicker | undefined;
151
153
  subtle?: boolean | undefined;
152
154
  noBorder?: boolean | undefined;
153
- placeholderAvatar?: "team" | "person" | undefined;
155
+ placeholderAvatar?: "person" | "team" | undefined;
154
156
  addMoreMessage?: string | undefined;
155
157
  clearValueLabel?: string | undefined;
156
158
  allowEmail?: boolean | undefined;
@@ -168,7 +170,7 @@ export declare const PopupUserPicker: React.ForwardRefExoticComponent<Omit<Pick<
168
170
  strategy?: "fixed" | "absolute" | undefined;
169
171
  showClearIndicator?: boolean | undefined;
170
172
  forwardedRef?: React.ForwardedRef<import("../types").UserPickerRef> | undefined;
171
- groupByTypeOrder?: NonNullable<"user" | "team" | "email" | "group" | "custom" | "external_user" | undefined>[] | undefined;
173
+ groupByTypeOrder?: NonNullable<import("../types").OptionData["type"]>[] | undefined;
172
174
  popupTitle?: string | undefined;
173
175
  placement?: import("@popperjs/core").Placement | undefined;
174
176
  rootBoundary?: import("../types").RootBoundary | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type Option } from '../types';
3
2
  import { type SingleValueProps } from '@atlaskit/select';
4
3
  export type Props = SingleValueProps<Option>;
@@ -12,75 +12,76 @@ export declare class UserPickerWithoutAnalytics extends React.Component<UserPick
12
12
  }
13
13
  export declare const UserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
14
14
  fieldId: string | null;
15
- options?: import("../types").OptionData[] | undefined;
16
- width?: string | number | undefined;
17
- menuMinWidth?: number | undefined;
18
- maxPickerHeight?: number | undefined;
19
- textFieldBackgroundColor?: boolean | undefined;
20
- loadOptions?: import("../types").LoadOptions | undefined;
21
- loadOptionsErrorMessage?: ((value: {
15
+ options?: import("../types").OptionData[];
16
+ width?: number | string;
17
+ height?: number | string;
18
+ menuMinWidth?: number;
19
+ maxPickerHeight?: number;
20
+ textFieldBackgroundColor?: boolean;
21
+ loadOptions?: import("../types").LoadOptions;
22
+ loadOptionsErrorMessage?: (value: {
22
23
  inputValue: string;
23
- }) => React.ReactNode) | undefined;
24
- loadUserSource?: import("../types").LoadUserSource | undefined;
25
- onChange?: import("../types").OnChange | undefined;
26
- isMulti?: boolean | undefined;
27
- search?: string | undefined;
28
- anchor?: React.ComponentType<any> | undefined;
29
- open?: boolean | undefined;
30
- isLoading?: boolean | undefined;
31
- onInputChange?: import("../types").OnInputChange | undefined;
32
- onSelection?: import("../types").OnOption | undefined;
33
- onFocus?: import("../types").OnPicker | undefined;
34
- onBlur?: import("../types").OnPicker | undefined;
35
- onClear?: import("../types").OnPicker | undefined;
36
- onOpen?: import("../types").OnPicker | undefined;
37
- onClose?: import("../types").OnPicker | undefined;
38
- onKeyDown?: ((event: React.KeyboardEvent<Element>) => void) | undefined;
39
- appearance?: import("../types").Appearance | undefined;
40
- subtle?: boolean | undefined;
41
- noBorder?: boolean | undefined;
42
- styles?: import("@atlaskit/select").StylesConfig | undefined;
43
- components?: Partial<import("packages/design-system/react-select/dist/types/components").SelectComponents<import("../types").OptionData, boolean, import("@atlaskit/select").GroupType<import("../types").OptionData>>> | undefined;
24
+ }) => React.ReactNode;
25
+ loadUserSource?: import("../types").LoadUserSource;
26
+ onChange?: import("../types").OnChange;
27
+ isMulti?: boolean;
28
+ search?: string;
29
+ anchor?: React.ComponentType<any>;
30
+ open?: boolean;
31
+ isLoading?: boolean;
32
+ onInputChange?: import("../types").OnInputChange;
33
+ onSelection?: import("../types").OnOption;
34
+ onFocus?: import("../types").OnPicker;
35
+ onBlur?: import("../types").OnPicker;
36
+ onClear?: import("../types").OnPicker;
37
+ onOpen?: import("../types").OnPicker;
38
+ onClose?: import("../types").OnPicker;
39
+ onKeyDown?: (event: React.KeyboardEvent) => void;
40
+ appearance?: import("../types").Appearance;
41
+ subtle?: boolean;
42
+ noBorder?: boolean;
43
+ styles?: import("@atlaskit/select").StylesConfig;
44
+ components?: import("@atlaskit/select").SelectComponentsConfig<import("../types").OptionData, boolean>;
44
45
  defaultValue?: import("../types").DefaultValue;
45
46
  placeholder?: React.ReactNode;
46
- placeholderAvatar?: "team" | "person" | undefined;
47
- addMoreMessage?: string | undefined;
48
- noOptionsMessage?: React.ReactNode | ((value: {
47
+ placeholderAvatar?: "person" | "team";
48
+ addMoreMessage?: string;
49
+ noOptionsMessage?: ((value: {
49
50
  inputValue: string;
50
- }) => React.ReactNode);
51
+ }) => string | null | React.ReactNode) | null | React.ReactNode;
51
52
  footer?: React.ReactNode;
52
53
  value?: import("../types").Value;
53
- isDisabled?: boolean | undefined;
54
- isInvalid?: boolean | undefined;
55
- isClearable?: boolean | undefined;
56
- clearValueLabel?: string | undefined;
57
- menuPosition?: "fixed" | "absolute" | undefined;
58
- captureMenuScroll?: boolean | undefined;
59
- menuPortalTarget?: HTMLElement | undefined;
60
- allowEmail?: boolean | undefined;
61
- suggestEmailsForDomain?: string | undefined;
62
- emailLabel?: string | undefined;
63
- disableInput?: boolean | undefined;
64
- isValidEmail?: import("./emailValidation").EmailValidator | undefined;
65
- autoFocus?: boolean | undefined;
66
- maxOptions?: number | undefined;
67
- inputId?: string | undefined;
68
- closeMenuOnScroll?: boolean | EventListener | undefined;
69
- menuShouldBlockScroll?: boolean | undefined;
70
- ariaLabel?: string | undefined;
71
- ariaLabelledBy?: string | undefined;
72
- ariaDescribedBy?: string | undefined;
73
- ariaLive?: "polite" | "off" | "assertive" | undefined;
74
- name?: string | undefined;
54
+ isDisabled?: boolean;
55
+ isInvalid?: boolean;
56
+ isClearable?: boolean;
57
+ clearValueLabel?: string;
58
+ menuPosition?: "absolute" | "fixed";
59
+ captureMenuScroll?: boolean;
60
+ menuPortalTarget?: HTMLElement;
61
+ allowEmail?: boolean;
62
+ suggestEmailsForDomain?: string;
63
+ emailLabel?: string;
64
+ disableInput?: boolean;
65
+ isValidEmail?: import("./emailValidation").EmailValidator;
66
+ autoFocus?: boolean;
67
+ maxOptions?: number;
68
+ inputId?: string;
69
+ closeMenuOnScroll?: boolean | EventListener;
70
+ menuShouldBlockScroll?: boolean;
71
+ ariaLabel?: string;
72
+ ariaLabelledBy?: string;
73
+ ariaDescribedBy?: string;
74
+ ariaLive?: "polite" | "off" | "assertive";
75
+ name?: string;
75
76
  header?: React.ReactNode;
76
- required?: boolean | undefined;
77
- UNSAFE_hasDraggableParentComponent?: boolean | undefined;
78
- openMenuOnClick?: boolean | undefined;
79
- strategy?: "fixed" | "absolute" | undefined;
80
- showClearIndicator?: boolean | undefined;
81
- forwardedRef?: React.ForwardedRef<import("../types").UserPickerRef> | undefined;
82
- groupByTypeOrder?: NonNullable<"user" | "team" | "email" | "group" | "custom" | "external_user" | undefined>[] | undefined;
83
- }, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "options" | "search" | "placeholder" | "isDisabled" | "autoFocus" | "captureMenuScroll" | "closeMenuOnScroll" | "components" | "inputId" | "isClearable" | "isInvalid" | "isLoading" | "menuPosition" | "menuPortalTarget" | "menuShouldBlockScroll" | "name" | "noOptionsMessage" | "onBlur" | "onChange" | "onFocus" | "onInputChange" | "onKeyDown" | "openMenuOnClick" | "styles" | "value" | "required" | "appearance" | "footer" | "defaultValue" | "anchor" | "fieldId" | "menuMinWidth" | "maxPickerHeight" | "textFieldBackgroundColor" | "loadOptions" | "loadOptionsErrorMessage" | "loadUserSource" | "open" | "onSelection" | "onClear" | "onOpen" | "onClose" | "subtle" | "noBorder" | "placeholderAvatar" | "addMoreMessage" | "clearValueLabel" | "allowEmail" | "suggestEmailsForDomain" | "emailLabel" | "disableInput" | "isValidEmail" | "maxOptions" | "ariaLabel" | "ariaLabelledBy" | "ariaDescribedBy" | "ariaLive" | "header" | "UNSAFE_hasDraggableParentComponent" | "strategy" | "showClearIndicator" | "forwardedRef" | "groupByTypeOrder"> & {
77
+ required?: boolean;
78
+ UNSAFE_hasDraggableParentComponent?: boolean;
79
+ openMenuOnClick?: boolean;
80
+ strategy?: "fixed" | "absolute";
81
+ showClearIndicator?: boolean;
82
+ forwardedRef?: React.ForwardedRef<import("../types").UserPickerRef>;
83
+ groupByTypeOrder?: NonNullable<import("../types").OptionData["type"]>[];
84
+ }, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "options" | "search" | "placeholder" | "isDisabled" | "autoFocus" | "captureMenuScroll" | "closeMenuOnScroll" | "components" | "inputId" | "isClearable" | "isInvalid" | "isLoading" | "menuPosition" | "menuPortalTarget" | "menuShouldBlockScroll" | "name" | "noOptionsMessage" | "onBlur" | "onChange" | "onFocus" | "onInputChange" | "onKeyDown" | "openMenuOnClick" | "styles" | "value" | "required" | "appearance" | "footer" | "defaultValue" | "anchor" | "fieldId" | "height" | "menuMinWidth" | "maxPickerHeight" | "textFieldBackgroundColor" | "loadOptions" | "loadOptionsErrorMessage" | "loadUserSource" | "open" | "onSelection" | "onClear" | "onOpen" | "onClose" | "subtle" | "noBorder" | "placeholderAvatar" | "addMoreMessage" | "clearValueLabel" | "allowEmail" | "suggestEmailsForDomain" | "emailLabel" | "disableInput" | "isValidEmail" | "maxOptions" | "ariaLabel" | "ariaLabelledBy" | "ariaDescribedBy" | "ariaLive" | "header" | "UNSAFE_hasDraggableParentComponent" | "strategy" | "showClearIndicator" | "forwardedRef" | "groupByTypeOrder"> & {
84
85
  isMulti?: boolean | undefined;
85
- width?: string | number | undefined;
86
+ width?: number | string | undefined;
86
87
  } & {} & React.RefAttributes<any>>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ClearIndicator } from './ClearIndicator';
3
2
  import { MultiValue } from './MultiValue';
4
3
  import { MultiValueContainer } from './MultiValueContainer';
@@ -19,77 +18,7 @@ export declare const getComponents: import("memoize-one").MemoizedFn<(multi?: bo
19
18
  Option: import("react").FC<import("./Option").OptionProps> | import("react").ComponentType<import("packages/design-system/react-select/dist/types").OptionProps<OptionData, boolean, import("@atlaskit/select").GroupType<OptionData>>>;
20
19
  Group?: import("react").ComponentType<import("packages/design-system/react-select/dist/types").GroupProps<OptionData, boolean, import("@atlaskit/select").GroupType<OptionData>>> | undefined;
21
20
  ClearIndicator: typeof ClearIndicator | import("react").ComponentType<import("@atlaskit/select").ClearIndicatorProps<OptionData, boolean, import("@atlaskit/select").GroupType<OptionData>>> | null;
22
- Control: ((props: import("@atlaskit/select").ControlProps<any> & import("@atlaskit/analytics-next").WithAnalyticsEventsProps & {
23
- fieldId: string | null;
24
- options?: OptionData[] | undefined;
25
- width?: string | number | undefined;
26
- menuMinWidth?: number | undefined;
27
- maxPickerHeight?: number | undefined;
28
- textFieldBackgroundColor?: boolean | undefined;
29
- loadOptions?: import("../types").LoadOptions | undefined;
30
- loadOptionsErrorMessage?: ((value: {
31
- inputValue: string;
32
- }) => import("react").ReactNode) | undefined;
33
- loadUserSource?: import("../types").LoadUserSource | undefined;
34
- onChange?: import("../types").OnChange | undefined;
35
- isMulti?: boolean | undefined;
36
- search?: string | undefined;
37
- anchor?: import("react").ComponentType<any> | undefined;
38
- open?: boolean | undefined;
39
- isLoading?: boolean | undefined;
40
- onInputChange?: import("../types").OnInputChange | undefined;
41
- onSelection?: import("../types").OnOption | undefined;
42
- onFocus?: import("../types").OnPicker | undefined;
43
- onBlur?: import("../types").OnPicker | undefined;
44
- onClear?: import("../types").OnPicker | undefined;
45
- onOpen?: import("../types").OnPicker | undefined;
46
- onClose?: import("../types").OnPicker | undefined;
47
- onKeyDown?: ((event: import("react").KeyboardEvent<Element>) => void) | undefined;
48
- appearance?: import("../types").Appearance | undefined;
49
- subtle?: boolean | undefined;
50
- noBorder?: boolean | undefined;
51
- styles?: import("@atlaskit/select").StylesConfig | undefined;
52
- components?: Partial<import("packages/design-system/react-select/dist/types/components").SelectComponents<OptionData, boolean, import("@atlaskit/select").GroupType<OptionData>>> | undefined;
53
- defaultValue?: import("../types").DefaultValue;
54
- placeholder?: import("react").ReactNode;
55
- placeholderAvatar?: "team" | "person" | undefined;
56
- addMoreMessage?: string | undefined;
57
- noOptionsMessage?: import("react").ReactNode | ((value: {
58
- inputValue: string;
59
- }) => import("react").ReactNode);
60
- footer?: import("react").ReactNode;
61
- value?: import("../types").Value;
62
- isDisabled?: boolean | undefined;
63
- isInvalid?: boolean | undefined;
64
- isClearable?: boolean | undefined;
65
- clearValueLabel?: string | undefined;
66
- menuPosition?: "fixed" | "absolute" | undefined;
67
- captureMenuScroll?: boolean | undefined;
68
- menuPortalTarget?: HTMLElement | undefined;
69
- allowEmail?: boolean | undefined;
70
- suggestEmailsForDomain?: string | undefined;
71
- emailLabel?: string | undefined;
72
- disableInput?: boolean | undefined;
73
- isValidEmail?: import("./emailValidation").EmailValidator | undefined;
74
- autoFocus?: boolean | undefined;
75
- maxOptions?: number | undefined;
76
- inputId?: string | undefined;
77
- closeMenuOnScroll?: boolean | EventListener | undefined;
78
- menuShouldBlockScroll?: boolean | undefined;
79
- ariaLabel?: string | undefined;
80
- ariaLabelledBy?: string | undefined;
81
- ariaDescribedBy?: string | undefined;
82
- ariaLive?: "polite" | "off" | "assertive" | undefined;
83
- name?: string | undefined;
84
- header?: import("react").ReactNode;
85
- required?: boolean | undefined;
86
- UNSAFE_hasDraggableParentComponent?: boolean | undefined;
87
- openMenuOnClick?: boolean | undefined;
88
- strategy?: "fixed" | "absolute" | undefined;
89
- showClearIndicator?: boolean | undefined;
90
- forwardedRef?: import("react").ForwardedRef<import("../types").UserPickerRef> | undefined;
91
- groupByTypeOrder?: NonNullable<"user" | "team" | "email" | "group" | "custom" | "external_user" | undefined>[] | undefined;
92
- }) => JSX.Element) | import("react").ComponentType<import("packages/design-system/react-select/dist/types").ControlProps<OptionData, boolean, import("@atlaskit/select").GroupType<OptionData>>>;
21
+ Control: ((props: import("@atlaskit/select").ControlProps<any> & import("../types").UserPickerProps) => JSX.Element) | import("react").ComponentType<import("packages/design-system/react-select/dist/types").ControlProps<OptionData, boolean, import("@atlaskit/select").GroupType<OptionData>>>;
93
22
  DropdownIndicator: import("react").ComponentType<import("@atlaskit/select").DropdownIndicatorProps<OptionData, boolean, import("@atlaskit/select").GroupType<OptionData>>> | null;
94
23
  GroupHeading?: import("react").ComponentType<import("packages/design-system/react-select/dist/types").GroupHeadingProps<OptionData, boolean, import("@atlaskit/select").GroupType<OptionData>>> | undefined;
95
24
  IndicatorsContainer?: import("react").ComponentType<import("@atlaskit/select").IndicatorsContainerProps<OptionData, boolean, import("@atlaskit/select").GroupType<OptionData>>> | undefined;
@@ -3,9 +3,9 @@ import { type EmailValidator } from './emailValidation';
3
3
  declare function creatableProps(isValidEmail?: EmailValidator): {
4
4
  allowCreateWhileLoading: boolean;
5
5
  createOptionPosition: string;
6
- isValidNewOption: (inputValue?: string | undefined) => boolean | "" | undefined;
6
+ isValidNewOption: (inputValue?: string) => boolean | "" | undefined;
7
7
  getNewOptionData: (inputValue: string) => Option;
8
- formatCreateLabel: (inputText?: string | undefined) => string;
8
+ formatCreateLabel: (inputText?: string) => string;
9
9
  isOptionDisabled: (option: Option) => boolean;
10
10
  };
11
11
  export declare const getCreatableProps: typeof creatableProps;
@@ -1,6 +1,6 @@
1
1
  import { type Placement } from '@atlaskit/popper';
2
2
  import { type Target, type BoundariesElement, type RootBoundary } from '../types';
3
- export declare const getPopupProps: import("memoize-one").MemoizedFn<(width: string | number, target: Target, onFlip: (data: any) => any, boundariesElement?: BoundariesElement, offset?: number[], placement?: Placement, rootBoundary?: RootBoundary, shouldFlip?: boolean, popupTitle?: string, strategy?: 'fixed' | 'absolute') => {
3
+ export declare const getPopupProps: import("memoize-one").MemoizedFn<(width: string | number, target: Target, onFlip: (data: any) => any, boundariesElement?: BoundariesElement, offset?: number[], placement?: Placement, rootBoundary?: RootBoundary, shouldFlip?: boolean, popupTitle?: string, strategy?: "fixed" | "absolute") => {
4
4
  searchThreshold: number;
5
5
  controlShouldRenderValue: boolean;
6
6
  minMenuWidth: string | number;
@@ -2,5 +2,5 @@ import { type StylesConfig } from '@atlaskit/select';
2
2
  export declare const BORDER_PADDING: "var(--ds-space-075)";
3
3
  export declare const AVATAR_PADDING = 6;
4
4
  export declare const INDICATOR_WIDTH = 39;
5
- export declare const getStyles: import("memoize-one").MemoizedFn<(width: string | number, isMulti?: boolean, isCompact?: boolean, overrideStyles?: StylesConfig, isInvalid?: boolean, isVisualRefresh?: boolean, isPopupStyles?: boolean) => StylesConfig>;
5
+ export declare const getStyles: import("memoize-one").MemoizedFn<(width: string | number, isMulti?: boolean, isCompact?: boolean, overrideStyles?: StylesConfig, isInvalid?: boolean, isVisualRefresh?: boolean, isPopupStyles?: boolean, height?: number | string) => StylesConfig>;
6
6
  export declare const getPopupStyles: import("memoize-one").MemoizedFn<(width: string | number, isMulti?: boolean, overrideStyles?: StylesConfig, isVisualRefresh?: boolean) => StylesConfig>;
@@ -18,8 +18,8 @@ export interface OptionToSelectableOptions {
18
18
  (defaultValue?: DefaultValue): Option | Option[] | null | undefined;
19
19
  }
20
20
  export declare const optionToSelectableOptions: OptionToSelectableOptions;
21
- export declare const getAvatarSize: (appearance: string) => 'xsmall' | 'small' | 'medium';
22
- export declare const isChildInput: (child: ReactChild) => child is ReactElement<any, string | import("react").JSXElementConstructor<any>>;
21
+ export declare const getAvatarSize: (appearance: string) => "xsmall" | "small" | "medium";
22
+ export declare const isChildInput: (child: ReactChild) => child is ReactElement<any>;
23
23
  export declare const isSingleValue: (value?: AtlaskitSelectValue) => value is Option;
24
24
  export declare const hasValue: (value?: string) => value is string;
25
25
  export declare const callCallback: <U extends any[], R>(callback: ((...U: U) => R) | undefined, ...args: U) => R | undefined;
@@ -5,6 +5,7 @@
5
5
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
6
  */
7
7
  declare const _default: {
8
+ 'fabric.elements.user-picker.custom.type.label': string;
8
9
  'fabric.elements.user-picker.email.add': string;
9
10
  'fabric.elements.user-picker.email.add.potential': string;
10
11
  'fabric.elements.user-picker.email.select.to.add': string;
@@ -5,6 +5,7 @@
5
5
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
6
  */
7
7
  declare const _default: {
8
+ 'fabric.elements.user-picker.custom.type.label': string;
8
9
  'fabric.elements.user-picker.email.add': string;
9
10
  'fabric.elements.user-picker.email.add.potential': string;
10
11
  'fabric.elements.user-picker.email.select.to.add': string;
@@ -5,21 +5,26 @@
5
5
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
6
  */
7
7
  declare const _default: {
8
+ 'fabric.elements.user-picker.custom.type.label': string;
8
9
  'fabric.elements.user-picker.email.add': string;
9
10
  'fabric.elements.user-picker.email.add.potential': string;
10
11
  'fabric.elements.user-picker.email.select.to.add': string;
12
+ 'fabric.elements.user-picker.email.type.label': string;
11
13
  'fabric.elements.user-picker.error.message': string;
12
14
  'fabric.elements.user-picker.external.sourced.error': string;
13
15
  'fabric.elements.user-picker.external.sourced.from': string;
16
+ 'fabric.elements.user-picker.external.user.type.label': string;
14
17
  'fabric.elements.user-picker.github.provider': string;
15
18
  'fabric.elements.user-picker.google.provider': string;
16
19
  'fabric.elements.user-picker.group.byline': string;
20
+ 'fabric.elements.user-picker.group.type.label': string;
17
21
  'fabric.elements.user-picker.guest.lozenge.text': string;
18
22
  'fabric.elements.user-picker.guest.lozenge.tooltip.group': string;
19
23
  'fabric.elements.user-picker.guest.lozenge.tooltip.user': string;
20
24
  'fabric.elements.user-picker.member.lozenge.text': string;
21
25
  'fabric.elements.user-picker.microsoft.provider': string;
22
26
  'fabric.elements.user-picker.multi.remove-item': string;
27
+ 'fabric.elements.user-picker.other.type.label': string;
23
28
  'fabric.elements.user-picker.placeholder': string;
24
29
  'fabric.elements.user-picker.placeholder.add-more': string;
25
30
  'fabric.elements.user-picker.single.clear': string;
@@ -31,5 +36,7 @@ declare const _default: {
31
36
  'fabric.elements.user-picker.team.member.50plus.including.you': string;
32
37
  'fabric.elements.user-picker.team.member.count': string;
33
38
  'fabric.elements.user-picker.team.member.count.including.you': string;
39
+ 'fabric.elements.user-picker.team.type.label': string;
40
+ 'fabric.elements.user-picker.user.type.label': string;
34
41
  };
35
42
  export default _default;
@@ -5,6 +5,7 @@
5
5
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
6
  */
7
7
  declare const _default: {
8
+ 'fabric.elements.user-picker.custom.type.label': string;
8
9
  'fabric.elements.user-picker.email.add': string;
9
10
  'fabric.elements.user-picker.email.add.potential': string;
10
11
  'fabric.elements.user-picker.email.select.to.add': string;
@@ -5,6 +5,7 @@
5
5
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
6
  */
7
7
  declare const _default: {
8
+ 'fabric.elements.user-picker.custom.type.label': string;
8
9
  'fabric.elements.user-picker.email.add': string;
9
10
  'fabric.elements.user-picker.email.add.potential': string;
10
11
  'fabric.elements.user-picker.email.select.to.add': string;
@@ -5,6 +5,7 @@
5
5
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
6
  */
7
7
  declare const _default: {
8
+ 'fabric.elements.user-picker.custom.type.label': string;
8
9
  'fabric.elements.user-picker.email.add': string;
9
10
  'fabric.elements.user-picker.email.add.potential': string;
10
11
  'fabric.elements.user-picker.email.select.to.add': string;
@@ -29,6 +29,8 @@ export type UserPickerProps = WithAnalyticsEventsProps & {
29
29
  options?: OptionData[];
30
30
  /** Width of the user picker field. It can be the amount of pixels as numbers or a string with the percentage. */
31
31
  width?: number | string;
32
+ /** Sets the height of the user picker. If not set, the height settings will be based on the "compact" or "normal" appearance. */
33
+ height?: number | string;
32
34
  /** Sets the minimum width for the menu. If not set, menu will always have the same width of the field. */
33
35
  menuMinWidth?: number;
34
36
  /** Sets max height of the user picker. If not set, the height will grow based on number of picked users. */
@@ -330,6 +332,7 @@ export declare const CustomType = "custom";
330
332
  export interface Email extends OptionData {
331
333
  type: 'email';
332
334
  suggestion?: boolean;
335
+ isPendingAction?: boolean;
333
336
  }
334
337
  export type ActionTypes = 'select-option' | 'deselect-option' | 'remove-value' | 'pop-value' | 'set-value' | 'clear' | 'create-option';
335
338
  export type OnChange = (value: Value, action: ActionTypes) => void;
@@ -1,2 +1,2 @@
1
1
  import type { OptionData, Option, GroupedOptions } from '../../types';
2
- export declare const groupOptionsByType: import("memoize-one").MemoizedFn<(options: Option[], groupByTypeOrder: NonNullable<OptionData['type']>[]) => Option[] | GroupedOptions[]>;
2
+ export declare const groupOptionsByType: import("memoize-one").MemoizedFn<(options: Option[], groupByTypeOrder: NonNullable<OptionData["type"]>[]) => Option[] | GroupedOptions[]>;
@@ -2,5 +2,6 @@ import React from 'react';
2
2
  export type AddOptionAvatarProps = {
3
3
  label?: string;
4
4
  isLozenge?: boolean;
5
+ isPendingAction?: boolean;
5
6
  };
6
7
  export declare const AddOptionAvatar: React.FunctionComponent<AddOptionAvatarProps>;