@atlaskit/user-picker 12.1.3 → 13.0.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 +26 -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/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/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/util/i18n-util.js +38 -38
- 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,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
|
-
}
|
|
@@ -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
|
-
}
|