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