@atlaskit/user-picker 9.6.0 → 9.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/components/styles.js +1 -1
  3. package/dist/cjs/version.json +1 -1
  4. package/dist/es2019/components/styles.js +1 -1
  5. package/dist/es2019/version.json +1 -1
  6. package/dist/esm/components/styles.js +1 -1
  7. package/dist/esm/version.json +1 -1
  8. package/package.json +1 -9
  9. package/dist/types-ts4.0/analytics.d.ts +0 -24
  10. package/dist/types-ts4.0/clients/UserSourceProvider.d.ts +0 -11
  11. package/dist/types-ts4.0/components/AddOptionAvatar.d.ts +0 -6
  12. package/dist/types-ts4.0/components/AvatarItemOption.d.ts +0 -12
  13. package/dist/types-ts4.0/components/BaseUserPicker.d.ts +0 -60
  14. package/dist/types-ts4.0/components/ClearIndicator.d.ts +0 -6
  15. package/dist/types-ts4.0/components/CustomOption/index.d.ts +0 -3
  16. package/dist/types-ts4.0/components/CustomOption/main.d.ts +0 -14
  17. package/dist/types-ts4.0/components/EmailOption/index.d.ts +0 -3
  18. package/dist/types-ts4.0/components/EmailOption/main.d.ts +0 -17
  19. package/dist/types-ts4.0/components/ExternalUserOption/ExternalAvatarItemOption.d.ts +0 -10
  20. package/dist/types-ts4.0/components/ExternalUserOption/InfoIcon.d.ts +0 -3
  21. package/dist/types-ts4.0/components/ExternalUserOption/SourcesTooltipContent.d.ts +0 -6
  22. package/dist/types-ts4.0/components/ExternalUserOption/index.d.ts +0 -3
  23. package/dist/types-ts4.0/components/ExternalUserOption/main.d.ts +0 -12
  24. package/dist/types-ts4.0/components/ExternalUserSourcesContainer.d.ts +0 -15
  25. package/dist/types-ts4.0/components/GroupOption/index.d.ts +0 -3
  26. package/dist/types-ts4.0/components/GroupOption/main.d.ts +0 -15
  27. package/dist/types-ts4.0/components/HighlightText.d.ts +0 -9
  28. package/dist/types-ts4.0/components/Input.d.ts +0 -11
  29. package/dist/types-ts4.0/components/MessagesIntlProvider.d.ts +0 -3
  30. package/dist/types-ts4.0/components/MultiValue.d.ts +0 -25
  31. package/dist/types-ts4.0/components/MultiValueContainer.d.ts +0 -30
  32. package/dist/types-ts4.0/components/Option.d.ts +0 -14
  33. package/dist/types-ts4.0/components/PopupControl.d.ts +0 -6
  34. package/dist/types-ts4.0/components/PopupInput.d.ts +0 -13
  35. package/dist/types-ts4.0/components/PopupUserPicker.d.ts +0 -39
  36. package/dist/types-ts4.0/components/SingleValue.d.ts +0 -8
  37. package/dist/types-ts4.0/components/SingleValueContainer.d.ts +0 -8
  38. package/dist/types-ts4.0/components/SizeableAvatar.d.ts +0 -10
  39. package/dist/types-ts4.0/components/TeamOption/index.d.ts +0 -3
  40. package/dist/types-ts4.0/components/TeamOption/main.d.ts +0 -15
  41. package/dist/types-ts4.0/components/UserOption.d.ts +0 -14
  42. package/dist/types-ts4.0/components/UserPicker.d.ts +0 -16
  43. package/dist/types-ts4.0/components/assets/github.d.ts +0 -2
  44. package/dist/types-ts4.0/components/assets/google.d.ts +0 -2
  45. package/dist/types-ts4.0/components/assets/microsoft.d.ts +0 -2
  46. package/dist/types-ts4.0/components/assets/slack.d.ts +0 -2
  47. package/dist/types-ts4.0/components/batch.d.ts +0 -1
  48. package/dist/types-ts4.0/components/components.d.ts +0 -55
  49. package/dist/types-ts4.0/components/creatable.d.ts +0 -12
  50. package/dist/types-ts4.0/components/creatableEmailSuggestion.d.ts +0 -19
  51. package/dist/types-ts4.0/components/emailValidation.d.ts +0 -3
  52. package/dist/types-ts4.0/components/i18n.d.ts +0 -127
  53. package/dist/types-ts4.0/components/popup.d.ts +0 -48
  54. package/dist/types-ts4.0/components/styles.d.ts +0 -17
  55. package/dist/types-ts4.0/components/utils.d.ts +0 -29
  56. package/dist/types-ts4.0/i18n/cs.d.ts +0 -33
  57. package/dist/types-ts4.0/i18n/da.d.ts +0 -33
  58. package/dist/types-ts4.0/i18n/de.d.ts +0 -33
  59. package/dist/types-ts4.0/i18n/en.d.ts +0 -7
  60. package/dist/types-ts4.0/i18n/en_GB.d.ts +0 -7
  61. package/dist/types-ts4.0/i18n/en_ZZ.d.ts +0 -33
  62. package/dist/types-ts4.0/i18n/es.d.ts +0 -33
  63. package/dist/types-ts4.0/i18n/et.d.ts +0 -15
  64. package/dist/types-ts4.0/i18n/fi.d.ts +0 -33
  65. package/dist/types-ts4.0/i18n/fr.d.ts +0 -33
  66. package/dist/types-ts4.0/i18n/hu.d.ts +0 -33
  67. package/dist/types-ts4.0/i18n/index.d.ts +0 -36
  68. package/dist/types-ts4.0/i18n/is.d.ts +0 -7
  69. package/dist/types-ts4.0/i18n/it.d.ts +0 -33
  70. package/dist/types-ts4.0/i18n/ja.d.ts +0 -33
  71. package/dist/types-ts4.0/i18n/ko.d.ts +0 -33
  72. package/dist/types-ts4.0/i18n/languages.d.ts +0 -27
  73. package/dist/types-ts4.0/i18n/nb.d.ts +0 -33
  74. package/dist/types-ts4.0/i18n/nl.d.ts +0 -33
  75. package/dist/types-ts4.0/i18n/pl.d.ts +0 -33
  76. package/dist/types-ts4.0/i18n/pt_BR.d.ts +0 -33
  77. package/dist/types-ts4.0/i18n/pt_PT.d.ts +0 -15
  78. package/dist/types-ts4.0/i18n/ro.d.ts +0 -7
  79. package/dist/types-ts4.0/i18n/ru.d.ts +0 -33
  80. package/dist/types-ts4.0/i18n/sk.d.ts +0 -15
  81. package/dist/types-ts4.0/i18n/sv.d.ts +0 -33
  82. package/dist/types-ts4.0/i18n/th.d.ts +0 -33
  83. package/dist/types-ts4.0/i18n/tr.d.ts +0 -33
  84. package/dist/types-ts4.0/i18n/uk.d.ts +0 -33
  85. package/dist/types-ts4.0/i18n/vi.d.ts +0 -33
  86. package/dist/types-ts4.0/i18n/zh.d.ts +0 -33
  87. package/dist/types-ts4.0/i18n/zh_TW.d.ts +0 -33
  88. package/dist/types-ts4.0/index.d.ts +0 -7
  89. package/dist/types-ts4.0/types.d.ts +0 -307
  90. package/dist/types-ts4.0/util/i18n-util.d.ts +0 -11
  91. package/dist/types-ts4.0/util/ufoExperiences.d.ts +0 -10
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/user-picker
2
2
 
