@atlaskit/select 17.10.1 → 17.10.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/CHANGELOG.md +14 -0
- package/dist/cjs/Select.js +1 -1
- package/dist/cjs/components/no-options.js +15 -0
- package/dist/cjs/createSelect.js +3 -1
- package/dist/es2019/Select.js +1 -1
- package/dist/es2019/components/no-options.js +8 -0
- package/dist/es2019/createSelect.js +2 -0
- package/dist/esm/Select.js +1 -1
- package/dist/esm/components/no-options.js +8 -0
- package/dist/esm/createSelect.js +3 -1
- package/dist/types/components/no-options.d.ts +3 -0
- package/dist/types-ts4.5/components/no-options.d.ts +3 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/select
|
|
2
2
|
|
|
3
|
+
## 17.10.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 17.10.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#101221](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101221)
|
|
14
|
+
[`9e50bb672a7f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9e50bb672a7f) -
|
|
15
|
+
Add the `aria-describedby` to `Select` component if we do not have options.
|
|
16
|
+
|
|
3
17
|
## 17.10.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
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 = "17.10.
|
|
12
|
+
var packageVersion = "17.10.3";
|
|
13
13
|
var SelectWithoutAnalytics = exports.SelectWithoutAnalytics = (0, _createSelect.default)(_reactSelect.default);
|
|
14
14
|
var createAndFireEventOnAtlaskit = (0, _analyticsNext.createAndFireEvent)('atlaskit');
|
|
15
15
|
var Select = (0, _analyticsNext.withAnalyticsContext)({
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.NoOptionsMessage = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _reactSelect = require("react-select");
|
|
10
|
+
var NoOptionsMessage = exports.NoOptionsMessage = function NoOptionsMessage(props) {
|
|
11
|
+
return /*#__PURE__*/_react.default.createElement(_reactSelect.components.NoOptionsMessage, props, /*#__PURE__*/_react.default.createElement("span", {
|
|
12
|
+
id: "no-options",
|
|
13
|
+
role: "alert"
|
|
14
|
+
}, props.children || "No options"));
|
|
15
|
+
};
|
package/dist/cjs/createSelect.js
CHANGED
|
@@ -12,6 +12,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _reactSelect = require("react-select");
|
|
14
14
|
var _inputAriaDescribedby = require("./components/input-aria-describedby");
|
|
15
|
+
var _noOptions = require("./components/no-options");
|
|
15
16
|
var _components = require("./components");
|
|
16
17
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
17
18
|
var _groupedOptionsAnnouncement = require("./utils/grouped-options-announcement");
|
|
@@ -45,7 +46,8 @@ function createSelect(WrappedComponent) {
|
|
|
45
46
|
LoadingIndicator: _components.LoadingIndicator,
|
|
46
47
|
MultiValueRemove: _components.MultiValueRemove,
|
|
47
48
|
IndicatorSeparator: _components.IndicatorSeparator,
|
|
48
|
-
Input: _inputAriaDescribedby.Input
|
|
49
|
+
Input: _inputAriaDescribedby.Input,
|
|
50
|
+
NoOptionsMessage: _noOptions.NoOptionsMessage
|
|
49
51
|
}, componentsProp);
|
|
50
52
|
}, [componentsProp]);
|
|
51
53
|
var descriptionId = props['aria-describedby'];
|
package/dist/es2019/Select.js
CHANGED
|
@@ -2,7 +2,7 @@ import ReactSelect 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 = "17.10.
|
|
5
|
+
const packageVersion = "17.10.3";
|
|
6
6
|
export const SelectWithoutAnalytics = createSelect(ReactSelect);
|
|
7
7
|
const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
8
8
|
const Select = withAnalyticsContext({
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { components } from 'react-select';
|
|
3
|
+
export const NoOptionsMessage = props => {
|
|
4
|
+
return /*#__PURE__*/React.createElement(components.NoOptionsMessage, props, /*#__PURE__*/React.createElement("span", {
|
|
5
|
+
id: "no-options",
|
|
6
|
+
role: "alert"
|
|
7
|
+
}, props.children || `No options`));
|
|
8
|
+
};
|
|
@@ -2,6 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { useRef, useEffect, useMemo, forwardRef, useImperativeHandle } from 'react';
|
|
3
3
|
import { mergeStyles } from 'react-select';
|
|
4
4
|
import { Input } from './components/input-aria-describedby';
|
|
5
|
+
import { NoOptionsMessage } from './components/no-options';
|
|
5
6
|
import { ClearIndicator, DropdownIndicator, LoadingIndicator, MultiValueRemove, IndicatorSeparator } from './components';
|
|
6
7
|
import baseStyles from './styles';
|
|
7
8
|
import { onFocus, isOptionsGrouped } from './utils/grouped-options-announcement';
|
|
@@ -28,6 +29,7 @@ export default function createSelect(WrappedComponent) {
|
|
|
28
29
|
MultiValueRemove,
|
|
29
30
|
IndicatorSeparator,
|
|
30
31
|
Input,
|
|
32
|
+
NoOptionsMessage,
|
|
31
33
|
...componentsProp
|
|
32
34
|
}), [componentsProp]);
|
|
33
35
|
const descriptionId = props['aria-describedby'];
|
package/dist/esm/Select.js
CHANGED
|
@@ -2,7 +2,7 @@ import ReactSelect 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 = "17.10.
|
|
5
|
+
var packageVersion = "17.10.3";
|
|
6
6
|
export var SelectWithoutAnalytics = createSelect(ReactSelect);
|
|
7
7
|
var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
8
8
|
var Select = withAnalyticsContext({
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { components } from 'react-select';
|
|
3
|
+
export var NoOptionsMessage = function NoOptionsMessage(props) {
|
|
4
|
+
return /*#__PURE__*/React.createElement(components.NoOptionsMessage, props, /*#__PURE__*/React.createElement("span", {
|
|
5
|
+
id: "no-options",
|
|
6
|
+
role: "alert"
|
|
7
|
+
}, props.children || "No options"));
|
|
8
|
+
};
|
package/dist/esm/createSelect.js
CHANGED
|
@@ -7,6 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import React, { useRef, useEffect, useMemo, forwardRef, useImperativeHandle } from 'react';
|
|
8
8
|
import { mergeStyles } from 'react-select';
|
|
9
9
|
import { Input } from './components/input-aria-describedby';
|
|
10
|
+
import { NoOptionsMessage } from './components/no-options';
|
|
10
11
|
import { ClearIndicator, DropdownIndicator, LoadingIndicator, MultiValueRemove, IndicatorSeparator } from './components';
|
|
11
12
|
import baseStyles from './styles';
|
|
12
13
|
import { onFocus, isOptionsGrouped } from './utils/grouped-options-announcement';
|
|
@@ -35,7 +36,8 @@ export default function createSelect(WrappedComponent) {
|
|
|
35
36
|
LoadingIndicator: LoadingIndicator,
|
|
36
37
|
MultiValueRemove: MultiValueRemove,
|
|
37
38
|
IndicatorSeparator: IndicatorSeparator,
|
|
38
|
-
Input: Input
|
|
39
|
+
Input: Input,
|
|
40
|
+
NoOptionsMessage: NoOptionsMessage
|
|
39
41
|
}, componentsProp);
|
|
40
42
|
}, [componentsProp]);
|
|
41
43
|
var descriptionId = props['aria-describedby'];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/select",
|
|
3
|
-
"version": "17.10.
|
|
3
|
+
"version": "17.10.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/"
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
46
46
|
"@atlaskit/icon": "^22.3.0",
|
|
47
47
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
48
|
-
"@atlaskit/primitives": "^
|
|
48
|
+
"@atlaskit/primitives": "^7.0.0",
|
|
49
49
|
"@atlaskit/spinner": "^16.1.0",
|
|
50
|
-
"@atlaskit/theme": "^12.
|
|
50
|
+
"@atlaskit/theme": "^12.9.0",
|
|
51
51
|
"@atlaskit/tokens": "^1.49.0",
|
|
52
52
|
"@atlaskit/visually-hidden": "^1.3.0",
|
|
53
53
|
"@babel/runtime": "^7.0.0",
|