@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,209 +0,0 @@
|
|
|
1
|
-
import { type CreateUIAnalyticsEvent, type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
2
|
-
import { type PopupSelectProps, type SelectComponentsConfig, type StylesConfig } from '@atlaskit/select';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { type Appearance, type BoundariesElement, type DefaultValue, type LoadOptions, type LoadUserSource, type OnChange, type OnInputChange, type OnOption, type OnPicker, type OptionData, type PopupUserPickerProps, type RootBoundary, type Target, type UserPickerRef, type Value } from '../types';
|
|
5
|
-
import type { Placement } from '@popperjs/core';
|
|
6
|
-
import type { EmailValidator } from './emailValidation';
|
|
7
|
-
interface State {
|
|
8
|
-
flipped: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare class PopupUserPickerWithoutAnalytics extends React.Component<PopupUserPickerProps, State> {
|
|
11
|
-
static defaultProps: Partial<PopupUserPickerProps>;
|
|
12
|
-
state: {
|
|
13
|
-
flipped: boolean;
|
|
14
|
-
};
|
|
15
|
-
handleFlipStyle: (data: {
|
|
16
|
-
flipped: boolean;
|
|
17
|
-
popper: any;
|
|
18
|
-
styles: any;
|
|
19
|
-
}) => {
|
|
20
|
-
flipped: boolean;
|
|
21
|
-
popper: any;
|
|
22
|
-
styles: any;
|
|
23
|
-
};
|
|
24
|
-
render(): React.JSX.Element;
|
|
25
|
-
}
|
|
26
|
-
export declare const PopupUserPicker: React.ForwardRefExoticComponent<Omit<Pick<Omit<{
|
|
27
|
-
addMoreMessage?: string;
|
|
28
|
-
allowEmail?: boolean;
|
|
29
|
-
anchor?: React.ComponentType<any>;
|
|
30
|
-
appearance?: Appearance;
|
|
31
|
-
ariaDescribedBy?: string;
|
|
32
|
-
ariaLabel?: string;
|
|
33
|
-
ariaLabelledBy?: string;
|
|
34
|
-
ariaLive?: 'polite' | 'off' | 'assertive';
|
|
35
|
-
autoFocus?: boolean;
|
|
36
|
-
captureMenuScroll?: boolean;
|
|
37
|
-
clearValueLabel?: string;
|
|
38
|
-
closeMenuOnScroll?: boolean | EventListener;
|
|
39
|
-
components?: SelectComponentsConfig<OptionData, boolean>;
|
|
40
|
-
defaultValue?: DefaultValue;
|
|
41
|
-
disableInput?: boolean;
|
|
42
|
-
emailLabel?: string;
|
|
43
|
-
fieldId: string | null;
|
|
44
|
-
footer?: React.ReactNode;
|
|
45
|
-
forwardedRef?: React.ForwardedRef<UserPickerRef>;
|
|
46
|
-
groupByTypeOrder?: NonNullable<OptionData['type']>[];
|
|
47
|
-
header?: React.ReactNode;
|
|
48
|
-
height?: number | string;
|
|
49
|
-
includeTeamsUpdates?: boolean;
|
|
50
|
-
inputId?: string;
|
|
51
|
-
isClearable?: boolean;
|
|
52
|
-
isDisabled?: boolean;
|
|
53
|
-
isFooterFocused?: boolean;
|
|
54
|
-
isHeaderFocused?: boolean;
|
|
55
|
-
isInvalid?: boolean;
|
|
56
|
-
isLoading?: boolean;
|
|
57
|
-
isMulti?: boolean;
|
|
58
|
-
isValidEmail?: EmailValidator;
|
|
59
|
-
loadOptions?: LoadOptions;
|
|
60
|
-
loadOptionsErrorMessage?: (value: {
|
|
61
|
-
inputValue: string;
|
|
62
|
-
}) => React.ReactNode;
|
|
63
|
-
loadUserSource?: LoadUserSource;
|
|
64
|
-
maxOptions?: number;
|
|
65
|
-
maxPickerHeight?: number;
|
|
66
|
-
menuIsOpen?: boolean;
|
|
67
|
-
menuMinWidth?: number;
|
|
68
|
-
menuPortalTarget?: HTMLElement;
|
|
69
|
-
menuPosition?: 'absolute' | 'fixed';
|
|
70
|
-
menuShouldBlockScroll?: boolean;
|
|
71
|
-
minHeight?: number | string;
|
|
72
|
-
name?: string;
|
|
73
|
-
noBorder?: boolean;
|
|
74
|
-
noOptionsMessage?: ((value: {
|
|
75
|
-
inputValue: string;
|
|
76
|
-
}) => string | null | React.ReactNode) | null | React.ReactNode;
|
|
77
|
-
onBlur?: OnPicker;
|
|
78
|
-
onChange?: OnChange;
|
|
79
|
-
onClear?: OnPicker;
|
|
80
|
-
onClose?: OnPicker;
|
|
81
|
-
onFocus?: OnPicker;
|
|
82
|
-
onInputChange?: OnInputChange;
|
|
83
|
-
onKeyDown?: (event: React.KeyboardEvent) => void;
|
|
84
|
-
onOpen?: OnPicker;
|
|
85
|
-
onSelection?: OnOption;
|
|
86
|
-
open?: boolean;
|
|
87
|
-
openMenuOnClick?: boolean;
|
|
88
|
-
options?: OptionData[];
|
|
89
|
-
placeholder?: React.ReactNode;
|
|
90
|
-
placeholderAvatar?: 'person' | 'team';
|
|
91
|
-
popupSelectProps?: PopupSelectProps<OptionData>;
|
|
92
|
-
required?: boolean;
|
|
93
|
-
search?: string;
|
|
94
|
-
setIsFooterFocused?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
95
|
-
setIsHeaderFocused?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
96
|
-
showClearIndicator?: boolean;
|
|
97
|
-
strategy?: 'fixed' | 'absolute';
|
|
98
|
-
styles?: StylesConfig;
|
|
99
|
-
subtle?: boolean;
|
|
100
|
-
suggestEmailsForDomain?: string;
|
|
101
|
-
textFieldBackgroundColor?: boolean;
|
|
102
|
-
UNSAFE_hasDraggableParentComponent?: boolean;
|
|
103
|
-
value?: Value;
|
|
104
|
-
width?: number | string;
|
|
105
|
-
} & {
|
|
106
|
-
boundariesElement?: BoundariesElement;
|
|
107
|
-
offset?: [
|
|
108
|
-
number,
|
|
109
|
-
number
|
|
110
|
-
];
|
|
111
|
-
placement?: Placement;
|
|
112
|
-
popupTitle?: string;
|
|
113
|
-
rootBoundary?: RootBoundary;
|
|
114
|
-
shouldFlip?: boolean;
|
|
115
|
-
target: Target;
|
|
116
|
-
}, keyof WithAnalyticsEventsProps>, never> & {
|
|
117
|
-
addMoreMessage?: string | undefined;
|
|
118
|
-
allowEmail?: boolean | undefined;
|
|
119
|
-
anchor?: React.ComponentType<any> | undefined;
|
|
120
|
-
appearance?: Appearance | undefined;
|
|
121
|
-
ariaDescribedBy?: string | undefined;
|
|
122
|
-
ariaLabel?: string | undefined;
|
|
123
|
-
ariaLabelledBy?: string | undefined;
|
|
124
|
-
ariaLive?: 'polite' | 'off' | 'assertive' | undefined;
|
|
125
|
-
autoFocus?: boolean | undefined;
|
|
126
|
-
boundariesElement?: BoundariesElement | undefined;
|
|
127
|
-
captureMenuScroll?: boolean | undefined;
|
|
128
|
-
clearValueLabel?: string | undefined;
|
|
129
|
-
closeMenuOnScroll?: (boolean | EventListener) | undefined;
|
|
130
|
-
components?: SelectComponentsConfig<OptionData, boolean> | undefined;
|
|
131
|
-
defaultValue?: DefaultValue;
|
|
132
|
-
disableInput?: boolean | undefined;
|
|
133
|
-
emailLabel?: string | undefined;
|
|
134
|
-
fieldId?: string | null | undefined;
|
|
135
|
-
footer?: React.ReactNode;
|
|
136
|
-
forwardedRef?: React.ForwardedRef<UserPickerRef> | undefined;
|
|
137
|
-
groupByTypeOrder?: NonNullable<OptionData['type']>[] | undefined;
|
|
138
|
-
header?: React.ReactNode;
|
|
139
|
-
height?: number | string | undefined;
|
|
140
|
-
includeTeamsUpdates?: boolean | undefined;
|
|
141
|
-
inputId?: string | undefined;
|
|
142
|
-
isClearable?: boolean | undefined;
|
|
143
|
-
isDisabled?: boolean | undefined;
|
|
144
|
-
isFooterFocused?: boolean | undefined;
|
|
145
|
-
isHeaderFocused?: boolean | undefined;
|
|
146
|
-
isInvalid?: boolean | undefined;
|
|
147
|
-
isLoading?: boolean | undefined;
|
|
148
|
-
isMulti?: boolean | undefined;
|
|
149
|
-
isValidEmail?: EmailValidator | undefined;
|
|
150
|
-
loadOptions?: LoadOptions | undefined;
|
|
151
|
-
loadOptionsErrorMessage?: ((value: {
|
|
152
|
-
inputValue: string;
|
|
153
|
-
}) => React.ReactNode) | undefined;
|
|
154
|
-
loadUserSource?: LoadUserSource | undefined;
|
|
155
|
-
maxOptions?: number | undefined;
|
|
156
|
-
maxPickerHeight?: number | undefined;
|
|
157
|
-
menuIsOpen?: boolean | undefined;
|
|
158
|
-
menuMinWidth?: number | undefined;
|
|
159
|
-
menuPortalTarget?: HTMLElement | undefined;
|
|
160
|
-
menuPosition?: 'absolute' | 'fixed' | undefined;
|
|
161
|
-
menuShouldBlockScroll?: boolean | undefined;
|
|
162
|
-
minHeight?: number | string | undefined;
|
|
163
|
-
name?: string | undefined;
|
|
164
|
-
noBorder?: boolean | undefined;
|
|
165
|
-
noOptionsMessage?: React.ReactNode | ((value: {
|
|
166
|
-
inputValue: string;
|
|
167
|
-
}) => string | null | React.ReactNode);
|
|
168
|
-
offset?: [
|
|
169
|
-
number,
|
|
170
|
-
number
|
|
171
|
-
] | undefined;
|
|
172
|
-
onBlur?: OnPicker | undefined;
|
|
173
|
-
onChange?: OnChange | undefined;
|
|
174
|
-
onClear?: OnPicker | undefined;
|
|
175
|
-
onClose?: OnPicker | undefined;
|
|
176
|
-
onFocus?: OnPicker | undefined;
|
|
177
|
-
onInputChange?: OnInputChange | undefined;
|
|
178
|
-
onKeyDown?: ((event: React.KeyboardEvent) => void) | undefined;
|
|
179
|
-
onOpen?: OnPicker | undefined;
|
|
180
|
-
onSelection?: OnOption | undefined;
|
|
181
|
-
open?: boolean | undefined;
|
|
182
|
-
openMenuOnClick?: boolean | undefined;
|
|
183
|
-
options?: OptionData[] | undefined;
|
|
184
|
-
placeholder?: React.ReactNode;
|
|
185
|
-
placeholderAvatar?: 'person' | 'team' | undefined;
|
|
186
|
-
placement?: Placement | undefined;
|
|
187
|
-
popupSelectProps?: PopupSelectProps<OptionData> | undefined;
|
|
188
|
-
popupTitle?: string | undefined;
|
|
189
|
-
required?: boolean | undefined;
|
|
190
|
-
rootBoundary?: RootBoundary | undefined;
|
|
191
|
-
search?: string | undefined;
|
|
192
|
-
setIsFooterFocused?: React.Dispatch<React.SetStateAction<boolean>> | undefined;
|
|
193
|
-
setIsHeaderFocused?: React.Dispatch<React.SetStateAction<boolean>> | undefined;
|
|
194
|
-
shouldFlip?: boolean | undefined;
|
|
195
|
-
showClearIndicator?: boolean | undefined;
|
|
196
|
-
strategy?: 'fixed' | 'absolute' | undefined;
|
|
197
|
-
styles?: StylesConfig | undefined;
|
|
198
|
-
subtle?: boolean | undefined;
|
|
199
|
-
suggestEmailsForDomain?: string | undefined;
|
|
200
|
-
target?: Target | undefined;
|
|
201
|
-
textFieldBackgroundColor?: boolean | undefined;
|
|
202
|
-
UNSAFE_hasDraggableParentComponent?: boolean | undefined;
|
|
203
|
-
value?: Value;
|
|
204
|
-
width?: number | string | undefined;
|
|
205
|
-
} & {
|
|
206
|
-
createAnalyticsEvent?: CreateUIAnalyticsEvent | undefined;
|
|
207
|
-
ref?: React.Ref<any> | undefined;
|
|
208
|
-
}, 'ref'> & React.RefAttributes<any>>;
|
|
209
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type Option, type OptionData } from '../types';
|
|
2
|
-
import { type SingleValueProps } from '@atlaskit/select';
|
|
3
|
-
export type Props = SingleValueProps<Option> & {
|
|
4
|
-
shouldShowVerifiedIcon?: (data: OptionData) => boolean;
|
|
5
|
-
};
|
|
6
|
-
export declare const SingleValue: (props: Props) => JSX.Element | null;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { type ValueContainerProps } from '@atlaskit/select';
|
|
7
|
-
import { type Option, type User } from '../types';
|
|
8
|
-
export declare class SingleValueContainer extends React.Component<ValueContainerProps<Option<User>>> {
|
|
9
|
-
private renderAvatar;
|
|
10
|
-
onValueContainerClick: any;
|
|
11
|
-
Wrapper: ({ children }: {
|
|
12
|
-
children: React.ReactElement;
|
|
13
|
-
}) => JSX.Element;
|
|
14
|
-
render(): JSX.Element;
|
|
15
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type AppearanceType } from '@atlaskit/avatar';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export type Props = {
|
|
4
|
-
appearance: string;
|
|
5
|
-
avatarAppearanceShape?: AppearanceType;
|
|
6
|
-
presence?: string;
|
|
7
|
-
src?: string;
|
|
8
|
-
type?: 'person' | 'team';
|
|
9
|
-
};
|
|
10
|
-
export declare class SizeableAvatar extends React.PureComponent<Props> {
|
|
11
|
-
render(): React.JSX.Element;
|
|
12
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type Team } from '../../types';
|
|
3
|
-
export type TeamOptionProps = {
|
|
4
|
-
includeTeamsUpdates?: boolean;
|
|
5
|
-
isSelected: boolean;
|
|
6
|
-
team: Team;
|
|
7
|
-
};
|
|
8
|
-
export declare class TeamOption extends React.PureComponent<TeamOptionProps> {
|
|
9
|
-
private getPrimaryText;
|
|
10
|
-
private renderByline;
|
|
11
|
-
private getBylineComponent;
|
|
12
|
-
private renderAvatar;
|
|
13
|
-
private renderVerifiedIcon;
|
|
14
|
-
private getLozengeProps;
|
|
15
|
-
private renderCustomByLine;
|
|
16
|
-
render(): React.JSX.Element;
|
|
17
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { jsx } from '@emotion/react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { type User } from '../types';
|
|
4
|
-
export type UserOptionProps = {
|
|
5
|
-
isSelected: boolean;
|
|
6
|
-
status?: string;
|
|
7
|
-
user: User;
|
|
8
|
-
};
|
|
9
|
-
export declare class UserOption extends React.PureComponent<UserOptionProps> {
|
|
10
|
-
getPrimaryText: () => jsx.JSX.Element[];
|
|
11
|
-
renderSecondaryText: () => jsx.JSX.Element | undefined;
|
|
12
|
-
private renderAvatar;
|
|
13
|
-
private getLozengeProps;
|
|
14
|
-
render(): React.JSX.Element;
|
|
15
|
-
}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
6
|
-
import { type PopupSelectProps, type SelectComponentsConfig, type StylesConfig } from '@atlaskit/select';
|
|
7
|
-
import React from 'react';
|
|
8
|
-
import { type Appearance, type DefaultValue, type LoadOptions, type LoadUserSource, type OnChange, type OnInputChange, type OnOption, type OnPicker, type OptionData, type UserPickerProps, type UserPickerRef, type Value } from '../types';
|
|
9
|
-
import type { EmailValidator } from './emailValidation';
|
|
10
|
-
export declare class UserPickerWithoutAnalytics extends React.Component<UserPickerProps> {
|
|
11
|
-
ufoId: string;
|
|
12
|
-
constructor(props: UserPickerProps);
|
|
13
|
-
static defaultProps: {
|
|
14
|
-
width: number;
|
|
15
|
-
isMulti: boolean;
|
|
16
|
-
};
|
|
17
|
-
componentDidMount(): void;
|
|
18
|
-
render(): JSX.Element;
|
|
19
|
-
}
|
|
20
|
-
export declare const UserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
|
|
21
|
-
addMoreMessage?: string;
|
|
22
|
-
allowEmail?: boolean;
|
|
23
|
-
anchor?: React.ComponentType<any>;
|
|
24
|
-
appearance?: Appearance;
|
|
25
|
-
ariaDescribedBy?: string;
|
|
26
|
-
ariaLabel?: string;
|
|
27
|
-
ariaLabelledBy?: string;
|
|
28
|
-
ariaLive?: 'polite' | 'off' | 'assertive';
|
|
29
|
-
autoFocus?: boolean;
|
|
30
|
-
captureMenuScroll?: boolean;
|
|
31
|
-
clearValueLabel?: string;
|
|
32
|
-
closeMenuOnScroll?: boolean | EventListener;
|
|
33
|
-
components?: SelectComponentsConfig<OptionData, boolean>;
|
|
34
|
-
customGroupAnalyticsLabels?: Partial<Record<NonNullable<OptionData['type']>, string>>;
|
|
35
|
-
customGroupLabels?: Partial<Record<NonNullable<OptionData['type']>, React.ReactNode>>;
|
|
36
|
-
defaultValue?: DefaultValue;
|
|
37
|
-
disableInput?: boolean;
|
|
38
|
-
emailLabel?: string;
|
|
39
|
-
fieldId: string | null;
|
|
40
|
-
footer?: React.ReactNode;
|
|
41
|
-
forwardedRef?: React.ForwardedRef<UserPickerRef>;
|
|
42
|
-
groupByTypeOrder?: NonNullable<OptionData['type']>[];
|
|
43
|
-
header?: React.ReactNode;
|
|
44
|
-
height?: number | string;
|
|
45
|
-
includeTeamsUpdates?: boolean;
|
|
46
|
-
inputId?: string;
|
|
47
|
-
isClearable?: boolean;
|
|
48
|
-
isDisabled?: boolean;
|
|
49
|
-
isFooterFocused?: boolean;
|
|
50
|
-
isHeaderFocused?: boolean;
|
|
51
|
-
isInvalid?: boolean;
|
|
52
|
-
isLoading?: boolean;
|
|
53
|
-
isMulti?: boolean;
|
|
54
|
-
isValidEmail?: EmailValidator;
|
|
55
|
-
loadOptions?: LoadOptions;
|
|
56
|
-
loadOptionsErrorMessage?: (value: {
|
|
57
|
-
inputValue: string;
|
|
58
|
-
}) => React.ReactNode;
|
|
59
|
-
loadUserSource?: LoadUserSource;
|
|
60
|
-
maxOptions?: number;
|
|
61
|
-
maxPickerHeight?: number;
|
|
62
|
-
menuIsOpen?: boolean;
|
|
63
|
-
menuMinWidth?: number;
|
|
64
|
-
menuPortalTarget?: HTMLElement;
|
|
65
|
-
menuPosition?: 'absolute' | 'fixed';
|
|
66
|
-
menuShouldBlockScroll?: boolean;
|
|
67
|
-
minHeight?: number | string;
|
|
68
|
-
name?: string;
|
|
69
|
-
noBorder?: boolean;
|
|
70
|
-
noOptionsMessage?: ((value: {
|
|
71
|
-
inputValue: string;
|
|
72
|
-
}) => string | null | React.ReactNode) | null | React.ReactNode;
|
|
73
|
-
onBlur?: OnPicker;
|
|
74
|
-
onChange?: OnChange;
|
|
75
|
-
onClear?: OnPicker;
|
|
76
|
-
onClose?: OnPicker;
|
|
77
|
-
onFocus?: OnPicker;
|
|
78
|
-
onInputChange?: OnInputChange;
|
|
79
|
-
onKeyDown?: (event: React.KeyboardEvent) => void;
|
|
80
|
-
onOpen?: OnPicker;
|
|
81
|
-
onSelection?: OnOption;
|
|
82
|
-
open?: boolean;
|
|
83
|
-
openMenuOnClick?: boolean;
|
|
84
|
-
openMenuOnFocus?: boolean;
|
|
85
|
-
options?: OptionData[];
|
|
86
|
-
placeholder?: React.ReactNode;
|
|
87
|
-
placeholderAvatar?: 'person' | 'team';
|
|
88
|
-
popupSelectProps?: PopupSelectProps<OptionData>;
|
|
89
|
-
required?: boolean;
|
|
90
|
-
search?: string;
|
|
91
|
-
setIsFooterFocused?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
92
|
-
setIsHeaderFocused?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
93
|
-
showClearIndicator?: boolean;
|
|
94
|
-
strategy?: 'fixed' | 'absolute';
|
|
95
|
-
styles?: StylesConfig;
|
|
96
|
-
subtle?: boolean;
|
|
97
|
-
suggestEmailsForDomain?: string;
|
|
98
|
-
textFieldBackgroundColor?: boolean;
|
|
99
|
-
UNSAFE_hasDraggableParentComponent?: boolean;
|
|
100
|
-
value?: Value;
|
|
101
|
-
width?: number | string;
|
|
102
|
-
}, keyof WithAnalyticsEventsProps>, 'search' | 'appearance' | 'height' | 'minHeight' | 'open' | 'isDisabled' | 'options' | 'anchor' | 'footer' | 'header' | 'subtle' | 'value' | 'placeholderAvatar' | 'noOptionsMessage' | 'placeholder' | 'defaultValue' | 'autoFocus' | 'onFocus' | 'onBlur' | 'onChange' | 'onKeyDown' | 'name' | 'emailLabel' | 'addMoreMessage' | 'allowEmail' | 'ariaDescribedBy' | 'ariaLabel' | 'ariaLabelledBy' | 'ariaLive' | 'captureMenuScroll' | 'clearValueLabel' | 'closeMenuOnScroll' | 'components' | 'disableInput' | 'fieldId' | 'forwardedRef' | 'groupByTypeOrder' | 'customGroupLabels' | 'customGroupAnalyticsLabels' | 'includeTeamsUpdates' | 'inputId' | 'isClearable' | 'isFooterFocused' | 'isHeaderFocused' | 'isInvalid' | 'isLoading' | 'isValidEmail' | 'loadOptions' | 'loadOptionsErrorMessage' | 'loadUserSource' | 'maxOptions' | 'maxPickerHeight' | 'menuIsOpen' | 'menuMinWidth' | 'menuPortalTarget' | 'menuPosition' | 'menuShouldBlockScroll' | 'noBorder' | 'onClear' | 'onClose' | 'onInputChange' | 'onOpen' | 'onSelection' | 'openMenuOnClick' | 'openMenuOnFocus' | 'popupSelectProps' | 'required' | 'setIsFooterFocused' | 'setIsHeaderFocused' | 'showClearIndicator' | 'strategy' | 'styles' | 'suggestEmailsForDomain' | 'textFieldBackgroundColor' | 'UNSAFE_hasDraggableParentComponent'> & {
|
|
103
|
-
isMulti?: boolean | undefined;
|
|
104
|
-
width?: number | string | undefined;
|
|
105
|
-
} & {} & React.RefAttributes<any>>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
/**
|
|
7
|
-
* Conditional wrapper for the ValueContainer in Select. Provides a workaround
|
|
8
|
-
* for issues using react-select on react-beautiful-dnd Draggable elements.
|
|
9
|
-
* @returns
|
|
10
|
-
*/
|
|
11
|
-
declare const ValueContainerWrapper: ({ children, isEnabled, onMouseDown, }: {
|
|
12
|
-
children: React.ReactElement;
|
|
13
|
-
isEnabled: boolean;
|
|
14
|
-
onMouseDown: () => void;
|
|
15
|
-
}) => React.JSX.Element;
|
|
16
|
-
export default ValueContainerWrapper;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function batchByKey<T>(callback: (key: string, args: T[][]) => void): (key: string, ...args: T[]) => void;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { type MemoizedFn } from 'memoize-one';
|
|
2
|
-
import { ClearIndicator } from './ClearIndicator';
|
|
3
|
-
import { MultiValue } from './MultiValue';
|
|
4
|
-
import { MultiValueContainer } from './MultiValueContainer';
|
|
5
|
-
import { type OptionProps } from './Option';
|
|
6
|
-
import { type Props } from './SingleValue';
|
|
7
|
-
import { Input } from './Input';
|
|
8
|
-
import { SingleValueContainer } from './SingleValueContainer';
|
|
9
|
-
import { PopupInput } from './PopupInput';
|
|
10
|
-
import { PopupControl } from './PopupControl';
|
|
11
|
-
import { Menu } from './Menu';
|
|
12
|
-
import { type ClearIndicatorProps, type ControlProps, type DropdownIndicatorProps, type IndicatorsContainerProps, type InputProps, type LoadingIndicatorProps, type MultiValueGenericProps, type MultiValueProps, type MultiValueRemoveProps, type NoticeProps, type SelectComponentsConfig, type SingleValueProps } from '@atlaskit/select';
|
|
13
|
-
import { type OptionData, type UserPickerProps } from '../types';
|
|
14
|
-
import type { OptionProps as ReactSelectOptionProps, GroupBase, GroupProps, ControlProps as ReactSelectControlProps, GroupHeadingProps, MenuProps, MenuListProps, MenuPortalProps, PlaceholderProps, ContainerProps, ValueContainerProps } from '@atlaskit/react-select';
|
|
15
|
-
import type { ComponentType, FC } from 'react';
|
|
16
|
-
/**
|
|
17
|
-
* Memoize getComponents to avoid rerenders.
|
|
18
|
-
*/
|
|
19
|
-
export declare const getComponents: MemoizedFn<(multi?: boolean, anchor?: React.ComponentType<any>, showClearIndicator?: boolean, customComponents?: SelectComponentsConfig<OptionData, boolean>) => {
|
|
20
|
-
Control: ComponentType<any>;
|
|
21
|
-
Option: FC<OptionProps>;
|
|
22
|
-
} | {
|
|
23
|
-
ClearIndicator: typeof ClearIndicator | ComponentType<ClearIndicatorProps<OptionData, boolean, GroupBase<OptionData>>> | null;
|
|
24
|
-
Control: ((props: ControlProps<any> & UserPickerProps) => JSX.Element) | ComponentType<ReactSelectControlProps<OptionData, boolean, GroupBase<OptionData>>>;
|
|
25
|
-
DropdownIndicator: ComponentType<DropdownIndicatorProps<OptionData, boolean, GroupBase<OptionData>>> | null;
|
|
26
|
-
Group?: ComponentType<GroupProps<OptionData, boolean, GroupBase<OptionData>>> | undefined;
|
|
27
|
-
GroupHeading?: ComponentType<GroupHeadingProps<OptionData, boolean, GroupBase<OptionData>>> | undefined;
|
|
28
|
-
IndicatorsContainer?: ComponentType<IndicatorsContainerProps<OptionData, boolean, GroupBase<OptionData>>> | undefined;
|
|
29
|
-
Input: typeof Input | ComponentType<InputProps<OptionData, boolean, GroupBase<OptionData>>>;
|
|
30
|
-
LoadingIndicator?: ComponentType<LoadingIndicatorProps<OptionData, boolean, GroupBase<OptionData>>> | undefined;
|
|
31
|
-
LoadingMessage?: ComponentType<NoticeProps<OptionData, boolean, GroupBase<OptionData>>> | undefined;
|
|
32
|
-
Menu: typeof Menu | ComponentType<MenuProps<OptionData, boolean, GroupBase<OptionData>>>;
|
|
33
|
-
MenuList?: ComponentType<MenuListProps<OptionData, boolean, GroupBase<OptionData>>> | undefined;
|
|
34
|
-
MenuPortal?: ComponentType<MenuPortalProps<OptionData, boolean, GroupBase<OptionData>>> | undefined;
|
|
35
|
-
MultiValue: typeof MultiValue | ComponentType<MultiValueProps<OptionData, boolean, GroupBase<OptionData>>>;
|
|
36
|
-
MultiValueContainer?: ComponentType<MultiValueGenericProps<OptionData, boolean, GroupBase<OptionData>>> | undefined;
|
|
37
|
-
MultiValueLabel?: ComponentType<MultiValueGenericProps<OptionData, boolean, GroupBase<OptionData>>> | undefined;
|
|
38
|
-
MultiValueRemove?: ComponentType<MultiValueRemoveProps<OptionData, boolean, GroupBase<OptionData>>> | undefined;
|
|
39
|
-
NoOptionsMessage?: ComponentType<NoticeProps<OptionData, boolean, GroupBase<OptionData>>> | undefined;
|
|
40
|
-
Option: FC<OptionProps> | ComponentType<ReactSelectOptionProps<OptionData, boolean, GroupBase<OptionData>>>;
|
|
41
|
-
Placeholder?: ComponentType<PlaceholderProps<OptionData, boolean, GroupBase<OptionData>>> | undefined;
|
|
42
|
-
SelectContainer?: ComponentType<ContainerProps<OptionData, boolean, GroupBase<OptionData>>> | undefined;
|
|
43
|
-
SingleValue: ((props: Props) => JSX.Element | null) | ComponentType<SingleValueProps<OptionData, boolean, GroupBase<OptionData>>>;
|
|
44
|
-
ValueContainer: typeof MultiValueContainer | typeof SingleValueContainer | ComponentType<ValueContainerProps<OptionData, boolean, GroupBase<OptionData>>>;
|
|
45
|
-
}>;
|
|
46
|
-
export declare const getPopupComponents: MemoizedFn<(hasPopupTitle: boolean) => {
|
|
47
|
-
ClearIndicator: typeof ClearIndicator;
|
|
48
|
-
DropdownIndicator: null;
|
|
49
|
-
Input: typeof PopupInput;
|
|
50
|
-
Option: FC<OptionProps>;
|
|
51
|
-
SingleValue: (props: Props) => JSX.Element | null;
|
|
52
|
-
ValueContainer: typeof SingleValueContainer;
|
|
53
|
-
} | {
|
|
54
|
-
ClearIndicator: typeof ClearIndicator;
|
|
55
|
-
Control: typeof PopupControl;
|
|
56
|
-
DropdownIndicator: null;
|
|
57
|
-
Input: typeof PopupInput;
|
|
58
|
-
Option: FC<OptionProps>;
|
|
59
|
-
SingleValue: (props: Props) => JSX.Element | null;
|
|
60
|
-
ValueContainer: typeof SingleValueContainer;
|
|
61
|
-
}>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type Option } from '../types';
|
|
2
|
-
import { type EmailValidator } from './emailValidation';
|
|
3
|
-
declare function creatableProps(isValidEmail?: EmailValidator): {
|
|
4
|
-
allowCreateWhileLoading: boolean;
|
|
5
|
-
createOptionPosition: string;
|
|
6
|
-
formatCreateLabel: (inputText?: string) => string;
|
|
7
|
-
getNewOptionData: (inputValue: string) => Option;
|
|
8
|
-
isOptionDisabled: (option: Option) => boolean;
|
|
9
|
-
isValidNewOption: (inputValue?: string) => boolean | '' | undefined;
|
|
10
|
-
};
|
|
11
|
-
export declare const getCreatableProps: typeof creatableProps;
|
|
12
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { type MemoizedFn } from 'memoize-one';
|
|
2
|
-
import { type Option } from '../types';
|
|
3
|
-
import { type EmailValidator } from './emailValidation';
|
|
4
|
-
export declare const getCreatableSuggestedEmailProps: MemoizedFn<(emailDomain: string, isValidEmail?: EmailValidator) => {
|
|
5
|
-
allowCreateWhileLoading: boolean;
|
|
6
|
-
createOptionPosition: string;
|
|
7
|
-
formatCreateLabel: (inputText?: string) => string;
|
|
8
|
-
getNewOptionData: (inputValue?: string) => {
|
|
9
|
-
data: {
|
|
10
|
-
id: string;
|
|
11
|
-
name: string;
|
|
12
|
-
suggestion: boolean;
|
|
13
|
-
type: string;
|
|
14
|
-
};
|
|
15
|
-
label: string;
|
|
16
|
-
value: string;
|
|
17
|
-
} | null;
|
|
18
|
-
isOptionDisabled: (option: Option) => boolean;
|
|
19
|
-
isValidNewOption: (inputValue?: string) => boolean | '' | undefined;
|
|
20
|
-
}>;
|