3
+ ## 9.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8ad846932fc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8ad846932fc) - [ux] Fixes incorrect border colour displayed when hovering a user picker with subtle appearance applied.
8
+
3
9
  ## 9.6.0
4
10
 
5
11
  ### Minor Changes
@@ -57,7 +57,7 @@ var getStyles = (0, _memoizeOne.default)(function (width, isMulti, isCompact, ov
57
57
  opacity: 1
58
58
  },
59
59
  ':hover': _objectSpread(_objectSpread({}, css[':hover']), {}, {
60
- borderColor: state.isFocused ? css[':hover'] ? (0, _tokens.token)('color.border.focused', css[':hover'].borderColor) : (0, _tokens.token)('color.border.focused', _colors.B100) : state.selectProps.subtle ? state.selectProps.hoveringClearIndicator ? (0, _tokens.token)('color.icon.danger', _colors.R50) : (0, _tokens.token)('color.icon', _colors.N30) : (0, _tokens.token)('color.border.input', _colors.N40),
60
+ borderColor: state.isFocused ? css[':hover'] ? (0, _tokens.token)('color.border.focused', css[':hover'].borderColor) : (0, _tokens.token)('color.border.focused', _colors.B100) : state.selectProps.subtle ? 'transparent' : (0, _tokens.token)('color.border.input', _colors.N40),
61
61
  backgroundColor: state.selectProps.subtle && state.selectProps.hoveringClearIndicator ? (0, _tokens.token)('color.background.danger', _colors.R50) : state.isFocused ? css[':hover'] ? (0, _tokens.token)('color.background.input', css[':hover'].backgroundColor) : (0, _tokens.token)('color.background.input', _colors.N0) : state.isDisabled ? (0, _tokens.token)('color.background.disabled', _colors.N10) : (0, _tokens.token)('color.background.input.hovered', _colors.N30)
62
62
  }),
63
63
  padding: 0,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "9.6.0",
3
+ "version": "9.6.1",
4
4
  "sideEffects": false
5
5
  }
