@atlaskit/select 16.0.0 → 16.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 +14 -0
- package/dist/cjs/PopupSelect/PopupSelect.js +3 -3
- package/dist/cjs/Select.js +1 -1
- package/dist/cjs/components/index.js +2 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/PopupSelect/PopupSelect.js +3 -3
- package/dist/es2019/Select.js +1 -1
- package/dist/es2019/components/index.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/PopupSelect/PopupSelect.js +3 -3
- package/dist/esm/Select.js +1 -1
- package/dist/esm/components/index.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/components/index.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/types.d.ts +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/select
|
|
2
2
|
|
|
3
|
+
## 16.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 16.0.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`e7046ed0fb1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e7046ed0fb1) - - Add MultiValueRemoveProps to export
|
|
14
|
+
- Add SelectInstance for export
|
|
15
|
+
- Revert the onOpen and onClose logic in PopupSelect
|
|
16
|
+
|
|
3
17
|
## 16.0.0
|
|
4
18
|
|
|
5
19
|
### Major Changes
|
|
@@ -233,15 +233,15 @@ var PopupSelect = /*#__PURE__*/function (_PureComponent) {
|
|
|
233
233
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "close", function (options) {
|
|
234
234
|
var _this$unbindWindowKey, _this2;
|
|
235
235
|
|
|
236
|
-
var
|
|
236
|
+
var onClose = _this.props.onClose;
|
|
237
237
|
|
|
238
238
|
if (!(options !== null && options !== void 0 && options.controlOverride) && _this.isOpenControlled) {
|
|
239
239
|
// Prevent popup closing if it's open state is already being controlled
|
|
240
240
|
return;
|
|
241
241
|
}
|
|
242
242
|
|
|
243
|
-
if (
|
|
244
|
-
|
|
243
|
+
if (onClose) {
|
|
244
|
+
onClose();
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
_this.setState({
|
package/dist/cjs/Select.js
CHANGED
|
@@ -14,7 +14,7 @@ var _analyticsNext = require("@atlaskit/analytics-next");
|
|
|
14
14
|
var _createSelect = _interopRequireDefault(require("./createSelect"));
|
|
15
15
|
|
|
16
16
|
var packageName = "@atlaskit/select";
|
|
17
|
-
var packageVersion = "16.0.
|
|
17
|
+
var packageVersion = "16.0.2";
|
|
18
18
|
var SelectWithoutAnalytics = (0, _createSelect.default)(_reactSelect.default);
|
|
19
19
|
exports.SelectWithoutAnalytics = SelectWithoutAnalytics;
|
|
20
20
|
var createAndFireEventOnAtlaskit = (0, _analyticsNext.createAndFireEvent)('atlaskit');
|
|
@@ -30,10 +30,10 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
|
30
30
|
|
|
31
31
|
var _react = require("@emotion/react");
|
|
32
32
|
|
|
33
|
-
var _reactSelect = require("react-select");
|
|
34
|
-
|
|
35
33
|
var _selectClear = _interopRequireDefault(require("@atlaskit/icon/glyph/select-clear"));
|
|
36
34
|
|
|
35
|
+
var _reactSelect = require("react-select");
|
|
36
|
+
|
|
37
37
|
var _indicators = require("./indicators");
|
|
38
38
|
|
|
39
39
|
var _templateObject, _templateObject2;
|
package/dist/cjs/version.json
CHANGED
|
@@ -185,7 +185,7 @@ export default class PopupSelect extends PureComponent {
|
|
|
185
185
|
var _this$unbindWindowKey;
|
|
186
186
|
|
|
187
187
|
const {
|
|
188
|
-
|
|
188
|
+
onClose
|
|
189
189
|
} = this.props;
|
|
190
190
|
|
|
191
191
|
if (!(options !== null && options !== void 0 && options.controlOverride) && this.isOpenControlled) {
|
|
@@ -193,8 +193,8 @@ export default class PopupSelect extends PureComponent {
|
|
|
193
193
|
return;
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
if (
|
|
197
|
-
|
|
196
|
+
if (onClose) {
|
|
197
|
+
onClose();
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
this.setState({
|
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.0.
|
|
5
|
+
const packageVersion = "16.0.2";
|
|
6
6
|
export const SelectWithoutAnalytics = createSelect(Select);
|
|
7
7
|
const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
8
8
|
export default withAnalyticsContext({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx, css } from '@emotion/react';
|
|
3
|
-
import { components } from 'react-select';
|
|
4
3
|
import SelectClearIcon from '@atlaskit/icon/glyph/select-clear';
|
|
4
|
+
import { components } from 'react-select';
|
|
5
5
|
export { ClearIndicator, DropdownIndicator, LoadingIndicator } from './indicators';
|
|
6
6
|
const disabledProps = css`
|
|
7
7
|
display: none;
|
package/dist/es2019/version.json
CHANGED
|
@@ -214,15 +214,15 @@ var PopupSelect = /*#__PURE__*/function (_PureComponent) {
|
|
|
214
214
|
_defineProperty(_assertThisInitialized(_this), "close", function (options) {
|
|
215
215
|
var _this$unbindWindowKey, _this2;
|
|
216
216
|
|
|
217
|
-
var
|
|
217
|
+
var onClose = _this.props.onClose;
|
|
218
218
|
|
|
219
219
|
if (!(options !== null && options !== void 0 && options.controlOverride) && _this.isOpenControlled) {
|
|
220
220
|
// Prevent popup closing if it's open state is already being controlled
|
|
221
221
|
return;
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
if (
|
|
225
|
-
|
|
224
|
+
if (onClose) {
|
|
225
|
+
onClose();
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
_this.setState({
|
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.0.
|
|
5
|
+
var packageVersion = "16.0.2";
|
|
6
6
|
export var SelectWithoutAnalytics = createSelect(Select);
|
|
7
7
|
var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
8
8
|
export default withAnalyticsContext({
|
|
@@ -4,8 +4,8 @@ var _templateObject, _templateObject2;
|
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import { jsx, css } from '@emotion/react';
|
|
7
|
-
import { components } from 'react-select';
|
|
8
7
|
import SelectClearIcon from '@atlaskit/icon/glyph/select-clear';
|
|
8
|
+
import { components } from 'react-select';
|
|
9
9
|
export { ClearIndicator, DropdownIndicator, LoadingIndicator } from './indicators';
|
|
10
10
|
var disabledProps = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: none;\n"])));
|
|
11
11
|
var enabledProps = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: inherit;\n"])));
|
package/dist/esm/version.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { MultiValueRemoveProps } from '
|
|
3
|
+
import { MultiValueRemoveProps } from '../types';
|
|
4
4
|
export { ClearIndicator, DropdownIndicator, LoadingIndicator, } from './indicators';
|
|
5
5
|
export declare const MultiValueRemove: (props: MultiValueRemoveProps<any>) => jsx.JSX.Element;
|
|
6
6
|
export declare const IndicatorSeparator: null;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export { default as CountrySelect } from './CountrySelect';
|
|
|
11
11
|
export { default as RadioSelect } from './RadioSelect';
|
|
12
12
|
export { default as PopupSelect } from './PopupSelect';
|
|
13
13
|
export type { PopupSelectProps, ModifierList } from './PopupSelect';
|
|
14
|
-
export type { ActionMeta, ControlProps, FormatOptionLabelMeta, InputActionMeta, InputProps, MenuProps, MenuListComponentProps, OptionProps, OptionsType, OptionType, SelectComponentsConfig, SelectProps, StylesConfig, ValueContainerProps, ValueType, GroupedOptionsType, GroupType, ClearIndicatorProps, DropdownIndicatorProps, IndicatorSeparatorProps, LoadingIndicatorProps, MultiValueProps, ReactSelectProps, SingleValueProps, NoticeProps, ValidationState, GroupProps, AsyncSelectProps, } from './types';
|
|
14
|
+
export type { SelectInstance, ActionMeta, ControlProps, FormatOptionLabelMeta, InputActionMeta, InputProps, MenuProps, MenuListComponentProps, OptionProps, OptionsType, OptionType, SelectComponentsConfig, SelectProps, StylesConfig, ValueContainerProps, ValueType, GroupedOptionsType, GroupType, ClearIndicatorProps, DropdownIndicatorProps, IndicatorSeparatorProps, LoadingIndicatorProps, MultiValueProps, ReactSelectProps, SingleValueProps, NoticeProps, ValidationState, GroupProps, AsyncSelectProps, } from './types';
|
|
15
15
|
/**
|
|
16
16
|
* Types not exported on the public API, didn't find usages in sourcegraph
|
|
17
17
|
*
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
|
-
import { 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 } from 'react-select';
|
|
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
6
|
export declare type ValidationState = 'default' | 'error' | 'success';
|
|
@@ -52,7 +52,7 @@ export declare type MenuListComponentProps<Option, IsMulti extends boolean = fal
|
|
|
52
52
|
export declare type PlaceholderProps<Option, IsMulti extends boolean = false> = RSPlaceholderProps<Option, IsMulti>;
|
|
53
53
|
export declare type ValueContainerProps<Option, IsMulti extends boolean = false> = RSValueContainerProps<Option, IsMulti>;
|
|
54
54
|
export declare type GroupedOptionsType<Option> = ReadonlyArray<GroupType<Option>>;
|
|
55
|
-
export type { FormatOptionLabelMeta, InputActionMeta, GroupType, InputProps, MultiValueProps, ReactSelectProps, SingleValueProps, ClearIndicatorProps, DropdownIndicatorProps, IndicatorSeparatorProps, LoadingIndicatorProps, NoticeProps, };
|
|
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>> {
|
|
58
58
|
[key: string]: any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/select",
|
|
3
|
-
"version": "16.0.
|
|
3
|
+
"version": "16.0.2",
|
|
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/"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@atlaskit/icon": "^21.11.0",
|
|
36
36
|
"@atlaskit/spinner": "^15.3.0",
|
|
37
37
|
"@atlaskit/theme": "^12.2.0",
|
|
38
|
-
"@atlaskit/tokens": "^0.
|
|
38
|
+
"@atlaskit/tokens": "^0.12.0",
|
|
39
39
|
"@atlaskit/visually-hidden": "^1.1.0",
|
|
40
40
|
"@babel/runtime": "^7.0.0",
|
|
41
41
|
"@emotion/react": "^11.7.1",
|