@atlaskit/select 17.0.0 → 17.0.2
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 +12 -0
- package/dist/cjs/CountrySelect.js +5 -7
- package/dist/cjs/PopupSelect/components.js +7 -8
- package/dist/cjs/Select.js +1 -1
- package/dist/cjs/components/index.js +2 -4
- package/dist/cjs/components/indicators.js +8 -7
- package/dist/cjs/components/input-options.js +8 -7
- package/dist/cjs/index.js +7 -0
- package/dist/es2019/CountrySelect.js +6 -8
- package/dist/es2019/PopupSelect/components.js +8 -10
- package/dist/es2019/Select.js +1 -1
- package/dist/es2019/components/index.js +3 -4
- package/dist/es2019/components/indicators.js +8 -8
- package/dist/es2019/components/input-options.js +8 -8
- package/dist/es2019/index.js +1 -0
- package/dist/esm/CountrySelect.js +6 -8
- package/dist/esm/PopupSelect/components.js +8 -10
- package/dist/esm/Select.js +1 -1
- package/dist/esm/components/index.js +3 -4
- package/dist/esm/components/indicators.js +8 -8
- package/dist/esm/components/input-options.js +8 -8
- package/dist/esm/index.js +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types-ts4.5/index.d.ts +1 -0
- package/package.json +3 -3
- package/tmp/api-report-tmp.d.ts +0 -701
package/tmp/api-report-tmp.d.ts
DELETED
|
@@ -1,701 +0,0 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/select"
|
|
2
|
-
|
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
|
|
7
|
-
/// <reference types="react" />
|
|
8
|
-
|
|
9
|
-
import { ActionMeta as ActionMeta_2 } from 'react-select';
|
|
10
|
-
import { AsyncProps } from 'react-select/async';
|
|
11
|
-
import BaseSelect from 'react-select/base';
|
|
12
|
-
import { ClearIndicatorProps } from 'react-select';
|
|
13
|
-
import { components } from 'react-select';
|
|
14
|
-
import { ContainerProps } from 'react-select';
|
|
15
|
-
import { Context } from 'react';
|
|
16
|
-
import { ControlProps as ControlProps_2 } from 'react-select';
|
|
17
|
-
import { CreatableProps } from 'react-select/creatable';
|
|
18
|
-
import { createFilter } from 'react-select';
|
|
19
|
-
import { CrossIconProps } from 'react-select/dist/declarations/src/components/indicators';
|
|
20
|
-
import { default as default_2 } from 'react-select/base';
|
|
21
|
-
import { DownChevronProps } from 'react-select/dist/declarations/src/components/indicators';
|
|
22
|
-
import { DropdownIndicatorProps } from 'react-select';
|
|
23
|
-
import { ErrorInfo } from 'react';
|
|
24
|
-
import { FC } from 'react';
|
|
25
|
-
import { FormatOptionLabelMeta } from 'react-select';
|
|
26
|
-
import { GroupHeadingProps } from 'react-select';
|
|
27
|
-
import { GroupProps as GroupProps_2 } from 'react-select';
|
|
28
|
-
import { GroupBase as GroupType } from 'react-select';
|
|
29
|
-
import { IndicatorsContainerProps } from 'react-select';
|
|
30
|
-
import { IndicatorSeparatorProps } from 'react-select';
|
|
31
|
-
import { InputActionMeta } from 'react-select';
|
|
32
|
-
import { InputProps } from 'react-select';
|
|
33
|
-
import { jsx } from '@emotion/react';
|
|
34
|
-
import { KeyboardEventHandler } from 'react';
|
|
35
|
-
import { LoadingIndicatorProps } from 'react-select';
|
|
36
|
-
import { MemoizedFn } from 'memoize-one';
|
|
37
|
-
import { MenuListProps } from 'react-select';
|
|
38
|
-
import { MenuPortal } from 'react-select/dist/declarations/src/components/Menu';
|
|
39
|
-
import { MenuProps as MenuProps_2 } from 'react-select';
|
|
40
|
-
import { mergeStyles } from 'react-select';
|
|
41
|
-
import { MultiValueGenericProps } from 'react-select';
|
|
42
|
-
import { MultiValueProps } from 'react-select';
|
|
43
|
-
import { MultiValueRemove } from 'react-select/dist/declarations/src/components/MultiValue';
|
|
44
|
-
import { MultiValueRemoveProps } from 'react-select';
|
|
45
|
-
import { NoticeProps } from 'react-select';
|
|
46
|
-
import { OnChangeValue } from 'react-select';
|
|
47
|
-
import { OptionProps as OptionProps_2 } from 'react-select';
|
|
48
|
-
import { Options } from 'react-select';
|
|
49
|
-
import { PlaceholderProps as PlaceholderProps_2 } from 'react-select';
|
|
50
|
-
import { PopperProps } from 'react-popper';
|
|
51
|
-
import { PortalStyleArgs } from 'react-select/dist/declarations/src/components/Menu';
|
|
52
|
-
import { PureComponent } from 'react';
|
|
53
|
-
import { default as React_2 } from 'react';
|
|
54
|
-
import { ReactInstance } from 'react';
|
|
55
|
-
import { ReactNode } from 'react';
|
|
56
|
-
import { Props as ReactSelectProps } from 'react-select';
|
|
57
|
-
import { SelectComponents } from 'react-select/dist/declarations/src/components';
|
|
58
|
-
import { SelectComponentsConfig as SelectComponentsConfig_2 } from 'react-select';
|
|
59
|
-
import { SelectInstance } from 'react-select';
|
|
60
|
-
import { SingleValueProps } from 'react-select';
|
|
61
|
-
import { StylesConfig as StylesConfig_2 } from 'react-select';
|
|
62
|
-
import { StylesConfigFunction } from 'react-select/dist/declarations/src/styles';
|
|
63
|
-
import { UnbindFn } from 'bind-event-listener';
|
|
64
|
-
import { useAsync } from 'react-select/async';
|
|
65
|
-
import { useCreatable } from 'react-select/creatable';
|
|
66
|
-
import { ValueContainerProps as ValueContainerProps_2 } from 'react-select';
|
|
67
|
-
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
68
|
-
|
|
69
|
-
// @public (undocumented)
|
|
70
|
-
export type ActionMeta<Option = OptionType> = ActionMeta_2<Option>;
|
|
71
|
-
|
|
72
|
-
// @public (undocumented)
|
|
73
|
-
export const AsyncCreatableSelect: {
|
|
74
|
-
new <Option = OptionType, IsMulti extends boolean = false>(props: SelectProps<Option, IsMulti>): {
|
|
75
|
-
components: Partial<SelectComponents<Option, IsMulti, GroupType<Option>>>;
|
|
76
|
-
select: default_2<unknown, false, GroupType<unknown>> | null;
|
|
77
|
-
UNSAFE_componentWillReceiveProps(nextProps: SelectProps<Option, IsMulti>): void;
|
|
78
|
-
cacheComponents: (components: Partial<SelectComponents<Option, IsMulti, GroupType<Option>>>) => void;
|
|
79
|
-
focus(): void;
|
|
80
|
-
blur(): void;
|
|
81
|
-
onSelectRef: (ref: default_2<unknown, false, GroupType<unknown>>) => void;
|
|
82
|
-
render(): JSX.Element;
|
|
83
|
-
context: any;
|
|
84
|
-
setState<K extends never>(state: ((prevState: Readonly<{}>, props: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >) => Pick<{}, K> | null | {}) | Pick<{}, K> | null | {}, callback?: (() => void) | undefined): void;
|
|
85
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
86
|
-
readonly props: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> > & Readonly<{
|
|
87
|
-
children?: ReactNode;
|
|
88
|
-
}>;
|
|
89
|
-
state: Readonly<{}>;
|
|
90
|
-
refs: {
|
|
91
|
-
[key: string]: ReactInstance;
|
|
92
|
-
};
|
|
93
|
-
componentDidMount?(): void;
|
|
94
|
-
shouldComponentUpdate?(nextProps: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
95
|
-
componentWillUnmount?(): void;
|
|
96
|
-
componentDidCatch?(error: Error, errorInfo: ErrorInfo): void;
|
|
97
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >, prevState: Readonly<{}>): any;
|
|
98
|
-
componentDidUpdate?(prevProps: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >, prevState: Readonly<{}>, snapshot?: any): void;
|
|
99
|
-
componentWillMount?(): void;
|
|
100
|
-
UNSAFE_componentWillMount?(): void;
|
|
101
|
-
componentWillReceiveProps?(nextProps: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >, nextContext: any): void;
|
|
102
|
-
componentWillUpdate?(nextProps: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >, nextState: Readonly<{}>, nextContext: any): void;
|
|
103
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >, nextState: Readonly<{}>, nextContext: any): void;
|
|
104
|
-
};
|
|
105
|
-
defaultProps: {
|
|
106
|
-
validationState: string;
|
|
107
|
-
spacing: string;
|
|
108
|
-
onClickPreventDefault: boolean;
|
|
109
|
-
tabSelectsValue: boolean;
|
|
110
|
-
components: {
|
|
111
|
-
Input: (props: InputProps<unknown, boolean, GroupType<unknown>>) => JSX.Element;
|
|
112
|
-
};
|
|
113
|
-
styles: {};
|
|
114
|
-
};
|
|
115
|
-
contextType?: Context<any> | undefined;
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
// @public (undocumented)
|
|
119
|
-
export const AsyncSelect: {
|
|
120
|
-
new <Option = OptionType, IsMulti extends boolean = false>(props: SelectProps<Option, IsMulti>): {
|
|
121
|
-
components: Partial<SelectComponents<Option, IsMulti, GroupType<Option>>>;
|
|
122
|
-
select: default_2<unknown, false, GroupType<unknown>> | null;
|
|
123
|
-
UNSAFE_componentWillReceiveProps(nextProps: SelectProps<Option, IsMulti>): void;
|
|
124
|
-
cacheComponents: (components: Partial<SelectComponents<Option, IsMulti, GroupType<Option>>>) => void;
|
|
125
|
-
focus(): void;
|
|
126
|
-
blur(): void;
|
|
127
|
-
onSelectRef: (ref: default_2<unknown, false, GroupType<unknown>>) => void;
|
|
128
|
-
render(): JSX.Element;
|
|
129
|
-
context: any;
|
|
130
|
-
setState<K extends never>(state: ((prevState: Readonly<{}>, props: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >) => Pick<{}, K> | null | {}) | Pick<{}, K> | null | {}, callback?: (() => void) | undefined): void;
|
|
131
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
132
|
-
readonly props: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> > & Readonly<{
|
|
133
|
-
children?: ReactNode;
|
|
134
|
-
}>;
|
|
135
|
-
state: Readonly<{}>;
|
|
136
|
-
refs: {
|
|
137
|
-
[key: string]: ReactInstance;
|
|
138
|
-
};
|
|
139
|
-
componentDidMount?(): void;
|
|
140
|
-
shouldComponentUpdate?(nextProps: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
141
|
-
componentWillUnmount?(): void;
|
|
142
|
-
componentDidCatch?(error: Error, errorInfo: ErrorInfo): void;
|
|
143
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >, prevState: Readonly<{}>): any;
|
|
144
|
-
componentDidUpdate?(prevProps: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >, prevState: Readonly<{}>, snapshot?: any): void;
|
|
145
|
-
componentWillMount?(): void;
|
|
146
|
-
UNSAFE_componentWillMount?(): void;
|
|
147
|
-
componentWillReceiveProps?(nextProps: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >, nextContext: any): void;
|
|
148
|
-
componentWillUpdate?(nextProps: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >, nextState: Readonly<{}>, nextContext: any): void;
|
|
149
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >, nextState: Readonly<{}>, nextContext: any): void;
|
|
150
|
-
};
|
|
151
|
-
defaultProps: {
|
|
152
|
-
validationState: string;
|
|
153
|
-
spacing: string;
|
|
154
|
-
onClickPreventDefault: boolean;
|
|
155
|
-
tabSelectsValue: boolean;
|
|
156
|
-
components: {
|
|
157
|
-
Input: (props: InputProps<unknown, boolean, GroupType<unknown>>) => JSX.Element;
|
|
158
|
-
};
|
|
159
|
-
styles: {};
|
|
160
|
-
};
|
|
161
|
-
contextType?: Context<any> | undefined;
|
|
162
|
-
};
|
|
163
|
-
|
|
164
|
-
// @public (undocumented)
|
|
165
|
-
export interface AsyncSelectProps<Option, IsMulti extends boolean = false> extends AsyncProps<Option, IsMulti, GroupType<Option>>, CustomSelectProps {
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
// @public (undocumented)
|
|
169
|
-
export const CheckboxOption: FC<OptionProps<OptionType, true>>;
|
|
170
|
-
|
|
171
|
-
// @public (undocumented)
|
|
172
|
-
export const CheckboxSelect: React_2.MemoExoticComponent<({ components, ...props }: SelectProps<OptionType, true>) => JSX.Element>;
|
|
173
|
-
|
|
174
|
-
export { ClearIndicatorProps }
|
|
175
|
-
|
|
176
|
-
export { components }
|
|
177
|
-
|
|
178
|
-
// @public (undocumented)
|
|
179
|
-
export type ControlProps<Option, IsMulti extends boolean = false> = ControlProps_2<Option, IsMulti>;
|
|
180
|
-
|
|
181
|
-
// @public (undocumented)
|
|
182
|
-
type Country = (typeof groupedCountries)[number]['options'][number];
|
|
183
|
-
|
|
184
|
-
// @public (undocumented)
|
|
185
|
-
interface Country_2 {
|
|
186
|
-
// (undocumented)
|
|
187
|
-
abbr: string;
|
|
188
|
-
// (undocumented)
|
|
189
|
-
code: string;
|
|
190
|
-
// (undocumented)
|
|
191
|
-
icon: string;
|
|
192
|
-
// (undocumented)
|
|
193
|
-
name: string;
|
|
194
|
-
// (undocumented)
|
|
195
|
-
suggested?: boolean;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
// @public (undocumented)
|
|
199
|
-
export const CountrySelect: (props: SelectProps<Country>) => jsx.JSX.Element;
|
|
200
|
-
|
|
201
|
-
// @public (undocumented)
|
|
202
|
-
export const CreatableSelect: {
|
|
203
|
-
new <Option = OptionType, IsMulti extends boolean = false>(props: SelectProps<Option, IsMulti>): {
|
|
204
|
-
components: Partial<SelectComponents<Option, IsMulti, GroupType<Option>>>;
|
|
205
|
-
select: default_2<unknown, false, GroupType<unknown>> | null;
|
|
206
|
-
UNSAFE_componentWillReceiveProps(nextProps: SelectProps<Option, IsMulti>): void;
|
|
207
|
-
cacheComponents: (components: Partial<SelectComponents<Option, IsMulti, GroupType<Option>>>) => void;
|
|
208
|
-
focus(): void;
|
|
209
|
-
blur(): void;
|
|
210
|
-
onSelectRef: (ref: default_2<unknown, false, GroupType<unknown>>) => void;
|
|
211
|
-
render(): JSX.Element;
|
|
212
|
-
context: any;
|
|
213
|
-
setState<K extends never>(state: ((prevState: Readonly<{}>, props: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >) => Pick<{}, K> | null | {}) | Pick<{}, K> | null | {}, callback?: (() => void) | undefined): void;
|
|
214
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
215
|
-
readonly props: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> > & Readonly<{
|
|
216
|
-
children?: ReactNode;
|
|
217
|
-
}>;
|
|
218
|
-
state: Readonly<{}>;
|
|
219
|
-
refs: {
|
|
220
|
-
[key: string]: ReactInstance;
|
|
221
|
-
};
|
|
222
|
-
componentDidMount?(): void;
|
|
223
|
-
shouldComponentUpdate?(nextProps: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
224
|
-
componentWillUnmount?(): void;
|
|
225
|
-
componentDidCatch?(error: Error, errorInfo: ErrorInfo): void;
|
|
226
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >, prevState: Readonly<{}>): any;
|
|
227
|
-
componentDidUpdate?(prevProps: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >, prevState: Readonly<{}>, snapshot?: any): void;
|
|
228
|
-
componentWillMount?(): void;
|
|
229
|
-
UNSAFE_componentWillMount?(): void;
|
|
230
|
-
componentWillReceiveProps?(nextProps: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >, nextContext: any): void;
|
|
231
|
-
componentWillUpdate?(nextProps: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >, nextState: Readonly<{}>, nextContext: any): void;
|
|
232
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >, nextState: Readonly<{}>, nextContext: any): void;
|
|
233
|
-
};
|
|
234
|
-
defaultProps: {
|
|
235
|
-
validationState: string;
|
|
236
|
-
spacing: string;
|
|
237
|
-
onClickPreventDefault: boolean;
|
|
238
|
-
tabSelectsValue: boolean;
|
|
239
|
-
components: {
|
|
240
|
-
Input: (props: InputProps<unknown, boolean, GroupType<unknown>>) => JSX.Element;
|
|
241
|
-
};
|
|
242
|
-
styles: {};
|
|
243
|
-
};
|
|
244
|
-
contextType?: Context<any> | undefined;
|
|
245
|
-
};
|
|
246
|
-
|
|
247
|
-
// @public (undocumented)
|
|
248
|
-
interface CreatableSelectProps<Option, IsMulti extends boolean = false> extends CreatableProps<Option, IsMulti, GroupType<Option>>, CustomSelectProps {
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
export { createFilter }
|
|
252
|
-
|
|
253
|
-
// @public (undocumented)
|
|
254
|
-
interface CustomSelectProps extends WithAnalyticsEventsProps {
|
|
255
|
-
appearance?: 'default' | 'none' | 'subtle';
|
|
256
|
-
isInvalid?: boolean;
|
|
257
|
-
spacing?: 'compact' | 'default';
|
|
258
|
-
testId?: string;
|
|
259
|
-
// @deprecated (undocumented)
|
|
260
|
-
validationState?: ValidationState;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
// @public (undocumented)
|
|
264
|
-
const _default: {
|
|
265
|
-
new <Option = OptionType, IsMulti extends boolean = false>(props: SelectProps<Option, IsMulti>): {
|
|
266
|
-
components: Partial<SelectComponents<Option, IsMulti, GroupType<Option>>>;
|
|
267
|
-
select: default_2<unknown, false, GroupType<unknown>> | null;
|
|
268
|
-
UNSAFE_componentWillReceiveProps(nextProps: SelectProps<Option, IsMulti>): void;
|
|
269
|
-
cacheComponents: (components: Partial<SelectComponents<Option, IsMulti, GroupType<Option>>>) => void;
|
|
270
|
-
focus(): void;
|
|
271
|
-
blur(): void;
|
|
272
|
-
onSelectRef: (ref: default_2<unknown, false, GroupType<unknown>>) => void;
|
|
273
|
-
render(): JSX.Element;
|
|
274
|
-
context: any;
|
|
275
|
-
setState<K extends never>(state: ((prevState: Readonly<{}>, props: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >) => Pick<{}, K> | null | {}) | Pick<{}, K> | null | {}, callback?: (() => void) | undefined): void;
|
|
276
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
277
|
-
readonly props: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> > & Readonly<{
|
|
278
|
-
children?: ReactNode;
|
|
279
|
-
}>;
|
|
280
|
-
state: Readonly<{}>;
|
|
281
|
-
refs: {
|
|
282
|
-
[key: string]: ReactInstance;
|
|
283
|
-
};
|
|
284
|
-
componentDidMount?(): void;
|
|
285
|
-
shouldComponentUpdate?(nextProps: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
286
|
-
componentWillUnmount?(): void;
|
|
287
|
-
componentDidCatch?(error: Error, errorInfo: ErrorInfo): void;
|
|
288
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >, prevState: Readonly<{}>): any;
|
|
289
|
-
componentDidUpdate?(prevProps: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >, prevState: Readonly<{}>, snapshot?: any): void;
|
|
290
|
-
componentWillMount?(): void;
|
|
291
|
-
UNSAFE_componentWillMount?(): void;
|
|
292
|
-
componentWillReceiveProps?(nextProps: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >, nextContext: any): void;
|
|
293
|
-
componentWillUpdate?(nextProps: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >, nextState: Readonly<{}>, nextContext: any): void;
|
|
294
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >, nextState: Readonly<{}>, nextContext: any): void;
|
|
295
|
-
};
|
|
296
|
-
defaultProps: {
|
|
297
|
-
validationState: string;
|
|
298
|
-
spacing: string;
|
|
299
|
-
onClickPreventDefault: boolean;
|
|
300
|
-
tabSelectsValue: boolean;
|
|
301
|
-
components: {
|
|
302
|
-
Input: (props: InputProps<unknown, boolean, GroupType<unknown>>) => JSX.Element;
|
|
303
|
-
};
|
|
304
|
-
styles: {};
|
|
305
|
-
};
|
|
306
|
-
contextType?: Context<any> | undefined;
|
|
307
|
-
};
|
|
308
|
-
export default _default;
|
|
309
|
-
|
|
310
|
-
// @public (undocumented)
|
|
311
|
-
const defaultComponents: {
|
|
312
|
-
Control: FC<ControlProps<OptionType, boolean>>;
|
|
313
|
-
DropdownIndicator: () => jsx.JSX.Element;
|
|
314
|
-
Menu: ({ children, innerProps }: MenuProps<OptionType, boolean>) => jsx.JSX.Element;
|
|
315
|
-
};
|
|
316
|
-
|
|
317
|
-
// @public (undocumented)
|
|
318
|
-
type defaultModifiers = 'offset' | 'preventOverflow';
|
|
319
|
-
|
|
320
|
-
export { DropdownIndicatorProps }
|
|
321
|
-
|
|
322
|
-
export { FormatOptionLabelMeta }
|
|
323
|
-
|
|
324
|
-
// @public (undocumented)
|
|
325
|
-
const groupedCountries: readonly [{
|
|
326
|
-
readonly label: "Suggested";
|
|
327
|
-
readonly options: Country_2[];
|
|
328
|
-
}, {
|
|
329
|
-
readonly label: "All Countries";
|
|
330
|
-
readonly options: Country_2[];
|
|
331
|
-
}];
|
|
332
|
-
|
|
333
|
-
// @public (undocumented)
|
|
334
|
-
export type GroupedOptionsType<Option> = ReadonlyArray<GroupType<Option>>;
|
|
335
|
-
|
|
336
|
-
// @public (undocumented)
|
|
337
|
-
export type GroupProps<Option, IsMulti extends boolean = false> = GroupProps_2<Option, IsMulti>;
|
|
338
|
-
|
|
339
|
-
export { GroupType }
|
|
340
|
-
|
|
341
|
-
export { IndicatorSeparatorProps }
|
|
342
|
-
|
|
343
|
-
export { InputActionMeta }
|
|
344
|
-
|
|
345
|
-
export { InputProps }
|
|
346
|
-
|
|
347
|
-
export { LoadingIndicatorProps }
|
|
348
|
-
|
|
349
|
-
// @public (undocumented)
|
|
350
|
-
export type MenuListComponentProps<Option, IsMulti extends boolean = false> = MenuListProps<Option, IsMulti>;
|
|
351
|
-
|
|
352
|
-
// @public (undocumented)
|
|
353
|
-
export type MenuProps<Option, IsMulti extends boolean = false> = MenuProps_2<Option, IsMulti>;
|
|
354
|
-
|
|
355
|
-
export { mergeStyles }
|
|
356
|
-
|
|
357
|
-
// @public (undocumented)
|
|
358
|
-
export type ModifierList = 'applyStyles' | 'arrow' | 'computeStyles' | 'eventListeners' | 'flip' | 'handleFlipStyle' | 'hide' | 'offset' | 'popperOffsets' | 'preventOverflow';
|
|
359
|
-
|
|
360
|
-
export { MultiValueProps }
|
|
361
|
-
|
|
362
|
-
export { MultiValueRemoveProps }
|
|
363
|
-
|
|
364
|
-
export { NoticeProps }
|
|
365
|
-
|
|
366
|
-
// @public (undocumented)
|
|
367
|
-
export interface OptionProps<Option = OptionType, IsMulti extends boolean = false> extends OptionProps_2<Option, IsMulti> {
|
|
368
|
-
// (undocumented)
|
|
369
|
-
[key: string]: any;
|
|
370
|
-
// (undocumented)
|
|
371
|
-
Icon?: React.ComponentType<{
|
|
372
|
-
label: string;
|
|
373
|
-
size?: 'large' | 'medium' | 'small' | 'xlarge';
|
|
374
|
-
onClick?: (e: MouseEvent) => void;
|
|
375
|
-
primaryColor?: string;
|
|
376
|
-
secondaryColor?: string;
|
|
377
|
-
}>;
|
|
378
|
-
// (undocumented)
|
|
379
|
-
isDisabled: boolean;
|
|
380
|
-
// (undocumented)
|
|
381
|
-
isFocused: boolean;
|
|
382
|
-
// (undocumented)
|
|
383
|
-
isSelected: boolean;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
// @public (undocumented)
|
|
387
|
-
export type OptionsType<Option = OptionType> = Options<Option>;
|
|
388
|
-
|
|
389
|
-
// @public (undocumented)
|
|
390
|
-
export interface OptionType {
|
|
391
|
-
// (undocumented)
|
|
392
|
-
[key: string]: any;
|
|
393
|
-
// (undocumented)
|
|
394
|
-
label: string;
|
|
395
|
-
// (undocumented)
|
|
396
|
-
value: number | string;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
// @public (undocumented)
|
|
400
|
-
export type PlaceholderProps<Option, IsMulti extends boolean = false> = PlaceholderProps_2<Option, IsMulti>;
|
|
401
|
-
|
|
402
|
-
// @public (undocumented)
|
|
403
|
-
type PopperPropsNoChildren<Modifiers> = Omit<PopperProps<Modifiers>, 'children'>;
|
|
404
|
-
|
|
405
|
-
// @public (undocumented)
|
|
406
|
-
export class PopupSelect<Option = OptionType, IsMulti extends boolean = false, Modifiers = ModifierList> extends PureComponent<PopupSelectProps<Option, IsMulti, Modifiers>, State> {
|
|
407
|
-
close: (options?: {
|
|
408
|
-
controlOverride?: boolean;
|
|
409
|
-
}) => void;
|
|
410
|
-
// (undocumented)
|
|
411
|
-
componentDidMount(): void;
|
|
412
|
-
// (undocumented)
|
|
413
|
-
componentDidUpdate(prevProps: PopupSelectProps<Option, IsMulti, Modifiers>): void;
|
|
414
|
-
// (undocumented)
|
|
415
|
-
componentWillUnmount(): void;
|
|
416
|
-
// (undocumented)
|
|
417
|
-
defaultOpenState: boolean | undefined;
|
|
418
|
-
// (undocumented)
|
|
419
|
-
static defaultProps: {
|
|
420
|
-
closeMenuOnSelect: boolean;
|
|
421
|
-
components: {};
|
|
422
|
-
maxMenuHeight: number;
|
|
423
|
-
maxMenuWidth: number;
|
|
424
|
-
minMenuWidth: number;
|
|
425
|
-
popperProps: {};
|
|
426
|
-
isSearchable: boolean;
|
|
427
|
-
searchThreshold: number;
|
|
428
|
-
styles: {};
|
|
429
|
-
options: never[];
|
|
430
|
-
};
|
|
431
|
-
// (undocumented)
|
|
432
|
-
defaultStyles: StylesConfig<Option, IsMulti>;
|
|
433
|
-
// (undocumented)
|
|
434
|
-
static getDerivedStateFromProps(props: PopupSelectProps<OptionType>, state: State): Partial<State<string>> | null;
|
|
435
|
-
// (undocumented)
|
|
436
|
-
getItemCount: () => number;
|
|
437
|
-
// (undocumented)
|
|
438
|
-
getMaxHeight: () => number | undefined;
|
|
439
|
-
// (undocumented)
|
|
440
|
-
getSelectComponents: MemoizedFn<(mergedComponents: typeof defaultComponents, showSearchControl: boolean | undefined) => Partial<{
|
|
441
|
-
ClearIndicator: <Option_1, IsMulti_1 extends boolean, Group extends GroupType<Option_1>>(props: ClearIndicatorProps<Option_1, IsMulti_1, Group>) => jsx;
|
|
442
|
-
Control: <Option_1, IsMulti_1 extends boolean, Group_1 extends GroupType<Option_1>>(props: ControlProps_2<Option_1, IsMulti_1, Group_1>) => jsx;
|
|
443
|
-
DropdownIndicator: <Option_2, IsMulti_2 extends boolean, Group_2 extends GroupType<Option_2>>(props: DropdownIndicatorProps<Option_2, IsMulti_2, Group_2>) => jsx;
|
|
444
|
-
DownChevron: (props: DownChevronProps) => jsx;
|
|
445
|
-
CrossIcon: (props: CrossIconProps) => jsx;
|
|
446
|
-
Group: <Option_3, IsMulti_3 extends boolean, Group_3 extends GroupType<Option_3>>(props: GroupProps_2<Option_3, IsMulti_3, Group_3>) => jsx;
|
|
447
|
-
GroupHeading: <Option_4, IsMulti_4 extends boolean, Group_4 extends GroupType<Option_4>>(props: GroupHeadingProps<Option_4, IsMulti_4, Group_4>) => jsx;
|
|
448
|
-
IndicatorsContainer: <Option_5, IsMulti_5 extends boolean, Group_5 extends GroupType<Option_5>>(props: IndicatorsContainerProps<Option_5, IsMulti_5, Group_5>) => jsx;
|
|
449
|
-
IndicatorSeparator: <Option_6, IsMulti_6 extends boolean, Group_6 extends GroupType<Option_6>>(props: IndicatorSeparatorProps<Option_6, IsMulti_6, Group_6>) => jsx;
|
|
450
|
-
Input: <Option_7, IsMulti_7 extends boolean, Group_7 extends GroupType<Option_7>>(props: InputProps<Option_7, IsMulti_7, Group_7>) => jsx;
|
|
451
|
-
LoadingIndicator: {
|
|
452
|
-
<Option_8, IsMulti_8 extends boolean, Group_8 extends GroupType<Option_8>>(props: LoadingIndicatorProps<Option_8, IsMulti_8, Group_8>): jsx;
|
|
453
|
-
defaultProps: {
|
|
454
|
-
size: number;
|
|
455
|
-
};
|
|
456
|
-
};
|
|
457
|
-
Menu: <Option_9, IsMulti_9 extends boolean, Group_9 extends GroupType<Option_9>>(props: MenuProps_2<Option_9, IsMulti_9, Group_9>) => jsx;
|
|
458
|
-
MenuList: <Option_10, IsMulti_10 extends boolean, Group_10 extends GroupType<Option_10>>(props: MenuListProps<Option_10, IsMulti_10, Group_10>) => jsx;
|
|
459
|
-
MenuPortal: MenuPortal;
|
|
460
|
-
LoadingMessage: {
|
|
461
|
-
<Option_11, IsMulti_11 extends boolean, Group_11 extends GroupType<Option_11>>(props: NoticeProps<Option_11, IsMulti_11, Group_11>): jsx;
|
|
462
|
-
defaultProps: {
|
|
463
|
-
children: string;
|
|
464
|
-
};
|
|
465
|
-
};
|
|
466
|
-
NoOptionsMessage: {
|
|
467
|
-
<Option_12, IsMulti_12 extends boolean, Group_12 extends GroupType<Option_12>>(props: NoticeProps<Option_12, IsMulti_12, Group_12>): jsx;
|
|
468
|
-
defaultProps: {
|
|
469
|
-
children: string;
|
|
470
|
-
};
|
|
471
|
-
};
|
|
472
|
-
MultiValue: <Option_13, IsMulti_13 extends boolean, Group_13 extends GroupType<Option_13>>(props: MultiValueProps<Option_13, IsMulti_13, Group_13>) => jsx;
|
|
473
|
-
MultiValueContainer: <Option_14, IsMulti_14 extends boolean, Group_14 extends GroupType<Option_14>>({ children, innerProps, }: MultiValueGenericProps<Option_14, IsMulti_14, Group_14>) => jsx;
|
|
474
|
-
MultiValueLabel: <Option_14_1, IsMulti_14_1 extends boolean, Group_14_1 extends GroupType<Option_14_1>>({ children, innerProps, }: MultiValueGenericProps<Option_14_1, IsMulti_14_1, Group_14_1>) => jsx;
|
|
475
|
-
MultiValueRemove: MultiValueRemove;
|
|
476
|
-
Option: <Option_15, IsMulti_15 extends boolean, Group_15 extends GroupType<Option_15>>(props: OptionProps_2<Option_15, IsMulti_15, Group_15>) => jsx;
|
|
477
|
-
Placeholder: <Option_16, IsMulti_16 extends boolean, Group_16 extends GroupType<Option_16>>(props: PlaceholderProps_2<Option_16, IsMulti_16, Group_16>) => jsx;
|
|
478
|
-
SelectContainer: <Option_17, IsMulti_17 extends boolean, Group_17 extends GroupType<Option_17>>(props: ContainerProps<Option_17, IsMulti_17, Group_17>) => jsx;
|
|
479
|
-
SingleValue: <Option_18, IsMulti_18 extends boolean, Group_18 extends GroupType<Option_18>>(props: SingleValueProps<Option_18, IsMulti_18, Group_18>) => jsx;
|
|
480
|
-
ValueContainer: <Option_19, IsMulti_19 extends boolean, Group_19 extends GroupType<Option_19>>(props: ValueContainerProps_2<Option_19, IsMulti_19, Group_19>) => jsx;
|
|
481
|
-
}>>;
|
|
482
|
-
// (undocumented)
|
|
483
|
-
getSelectRef: (ref: BaseSelect<Option, IsMulti>) => void;
|
|
484
|
-
// (undocumented)
|
|
485
|
-
getSelectStyles: MemoizedFn<(defaultStyles: StylesConfig<Option, IsMulti>, propStyles: StylesConfig<Option, IsMulti> | undefined) => {
|
|
486
|
-
clearIndicator?: StylesConfigFunction<ClearIndicatorProps<Option, IsMulti, GroupType<Option>>> | undefined;
|
|
487
|
-
container?: StylesConfigFunction<ContainerProps<Option, IsMulti, GroupType<Option>>> | undefined;
|
|
488
|
-
control?: StylesConfigFunction<ControlProps_2<Option, IsMulti, GroupType<Option>>> | undefined;
|
|
489
|
-
dropdownIndicator?: StylesConfigFunction<DropdownIndicatorProps<Option, IsMulti, GroupType<Option>>> | undefined;
|
|
490
|
-
group?: StylesConfigFunction<GroupProps_2<Option, IsMulti, GroupType<Option>>> | undefined;
|
|
491
|
-
groupHeading?: StylesConfigFunction<GroupHeadingProps<Option, IsMulti, GroupType<Option>>> | undefined;
|
|
492
|
-
indicatorsContainer?: StylesConfigFunction<IndicatorsContainerProps<Option, IsMulti, GroupType<Option>>> | undefined;
|
|
493
|
-
indicatorSeparator?: StylesConfigFunction<IndicatorSeparatorProps<Option, IsMulti, GroupType<Option>>> | undefined;
|
|
494
|
-
input?: StylesConfigFunction<InputProps<Option, IsMulti, GroupType<Option>>> | undefined;
|
|
495
|
-
loadingIndicator?: StylesConfigFunction<LoadingIndicatorProps<Option, IsMulti, GroupType<Option>>> | undefined;
|
|
496
|
-
loadingMessage?: StylesConfigFunction<NoticeProps<Option, IsMulti, GroupType<Option>>> | undefined;
|
|
497
|
-
menu?: StylesConfigFunction<MenuProps_2<Option, IsMulti, GroupType<Option>>> | undefined;
|
|
498
|
-
menuList?: StylesConfigFunction<MenuListProps<Option, IsMulti, GroupType<Option>>> | undefined;
|
|
499
|
-
menuPortal?: StylesConfigFunction<PortalStyleArgs> | undefined; /** @deprecated Use isInvalid instead. The state of validation if used in a form */
|
|
500
|
-
multiValue?: StylesConfigFunction<MultiValueProps<Option, IsMulti, GroupType<Option>>> | undefined;
|
|
501
|
-
multiValueLabel?: StylesConfigFunction<MultiValueProps<Option, IsMulti, GroupType<Option>>> | undefined;
|
|
502
|
-
multiValueRemove?: StylesConfigFunction<MultiValueProps<Option, IsMulti, GroupType<Option>>> | undefined;
|
|
503
|
-
noOptionsMessage?: StylesConfigFunction<NoticeProps<Option, IsMulti, GroupType<Option>>> | undefined;
|
|
504
|
-
option?: StylesConfigFunction<OptionProps_2<Option, IsMulti, GroupType<Option>>> | undefined;
|
|
505
|
-
placeholder?: StylesConfigFunction<PlaceholderProps_2<Option, IsMulti, GroupType<Option>>> | undefined;
|
|
506
|
-
singleValue?: StylesConfigFunction<SingleValueProps<Option, IsMulti, GroupType<Option>>> | undefined;
|
|
507
|
-
valueContainer?: StylesConfigFunction<ValueContainerProps_2<Option, IsMulti, GroupType<Option>>> | undefined;
|
|
508
|
-
}>;
|
|
509
|
-
// (undocumented)
|
|
510
|
-
handleClick: ({ target }: MouseEvent) => void;
|
|
511
|
-
// (undocumented)
|
|
512
|
-
handleFirstPopperUpdate: () => void;
|
|
513
|
-
// (undocumented)
|
|
514
|
-
handleKeyDown: (event: KeyboardEvent) => void;
|
|
515
|
-
// (undocumented)
|
|
516
|
-
handleSelectChange: (value: ValueType<Option, IsMulti>, actionMeta: ActionMeta<Option>) => void;
|
|
517
|
-
// (undocumented)
|
|
518
|
-
handleTargetKeyDown: (event: React_2.KeyboardEvent) => void;
|
|
519
|
-
// (undocumented)
|
|
520
|
-
isOpenControlled: boolean;
|
|
521
|
-
// (undocumented)
|
|
522
|
-
menuRef: HTMLElement | null;
|
|
523
|
-
open: (options?: {
|
|
524
|
-
controlOverride?: boolean;
|
|
525
|
-
}) => void;
|
|
526
|
-
// (undocumented)
|
|
527
|
-
popperWrapperId: string;
|
|
528
|
-
// (undocumented)
|
|
529
|
-
render(): JSX.Element;
|
|
530
|
-
// (undocumented)
|
|
531
|
-
renderSelect: () => JSX.Element | null;
|
|
532
|
-
// (undocumented)
|
|
533
|
-
resolveMenuRef: (popperRef: React_2.Ref<HTMLElement>) => (ref: HTMLElement) => void;
|
|
534
|
-
// (undocumented)
|
|
535
|
-
resolveTargetRef: (popperRef: React_2.Ref<HTMLElement>) => (ref: HTMLElement) => void;
|
|
536
|
-
// (undocumented)
|
|
537
|
-
selectRef: BaseSelect<Option, IsMulti> | null;
|
|
538
|
-
// (undocumented)
|
|
539
|
-
showSearchControl: () => boolean | undefined;
|
|
540
|
-
// (undocumented)
|
|
541
|
-
state: {
|
|
542
|
-
focusLockEnabled: boolean;
|
|
543
|
-
isOpen: boolean;
|
|
544
|
-
mergedComponents: {
|
|
545
|
-
Control: React_2.FC<ControlProps<OptionType, boolean>>;
|
|
546
|
-
DropdownIndicator: () => jsx;
|
|
547
|
-
Menu: ({ children, innerProps }: MenuProps<OptionType, boolean>) => jsx;
|
|
548
|
-
};
|
|
549
|
-
mergedPopperProps: PopperPropsNoChildren<string>;
|
|
550
|
-
} | {
|
|
551
|
-
isOpen: boolean;
|
|
552
|
-
mergedComponents: {
|
|
553
|
-
Control: React_2.FC<ControlProps<OptionType, boolean>>;
|
|
554
|
-
DropdownIndicator: () => jsx;
|
|
555
|
-
Menu: ({ children, innerProps }: MenuProps<OptionType, boolean>) => jsx;
|
|
556
|
-
};
|
|
557
|
-
mergedPopperProps: PopperPropsNoChildren<string>;
|
|
558
|
-
focusLockEnabled?: undefined;
|
|
559
|
-
};
|
|
560
|
-
// (undocumented)
|
|
561
|
-
targetRef: HTMLElement | null;
|
|
562
|
-
// (undocumented)
|
|
563
|
-
unbindWindowClick: UnbindFn | null;
|
|
564
|
-
// (undocumented)
|
|
565
|
-
unbindWindowKeydown: UnbindFn | null;
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
// @public (undocumented)
|
|
569
|
-
export interface PopupSelectProps<Option = OptionType, IsMulti extends boolean = false, Modifiers = ModifierList> extends ReactSelectProps<Option, IsMulti> {
|
|
570
|
-
closeMenuOnSelect?: boolean;
|
|
571
|
-
// (undocumented)
|
|
572
|
-
defaultIsOpen?: boolean;
|
|
573
|
-
footer?: ReactNode;
|
|
574
|
-
isInvalid?: boolean;
|
|
575
|
-
// (undocumented)
|
|
576
|
-
isOpen?: boolean;
|
|
577
|
-
isSearchable?: boolean;
|
|
578
|
-
label?: string;
|
|
579
|
-
maxMenuWidth?: number | string;
|
|
580
|
-
minMenuWidth?: number | string;
|
|
581
|
-
popperProps?: PopperPropsNoChildren<Modifiers>;
|
|
582
|
-
searchThreshold?: number;
|
|
583
|
-
spacing?: string;
|
|
584
|
-
target?: (options: PopupSelectTriggerProps & {
|
|
585
|
-
isOpen: boolean;
|
|
586
|
-
}) => ReactNode;
|
|
587
|
-
// (undocumented)
|
|
588
|
-
testId?: string;
|
|
589
|
-
// @deprecated (undocumented)
|
|
590
|
-
validationState?: ValidationState;
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
// @public (undocumented)
|
|
594
|
-
interface PopupSelectTriggerProps {
|
|
595
|
-
// (undocumented)
|
|
596
|
-
'aria-controls'?: string;
|
|
597
|
-
// (undocumented)
|
|
598
|
-
'aria-expanded': boolean;
|
|
599
|
-
// (undocumented)
|
|
600
|
-
'aria-haspopup': 'true';
|
|
601
|
-
// (undocumented)
|
|
602
|
-
onKeyDown: KeyboardEventHandler<HTMLElement>;
|
|
603
|
-
// (undocumented)
|
|
604
|
-
ref: any;
|
|
605
|
-
}
|
|
606
|
-
|
|
607
|
-
// @public (undocumented)
|
|
608
|
-
export const RadioOption: FC<OptionProps>;
|
|
609
|
-
|
|
610
|
-
// @public (undocumented)
|
|
611
|
-
export const RadioSelect: React_2.MemoExoticComponent<({ components, ...props }: SelectProps<OptionType>) => JSX.Element>;
|
|
612
|
-
|
|
613
|
-
export { ReactSelectProps }
|
|
614
|
-
|
|
615
|
-
// @public (undocumented)
|
|
616
|
-
export type SelectComponentsConfig<Option, IsMulti extends boolean = false> = SelectComponentsConfig_2<Option, IsMulti, GroupType<Option>>;
|
|
617
|
-
|
|
618
|
-
export { SelectInstance }
|
|
619
|
-
|
|
620
|
-
// @public (undocumented)
|
|
621
|
-
export interface SelectProps<Option, IsMulti extends boolean = false> extends ReactSelectProps<Option, IsMulti>, CustomSelectProps {
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
// @public (undocumented)
|
|
625
|
-
export const SelectWithoutAnalytics: {
|
|
626
|
-
new <Option = OptionType, IsMulti extends boolean = false>(props: SelectProps<Option, IsMulti>): {
|
|
627
|
-
components: Partial<SelectComponents<Option, IsMulti, GroupType<Option>>>;
|
|
628
|
-
select: default_2<unknown, false, GroupType<unknown>> | null;
|
|
629
|
-
UNSAFE_componentWillReceiveProps(nextProps: SelectProps<Option, IsMulti>): void;
|
|
630
|
-
cacheComponents: (components: Partial<SelectComponents<Option, IsMulti, GroupType<Option>>>) => void;
|
|
631
|
-
focus(): void;
|
|
632
|
-
blur(): void;
|
|
633
|
-
onSelectRef: (ref: default_2<unknown, false, GroupType<unknown>>) => void;
|
|
634
|
-
render(): JSX.Element;
|
|
635
|
-
context: any;
|
|
636
|
-
setState<K extends never>(state: ((prevState: Readonly<{}>, props: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >) => Pick<{}, K> | null | {}) | Pick<{}, K> | null | {}, callback?: (() => void) | undefined): void;
|
|
637
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
638
|
-
readonly props: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> > & Readonly<{
|
|
639
|
-
children?: ReactNode;
|
|
640
|
-
}>;
|
|
641
|
-
state: Readonly<{}>;
|
|
642
|
-
refs: {
|
|
643
|
-
[key: string]: ReactInstance;
|
|
644
|
-
};
|
|
645
|
-
componentDidMount?(): void;
|
|
646
|
-
shouldComponentUpdate?(nextProps: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
647
|
-
componentWillUnmount?(): void;
|
|
648
|
-
componentDidCatch?(error: Error, errorInfo: ErrorInfo): void;
|
|
649
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >, prevState: Readonly<{}>): any;
|
|
650
|
-
componentDidUpdate?(prevProps: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >, prevState: Readonly<{}>, snapshot?: any): void;
|
|
651
|
-
componentWillMount?(): void;
|
|
652
|
-
UNSAFE_componentWillMount?(): void;
|
|
653
|
-
componentWillReceiveProps?(nextProps: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >, nextContext: any): void;
|
|
654
|
-
componentWillUpdate?(nextProps: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >, nextState: Readonly<{}>, nextContext: any): void;
|
|
655
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >, nextState: Readonly<{}>, nextContext: any): void;
|
|
656
|
-
};
|
|
657
|
-
defaultProps: {
|
|
658
|
-
validationState: string;
|
|
659
|
-
spacing: string;
|
|
660
|
-
onClickPreventDefault: boolean;
|
|
661
|
-
tabSelectsValue: boolean;
|
|
662
|
-
components: {
|
|
663
|
-
Input: (props: InputProps<unknown, boolean, GroupType<unknown>>) => JSX.Element;
|
|
664
|
-
};
|
|
665
|
-
styles: {};
|
|
666
|
-
};
|
|
667
|
-
contextType?: Context<any> | undefined;
|
|
668
|
-
};
|
|
669
|
-
|
|
670
|
-
export { SingleValueProps }
|
|
671
|
-
|
|
672
|
-
// @public (undocumented)
|
|
673
|
-
interface State<Modifiers = string> {
|
|
674
|
-
focusLockEnabled?: boolean;
|
|
675
|
-
// (undocumented)
|
|
676
|
-
isOpen: boolean;
|
|
677
|
-
// (undocumented)
|
|
678
|
-
mergedComponents: Object;
|
|
679
|
-
// (undocumented)
|
|
680
|
-
mergedPopperProps: PopperPropsNoChildren<Modifiers | defaultModifiers>;
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
// @public (undocumented)
|
|
684
|
-
export type StylesConfig<Option = OptionType, IsMulti extends boolean = false> = StylesConfig_2<Option, IsMulti>;
|
|
685
|
-
|
|
686
|
-
export { useAsync }
|
|
687
|
-
|
|
688
|
-
export { useCreatable }
|
|
689
|
-
|
|
690
|
-
// @public (undocumented)
|
|
691
|
-
export type ValidationState = 'default' | 'error' | 'success';
|
|
692
|
-
|
|
693
|
-
// @public (undocumented)
|
|
694
|
-
export type ValueContainerProps<Option, IsMulti extends boolean = false> = ValueContainerProps_2<Option, IsMulti>;
|
|
695
|
-
|
|
696
|
-
// @public (undocumented)
|
|
697
|
-
export type ValueType<Option, IsMulti extends boolean = false> = OnChangeValue<Option, IsMulti>;
|
|
698
|
-
|
|
699
|
-
// (No @packageDocumentation comment for this package)
|
|
700
|
-
|
|
701
|
-
```
|