@@ -25,7 +25,7 @@ export const getStyles = memoizeOne((width, isMulti, isCompact, overrideStyles)
25
25
  opacity: 1
26
26
  },
27
27
  ':hover': { ...css[':hover'],
28
- borderColor: state.isFocused ? css[':hover'] ? token('color.border.focused', css[':hover'].borderColor) : token('color.border.focused', B100) : state.selectProps.subtle ? state.selectProps.hoveringClearIndicator ? token('color.icon.danger', R50) : token('color.icon', N30) : token('color.border.input', N40),
28
+ borderColor: state.isFocused ? css[':hover'] ? token('color.border.focused', css[':hover'].borderColor) : token('color.border.focused', B100) : state.selectProps.subtle ? 'transparent' : token('color.border.input', N40),
29
29
  backgroundColor: state.selectProps.subtle && state.selectProps.hoveringClearIndicator ? token('color.background.danger', R50) : state.isFocused ? css[':hover'] ? token('color.background.input', css[':hover'].backgroundColor) : token('color.background.input', N0) : state.isDisabled ? token('color.background.disabled', N10) : token('color.background.input.hovered', N30)
30
30
  },
31
31
  padding: 0,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "9.6.0",
3
+ "version": "9.6.1",
4
4
  "sideEffects": false
5
5
  }
