@atlaskit/select 16.2.1 → 16.2.3
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/AsyncCreatableSelect/package.json +2 -2
- package/AsyncSelect/package.json +2 -2
- package/CHANGELOG.md +12 -0
- package/CreatableSelect/package.json +2 -2
- package/Select/package.json +2 -2
- package/dist/cjs/Select.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/Select.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/Select.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/CountrySelect.d.ts +1 -1
- package/dist/types/PopupSelect/PopupSelect.d.ts +7 -7
- package/dist/types/extract-react-types/react-popper-props.d.ts +2 -2
- package/dist/types/types.d.ts +13 -13
- package/dist/{types-ts4.0 → types-ts4.5}/CountrySelect.d.ts +1 -1
- package/dist/{types-ts4.0 → types-ts4.5}/PopupSelect/PopupSelect.d.ts +7 -7
- package/dist/{types-ts4.0 → types-ts4.5}/extract-react-types/react-popper-props.d.ts +2 -2
- package/dist/{types-ts4.0 → types-ts4.5}/types.d.ts +13 -13
- package/package.json +12 -4
- /package/dist/{types-ts4.0 → types-ts4.5}/AsyncCreatableSelect.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/AsyncSelect.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/CheckboxSelect.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/CreatableSelect.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/PopupSelect/components.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/PopupSelect/index.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/RadioSelect.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/Select.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/components/index.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/components/indicators.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/components/input-options.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/createSelect.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/data/countries.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/entry-points/async-creatable-select.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/entry-points/async-select.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/entry-points/creatable-select.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/entry-points/select.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/extract-react-types/ert.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/extract-react-types/react-select-async.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/extract-react-types/react-select-creatable.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/extract-react-types/react-select-props.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/index.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/styles.d.ts +0 -0
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"types": "../dist/types/entry-points/async-creatable-select.d.ts",
|
|
8
8
|
"typesVersions": {
|
|
9
|
-
">=4.
|
|
9
|
+
">=4.5 <4.9": {
|
|
10
10
|
"*": [
|
|
11
|
-
"../dist/types-ts4.
|
|
11
|
+
"../dist/types-ts4.5/entry-points/async-creatable-select.d.ts"
|
|
12
12
|
]
|
|
13
13
|
}
|
|
14
14
|
}
|
package/AsyncSelect/package.json
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"types": "../dist/types/entry-points/async-select.d.ts",
|
|
8
8
|
"typesVersions": {
|
|
9
|
-
">=4.
|
|
9
|
+
">=4.5 <4.9": {
|
|
10
10
|
"*": [
|
|
11
|
-
"../dist/types-ts4.
|
|
11
|
+
"../dist/types-ts4.5/entry-points/async-select.d.ts"
|
|
12
12
|
]
|
|
13
13
|
}
|
|
14
14
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/select
|
|
2
2
|
|
|
3
|
+
## 16.2.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
8
|
+
|
|
9
|
+
## 16.2.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
14
|
+
|
|
3
15
|
## 16.2.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"types": "../dist/types/entry-points/creatable-select.d.ts",
|
|
8
8
|
"typesVersions": {
|
|
9
|
-
">=4.
|
|
9
|
+
">=4.5 <4.9": {
|
|
10
10
|
"*": [
|
|
11
|
-
"../dist/types-ts4.
|
|
11
|
+
"../dist/types-ts4.5/entry-points/creatable-select.d.ts"
|
|
12
12
|
]
|
|
13
13
|
}
|
|
14
14
|
}
|
package/Select/package.json
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"types": "../dist/types/entry-points/select.d.ts",
|
|
8
8
|
"typesVersions": {
|
|
9
|
-
">=4.
|
|
9
|
+
">=4.5 <4.9": {
|
|
10
10
|
"*": [
|
|
11
|
-
"../dist/types-ts4.
|
|
11
|
+
"../dist/types-ts4.5/entry-points/select.d.ts"
|
|
12
12
|
]
|
|
13
13
|
}
|
|
14
14
|
}
|
package/dist/cjs/Select.js
CHANGED
|
@@ -9,7 +9,7 @@ var _reactSelect = _interopRequireDefault(require("react-select"));
|
|
|
9
9
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
10
10
|
var _createSelect = _interopRequireDefault(require("./createSelect"));
|
|
11
11
|
var packageName = "@atlaskit/select";
|
|
12
|
-
var packageVersion = "16.2.
|
|
12
|
+
var packageVersion = "16.2.3";
|
|
13
13
|
var SelectWithoutAnalytics = (0, _createSelect.default)(_reactSelect.default);
|
|
14
14
|
exports.SelectWithoutAnalytics = SelectWithoutAnalytics;
|
|
15
15
|
var createAndFireEventOnAtlaskit = (0, _analyticsNext.createAndFireEvent)('atlaskit');
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/Select.js
CHANGED
|
@@ -2,7 +2,7 @@ import Select from 'react-select';
|
|
|
2
2
|
import { withAnalyticsEvents, withAnalyticsContext, createAndFireEvent } from '@atlaskit/analytics-next';
|
|
3
3
|
import createSelect from './createSelect';
|
|
4
4
|
const packageName = "@atlaskit/select";
|
|
5
|
-
const packageVersion = "16.2.
|
|
5
|
+
const packageVersion = "16.2.3";
|
|
6
6
|
export const SelectWithoutAnalytics = createSelect(Select);
|
|
7
7
|
const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
8
8
|
export default withAnalyticsContext({
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/Select.js
CHANGED
|
@@ -2,7 +2,7 @@ import Select from 'react-select';
|
|
|
2
2
|
import { withAnalyticsEvents, withAnalyticsContext, createAndFireEvent } from '@atlaskit/analytics-next';
|
|
3
3
|
import createSelect from './createSelect';
|
|
4
4
|
var packageName = "@atlaskit/select";
|
|
5
|
-
var packageVersion = "16.2.
|
|
5
|
+
var packageVersion = "16.2.3";
|
|
6
6
|
export var SelectWithoutAnalytics = createSelect(Select);
|
|
7
7
|
var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
8
8
|
export default withAnalyticsContext({
|
package/dist/esm/version.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
2
|
import { groupedCountries } from './data/countries';
|
|
3
3
|
import { SelectProps } from './types';
|
|
4
|
-
|
|
4
|
+
type Country = (typeof groupedCountries)[number]['options'][number];
|
|
5
5
|
declare const CountrySelect: (props: SelectProps<Country>) => jsx.JSX.Element;
|
|
6
6
|
export default CountrySelect;
|
|
@@ -3,15 +3,15 @@ import BaseSelect from 'react-select/base';
|
|
|
3
3
|
import { PopperProps } from 'react-popper';
|
|
4
4
|
import { OptionType, ActionMeta, ReactSelectProps, StylesConfig, ValueType, ValidationState } from '../types';
|
|
5
5
|
import { UnbindFn } from 'bind-event-listener';
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
type defaultModifiers = 'offset' | 'preventOverflow';
|
|
7
|
+
type PopperPropsNoChildren<Modifiers> = Omit<PopperProps<Modifiers>, 'children'>;
|
|
8
8
|
interface PopupSelectTriggerProps {
|
|
9
9
|
ref: any;
|
|
10
10
|
'aria-haspopup': 'true';
|
|
11
11
|
'aria-expanded': boolean;
|
|
12
12
|
'aria-controls'?: string;
|
|
13
13
|
}
|
|
14
|
-
export
|
|
14
|
+
export type ModifierList = 'offset' | 'computeStyles' | 'preventOverflow' | 'handleFlipStyle' | 'flip' | 'popperOffsets' | 'arrow' | 'hide' | 'eventListeners' | 'applyStyles';
|
|
15
15
|
export interface PopupSelectProps<Option = OptionType, IsMulti extends boolean = false, Modifiers = ModifierList> extends ReactSelectProps<Option, IsMulti> {
|
|
16
16
|
/**
|
|
17
17
|
* Defines whether the menu should close when selected. Defaults to "true"
|
|
@@ -125,16 +125,16 @@ export default class PopupSelect<Option = OptionType, IsMulti extends boolean =
|
|
|
125
125
|
* @param options.controlOverride - Force the popup to open when it's open state is being controlled
|
|
126
126
|
*/
|
|
127
127
|
open: (options?: {
|
|
128
|
-
controlOverride?: boolean
|
|
129
|
-
}
|
|
128
|
+
controlOverride?: boolean;
|
|
129
|
+
}) => void;
|
|
130
130
|
/**
|
|
131
131
|
* Closes the popup
|
|
132
132
|
*
|
|
133
133
|
* @param options.controlOverride - Force the popup to close when it's open state is being controlled
|
|
134
134
|
*/
|
|
135
135
|
close: (options?: {
|
|
136
|
-
controlOverride?: boolean
|
|
137
|
-
}
|
|
136
|
+
controlOverride?: boolean;
|
|
137
|
+
}) => void;
|
|
138
138
|
resolveTargetRef: (popperRef: React.Ref<HTMLElement>) => (ref: HTMLElement) => void;
|
|
139
139
|
resolveMenuRef: (popperRef: React.Ref<HTMLElement>) => (ref: HTMLElement) => void;
|
|
140
140
|
getSelectRef: (ref: BaseSelect<Option, IsMulti>) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Modifier, Options } from '@popperjs/core';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
type Placement = 'auto' | 'auto-start' | 'auto-end' | 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'right' | 'right-start' | 'right-end' | 'left' | 'left-start' | 'left-end';
|
|
4
|
+
type Strategy = 'absolute' | 'fixed';
|
|
5
5
|
interface NativeReactPopperProps<Name = unknown> {
|
|
6
6
|
/** Function `(?HTMLElement) => void` that can be used to obtain popper reference */
|
|
7
7
|
innerRef?: React.Ref<any>;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -3,13 +3,13 @@ import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
|
3
3
|
import { SelectInstance, Props as ReactSelectProps, FormatOptionLabelMeta, OnChangeValue as RSValueType, ActionMeta as RSActionMeta, GroupBase as GroupType, Options as RSOptionsType, SelectComponentsConfig as RSSelectComponentsConfig, StylesConfig as RSStylesConfig, InputActionMeta, ClearIndicatorProps, DropdownIndicatorProps, IndicatorSeparatorProps, LoadingIndicatorProps, NoticeProps, ControlProps as RSControlProps, GroupProps as RSGroupProps, InputProps, MenuProps as RSMenuProps, MenuListProps as RSMenuListComponentProps, MultiValueProps, OptionProps as ReactSelectOptionProps, PlaceholderProps as RSPlaceholderProps, SingleValueProps, ValueContainerProps as RSValueContainerProps, MultiValueRemoveProps } from 'react-select';
|
|
4
4
|
import { AsyncProps } from 'react-select/async';
|
|
5
5
|
import { CreatableProps } from 'react-select/creatable';
|
|
6
|
-
export
|
|
6
|
+
export type ValidationState = 'default' | 'error' | 'success';
|
|
7
7
|
export interface OptionType {
|
|
8
8
|
[key: string]: any;
|
|
9
9
|
label: string;
|
|
10
10
|
value: string | number;
|
|
11
11
|
}
|
|
12
|
-
export
|
|
12
|
+
export type OptionsType<Option = OptionType> = RSOptionsType<Option>;
|
|
13
13
|
export interface OptionProps<Option = OptionType, IsMulti extends boolean = false> extends ReactSelectOptionProps<Option, IsMulti> {
|
|
14
14
|
[key: string]: any;
|
|
15
15
|
Icon?: React.ComponentType<{
|
|
@@ -41,17 +41,17 @@ export interface AsyncSelectProps<Option, IsMulti extends boolean = false> exten
|
|
|
41
41
|
}
|
|
42
42
|
export interface CreatableSelectProps<Option, IsMulti extends boolean = false> extends CreatableProps<Option, IsMulti, GroupType<Option>>, CustomSelectProps {
|
|
43
43
|
}
|
|
44
|
-
export
|
|
45
|
-
export
|
|
46
|
-
export
|
|
47
|
-
export
|
|
48
|
-
export
|
|
49
|
-
export
|
|
50
|
-
export
|
|
51
|
-
export
|
|
52
|
-
export
|
|
53
|
-
export
|
|
54
|
-
export
|
|
44
|
+
export type ActionMeta<Option = OptionType> = RSActionMeta<Option>;
|
|
45
|
+
export type ControlProps<Option, IsMulti extends boolean = false> = RSControlProps<Option, IsMulti>;
|
|
46
|
+
export type ValueType<Option, IsMulti extends boolean = false> = RSValueType<Option, IsMulti>;
|
|
47
|
+
export type StylesConfig<Option = OptionType, IsMulti extends boolean = false> = RSStylesConfig<Option, IsMulti>;
|
|
48
|
+
export type SelectComponentsConfig<Option, IsMulti extends boolean = false> = RSSelectComponentsConfig<Option, IsMulti, GroupType<Option>>;
|
|
49
|
+
export type GroupProps<Option, IsMulti extends boolean = false> = RSGroupProps<Option, IsMulti>;
|
|
50
|
+
export type MenuProps<Option, IsMulti extends boolean = false> = RSMenuProps<Option, IsMulti>;
|
|
51
|
+
export type MenuListComponentProps<Option, IsMulti extends boolean = false> = RSMenuListComponentProps<Option, IsMulti>;
|
|
52
|
+
export type PlaceholderProps<Option, IsMulti extends boolean = false> = RSPlaceholderProps<Option, IsMulti>;
|
|
53
|
+
export type ValueContainerProps<Option, IsMulti extends boolean = false> = RSValueContainerProps<Option, IsMulti>;
|
|
54
|
+
export type GroupedOptionsType<Option> = ReadonlyArray<GroupType<Option>>;
|
|
55
55
|
export type { SelectInstance, FormatOptionLabelMeta, InputActionMeta, GroupType, InputProps, MultiValueProps, ReactSelectProps, SingleValueProps, ClearIndicatorProps, DropdownIndicatorProps, IndicatorSeparatorProps, LoadingIndicatorProps, NoticeProps, MultiValueRemoveProps, };
|
|
56
56
|
declare module 'react-select/dist/declarations/src/Select' {
|
|
57
57
|
interface Props<Option, IsMulti extends boolean, Group extends GroupType<Option>> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
2
|
import { groupedCountries } from './data/countries';
|
|
3
3
|
import { SelectProps } from './types';
|
|
4
|
-
|
|
4
|
+
type Country = (typeof groupedCountries)[number]['options'][number];
|
|
5
5
|
declare const CountrySelect: (props: SelectProps<Country>) => jsx.JSX.Element;
|
|
6
6
|
export default CountrySelect;
|
|
@@ -3,15 +3,15 @@ import BaseSelect from 'react-select/base';
|
|
|
3
3
|
import { PopperProps } from 'react-popper';
|
|
4
4
|
import { OptionType, ActionMeta, ReactSelectProps, StylesConfig, ValueType, ValidationState } from '../types';
|
|
5
5
|
import { UnbindFn } from 'bind-event-listener';
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
type defaultModifiers = 'offset' | 'preventOverflow';
|
|
7
|
+
type PopperPropsNoChildren<Modifiers> = Omit<PopperProps<Modifiers>, 'children'>;
|
|
8
8
|
interface PopupSelectTriggerProps {
|
|
9
9
|
ref: any;
|
|
10
10
|
'aria-haspopup': 'true';
|
|
11
11
|
'aria-expanded': boolean;
|
|
12
12
|
'aria-controls'?: string;
|
|
13
13
|
}
|
|
14
|
-
export
|
|
14
|
+
export type ModifierList = 'offset' | 'computeStyles' | 'preventOverflow' | 'handleFlipStyle' | 'flip' | 'popperOffsets' | 'arrow' | 'hide' | 'eventListeners' | 'applyStyles';
|
|
15
15
|
export interface PopupSelectProps<Option = OptionType, IsMulti extends boolean = false, Modifiers = ModifierList> extends ReactSelectProps<Option, IsMulti> {
|
|
16
16
|
/**
|
|
17
17
|
* Defines whether the menu should close when selected. Defaults to "true"
|
|
@@ -125,16 +125,16 @@ export default class PopupSelect<Option = OptionType, IsMulti extends boolean =
|
|
|
125
125
|
* @param options.controlOverride - Force the popup to open when it's open state is being controlled
|
|
126
126
|
*/
|
|
127
127
|
open: (options?: {
|
|
128
|
-
controlOverride?: boolean
|
|
129
|
-
}
|
|
128
|
+
controlOverride?: boolean;
|
|
129
|
+
}) => void;
|
|
130
130
|
/**
|
|
131
131
|
* Closes the popup
|
|
132
132
|
*
|
|
133
133
|
* @param options.controlOverride - Force the popup to close when it's open state is being controlled
|
|
134
134
|
*/
|
|
135
135
|
close: (options?: {
|
|
136
|
-
controlOverride?: boolean
|
|
137
|
-
}
|
|
136
|
+
controlOverride?: boolean;
|
|
137
|
+
}) => void;
|
|
138
138
|
resolveTargetRef: (popperRef: React.Ref<HTMLElement>) => (ref: HTMLElement) => void;
|
|
139
139
|
resolveMenuRef: (popperRef: React.Ref<HTMLElement>) => (ref: HTMLElement) => void;
|
|
140
140
|
getSelectRef: (ref: BaseSelect<Option, IsMulti>) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Modifier, Options } from '@popperjs/core';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
type Placement = 'auto' | 'auto-start' | 'auto-end' | 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'right' | 'right-start' | 'right-end' | 'left' | 'left-start' | 'left-end';
|
|
4
|
+
type Strategy = 'absolute' | 'fixed';
|
|
5
5
|
interface NativeReactPopperProps<Name = unknown> {
|
|
6
6
|
/** Function `(?HTMLElement) => void` that can be used to obtain popper reference */
|
|
7
7
|
innerRef?: React.Ref<any>;
|
|
@@ -3,13 +3,13 @@ import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
|
3
3
|
import { SelectInstance, Props as ReactSelectProps, FormatOptionLabelMeta, OnChangeValue as RSValueType, ActionMeta as RSActionMeta, GroupBase as GroupType, Options as RSOptionsType, SelectComponentsConfig as RSSelectComponentsConfig, StylesConfig as RSStylesConfig, InputActionMeta, ClearIndicatorProps, DropdownIndicatorProps, IndicatorSeparatorProps, LoadingIndicatorProps, NoticeProps, ControlProps as RSControlProps, GroupProps as RSGroupProps, InputProps, MenuProps as RSMenuProps, MenuListProps as RSMenuListComponentProps, MultiValueProps, OptionProps as ReactSelectOptionProps, PlaceholderProps as RSPlaceholderProps, SingleValueProps, ValueContainerProps as RSValueContainerProps, MultiValueRemoveProps } from 'react-select';
|
|
4
4
|
import { AsyncProps } from 'react-select/async';
|
|
5
5
|
import { CreatableProps } from 'react-select/creatable';
|
|
6
|
-
export
|
|
6
|
+
export type ValidationState = 'default' | 'error' | 'success';
|
|
7
7
|
export interface OptionType {
|
|
8
8
|
[key: string]: any;
|
|
9
9
|
label: string;
|
|
10
10
|
value: string | number;
|
|
11
11
|
}
|
|
12
|
-
export
|
|
12
|
+
export type OptionsType<Option = OptionType> = RSOptionsType<Option>;
|
|
13
13
|
export interface OptionProps<Option = OptionType, IsMulti extends boolean = false> extends ReactSelectOptionProps<Option, IsMulti> {
|
|
14
14
|
[key: string]: any;
|
|
15
15
|
Icon?: React.ComponentType<{
|
|
@@ -41,17 +41,17 @@ export interface AsyncSelectProps<Option, IsMulti extends boolean = false> exten
|
|
|
41
41
|
}
|
|
42
42
|
export interface CreatableSelectProps<Option, IsMulti extends boolean = false> extends CreatableProps<Option, IsMulti, GroupType<Option>>, CustomSelectProps {
|
|
43
43
|
}
|
|
44
|
-
export
|
|
45
|
-
export
|
|
46
|
-
export
|
|
47
|
-
export
|
|
48
|
-
export
|
|
49
|
-
export
|
|
50
|
-
export
|
|
51
|
-
export
|
|
52
|
-
export
|
|
53
|
-
export
|
|
54
|
-
export
|
|
44
|
+
export type ActionMeta<Option = OptionType> = RSActionMeta<Option>;
|
|
45
|
+
export type ControlProps<Option, IsMulti extends boolean = false> = RSControlProps<Option, IsMulti>;
|
|
46
|
+
export type ValueType<Option, IsMulti extends boolean = false> = RSValueType<Option, IsMulti>;
|
|
47
|
+
export type StylesConfig<Option = OptionType, IsMulti extends boolean = false> = RSStylesConfig<Option, IsMulti>;
|
|
48
|
+
export type SelectComponentsConfig<Option, IsMulti extends boolean = false> = RSSelectComponentsConfig<Option, IsMulti, GroupType<Option>>;
|
|
49
|
+
export type GroupProps<Option, IsMulti extends boolean = false> = RSGroupProps<Option, IsMulti>;
|
|
50
|
+
export type MenuProps<Option, IsMulti extends boolean = false> = RSMenuProps<Option, IsMulti>;
|
|
51
|
+
export type MenuListComponentProps<Option, IsMulti extends boolean = false> = RSMenuListComponentProps<Option, IsMulti>;
|
|
52
|
+
export type PlaceholderProps<Option, IsMulti extends boolean = false> = RSPlaceholderProps<Option, IsMulti>;
|
|
53
|
+
export type ValueContainerProps<Option, IsMulti extends boolean = false> = RSValueContainerProps<Option, IsMulti>;
|
|
54
|
+
export type GroupedOptionsType<Option> = ReadonlyArray<GroupType<Option>>;
|
|
55
55
|
export type { SelectInstance, FormatOptionLabelMeta, InputActionMeta, GroupType, InputProps, MultiValueProps, ReactSelectProps, SingleValueProps, ClearIndicatorProps, DropdownIndicatorProps, IndicatorSeparatorProps, LoadingIndicatorProps, NoticeProps, MultiValueRemoveProps, };
|
|
56
56
|
declare module 'react-select/dist/declarations/src/Select' {
|
|
57
57
|
interface Props<Option, IsMulti extends boolean, Group extends GroupType<Option>> {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/select",
|
|
3
|
-
"version": "16.2.
|
|
3
|
+
"version": "16.2.3",
|
|
4
4
|
"description": "Select allows users to make a single selection or multiple selections from a list of options.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -12,6 +12,14 @@
|
|
|
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.5 <4.9": {
|
|
17
|
+
"*": [
|
|
18
|
+
"dist/types-ts4.5/*",
|
|
19
|
+
"dist/types-ts4.5/index.d.ts"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
15
23
|
"sideEffects": false,
|
|
16
24
|
"atlaskit:src": "src/index.tsx",
|
|
17
25
|
"atlassian": {
|
|
@@ -34,7 +42,7 @@
|
|
|
34
42
|
"@atlaskit/icon": "^21.12.0",
|
|
35
43
|
"@atlaskit/spinner": "^15.5.0",
|
|
36
44
|
"@atlaskit/theme": "^12.5.0",
|
|
37
|
-
"@atlaskit/tokens": "^1.
|
|
45
|
+
"@atlaskit/tokens": "^1.4.0",
|
|
38
46
|
"@atlaskit/visually-hidden": "^1.2.0",
|
|
39
47
|
"@babel/runtime": "^7.0.0",
|
|
40
48
|
"@emotion/react": "^11.7.1",
|
|
@@ -55,7 +63,7 @@
|
|
|
55
63
|
},
|
|
56
64
|
"devDependencies": {
|
|
57
65
|
"@atlaskit/button": "^16.7.0",
|
|
58
|
-
"@atlaskit/checkbox": "^12.
|
|
66
|
+
"@atlaskit/checkbox": "^12.6.0",
|
|
59
67
|
"@atlaskit/docs": "*",
|
|
60
68
|
"@atlaskit/drawer": "^7.5.0",
|
|
61
69
|
"@atlaskit/form": "^8.11.0",
|
|
@@ -75,7 +83,7 @@
|
|
|
75
83
|
"jscodeshift": "^0.13.0",
|
|
76
84
|
"react-dom": "^16.8.0",
|
|
77
85
|
"react-value": "^0.2.0",
|
|
78
|
-
"typescript": "4.
|
|
86
|
+
"typescript": "~4.9.5",
|
|
79
87
|
"wait-for-expect": "^1.2.0"
|
|
80
88
|
},
|
|
81
89
|
"techstack": {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|