@atlaskit/user-picker 12.1.3 → 13.1.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 +34 -0
- package/analytics/package.json +1 -8
- package/components/custom-option/main/package.json +1 -8
- package/components/custom-option/package.json +1 -8
- package/components/email-option/main/package.json +1 -8
- package/components/email-option/package.json +1 -8
- package/components/email-validation/package.json +1 -8
- package/components/group-option/main/package.json +1 -8
- package/components/group-option/package.json +1 -8
- package/components/option/package.json +1 -8
- package/components/popup-user-picker/package.json +1 -8
- package/components/single-value/package.json +1 -8
- package/components/team-option/main/package.json +1 -8
- package/components/team-option/package.json +1 -8
- package/components/user-option/package.json +1 -8
- package/components/user-picker/package.json +1 -8
- package/dist/cjs/analytics.js +1 -1
- package/dist/cjs/components/Control.compiled.css +1 -1
- package/dist/cjs/components/Control.js +1 -1
- package/dist/cjs/components/styles.js +2 -2
- package/dist/cjs/i18n/cs.js +3 -44
- package/dist/cjs/i18n/da.js +3 -44
- package/dist/cjs/i18n/de.js +3 -44
- package/dist/cjs/i18n/en.js +3 -44
- package/dist/cjs/i18n/en_GB.js +3 -44
- package/dist/cjs/i18n/en_ZZ.js +3 -44
- package/dist/cjs/i18n/es.js +3 -44
- package/dist/cjs/i18n/fi.js +3 -44
- package/dist/cjs/i18n/fr.js +3 -44
- package/dist/cjs/i18n/hr.js +3 -44
- package/dist/cjs/i18n/hu.js +3 -44
- package/dist/cjs/i18n/it.js +3 -44
- package/dist/cjs/i18n/ja.js +3 -44
- package/dist/cjs/i18n/ko.js +3 -44
- package/dist/cjs/i18n/nb.js +3 -44
- package/dist/cjs/i18n/nl.js +3 -44
- package/dist/cjs/i18n/pl.js +3 -44
- package/dist/cjs/i18n/pt_BR.js +3 -44
- package/dist/cjs/i18n/ru.js +3 -44
- package/dist/cjs/i18n/sl.js +3 -44
- package/dist/cjs/i18n/sr_RS.js +3 -44
- package/dist/cjs/i18n/sr_YR.js +3 -44
- package/dist/cjs/i18n/sv.js +3 -44
- package/dist/cjs/i18n/th.js +3 -44
- package/dist/cjs/i18n/tr.js +3 -44
- package/dist/cjs/i18n/uk.js +3 -44
- package/dist/cjs/i18n/vi.js +3 -44
- package/dist/cjs/i18n/zh.js +3 -44
- package/dist/cjs/i18n/zh_TW.js +3 -44
- package/dist/cjs/util/i18n-util.js +39 -39
- package/dist/es2019/analytics.js +1 -1
- package/dist/es2019/components/Control.compiled.css +1 -1
- package/dist/es2019/components/Control.js +1 -1
- package/dist/es2019/components/styles.js +2 -2
- package/dist/es2019/i18n/cs.js +3 -44
- package/dist/es2019/i18n/da.js +3 -44
- package/dist/es2019/i18n/de.js +3 -44
- package/dist/es2019/i18n/en.js +3 -44
- package/dist/es2019/i18n/en_GB.js +3 -44
- package/dist/es2019/i18n/en_ZZ.js +3 -44
- package/dist/es2019/i18n/es.js +3 -44
- package/dist/es2019/i18n/fi.js +3 -44
- package/dist/es2019/i18n/fr.js +3 -44
- package/dist/es2019/i18n/hr.js +3 -44
- package/dist/es2019/i18n/hu.js +3 -44
- package/dist/es2019/i18n/it.js +3 -44
- package/dist/es2019/i18n/ja.js +3 -44
- package/dist/es2019/i18n/ko.js +3 -44
- package/dist/es2019/i18n/nb.js +3 -44
- package/dist/es2019/i18n/nl.js +3 -44
- package/dist/es2019/i18n/pl.js +3 -44
- package/dist/es2019/i18n/pt_BR.js +3 -44
- package/dist/es2019/i18n/ru.js +3 -44
- package/dist/es2019/i18n/sl.js +3 -44
- package/dist/es2019/i18n/sr_RS.js +3 -44
- package/dist/es2019/i18n/sr_YR.js +3 -44
- package/dist/es2019/i18n/sv.js +3 -44
- package/dist/es2019/i18n/th.js +3 -44
- package/dist/es2019/i18n/tr.js +3 -44
- package/dist/es2019/i18n/uk.js +3 -44
- package/dist/es2019/i18n/vi.js +3 -44
- package/dist/es2019/i18n/zh.js +3 -44
- package/dist/es2019/i18n/zh_TW.js +3 -44
- package/dist/esm/analytics.js +1 -1
- package/dist/esm/components/Control.compiled.css +1 -1
- package/dist/esm/components/Control.js +1 -1
- package/dist/esm/components/styles.js +2 -2
- package/dist/esm/i18n/cs.js +3 -44
- package/dist/esm/i18n/da.js +3 -44
- package/dist/esm/i18n/de.js +3 -44
- package/dist/esm/i18n/en.js +3 -44
- package/dist/esm/i18n/en_GB.js +3 -44
- package/dist/esm/i18n/en_ZZ.js +3 -44
- package/dist/esm/i18n/es.js +3 -44
- package/dist/esm/i18n/fi.js +3 -44
- package/dist/esm/i18n/fr.js +3 -44
- package/dist/esm/i18n/hr.js +3 -44
- package/dist/esm/i18n/hu.js +3 -44
- package/dist/esm/i18n/it.js +3 -44
- package/dist/esm/i18n/ja.js +3 -44
- package/dist/esm/i18n/ko.js +3 -44
- package/dist/esm/i18n/nb.js +3 -44
- package/dist/esm/i18n/nl.js +3 -44
- package/dist/esm/i18n/pl.js +3 -44
- package/dist/esm/i18n/pt_BR.js +3 -44
- package/dist/esm/i18n/ru.js +3 -44
- package/dist/esm/i18n/sl.js +3 -44
- package/dist/esm/i18n/sr_RS.js +3 -44
- package/dist/esm/i18n/sr_YR.js +3 -44
- package/dist/esm/i18n/sv.js +3 -44
- package/dist/esm/i18n/th.js +3 -44
- package/dist/esm/i18n/tr.js +3 -44
- package/dist/esm/i18n/uk.js +3 -44
- package/dist/esm/i18n/vi.js +3 -44
- package/dist/esm/i18n/zh.js +3 -44
- package/dist/esm/i18n/zh_TW.js +3 -44
- package/dist/esm/util/i18n-util.js +38 -38
- package/dist/types/i18n/cs.d.ts +2 -44
- package/dist/types/i18n/da.d.ts +2 -44
- package/dist/types/i18n/de.d.ts +2 -44
- package/dist/types/i18n/en.d.ts +2 -44
- package/dist/types/i18n/en_GB.d.ts +2 -44
- package/dist/types/i18n/en_ZZ.d.ts +2 -44
- package/dist/types/i18n/es.d.ts +2 -44
- package/dist/types/i18n/fi.d.ts +2 -44
- package/dist/types/i18n/fr.d.ts +2 -44
- package/dist/types/i18n/hr.d.ts +2 -44
- package/dist/types/i18n/hu.d.ts +2 -44
- package/dist/types/i18n/it.d.ts +2 -44
- package/dist/types/i18n/ja.d.ts +2 -44
- package/dist/types/i18n/ko.d.ts +2 -44
- package/dist/types/i18n/nb.d.ts +2 -44
- package/dist/types/i18n/nl.d.ts +2 -44
- package/dist/types/i18n/pl.d.ts +2 -44
- package/dist/types/i18n/pt_BR.d.ts +2 -44
- package/dist/types/i18n/ru.d.ts +2 -44
- package/dist/types/i18n/sl.d.ts +2 -44
- package/dist/types/i18n/sr_RS.d.ts +2 -44
- package/dist/types/i18n/sr_YR.d.ts +2 -44
- package/dist/types/i18n/sv.d.ts +2 -44
- package/dist/types/i18n/th.d.ts +2 -44
- package/dist/types/i18n/tr.d.ts +2 -44
- package/dist/types/i18n/uk.d.ts +2 -44
- package/dist/types/i18n/vi.d.ts +2 -44
- package/dist/types/i18n/zh.d.ts +2 -44
- package/dist/types/i18n/zh_TW.d.ts +2 -44
- package/option/package.json +1 -8
- package/package.json +21 -29
- package/types/package.json +1 -8
- package/utils/package.json +1 -8
- package/dist/types-ts4.5/analytics.d.ts +0 -24
- package/dist/types-ts4.5/clients/UserSourceProvider.d.ts +0 -11
- package/dist/types-ts4.5/components/AddOptionAvatar.d.ts +0 -7
- package/dist/types-ts4.5/components/AvatarItemOption.d.ts +0 -16
- package/dist/types-ts4.5/components/AvatarOrIcon.d.ts +0 -17
- package/dist/types-ts4.5/components/BaseUserPicker.d.ts +0 -179
- package/dist/types-ts4.5/components/ClearIndicator.d.ts +0 -10
- package/dist/types-ts4.5/components/Control.d.ts +0 -8
- package/dist/types-ts4.5/components/CustomOption/index.d.ts +0 -4
- package/dist/types-ts4.5/components/CustomOption/main.d.ts +0 -15
- package/dist/types-ts4.5/components/EmailOption/index.d.ts +0 -4
- package/dist/types-ts4.5/components/EmailOption/main.d.ts +0 -21
- package/dist/types-ts4.5/components/ExternalUserOption/ExternalAvatarItemOption.d.ts +0 -14
- package/dist/types-ts4.5/components/ExternalUserOption/InfoIcon.d.ts +0 -3
- package/dist/types-ts4.5/components/ExternalUserOption/SourcesTooltipContent.d.ts +0 -3
- package/dist/types-ts4.5/components/ExternalUserOption/index.d.ts +0 -9
- package/dist/types-ts4.5/components/ExternalUserOption/main.d.ts +0 -20
- package/dist/types-ts4.5/components/ExternalUserSourcesContainer.d.ts +0 -15
- package/dist/types-ts4.5/components/GroupOption/index.d.ts +0 -4
- package/dist/types-ts4.5/components/GroupOption/main.d.ts +0 -21
- package/dist/types-ts4.5/components/HighlightText.d.ts +0 -9
- package/dist/types-ts4.5/components/Input.d.ts +0 -26
- package/dist/types-ts4.5/components/Menu.d.ts +0 -12
- package/dist/types-ts4.5/components/MessagesIntlProvider.d.ts +0 -3
- package/dist/types-ts4.5/components/MultiValue.d.ts +0 -29
- package/dist/types-ts4.5/components/MultiValueContainer.d.ts +0 -37
- package/dist/types-ts4.5/components/Option.d.ts +0 -15
- package/dist/types-ts4.5/components/PopupControl.d.ts +0 -10
- package/dist/types-ts4.5/components/PopupInput.d.ts +0 -8
- package/dist/types-ts4.5/components/PopupUserPicker.d.ts +0 -209
- package/dist/types-ts4.5/components/SingleValue.d.ts +0 -6
- package/dist/types-ts4.5/components/SingleValueContainer.d.ts +0 -15
- package/dist/types-ts4.5/components/SizeableAvatar.d.ts +0 -12
- package/dist/types-ts4.5/components/TeamOption/index.d.ts +0 -4
- package/dist/types-ts4.5/components/TeamOption/main.d.ts +0 -17
- package/dist/types-ts4.5/components/UserOption.d.ts +0 -15
- package/dist/types-ts4.5/components/UserPicker.d.ts +0 -105
- package/dist/types-ts4.5/components/ValueContainerWrapper.d.ts +0 -16
- package/dist/types-ts4.5/components/assets/github.d.ts +0 -2
- package/dist/types-ts4.5/components/assets/google.d.ts +0 -2
- package/dist/types-ts4.5/components/assets/microsoft.d.ts +0 -2
- package/dist/types-ts4.5/components/assets/slack.d.ts +0 -2
- package/dist/types-ts4.5/components/batch.d.ts +0 -1
- package/dist/types-ts4.5/components/components.d.ts +0 -61
- package/dist/types-ts4.5/components/creatable.d.ts +0 -12
- package/dist/types-ts4.5/components/creatableEmailSuggestion.d.ts +0 -20
- package/dist/types-ts4.5/components/emailValidation.d.ts +0 -3
- package/dist/types-ts4.5/components/i18n.d.ts +0 -212
- package/dist/types-ts4.5/components/popup.d.ts +0 -49
- package/dist/types-ts4.5/components/styles.d.ts +0 -7
- package/dist/types-ts4.5/components/utils.d.ts +0 -30
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -50
- package/dist/types-ts4.5/i18n/da.d.ts +0 -50
- package/dist/types-ts4.5/i18n/de.d.ts +0 -50
- package/dist/types-ts4.5/i18n/en.d.ts +0 -50
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -50
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -50
- package/dist/types-ts4.5/i18n/es.d.ts +0 -50
- package/dist/types-ts4.5/i18n/et.d.ts +0 -15
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -50
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -50
- package/dist/types-ts4.5/i18n/hr.d.ts +0 -50
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -50
- package/dist/types-ts4.5/i18n/index.d.ts +0 -36
- package/dist/types-ts4.5/i18n/is.d.ts +0 -7
- package/dist/types-ts4.5/i18n/it.d.ts +0 -50
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -50
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -50
- package/dist/types-ts4.5/i18n/languages.d.ts +0 -28
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -50
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -50
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -50
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -50
- package/dist/types-ts4.5/i18n/pt_PT.d.ts +0 -15
- package/dist/types-ts4.5/i18n/ro.d.ts +0 -7
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -50
- package/dist/types-ts4.5/i18n/sk.d.ts +0 -15
- package/dist/types-ts4.5/i18n/sl.d.ts +0 -50
- package/dist/types-ts4.5/i18n/sr_RS.d.ts +0 -50
- package/dist/types-ts4.5/i18n/sr_YR.d.ts +0 -50
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -50
- package/dist/types-ts4.5/i18n/th.d.ts +0 -50
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -50
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -50
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -50
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -50
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -50
- package/dist/types-ts4.5/index.d.ts +0 -8
- package/dist/types-ts4.5/option.d.ts +0 -12
- package/dist/types-ts4.5/types.d.ts +0 -419
- package/dist/types-ts4.5/util/group-options-by-type/index.d.ts +0 -4
- package/dist/types-ts4.5/util/i18n-util.d.ts +0 -11
- package/dist/types-ts4.5/util/ufoExperiences.d.ts +0 -10
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type ReactNode } from 'react';
|
|
6
|
-
import { type AppearanceType } from '@atlaskit/avatar';
|
|
7
|
-
import { jsx } from '@emotion/react';
|
|
8
|
-
export type AvatarOrIconProps = {
|
|
9
|
-
appearance?: string;
|
|
10
|
-
avatarAppearanceShape?: AppearanceType;
|
|
11
|
-
icon?: ReactNode;
|
|
12
|
-
iconColor?: string;
|
|
13
|
-
presence?: string;
|
|
14
|
-
src?: string;
|
|
15
|
-
type?: 'person' | 'team';
|
|
16
|
-
};
|
|
17
|
-
export declare const AvatarOrIcon: ({ appearance, avatarAppearanceShape, icon, iconColor, presence, src, type, }: AvatarOrIconProps) => jsx.JSX.Element;
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { Appearance, DefaultValue, LoadOptions, LoadUserSource, OnChange, OnInputChange, OnOption, OnPicker, OptionData, UserPickerProps, UserPickerRef, UserPickerState, Value } from '../types';
|
|
4
|
-
import type { AriaAttributes } from 'react';
|
|
5
|
-
import type { SelectComponentsConfig, PopupSelectProps, StylesConfig } from '@atlaskit/select';
|
|
6
|
-
import type { EmailValidator } from './emailValidation';
|
|
7
|
-
export type BaseUserPickerProps = UserPickerProps & {
|
|
8
|
-
components: any;
|
|
9
|
-
name?: string;
|
|
10
|
-
pickerProps?: any;
|
|
11
|
-
SelectComponent: React.ComponentType<any>;
|
|
12
|
-
styles: any;
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated This is a temporary prop to enable user-pickers to work in Draggable elements in react-beautiful-dnd.
|
|
15
|
-
* See https://product-fabric.atlassian.net/browse/DSP-15701 for more details.
|
|
16
|
-
* It may be removed in a future minor or patch when a longer-term workaround is found.
|
|
17
|
-
*/
|
|
18
|
-
UNSAFE_hasDraggableParentComponent?: boolean;
|
|
19
|
-
width: string | number;
|
|
20
|
-
};
|
|
21
|
-
export declare class BaseUserPickerWithoutAnalytics extends React.Component<BaseUserPickerProps, UserPickerState> {
|
|
22
|
-
static defaultProps: {
|
|
23
|
-
isMulti: boolean;
|
|
24
|
-
subtle: boolean;
|
|
25
|
-
noBorder: boolean;
|
|
26
|
-
textFieldBackgroundColor: boolean;
|
|
27
|
-
isClearable: boolean;
|
|
28
|
-
loadOptionsErrorMessage: () => React.JSX.Element;
|
|
29
|
-
openMenuOnClick: boolean;
|
|
30
|
-
};
|
|
31
|
-
static getDerivedStateFromProps(nextProps: Partial<UserPickerProps>, prevState: UserPickerState): Partial<UserPickerState>;
|
|
32
|
-
private selectRef;
|
|
33
|
-
private session?;
|
|
34
|
-
private journeyId?;
|
|
35
|
-
private optionsShownUfoExperienceInstance;
|
|
36
|
-
constructor(props: BaseUserPickerProps);
|
|
37
|
-
private getSessionId;
|
|
38
|
-
private withSelectRef;
|
|
39
|
-
nextOption: () => void;
|
|
40
|
-
previousOption: () => void;
|
|
41
|
-
focus: () => void;
|
|
42
|
-
blur: () => void;
|
|
43
|
-
selectOption: () => void;
|
|
44
|
-
private handleChange;
|
|
45
|
-
private handleSelectRef;
|
|
46
|
-
private addOptions;
|
|
47
|
-
private handleLoadOptionsError;
|
|
48
|
-
private debouncedLoadOptions;
|
|
49
|
-
private get isMenuOpenOnClickForSingleSelect();
|
|
50
|
-
abortOptionsShownUfoExperience: () => void;
|
|
51
|
-
startOptionsShownUfoExperience: () => void;
|
|
52
|
-
private executeLoadOptions;
|
|
53
|
-
private handleFocus;
|
|
54
|
-
private resetInputState;
|
|
55
|
-
private handleOpen;
|
|
56
|
-
private handleBlur;
|
|
57
|
-
private handleClose;
|
|
58
|
-
private handleInputChange;
|
|
59
|
-
private fireEvent;
|
|
60
|
-
private startSession;
|
|
61
|
-
componentDidMount(): void;
|
|
62
|
-
componentDidUpdate(prevProps: UserPickerProps, prevState: UserPickerState): void;
|
|
63
|
-
private handleKeyDown;
|
|
64
|
-
handleClearIndicatorHover: (hoveringClearIndicator: boolean) => void;
|
|
65
|
-
private getOptionsOld;
|
|
66
|
-
private getOptionsNew;
|
|
67
|
-
private getOptions;
|
|
68
|
-
private getAppearance;
|
|
69
|
-
get ariaProps(): Partial<AriaAttributes>;
|
|
70
|
-
private handleClickDraggableParentComponent;
|
|
71
|
-
private shouldKeepMenuOpen;
|
|
72
|
-
render(): React.JSX.Element;
|
|
73
|
-
}
|
|
74
|
-
export declare const BaseUserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
|
|
75
|
-
addMoreMessage?: string;
|
|
76
|
-
allowEmail?: boolean;
|
|
77
|
-
anchor?: React.ComponentType<any>;
|
|
78
|
-
appearance?: Appearance;
|
|
79
|
-
ariaDescribedBy?: string;
|
|
80
|
-
ariaLabel?: string;
|
|
81
|
-
ariaLabelledBy?: string;
|
|
82
|
-
ariaLive?: 'polite' | 'off' | 'assertive';
|
|
83
|
-
autoFocus?: boolean;
|
|
84
|
-
captureMenuScroll?: boolean;
|
|
85
|
-
clearValueLabel?: string;
|
|
86
|
-
closeMenuOnScroll?: boolean | EventListener;
|
|
87
|
-
components?: SelectComponentsConfig<OptionData, boolean>;
|
|
88
|
-
customGroupAnalyticsLabels?: Partial<Record<NonNullable<OptionData['type']>, string>>;
|
|
89
|
-
customGroupLabels?: Partial<Record<NonNullable<OptionData['type']>, React.ReactNode>>;
|
|
90
|
-
defaultValue?: DefaultValue;
|
|
91
|
-
disableInput?: boolean;
|
|
92
|
-
emailLabel?: string;
|
|
93
|
-
fieldId: string | null;
|
|
94
|
-
footer?: React.ReactNode;
|
|
95
|
-
forwardedRef?: React.ForwardedRef<UserPickerRef>;
|
|
96
|
-
groupByTypeOrder?: NonNullable<OptionData['type']>[];
|
|
97
|
-
header?: React.ReactNode;
|
|
98
|
-
height?: number | string;
|
|
99
|
-
includeTeamsUpdates?: boolean;
|
|
100
|
-
inputId?: string;
|
|
101
|
-
isClearable?: boolean;
|
|
102
|
-
isDisabled?: boolean;
|
|
103
|
-
isFooterFocused?: boolean;
|
|
104
|
-
isHeaderFocused?: boolean;
|
|
105
|
-
isInvalid?: boolean;
|
|
106
|
-
isLoading?: boolean;
|
|
107
|
-
isMulti?: boolean;
|
|
108
|
-
isValidEmail?: EmailValidator;
|
|
109
|
-
loadOptions?: LoadOptions;
|
|
110
|
-
loadOptionsErrorMessage?: (value: {
|
|
111
|
-
inputValue: string;
|
|
112
|
-
}) => React.ReactNode;
|
|
113
|
-
loadUserSource?: LoadUserSource;
|
|
114
|
-
maxOptions?: number;
|
|
115
|
-
maxPickerHeight?: number;
|
|
116
|
-
menuIsOpen?: boolean;
|
|
117
|
-
menuMinWidth?: number;
|
|
118
|
-
menuPortalTarget?: HTMLElement;
|
|
119
|
-
menuPosition?: 'absolute' | 'fixed';
|
|
120
|
-
menuShouldBlockScroll?: boolean;
|
|
121
|
-
name?: string;
|
|
122
|
-
noBorder?: boolean;
|
|
123
|
-
noOptionsMessage?: ((value: {
|
|
124
|
-
inputValue: string;
|
|
125
|
-
}) => string | null | React.ReactNode) | null | React.ReactNode;
|
|
126
|
-
onBlur?: OnPicker;
|
|
127
|
-
onChange?: OnChange;
|
|
128
|
-
onClear?: OnPicker;
|
|
129
|
-
onClose?: OnPicker;
|
|
130
|
-
onFocus?: OnPicker;
|
|
131
|
-
onInputChange?: OnInputChange;
|
|
132
|
-
onKeyDown?: (event: React.KeyboardEvent) => void;
|
|
133
|
-
onOpen?: OnPicker;
|
|
134
|
-
onSelection?: OnOption;
|
|
135
|
-
open?: boolean;
|
|
136
|
-
openMenuOnClick?: boolean;
|
|
137
|
-
openMenuOnFocus?: boolean;
|
|
138
|
-
options?: OptionData[];
|
|
139
|
-
placeholder?: React.ReactNode;
|
|
140
|
-
placeholderAvatar?: 'person' | 'team';
|
|
141
|
-
popupSelectProps?: PopupSelectProps<OptionData>;
|
|
142
|
-
required?: boolean;
|
|
143
|
-
search?: string;
|
|
144
|
-
setIsFooterFocused?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
145
|
-
setIsHeaderFocused?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
146
|
-
showClearIndicator?: boolean;
|
|
147
|
-
strategy?: 'fixed' | 'absolute';
|
|
148
|
-
styles?: StylesConfig;
|
|
149
|
-
subtle?: boolean;
|
|
150
|
-
suggestEmailsForDomain?: string;
|
|
151
|
-
textFieldBackgroundColor?: boolean;
|
|
152
|
-
UNSAFE_hasDraggableParentComponent?: boolean;
|
|
153
|
-
value?: Value;
|
|
154
|
-
width?: number | string;
|
|
155
|
-
} & {
|
|
156
|
-
components: any;
|
|
157
|
-
name?: string;
|
|
158
|
-
pickerProps?: any;
|
|
159
|
-
SelectComponent: React.ComponentType<any>;
|
|
160
|
-
styles: any;
|
|
161
|
-
/**
|
|
162
|
-
* @deprecated This is a temporary prop to enable user-pickers to work in Draggable elements in react-beautiful-dnd.
|
|
163
|
-
* See https://product-fabric.atlassian.net/browse/DSP-15701 for more details.
|
|
164
|
-
* It may be removed in a future minor or patch when a longer-term workaround is found.
|
|
165
|
-
*/
|
|
166
|
-
UNSAFE_hasDraggableParentComponent?: boolean;
|
|
167
|
-
width: string | number;
|
|
168
|
-
}, keyof WithAnalyticsEventsProps>, 'options' | 'noOptionsMessage' | 'placeholder' | 'addMoreMessage' | 'allowEmail' | 'anchor' | 'appearance' | 'ariaDescribedBy' | 'ariaLabel' | 'ariaLabelledBy' | 'ariaLive' | 'autoFocus' | 'captureMenuScroll' | 'clearValueLabel' | 'closeMenuOnScroll' | 'components' | 'defaultValue' | 'disableInput' | 'emailLabel' | 'fieldId' | 'footer' | 'forwardedRef' | 'groupByTypeOrder' | 'customGroupLabels' | 'customGroupAnalyticsLabels' | 'header' | 'height' | 'includeTeamsUpdates' | 'inputId' | 'isDisabled' | 'isFooterFocused' | 'isInvalid' | 'isLoading' | 'isValidEmail' | 'loadOptions' | 'loadUserSource' | 'maxOptions' | 'maxPickerHeight' | 'menuIsOpen' | 'menuMinWidth' | 'menuPortalTarget' | 'menuPosition' | 'menuShouldBlockScroll' | 'name' | 'onBlur' | 'onChange' | 'onClear' | 'onClose' | 'onFocus' | 'onInputChange' | 'onKeyDown' | 'onOpen' | 'onSelection' | 'open' | 'openMenuOnFocus' | 'placeholderAvatar' | 'popupSelectProps' | 'required' | 'search' | 'setIsFooterFocused' | 'showClearIndicator' | 'strategy' | 'styles' | 'suggestEmailsForDomain' | 'UNSAFE_hasDraggableParentComponent' | 'value' | 'width' | 'pickerProps' | 'SelectComponent'> & {
|
|
169
|
-
isClearable?: boolean | undefined;
|
|
170
|
-
isMulti?: boolean | undefined;
|
|
171
|
-
loadOptionsErrorMessage?: ((value: {
|
|
172
|
-
inputValue: string;
|
|
173
|
-
}) => React.ReactNode) | undefined;
|
|
174
|
-
noBorder?: boolean | undefined;
|
|
175
|
-
openMenuOnClick?: boolean | undefined;
|
|
176
|
-
openMenuOnFocus?: boolean | undefined;
|
|
177
|
-
subtle?: boolean | undefined;
|
|
178
|
-
textFieldBackgroundColor?: boolean | undefined;
|
|
179
|
-
} & {} & React.RefAttributes<any>>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { type ClearIndicatorProps } from '@atlaskit/select';
|
|
7
|
-
export declare class ClearIndicator extends React.PureComponent<ClearIndicatorProps<any>> {
|
|
8
|
-
private handleMouseDown;
|
|
9
|
-
render(): JSX.Element;
|
|
10
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { jsx } from '@emotion/react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { type Custom } from '../../types';
|
|
4
|
-
export type CustomOptionProps = {
|
|
5
|
-
data: Custom;
|
|
6
|
-
isSelected: boolean;
|
|
7
|
-
};
|
|
8
|
-
export declare class CustomOption extends React.PureComponent<CustomOptionProps> {
|
|
9
|
-
private getPrimaryText;
|
|
10
|
-
private getBylineComponent;
|
|
11
|
-
private renderByline;
|
|
12
|
-
private renderAvatar;
|
|
13
|
-
private getLozengeProps;
|
|
14
|
-
render(): jsx.JSX.Element;
|
|
15
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
|
-
import { type Email } from '../../types';
|
|
8
|
-
import { type EmailValidationResponse } from '../emailValidation';
|
|
9
|
-
export type EmailOptionProps = {
|
|
10
|
-
email: Email;
|
|
11
|
-
emailValidity: EmailValidationResponse;
|
|
12
|
-
isSelected: boolean;
|
|
13
|
-
label?: string;
|
|
14
|
-
};
|
|
15
|
-
export declare class EmailOption extends React.PureComponent<EmailOptionProps> {
|
|
16
|
-
private getLozengeProps;
|
|
17
|
-
private renderPrimaryText;
|
|
18
|
-
private renderSecondaryText;
|
|
19
|
-
private renderOption;
|
|
20
|
-
render(): jsx.JSX.Element;
|
|
21
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type ReactNode } from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
|
-
export type ExternalAvatarItemOptionProps = {
|
|
8
|
-
avatar: ReactNode;
|
|
9
|
-
isDisabled?: boolean;
|
|
10
|
-
primaryText: ReactNode;
|
|
11
|
-
secondaryText?: ReactNode;
|
|
12
|
-
sourcesInfoTooltip?: ReactNode;
|
|
13
|
-
};
|
|
14
|
-
export declare const ExternalAvatarItemOption: ({ avatar, isDisabled, primaryText, secondaryText, sourcesInfoTooltip, }: ExternalAvatarItemOptionProps) => jsx.JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { ExternalUser } from '../../types';
|
|
4
|
-
declare const AsyncExternalUserOption: React.LazyExoticComponent<React.ForwardRefExoticComponent<Omit<{
|
|
5
|
-
isSelected: boolean;
|
|
6
|
-
status?: string;
|
|
7
|
-
user: ExternalUser;
|
|
8
|
-
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>>;
|
|
9
|
-
export default AsyncExternalUserOption;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { type SerializedStyles } from '@emotion/react';
|
|
7
|
-
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
8
|
-
import { type ExternalUser } from '../../types';
|
|
9
|
-
export declare const imageContainer: SerializedStyles;
|
|
10
|
-
export declare const emailDomainWrapper: SerializedStyles;
|
|
11
|
-
export type ExternalUserOptionProps = WithAnalyticsEventsProps & {
|
|
12
|
-
isSelected: boolean;
|
|
13
|
-
status?: string;
|
|
14
|
-
user: ExternalUser;
|
|
15
|
-
};
|
|
16
|
-
export declare const ExternalUserOption: React.ForwardRefExoticComponent<Omit<{
|
|
17
|
-
isSelected: boolean;
|
|
18
|
-
status?: string;
|
|
19
|
-
user: ExternalUser;
|
|
20
|
-
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
import { type UserSource } from '../types';
|
|
3
|
-
export interface ExternalUserSourcesData {
|
|
4
|
-
sources: UserSource[];
|
|
5
|
-
sourcesLoading: boolean;
|
|
6
|
-
}
|
|
7
|
-
type SourcesChildrenFunc = (sourcesData: ExternalUserSourcesData) => ReactNode;
|
|
8
|
-
interface SourcesContainerProps {
|
|
9
|
-
accountId: string;
|
|
10
|
-
children: SourcesChildrenFunc;
|
|
11
|
-
initialSources: UserSource[];
|
|
12
|
-
shouldFetchSources: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare const ExternalUserSourcesContainer: ({ children, accountId, shouldFetchSources, initialSources, }: SourcesContainerProps) => any;
|
|
15
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { jsx, type SerializedStyles } from '@emotion/react';
|
|
7
|
-
import { type Group } from '../../types';
|
|
8
|
-
export declare const groupOptionIconWrapper: SerializedStyles;
|
|
9
|
-
export type GroupOptionProps = {
|
|
10
|
-
group: Group;
|
|
11
|
-
includeTeamsUpdates?: boolean;
|
|
12
|
-
isSelected: boolean;
|
|
13
|
-
};
|
|
14
|
-
export declare class GroupOption extends React.PureComponent<GroupOptionProps> {
|
|
15
|
-
private getPrimaryText;
|
|
16
|
-
private renderAvatar;
|
|
17
|
-
private renderVerifiedIcon;
|
|
18
|
-
private renderByline;
|
|
19
|
-
private getLozengeProps;
|
|
20
|
-
render(): jsx.JSX.Element;
|
|
21
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type HighlightRange } from '../types';
|
|
3
|
-
export interface Props {
|
|
4
|
-
children: string;
|
|
5
|
-
highlights?: HighlightRange[];
|
|
6
|
-
}
|
|
7
|
-
export declare class HighlightText extends React.PureComponent<Props> {
|
|
8
|
-
render(): (string | React.JSX.Element)[];
|
|
9
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React, { type AriaAttributes } from 'react';
|
|
6
|
-
import { type OptionType, type SelectProps } from '@atlaskit/select';
|
|
7
|
-
import { type AriaAttributesType } from '../types';
|
|
8
|
-
export type Props = {
|
|
9
|
-
ariaDescribedBy?: AriaAttributesType;
|
|
10
|
-
innerRef: (ref: React.Ref<HTMLInputElement>) => void;
|
|
11
|
-
selectProps?: SelectProps<OptionType, boolean>;
|
|
12
|
-
};
|
|
13
|
-
export declare class Input extends React.Component<Props & AriaAttributes> {
|
|
14
|
-
handleKeyPress: (e: KeyboardEvent) => void;
|
|
15
|
-
/**
|
|
16
|
-
* Overrides the default behaviour of react-select lib
|
|
17
|
-
*
|
|
18
|
-
* The getter is a workaround for original behaviour of the react-select lib.
|
|
19
|
-
* Placeholder and Input are linked not via label, aria-label or aria-labeledby, but through aria-describedby.
|
|
20
|
-
* Basically in the getter we reassign Placeholder ID from aria-describedby to aria-labelledby
|
|
21
|
-
* {@link https://github.com/JedWatson/react-select/issues/5651#issue-1731353197 GitHub}
|
|
22
|
-
*/
|
|
23
|
-
get ariaLabelledBy(): AriaAttributesType;
|
|
24
|
-
get ariaDescribedBy(): AriaAttributesType;
|
|
25
|
-
render(): JSX.Element;
|
|
26
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { type UserPickerProps } from '../types';
|
|
7
|
-
export type Props = React.PropsWithChildren<{
|
|
8
|
-
selectProps: UserPickerProps;
|
|
9
|
-
}>;
|
|
10
|
-
export declare class Menu extends React.Component<Props> {
|
|
11
|
-
render(): React.JSX.Element;
|
|
12
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { type OptionType } from '@atlaskit/select';
|
|
7
|
-
import { type Option, type UserPickerProps } from '../types';
|
|
8
|
-
import { type MultiValueProps } from '@atlaskit/select';
|
|
9
|
-
export declare const scrollToValue: (valueContainer: HTMLDivElement, control: HTMLElement) => void;
|
|
10
|
-
type Props = MultiValueProps<OptionType> & {
|
|
11
|
-
data: Option;
|
|
12
|
-
innerProps: any;
|
|
13
|
-
isFocused?: boolean;
|
|
14
|
-
ref?: React.RefObject<HTMLDivElement>;
|
|
15
|
-
removeProps: {
|
|
16
|
-
onClick: (e?: React.MouseEvent<HTMLDivElement>) => void;
|
|
17
|
-
};
|
|
18
|
-
selectProps: UserPickerProps;
|
|
19
|
-
};
|
|
20
|
-
export declare class MultiValue extends React.Component<Props> {
|
|
21
|
-
private containerRef;
|
|
22
|
-
constructor(props: Props);
|
|
23
|
-
componentDidUpdate(): void;
|
|
24
|
-
shouldComponentUpdate(nextProps: Props): boolean;
|
|
25
|
-
getElemBefore: () => React.JSX.Element;
|
|
26
|
-
getElemAfter: () => React.JSX.Element | null;
|
|
27
|
-
render(): React.JSX.Element;
|
|
28
|
-
}
|
|
29
|
-
export {};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type MultiValueProps } from '@atlaskit/select';
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import { type Option, type User } from '../types';
|
|
8
|
-
export type State = {
|
|
9
|
-
previousValueSize: number;
|
|
10
|
-
valueSize: number;
|
|
11
|
-
};
|
|
12
|
-
type Props = MultiValueProps<Option<User>[], true> & {
|
|
13
|
-
innerProps?: ValueContainerInnerProps;
|
|
14
|
-
/** Passed through from Atlaskit Select value container (spacing compact). */
|
|
15
|
-
isCompact?: boolean;
|
|
16
|
-
};
|
|
17
|
-
type ValueContainerInnerProps = {
|
|
18
|
-
ref: React.RefObject<HTMLDivElement>;
|
|
19
|
-
};
|
|
20
|
-
export declare class MultiValueContainer extends React.PureComponent<Props, State> {
|
|
21
|
-
static getDerivedStateFromProps(nextProps: Props, prevState: State): {
|
|
22
|
-
previousValueSize: number;
|
|
23
|
-
valueSize: number;
|
|
24
|
-
};
|
|
25
|
-
private valueContainerInnerProps;
|
|
26
|
-
private timeoutId;
|
|
27
|
-
constructor(props: Props);
|
|
28
|
-
componentDidUpdate(): void;
|
|
29
|
-
componentWillUnmount(): void;
|
|
30
|
-
scrollToBottom: () => void;
|
|
31
|
-
private showPlaceholder;
|
|
32
|
-
private addPlaceholder;
|
|
33
|
-
private renderChildren;
|
|
34
|
-
onValueContainerClick: any;
|
|
35
|
-
render(): JSX.Element;
|
|
36
|
-
}
|
|
37
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type OptionProps as AkOptionProps } from '@atlaskit/select';
|
|
2
|
-
import { type FC } from 'react';
|
|
3
|
-
import { type Option as OptionType } from '../types';
|
|
4
|
-
export type OptionProps = AkOptionProps & {
|
|
5
|
-
data: OptionType;
|
|
6
|
-
includeTeamsUpdates?: boolean;
|
|
7
|
-
isDisabled: boolean;
|
|
8
|
-
isFocused: boolean;
|
|
9
|
-
isSelected: boolean;
|
|
10
|
-
selectProps: {
|
|
11
|
-
emailLabel?: string;
|
|
12
|
-
};
|
|
13
|
-
status?: string;
|
|
14
|
-
};
|
|
15
|
-
export declare const Option: FC<OptionProps>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { type ControlProps } from '@atlaskit/select';
|
|
7
|
-
import type { UserPickerProps } from '../types';
|
|
8
|
-
export declare class PopupControl extends React.PureComponent<ControlProps<any> & UserPickerProps> {
|
|
9
|
-
render(): React.JSX.Element;
|
|
10
|
-
}
|