@@ -37,7 +37,7 @@ export var getStyles = memoizeOne(function (width, isMulti, isCompact, overrideS
37
37
  opacity: 1
38
38
  },
39
39
  ':hover': _objectSpread(_objectSpread({}, css[':hover']), {}, {
40
- borderColor: state.isFocused ? css[':hover'] ? token('color.border.focused', css[':hover'].borderColor) : token('color.border.focused', B100) : state.selectProps.subtle ? state.selectProps.hoveringClearIndicator ? token('color.icon.danger', R50) : token('color.icon', N30) : token('color.border.input', N40),
40
+ borderColor: state.isFocused ? css[':hover'] ? token('color.border.focused', css[':hover'].borderColor) : token('color.border.focused', B100) : state.selectProps.subtle ? 'transparent' : token('color.border.input', N40),
41
41
  backgroundColor: state.selectProps.subtle && state.selectProps.hoveringClearIndicator ? token('color.background.danger', R50) : state.isFocused ? css[':hover'] ? token('color.background.input', css[':hover'].backgroundColor) : token('color.background.input', N0) : state.isDisabled ? token('color.background.disabled', N10) : token('color.background.input.hovered', N30)
42
42
  }),
43
43
  padding: 0,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "9.6.0",
3
+ "version": "9.6.1",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "9.6.0",
3
+ "version": "9.6.1",
4
4
  "description": "Fabric component for display a dropdown to select a user from",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -12,14 +12,6 @@
12
12
  "module": "dist/esm/index.js",
13
13
  "module:es2019": "dist/es2019/index.js",
14
14
  "types": "dist/types/index.d.ts",
15
- "typesVersions": {
16
- ">=4.0 <4.5": {
17
- "*": [
18
- "dist/types-ts4.0/*",
19
- "dist/types-ts4.0/index.d.ts"
20
- ]
21
- }
22
- },
23
15
  "sideEffects": false,
24
16
  "atlaskit:src": "src/index.ts",
25
17
  "atlassian": {
@@ -1,24 +0,0 @@
1
- import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
2
- import { UserPickerProps, UserPickerState } from './types';
3
- export declare type UserPickerSession = {
4
- id: string;
5
- start: number;
6
- inputChangeTime: number;
7
- upCount: number;
8
- downCount: number;
9
- lastKey?: number;
10
- };
11
- export declare const startSession: () => UserPickerSession;
12
- export declare const createAndFireEventInElementsChannel: (payload: AnalyticsEventPayload) => (createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent) => import("@atlaskit/analytics-next").UIAnalyticsEvent;
13
- export interface EventCreator {
14
- (props: UserPickerProps, state: UserPickerState, session?: UserPickerSession): AnalyticsEventPayload;
15
- (props: UserPickerProps, state: UserPickerState, session?: UserPickerSession, ...args: any[]): AnalyticsEventPayload;
16
- }
17
- export declare const focusEvent: EventCreator;
18
- export declare const clearEvent: EventCreator;
19
- export declare const deleteEvent: EventCreator;
20
- export declare const cancelEvent: EventCreator;
21
- export declare const selectEvent: EventCreator;
22
- export declare const searchedEvent: EventCreator;
23
- export declare const failedEvent: EventCreator;
24
- export declare const userInfoEvent: (sources: string[], accountId: string) => AnalyticsEventPayload;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { LoadUserSource, UserSource } from '../types';
3
- export interface UserSourceContext {
4
- fetchUserSource?: LoadUserSource;
5
- }
6
- export declare const ExusUserSourceProvider: React.FC<UserSourceContext>;
7
- export declare const useUserSource: (accountId: string, shouldFetchSources: boolean, existingSources?: UserSource[] | undefined) => {
8
- sources: UserSource[];
9
- loading: boolean;
10
- error: string | null;
11
- };
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- export declare type AddOptionAvatarProps = {
3
- label: string;
4
- isLozenge?: boolean;
5
- };
6
- export declare const AddOptionAvatar: React.FunctionComponent<AddOptionAvatarProps>;
@@ -1,12 +0,0 @@
1
- /** @jsx jsx */
2
- import { ReactNode } from 'react';
3
- import { LozengeProps } from '../types';
4
- export declare const textWrapper: (color?: string | undefined) => import("@emotion/utils").SerializedStyles;
5
- export declare type AvatarItemOptionProps = {
6
- avatar: ReactNode;
7
- isDisabled?: boolean;
8
- lozenge?: ReactNode | LozengeProps;
9
- primaryText?: ReactNode;
10
- secondaryText?: ReactNode;
11
- };
12
- export declare const AvatarItemOption: ({ avatar, isDisabled, lozenge, primaryText, secondaryText, }: AvatarItemOptionProps) => JSX.Element;
@@ -1,60 +0,0 @@
1
- import React from 'react';
2
- import { UserPickerProps, UserPickerState } from '../types';
3
- export declare type BaseUserPickerProps = UserPickerProps & {
4
- SelectComponent: React.ComponentClass<any>;
5
- pickerProps?: any;
6
- styles: any;
7
- components: any;
8
- width: string | number;
9
- };
10
- export declare class BaseUserPickerWithoutAnalytics extends React.Component<BaseUserPickerProps, UserPickerState> {
11
- static defaultProps: {
12
- isMulti: boolean;
13
- subtle: boolean;
14
- noBorder: boolean;
15
- textFieldBackgroundColor: boolean;
16
- isClearable: boolean;
17
- };
18
- static getDerivedStateFromProps(nextProps: Partial<UserPickerProps>, prevState: UserPickerState): Partial<UserPickerState>;
19
- private selectRef;
20
- private session?;
21
- private journeyId?;
22
- private optionsShownUfoExperienceInstance;
23
- constructor(props: BaseUserPickerProps);
24
- private getSessionId;
25
- private withSelectRef;
26
- nextOption: () => void;
27
- previousOption: () => void;
28
- focus: () => void;
29
- blur: () => void;
30
- selectOption: () => void;
31
- private handleChange;
32
- private handleSelectRef;
33
- private addOptions;
34
- private handleLoadOptionsError;
35
- private debouncedLoadOptions;
36
- abortOptionsShownUfoExperience: () => void;
37
- startOptionsShownUfoExperience: () => void;
38
- private executeLoadOptions;
39
- private handleFocus;
40
- private resetInputState;
41
- private handleBlur;
42
- private handleClose;
43
- private handleInputChange;
44
- private fireEvent;
45
- private startSession;
46
- componentDidMount(): void;
47
- componentDidUpdate(_: UserPickerProps, prevState: UserPickerState): void;
48
- private handleKeyDown;
49
- handleClearIndicatorHover: (hoveringClearIndicator: boolean) => void;
50
- private getOptions;
51
- private getAppearance;
52
- render(): JSX.Element;
53
- }
54
- export declare const BaseUserPicker: React.ForwardRefExoticComponent<Pick<Omit<BaseUserPickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "options" | "search" | "isDisabled" | "autoFocus" | "captureMenuScroll" | "closeMenuOnScroll" | "components" | "inputId" | "isLoading" | "menuPosition" | "menuPortalTarget" | "menuShouldBlockScroll" | "noOptionsMessage" | "onBlur" | "onChange" | "onFocus" | "onInputChange" | "placeholder" | "styles" | "value" | "defaultValue" | "fieldId" | "width" | "menuMinWidth" | "maxPickerHeight" | "loadOptions" | "loadUserSource" | "anchor" | "open" | "onSelection" | "onClear" | "onClose" | "appearance" | "addMoreMessage" | "clearValueLabel" | "allowEmail" | "suggestEmailsForDomain" | "emailLabel" | "disableInput" | "isValidEmail" | "maxOptions" | "ariaLabelledBy" | "ariaLive" | "SelectComponent" | "pickerProps"> & Partial<Pick<Omit<BaseUserPickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "isClearable" | "isMulti" | "textFieldBackgroundColor" | "subtle" | "noBorder">> & Partial<Pick<{
55
- isMulti: boolean;
56
- subtle: boolean;
57
- noBorder: boolean;
58
- textFieldBackgroundColor: boolean;
59
- isClearable: boolean;
60
- }, never>> & React.RefAttributes<any>>;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { IndicatorProps } from '@atlaskit/select';
3
- export declare class ClearIndicator extends React.PureComponent<IndicatorProps<any>> {
4
- private handleMouseDown;
5
- render(): JSX.Element;
6
- }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const AsyncCustomOption: React.LazyExoticComponent<typeof import("./main").CustomOption>;
3
- export default AsyncCustomOption;
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import { Custom } from '../../types';
3
- export declare type CustomOptionProps = {
4
- data: Custom;
5
- isSelected: boolean;
6
- };
7
- export declare class CustomOption extends React.PureComponent<CustomOptionProps> {
8
- private getPrimaryText;
9
- private getBylineComponent;
10
- private renderByline;
11
- private renderAvatar;
12
- private getLozengeProps;
13
- render(): JSX.Element;
14
- }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const AsyncEmailOption: React.LazyExoticComponent<typeof import("./main").EmailOption>;
3
- export default AsyncEmailOption;
@@ -1,17 +0,0 @@
1
- /** @jsx jsx */
2
- import React from 'react';
3
- import { Email } from '../../types';
4
- import { EmailValidationResponse } from '../emailValidation';
5
- export declare type EmailOptionProps = {
6
- email: Email;
7
- isSelected: boolean;
8
- label?: string;
9
- emailValidity: EmailValidationResponse;
10
- };
11
- export declare class EmailOption extends React.PureComponent<EmailOptionProps> {
12
- private getLozengeProps;
13
- private renderPrimaryText;
14
- private renderSecondaryText;
15
- private renderOption;
16
- render(): JSX.Element;
17
- }
@@ -1,10 +0,0 @@
1
- /** @jsx jsx */
2
- import { ReactNode } from 'react';
3
- export declare type ExternalAvatarItemOptionProps = {
4
- avatar: ReactNode;
5
- isDisabled?: boolean;
6
- primaryText: ReactNode;
7
- secondaryText?: ReactNode;
8
- sourcesInfoTooltip?: ReactNode;
9
- };
10
- export declare const ExternalAvatarItemOption: ({ avatar, isDisabled, primaryText, secondaryText, sourcesInfoTooltip, }: ExternalAvatarItemOptionProps) => JSX.Element;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: () => JSX.Element;
3
- export default _default;
@@ -1,6 +0,0 @@
1
- /** @jsx jsx */
2
- import React from 'react';
3
- import { ExternalUserSourcesData } from '../ExternalUserSourcesContainer';
4
- export declare const sourcesTooltipContainer: import("@emotion/utils").SerializedStyles;
5
- export declare const sourceWrapper: import("@emotion/utils").SerializedStyles;
6
- export declare const SourcesTooltipContent: React.FC<ExternalUserSourcesData>;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const AsyncExternalUserOption: React.LazyExoticComponent<React.ForwardRefExoticComponent<Omit<import("./main").ExternalUserOptionProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any>>>;
3
- export default AsyncExternalUserOption;
@@ -1,12 +0,0 @@
1
- /** @jsx jsx */
2
- import React from 'react';
3
- import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
4
- import { ExternalUser } from '../../types';
5
- export declare const imageContainer: import("@emotion/utils").SerializedStyles;
6
- export declare const emailDomainWrapper: import("@emotion/utils").SerializedStyles;
7
- export declare type ExternalUserOptionProps = WithAnalyticsEventsProps & {
8
- user: ExternalUser;
9
- status?: string;
10
- isSelected: boolean;
11
- };
12
- export declare const ExternalUserOption: React.ForwardRefExoticComponent<Omit<ExternalUserOptionProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
@@ -1,15 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import { UserSource } from '../types';
3
- export interface ExternalUserSourcesData {
4
- sources: UserSource[];
5
- sourcesLoading: boolean;
6
- }
7
- declare type SourcesChildrenFunc = (sourcesData: ExternalUserSourcesData) => ReactNode;
8
- interface SourcesContainerProps {
9
- accountId: string;
10
- shouldFetchSources: boolean;
11
- initialSources: UserSource[];
12
- children: SourcesChildrenFunc;
13
- }
14
- export declare const ExternalUserSourcesContainer: React.FC<SourcesContainerProps>;
15
- export {};
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const AsyncGroupOption: React.LazyExoticComponent<typeof import("./main").GroupOption>;
3
- export default AsyncGroupOption;
@@ -1,15 +0,0 @@
1
- /** @jsx jsx */
2
- import React from 'react';
3
- import { Group } from '../../types';
4
- export declare const groupOptionIconWrapper: import("@emotion/utils").SerializedStyles;
5
- export declare type GroupOptionProps = {
6
- group: Group;
7
- isSelected: boolean;
8
- };
9
- export declare class GroupOption extends React.PureComponent<GroupOptionProps> {
10
- private getPrimaryText;
11
- private renderAvatar;
12
- private renderByline;
13
- private getLozengeProps;
14
- render(): JSX.Element;
15
- }
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { HighlightRange } from '../types';
3
- export interface Props {
4
- highlights?: HighlightRange[];
5
- children: string;
6
- }
7
- export declare class HighlightText extends React.PureComponent<Props> {
8
- render(): (string | JSX.Element)[];
9
- }
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- export declare type Props = {
3
- selectProps?: {
4
- disableInput?: boolean;
5
- };
6
- innerRef: (ref: React.Ref<HTMLInputElement>) => void;
7
- };
8
- export declare class Input extends React.Component<Props> {
9
- handleKeyPress: (e: KeyboardEvent) => void;
10
- render(): JSX.Element;
11
- }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const MessagesIntlProvider: React.FC;
3
- export default MessagesIntlProvider;
@@ -1,25 +0,0 @@
1
- /** @jsx jsx */
2
- import React from 'react';
3
- import { OptionType } from '@atlaskit/select';
4
- import { Option, UserPickerProps } from '../types';
5
- import { MultiValueProps } from '@atlaskit/select/types';
6
- export declare const scrollToValue: (valueContainer: HTMLDivElement, control: HTMLElement) => void;
7
- declare type Props = MultiValueProps<OptionType> & {
8
- isFocused?: boolean;
9
- data: Option;
10
- innerProps: any;
11
- removeProps: {
12
- onClick: Function;
13
- };
14
- selectProps: UserPickerProps;
15
- ref?: React.RefObject<HTMLDivElement>;
16
- };
17
- export declare class MultiValue extends React.Component<Props> {
18
- private containerRef;
19
- constructor(props: Props);
20
- componentDidUpdate(): void;
21
- shouldComponentUpdate(nextProps: Props): boolean;
22
- getElemBefore: () => JSX.Element;
23
- render(): JSX.Element;
24
- }
25
- export {};
@@ -1,30 +0,0 @@
1
- import { ValueContainerProps } from '@atlaskit/select';
2
- import React from 'react';
3
- import { User, Option } from '../types';
4
- export declare type State = {
5
- valueSize: number;
6
- previousValueSize: number;
7
- };
8
- declare type Props = ValueContainerProps<Option<User>[], true> & {
9
- innerProps?: ValueContainerInnerProps;
10
- };
11
- declare type ValueContainerInnerProps = {
12
- ref: React.RefObject<HTMLDivElement>;
13
- };
14
- export declare class MultiValueContainer extends React.PureComponent<Props, State> {
15
- static getDerivedStateFromProps(nextProps: Props, prevState: State): {
16
- valueSize: number;
17
- previousValueSize: number;
18
- };
19
- private valueContainerInnerProps;
20
- private timeoutId;
21
- constructor(props: Props);
22
- componentDidUpdate(): void;
23
- componentWillUnmount(): void;
24
- scrollToBottom: () => void;
25
- private showPlaceholder;
26
- private addPlaceholder;
27
- private renderChildren;
28
- render(): JSX.Element;
29
- }
30
- export {};
@@ -1,14 +0,0 @@
1
- import { OptionProps as AkOptionProps } from '@atlaskit/select';
2
- import { FC } from 'react';
3
- import { Option as OptionType } from '../types';
4
- export declare type OptionProps = AkOptionProps & {
5
- data: OptionType;
6
- isSelected: boolean;
7
- isDisabled: boolean;
8
- isFocused: boolean;
9
- status?: string;
10
- selectProps: {
11
- emailLabel?: string;
12
- };
13
- };
14
- export declare const Option: FC<OptionProps>;
@@ -1,6 +0,0 @@
1
- /** @jsx jsx */
2
- import React from 'react';
3
- import { ControlProps } from '@atlaskit/select';
4
- export declare class PopupControl extends React.PureComponent<ControlProps<any>> {
5
- render(): JSX.Element;
6
- }
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- export declare type Props = {
3
- selectProps: {
4
- disableInput?: boolean;
5
- };
6
- innerRef: (ref: React.Ref<HTMLInputElement>) => void;
7
- };
8
- export declare class PopupInput extends React.Component<Props> {
9
- private ref;
10
- componentDidMount(): void;
11
- private handleInnerRef;
12
- render(): JSX.Element;
13
- }
@@ -1,39 +0,0 @@
1
- import React from 'react';
2
- import { PopupUserPickerProps } from '../types';
3
- interface State {
4
- flipped: boolean;
5
- }
6
- export declare class PopupUserPickerWithoutAnalytics extends React.Component<PopupUserPickerProps, State> {
7
- static defaultProps: {
8
- boundariesElement: string;
9
- width: number;
10
- isMulti: boolean;
11
- offset: number[];
12
- placement: string;
13
- rootBoundary: string;
14
- shouldFlip: boolean;
15
- };
16
- state: {
17
- flipped: boolean;
18
- };
19
- handleFlipStyle: (data: {
20
- flipped: boolean;
21
- styles: any;
22
- popper: any;
23
- }) => {
24
- flipped: boolean;
25
- styles: any;
26
- popper: any;
27
- };
28
- render(): JSX.Element;
29
- }
30
- export declare const PopupUserPicker: React.ForwardRefExoticComponent<Pick<Omit<PopupUserPickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "options" | "search" | "isDisabled" | "target" | "autoFocus" | "captureMenuScroll" | "closeMenuOnScroll" | "inputId" | "isClearable" | "isLoading" | "menuPosition" | "menuPortalTarget" | "menuShouldBlockScroll" | "noOptionsMessage" | "onBlur" | "onChange" | "onFocus" | "onInputChange" | "placeholder" | "styles" | "value" | "defaultValue" | "fieldId" | "menuMinWidth" | "maxPickerHeight" | "textFieldBackgroundColor" | "loadOptions" | "loadUserSource" | "anchor" | "open" | "onSelection" | "onClear" | "onClose" | "appearance" | "subtle" | "noBorder" | "addMoreMessage" | "clearValueLabel" | "allowEmail" | "suggestEmailsForDomain" | "emailLabel" | "disableInput" | "isValidEmail" | "maxOptions" | "ariaLabelledBy" | "ariaLive" | "popupTitle"> & Partial<Pick<Omit<PopupUserPickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "offset" | "isMulti" | "width" | "rootBoundary" | "boundariesElement" | "placement" | "shouldFlip">> & Partial<Pick<{
31
- boundariesElement: string;
32
- width: number;
33
- isMulti: boolean;
34
- offset: number[];
35
- placement: string;
36
- rootBoundary: string;
37
- shouldFlip: boolean;
38
- }, never>> & React.RefAttributes<any>>;
39
- export {};
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { Option } from '../types';
3
- declare type Props = {
4
- data: Option;
5
- selectProps: any;
6
- };
7
- export declare const SingleValue: (props: Props) => JSX.Element | null;
8
- export {};
@@ -1,8 +0,0 @@
1
- /** @jsx jsx */
2
- import React from 'react';
3
- import { ValueContainerProps } from '@atlaskit/select';
4
- import { User, Option } from '../types';
5
- export declare class SingleValueContainer extends React.Component<ValueContainerProps<Option<User>>> {
6
- private renderAvatar;
7
- render(): JSX.Element;
8
- }
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- export declare class Props {
3
- appearance: string;
4
- src?: string;
5
- name?: string;
6
- presence?: string;
7
- }
8
- export declare class SizeableAvatar extends React.PureComponent<Props> {
9
- render(): JSX.Element;
10
- }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const AsyncTeamOption: React.LazyExoticComponent<typeof import("./main").TeamOption>;
3
- export default AsyncTeamOption;
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import { Team } from '../../types';
3
- export declare type TeamOptionProps = {
4
- team: Team;
5
- isSelected: boolean;
6
- };
7
- export declare class TeamOption extends React.PureComponent<TeamOptionProps> {
8
- private getPrimaryText;
9
- private renderByline;
10
- private getBylineComponent;
11
- private renderAvatar;
12
- private getLozengeProps;
13
- private renderCustomByLine;
14
- render(): JSX.Element;
15
- }
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import { User } from '../types';
3
- export declare type UserOptionProps = {
4
- user: User;
5
- status?: string;
6
- isSelected: boolean;
7
- };
8
- export declare class UserOption extends React.PureComponent<UserOptionProps> {
9
- getPrimaryText: () => JSX.Element[];
10
- renderSecondaryText: () => JSX.Element | undefined;
11
- private renderAvatar;
12
- private getLozengeProps;
13
- render(): JSX.Element;
14
- }
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import { UserPickerProps } from '../types';
3
- export declare class UserPickerWithoutAnalytics extends React.Component<UserPickerProps> {
4
- ufoId: string;
5
- constructor(props: UserPickerProps);
6
- static defaultProps: {
7
- width: number;
8
- isMulti: boolean;
9
- };
10
- componentDidMount(): void;
11
- render(): JSX.Element;
12
- }
13
- export declare const UserPicker: React.ForwardRefExoticComponent<Pick<Omit<UserPickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "options" | "search" | "isDisabled" | "autoFocus" | "captureMenuScroll" | "closeMenuOnScroll" | "inputId" | "isClearable" | "isLoading" | "menuPosition" | "menuPortalTarget" | "menuShouldBlockScroll" | "noOptionsMessage" | "onBlur" | "onChange" | "onFocus" | "onInputChange" | "placeholder" | "styles" | "value" | "defaultValue" | "fieldId" | "menuMinWidth" | "maxPickerHeight" | "textFieldBackgroundColor" | "loadOptions" | "loadUserSource" | "anchor" | "open" | "onSelection" | "onClear" | "onClose" | "appearance" | "subtle" | "noBorder" | "addMoreMessage" | "clearValueLabel" | "allowEmail" | "suggestEmailsForDomain" | "emailLabel" | "disableInput" | "isValidEmail" | "maxOptions" | "ariaLabelledBy" | "ariaLive"> & Partial<Pick<Omit<UserPickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "isMulti" | "width">> & Partial<Pick<{
14
- width: number;
15
- isMulti: boolean;
16
- }, never>> & React.RefAttributes<any>>;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare function GitHubIcon(props: React.SVGProps<SVGSVGElement>): JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare function GoogleIcon(props: React.SVGProps<SVGSVGElement>): JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare function MicrosoftIcon(props: React.SVGProps<SVGSVGElement>): JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare function SlackIcon(props: React.SVGProps<SVGSVGElement>): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function batchByKey<T>(callback: (key: string, args: T[][]) => void): (key: string, ...args: T[]) => void;