@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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/select
2
2
 
3
+ ## 17.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#58316](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58316) [`eb496c9a3474`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/eb496c9a3474) - Bug fixes for configuraton panel boolean & enum fields
8
+
9
+ ## 17.0.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 17.0.0
4
16
 
5
17
  ### Major Changes
@@ -9,8 +9,6 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
9
9
  var _react = require("@emotion/react");
10
10
  var _countries = require("./data/countries");
11
11
  var _Select = _interopRequireDefault(require("./Select"));
12
- /** @jsx jsx */
13
-
14
12
  // custom option renderer
15
13
  var labelStyles = (0, _react.css)({
16
14
  alignItems: 'center',
@@ -24,9 +22,9 @@ var flagStyles = (0, _react.css)({
24
22
  var Opt = function Opt(_ref) {
25
23
  var children = _ref.children,
26
24
  icon = _ref.icon;
27
- return (0, _react.jsx)("div", {
25
+ return /*#__PURE__*/React.createElement("div", {
28
26
  css: labelStyles
29
- }, (0, _react.jsx)("span", {
27
+ }, /*#__PURE__*/React.createElement("span", {
30
28
  css: flagStyles
31
29
  }, icon), children);
32
30
  };
@@ -46,7 +44,7 @@ var getOptionValue = function getOptionValue(opt) {
46
44
 
47
45
  // the text node of the control
48
46
  var controlLabel = function controlLabel(opt) {
49
- return (0, _react.jsx)(Opt, {
47
+ return /*#__PURE__*/React.createElement(Opt, {
50
48
  icon: opt.icon
51
49
  }, opt.abbr.toUpperCase());
52
50
  };
@@ -56,7 +54,7 @@ var optionLabel = function optionLabel(_ref3) {
56
54
  code = _ref3.code,
57
55
  icon = _ref3.icon,
58
56
  name = _ref3.name;
59
- return (0, _react.jsx)(Opt, {
57
+ return /*#__PURE__*/React.createElement(Opt, {
60
58
  icon: icon
61
59
  }, getOptionLabel({
62
60
  abbr: abbr,
@@ -73,7 +71,7 @@ var formatOptionLabel = function formatOptionLabel(opt, _ref4) {
73
71
 
74
72
  // put it all together
75
73
  var CountrySelect = function CountrySelect(props) {
76
- return (0, _react.jsx)(_Select.default, (0, _extends2.default)({
74
+ return /*#__PURE__*/React.createElement(_Select.default, (0, _extends2.default)({
77
75
  isClearable: false,
78
76
  formatOptionLabel: formatOptionLabel,
79
77
  getOptionLabel: getOptionLabel,
@@ -14,7 +14,6 @@ var _search = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/search
14
14
  var _constants = require("@atlaskit/theme/constants");
15
15
  var _colors = require("@atlaskit/theme/colors");
16
16
  var _excluded = ["innerRef", "innerProps"];
17
- /** @jsx jsx */
18
17
  // ==============================
19
18
  // Styled Components
20
19
  // ==============================
@@ -31,7 +30,7 @@ var MenuDialog = exports.MenuDialog = function MenuDialog(_ref) {
31
30
  id = _ref.id,
32
31
  style = _ref.style,
33
32
  testId = _ref.testId;
34
- return (0, _react.jsx)("div", {
33
+ return /*#__PURE__*/React.createElement("div", {
35
34
  css: [menuDialogStyles,
36
35
  // There is not a limited amount of values for the widths, so they need
37
36
  // to remain dynamic.
@@ -56,9 +55,9 @@ var dropdownStyles = (0, _react.css)({
56
55
  width: 32
57
56
  });
58
57
  var DropdownIndicator = function DropdownIndicator() {
59
- return (0, _react.jsx)("div", {
58
+ return /*#__PURE__*/React.createElement("div", {
60
59
  css: dropdownStyles
61
- }, (0, _react.jsx)(_search.default, {
60
+ }, /*#__PURE__*/React.createElement(_search.default, {
62
61
  label: "open"
63
62
  }));
64
63
  };
@@ -69,22 +68,22 @@ var Control = function Control(_ref2) {
69
68
  var innerRef = _ref2.innerRef,
70
69
  innerProps = _ref2.innerProps,
71
70
  props = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
72
- return (0, _react.jsx)("div", {
71
+ return /*#__PURE__*/React.createElement("div", {
73
72
  ref: innerRef,
74
73
  css: controlStyles
75
- }, (0, _react.jsx)(_reactSelect.components.Control, (0, _extends2.default)({}, props, {
74
+ }, /*#__PURE__*/React.createElement(_reactSelect.components.Control, (0, _extends2.default)({}, props, {
76
75
  innerProps: innerProps
77
76
  })));
78
77
  };
79
78
  var DummyControl = exports.DummyControl = function DummyControl(props) {
80
- return (0, _react.jsx)(_visuallyHidden.default, null, (0, _react.jsx)(_reactSelect.components.Control, props));
79
+ return /*#__PURE__*/React.createElement(_visuallyHidden.default, null, /*#__PURE__*/React.createElement(_reactSelect.components.Control, props));
81
80
  };
82
81
 
83
82
  // NOTE `props` intentionally omitted from `Fragment`
84
83
  var Menu = function Menu(_ref3) {
85
84
  var children = _ref3.children,
86
85
  innerProps = _ref3.innerProps;
87
- return (0, _react.jsx)("div", innerProps, children);
86
+ return /*#__PURE__*/React.createElement("div", innerProps, children);
88
87
  };
89
88
  var defaultComponents = exports.defaultComponents = {
90
89
  Control: Control,
@@ -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.0.0";
12
+ var packageVersion = "17.0.2";
13
13
  var SelectWithoutAnalytics = exports.SelectWithoutAnalytics = (0, _createSelect.default)(_reactSelect.default);
14
14
  var createAndFireEventOnAtlaskit = (0, _analyticsNext.createAndFireEvent)('atlaskit');
15
15
  var _default = exports.default = (0, _analyticsNext.withAnalyticsContext)({
@@ -28,8 +28,6 @@ var _react = require("@emotion/react");
28
28
  var _selectClear = _interopRequireDefault(require("@atlaskit/icon/glyph/select-clear"));
29
29
  var _reactSelect = require("react-select");
30
30
  var _indicators = require("./indicators");
31
- /** @jsx jsx */
32
-
33
31
  var disabledStyles = (0, _react.css)({
34
32
  display: 'none'
35
33
  });
@@ -38,10 +36,10 @@ var enabledStyles = (0, _react.css)({
38
36
  });
39
37
  var MultiValueRemove = exports.MultiValueRemove = function MultiValueRemove(props) {
40
38
  var isDisabled = props.selectProps.isDisabled;
41
- return (0, _react.jsx)(_reactSelect.components.MultiValueRemove, props, (0, _react.jsx)("div", {
39
+ return /*#__PURE__*/React.createElement(_reactSelect.components.MultiValueRemove, props, /*#__PURE__*/React.createElement("div", {
42
40
  css: isDisabled ? disabledStyles : enabledStyles,
43
41
  "data-testid": isDisabled ? 'hide-clear-icon' : 'show-clear-icon'
44
- }, (0, _react.jsx)(_selectClear.default, {
42
+ }, /*#__PURE__*/React.createElement(_selectClear.default, {
45
43
  label: "Clear",
46
44
  size: "small",
47
45
  primaryColor: "transparent",
@@ -13,7 +13,7 @@ var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
13
13
  var _selectClear = _interopRequireDefault(require("@atlaskit/icon/glyph/select-clear"));
14
14
  var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-down"));
15
15
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
16
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /** @jsx jsx */
16
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17
17
  var iconContainerStyles = (0, _react.css)({
18
18
  all: 'unset',
19
19
  outline: 'revert',
@@ -21,33 +21,34 @@ var iconContainerStyles = (0, _react.css)({
21
21
  alignItems: 'center'
22
22
  });
23
23
  var ClearIndicator = exports.ClearIndicator = function ClearIndicator(props) {
24
- return (0, _react.jsx)(_reactSelect.components.ClearIndicator, _objectSpread(_objectSpread({}, props), {}, {
24
+ return /*#__PURE__*/React.createElement(_reactSelect.components.ClearIndicator, _objectSpread(_objectSpread({}, props), {}, {
25
25
  innerProps: _objectSpread(_objectSpread({}, props.innerProps), {}, {
26
26
  'aria-hidden': 'false'
27
27
  })
28
- }), (0, _react.jsx)("button", {
28
+ }), /*#__PURE__*/React.createElement("button", {
29
29
  css: iconContainerStyles,
30
30
  type: "button",
31
31
  tabIndex: -1
32
- }, (0, _react.jsx)(_selectClear.default, {
32
+ }, /*#__PURE__*/React.createElement(_selectClear.default, {
33
33
  size: "small",
34
34
  label: "clear"
35
35
  })));
36
36
  };
37
37
  var DropdownIndicator = exports.DropdownIndicator = function DropdownIndicator(props) {
38
- return (0, _react.jsx)(_reactSelect.components.DropdownIndicator, props, (0, _react.jsx)(_chevronDown.default, {
38
+ return /*#__PURE__*/React.createElement(_reactSelect.components.DropdownIndicator, props, /*#__PURE__*/React.createElement(_chevronDown.default, {
39
39
  label: "open"
40
40
  }));
41
41
  };
42
42
  var LoadingIndicator = exports.LoadingIndicator = function LoadingIndicator(props) {
43
43
  var loadingStyles = (0, _react.css)(props.getStyles('loadingIndicator', props));
44
44
  return (
45
+ /*#__PURE__*/
45
46
  // This *must* be constructed this way because this is being consumed by
46
47
  // `react-select` and we don't control what it wants.
47
48
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
48
- (0, _react.jsx)("div", (0, _extends2.default)({
49
+ React.createElement("div", (0, _extends2.default)({
49
50
  css: loadingStyles
50
- }, props.innerProps), (0, _react.jsx)(_spinner.default, {
51
+ }, props.innerProps), /*#__PURE__*/React.createElement(_spinner.default, {
51
52
  size: "small"
52
53
  }))
53
54
  );
@@ -25,7 +25,7 @@ var _excluded = ["getStyles", "Icon", "children", "innerProps", "innerRef"];
25
25
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
26
26
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
27
27
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
28
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /** @jsx jsx */
28
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
29
29
  var getPrimitiveStyles = function getPrimitiveStyles(props) {
30
30
  var cx = props.cx,
31
31
  className = props.className,
@@ -201,14 +201,15 @@ var ControlOption = /*#__PURE__*/function (_Component) {
201
201
  styles = _getPrimitiveStyles2[0],
202
202
  classes = _getPrimitiveStyles2[1];
203
203
  return (
204
+ /*#__PURE__*/
204
205
  // These need to remain this way because `react-select` passes props with
205
206
  // styles inside, and that must be done dynamically.
206
207
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
207
- (0, _react.jsx)("div", (0, _extends2.default)({
208
+ React.createElement("div", (0, _extends2.default)({
208
209
  css: styles,
209
210
  className: classes,
210
211
  ref: innerRef
211
- }, props), (0, _react.jsx)("div", {
212
+ }, props), /*#__PURE__*/React.createElement("div", {
212
213
  css: [baseIconStyles,
213
214
  // Here we are adding a border to the Checkbox and Radio SVG icons
214
215
  // This is an a11y fix for Select only for now but it may be rolled
@@ -225,11 +226,11 @@ var ControlOption = /*#__PURE__*/function (_Component) {
225
226
  stroke: getBorderColor(_objectSpread(_objectSpread({}, this.props), this.state))
226
227
  }
227
228
  }]
228
- }, !!Icon ? (0, _react.jsx)(Icon, {
229
+ }, !!Icon ? /*#__PURE__*/React.createElement(Icon, {
229
230
  label: "",
230
231
  primaryColor: getPrimaryColor(_objectSpread(_objectSpread({}, this.props), this.state)),
231
232
  secondaryColor: getSecondaryColor(_objectSpread(_objectSpread({}, this.props), this.state))
232
- }) : null), (0, _react.jsx)("div", {
233
+ }) : null), /*#__PURE__*/React.createElement("div", {
233
234
  css: baseOptionStyles
234
235
  }, children))
235
236
  );
@@ -238,12 +239,12 @@ var ControlOption = /*#__PURE__*/function (_Component) {
238
239
  return ControlOption;
239
240
  }(_react2.Component);
240
241
  var CheckboxOption = exports.CheckboxOption = function CheckboxOption(props) {
241
- return (0, _react.jsx)(ControlOption, (0, _extends2.default)({
242
+ return /*#__PURE__*/React.createElement(ControlOption, (0, _extends2.default)({
242
243
  Icon: _checkbox.default
243
244
  }, props));
244
245
  };
245
246
  var RadioOption = exports.RadioOption = function RadioOption(props) {
246
- return (0, _react.jsx)(ControlOption, (0, _extends2.default)({
247
+ return /*#__PURE__*/React.createElement(ControlOption, (0, _extends2.default)({
247
248
  Icon: _radio.default
248
249
  }, props));
249
250
  };
package/dist/cjs/index.js CHANGED
@@ -83,6 +83,12 @@ Object.defineProperty(exports, "default", {
83
83
  return _select.default;
84
84
  }
85
85
  });
86
+ Object.defineProperty(exports, "isOptionsGrouped", {
87
+ enumerable: true,
88
+ get: function get() {
89
+ return _groupedOptionsAnnouncement.isOptionsGrouped;
90
+ }
91
+ });
86
92
  Object.defineProperty(exports, "mergeStyles", {
87
93
  enumerable: true,
88
94
  get: function get() {
@@ -109,6 +115,7 @@ var _select = _interopRequireWildcard(require("./entry-points/select"));
109
115
  var _asyncSelect = _interopRequireDefault(require("./entry-points/async-select"));
110
116
  var _creatableSelect = _interopRequireDefault(require("./entry-points/creatable-select"));
111
117
  var _asyncCreatableSelect = _interopRequireDefault(require("./entry-points/async-creatable-select"));
118
+ var _groupedOptionsAnnouncement = require("./utils/grouped-options-announcement");
112
119
  var _CheckboxSelect = _interopRequireDefault(require("./CheckboxSelect"));
113
120
  var _CountrySelect = _interopRequireDefault(require("./CountrySelect"));
114
121
  var _RadioSelect = _interopRequireDefault(require("./RadioSelect"));
@@ -1,7 +1,5 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- /** @jsx jsx */
3
-
4
- import { jsx, css } from '@emotion/react';
2
+ import { css } from '@emotion/react';
5
3
  import { groupedCountries } from './data/countries';
6
4
  import Select from './Select';
7
5
  // custom option renderer
@@ -17,9 +15,9 @@ const flagStyles = css({
17
15
  const Opt = ({
18
16
  children,
19
17
  icon
20
- }) => jsx("div", {
18
+ }) => /*#__PURE__*/React.createElement("div", {
21
19
  css: labelStyles
22
- }, jsx("span", {
20
+ }, /*#__PURE__*/React.createElement("span", {
23
21
  css: flagStyles
24
22
  }, icon), children);
25
23
 
@@ -34,7 +32,7 @@ const getOptionLabel = ({
34
32
  const getOptionValue = opt => opt.abbr;
35
33
 
36
34
  // the text node of the control
37
- const controlLabel = opt => jsx(Opt, {
35
+ const controlLabel = opt => /*#__PURE__*/React.createElement(Opt, {
38
36
  icon: opt.icon
39
37
  }, opt.abbr.toUpperCase());
40
38
  // the text node for an option
@@ -43,7 +41,7 @@ const optionLabel = ({
43
41
  code,
44
42
  icon,
45
43
  name
46
- }) => jsx(Opt, {
44
+ }) => /*#__PURE__*/React.createElement(Opt, {
47
45
  icon: icon
48
46
  }, getOptionLabel({
49
47
  abbr,
@@ -57,7 +55,7 @@ const formatOptionLabel = (opt, {
57
55
  }) => context === 'value' ? controlLabel(opt) : optionLabel(opt);
58
56
 
59
57
  // put it all together
60
- const CountrySelect = props => jsx(Select, _extends({
58
+ const CountrySelect = props => /*#__PURE__*/React.createElement(Select, _extends({
61
59
  isClearable: false,
62
60
  formatOptionLabel: formatOptionLabel,
63
61
  getOptionLabel: getOptionLabel,
@@ -1,8 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- /** @jsx jsx */
3
-
4
2
  import { components } from 'react-select';
5
- import { css, jsx } from '@emotion/react';
3
+ import { css } from '@emotion/react';
6
4
  import VisuallyHidden from '@atlaskit/visually-hidden';
7
5
  import SearchIcon from '@atlaskit/icon/glyph/editor/search';
8
6
  import { layers } from '@atlaskit/theme/constants';
@@ -24,7 +22,7 @@ export const MenuDialog = ({
24
22
  id,
25
23
  style,
26
24
  testId
27
- }) => jsx("div", {
25
+ }) => /*#__PURE__*/React.createElement("div", {
28
26
  css: [menuDialogStyles,
29
27
  // There is not a limited amount of values for the widths, so they need
30
28
  // to remain dynamic.
@@ -47,9 +45,9 @@ const dropdownStyles = css({
47
45
  textAlign: 'center',
48
46
  width: 32
49
47
  });
50
- const DropdownIndicator = () => jsx("div", {
48
+ const DropdownIndicator = () => /*#__PURE__*/React.createElement("div", {
51
49
  css: dropdownStyles
52
- }, jsx(SearchIcon, {
50
+ }, /*#__PURE__*/React.createElement(SearchIcon, {
53
51
  label: "open"
54
52
  }));
55
53
  const controlStyles = css({
@@ -59,19 +57,19 @@ const Control = ({
59
57
  innerRef,
60
58
  innerProps,
61
59
  ...props
62
- }) => jsx("div", {
60
+ }) => /*#__PURE__*/React.createElement("div", {
63
61
  ref: innerRef,
64
62
  css: controlStyles
65
- }, jsx(components.Control, _extends({}, props, {
63
+ }, /*#__PURE__*/React.createElement(components.Control, _extends({}, props, {
66
64
  innerProps: innerProps
67
65
  })));
68
- export const DummyControl = props => jsx(VisuallyHidden, null, jsx(components.Control, props));
66
+ export const DummyControl = props => /*#__PURE__*/React.createElement(VisuallyHidden, null, /*#__PURE__*/React.createElement(components.Control, props));
69
67
 
70
68
  // NOTE `props` intentionally omitted from `Fragment`
71
69
  const Menu = ({
72
70
  children,
73
71
  innerProps
74
- }) => jsx("div", innerProps, children);
72
+ }) => /*#__PURE__*/React.createElement("div", innerProps, children);
75
73
  export const defaultComponents = {
76
74
  Control,
77
75
  DropdownIndicator,
@@ -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 = "17.0.0";
5
+ const packageVersion = "17.0.2";
6
6
  export const SelectWithoutAnalytics = createSelect(Select);
7
7
  const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
8
8
  export default withAnalyticsContext({
@@ -1,5 +1,4 @@
1
- /** @jsx jsx */
2
- import { jsx, css } from '@emotion/react';
1
+ import { css } from '@emotion/react';
3
2
  import SelectClearIcon from '@atlaskit/icon/glyph/select-clear';
4
3
  import { components } from 'react-select';
5
4
  export { ClearIndicator, DropdownIndicator, LoadingIndicator } from './indicators';
@@ -13,10 +12,10 @@ export const MultiValueRemove = props => {
13
12
  const {
14
13
  isDisabled
15
14
  } = props.selectProps;
16
- return jsx(components.MultiValueRemove, props, jsx("div", {
15
+ return /*#__PURE__*/React.createElement(components.MultiValueRemove, props, /*#__PURE__*/React.createElement("div", {
17
16
  css: isDisabled ? disabledStyles : enabledStyles,
18
17
  "data-testid": isDisabled ? 'hide-clear-icon' : 'show-clear-icon'
19
- }, jsx(SelectClearIcon, {
18
+ }, /*#__PURE__*/React.createElement(SelectClearIcon, {
20
19
  label: "Clear",
21
20
  size: "small",
22
21
  primaryColor: "transparent",
@@ -1,6 +1,5 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- /** @jsx jsx */
3
- import { jsx, css } from '@emotion/react';
2
+ import { css } from '@emotion/react';
4
3
  import { components } from 'react-select';
5
4
  import Spinner from '@atlaskit/spinner';
6
5
  import SelectClearIcon from '@atlaskit/icon/glyph/select-clear';
@@ -11,31 +10,32 @@ const iconContainerStyles = css({
11
10
  display: 'flex',
12
11
  alignItems: 'center'
13
12
  });
14
- export const ClearIndicator = props => jsx(components.ClearIndicator, _extends({}, props, {
13
+ export const ClearIndicator = props => /*#__PURE__*/React.createElement(components.ClearIndicator, _extends({}, props, {
15
14
  innerProps: {
16
15
  ...props.innerProps,
17
16
  'aria-hidden': 'false'
18
17
  }
19
- }), jsx("button", {
18
+ }), /*#__PURE__*/React.createElement("button", {
20
19
  css: iconContainerStyles,
21
20
  type: "button",
22
21
  tabIndex: -1
23
- }, jsx(SelectClearIcon, {
22
+ }, /*#__PURE__*/React.createElement(SelectClearIcon, {
24
23
  size: "small",
25
24
  label: "clear"
26
25
  })));
27
- export const DropdownIndicator = props => jsx(components.DropdownIndicator, props, jsx(DownIcon, {
26
+ export const DropdownIndicator = props => /*#__PURE__*/React.createElement(components.DropdownIndicator, props, /*#__PURE__*/React.createElement(DownIcon, {
28
27
  label: "open"
29
28
  }));
30
29
  export const LoadingIndicator = props => {
31
30
  const loadingStyles = css(props.getStyles('loadingIndicator', props));
32
31
  return (
32
+ /*#__PURE__*/
33
33
  // This *must* be constructed this way because this is being consumed by
34
34
  // `react-select` and we don't control what it wants.
35
35
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
36
- jsx("div", _extends({
36
+ React.createElement("div", _extends({
37
37
  css: loadingStyles
38
- }, props.innerProps), jsx(Spinner, {
38
+ }, props.innerProps), /*#__PURE__*/React.createElement(Spinner, {
39
39
  size: "small"
40
40
  }))
41
41
  );
@@ -1,7 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
- /** @jsx jsx */
4
- import { css, jsx } from '@emotion/react';
3
+ import { css } from '@emotion/react';
5
4
  import { Component } from 'react';
6
5
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
7
6
  import RadioIcon from '@atlaskit/icon/glyph/radio';
@@ -174,14 +173,15 @@ class ControlOption extends Component {
174
173
  ...rest
175
174
  });
176
175
  return (
176
+ /*#__PURE__*/
177
177
  // These need to remain this way because `react-select` passes props with
178
178
  // styles inside, and that must be done dynamically.
179
179
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
180
- jsx("div", _extends({
180
+ React.createElement("div", _extends({
181
181
  css: styles,
182
182
  className: classes,
183
183
  ref: innerRef
184
- }, props), jsx("div", {
184
+ }, props), /*#__PURE__*/React.createElement("div", {
185
185
  css: [baseIconStyles,
186
186
  // Here we are adding a border to the Checkbox and Radio SVG icons
187
187
  // This is an a11y fix for Select only for now but it may be rolled
@@ -201,7 +201,7 @@ class ControlOption extends Component {
201
201
  })
202
202
  }
203
203
  }]
204
- }, !!Icon ? jsx(Icon, {
204
+ }, !!Icon ? /*#__PURE__*/React.createElement(Icon, {
205
205
  label: "",
206
206
  primaryColor: getPrimaryColor({
207
207
  ...this.props,
@@ -211,15 +211,15 @@ class ControlOption extends Component {
211
211
  ...this.props,
212
212
  ...this.state
213
213
  })
214
- }) : null), jsx("div", {
214
+ }) : null), /*#__PURE__*/React.createElement("div", {
215
215
  css: baseOptionStyles
216
216
  }, children))
217
217
  );
218
218
  }
219
219
  }
220
- export const CheckboxOption = props => jsx(ControlOption, _extends({
220
+ export const CheckboxOption = props => /*#__PURE__*/React.createElement(ControlOption, _extends({
221
221
  Icon: CheckboxIcon
222
222
  }, props));
223
- export const RadioOption = props => jsx(ControlOption, _extends({
223
+ export const RadioOption = props => /*#__PURE__*/React.createElement(ControlOption, _extends({
224
224
  Icon: RadioIcon
225
225
  }, props));
@@ -6,6 +6,7 @@ export { default, SelectWithoutAnalytics } from './entry-points/select';
6
6
  export { default as AsyncSelect } from './entry-points/async-select';
7
7
  export { default as CreatableSelect } from './entry-points/creatable-select';
8
8
  export { default as AsyncCreatableSelect } from './entry-points/async-creatable-select';
9
+ export { isOptionsGrouped } from './utils/grouped-options-announcement';
9
10
  export { default as CheckboxSelect } from './CheckboxSelect';
10
11
  export { default as CountrySelect } from './CountrySelect';
11
12
  export { default as RadioSelect } from './RadioSelect';
@@ -1,7 +1,5 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- /** @jsx jsx */
3
-
4
- import { jsx, css } from '@emotion/react';
2
+ import { css } from '@emotion/react';
5
3
  import { groupedCountries } from './data/countries';
6
4
  import Select from './Select';
7
5
  // custom option renderer
@@ -17,9 +15,9 @@ var flagStyles = css({
17
15
  var Opt = function Opt(_ref) {
18
16
  var children = _ref.children,
19
17
  icon = _ref.icon;
20
- return jsx("div", {
18
+ return /*#__PURE__*/React.createElement("div", {
21
19
  css: labelStyles
22
- }, jsx("span", {
20
+ }, /*#__PURE__*/React.createElement("span", {
23
21
  css: flagStyles
24
22
  }, icon), children);
25
23
  };
@@ -39,7 +37,7 @@ var getOptionValue = function getOptionValue(opt) {
39
37
 
40
38
  // the text node of the control
41
39
  var controlLabel = function controlLabel(opt) {
42
- return jsx(Opt, {
40
+ return /*#__PURE__*/React.createElement(Opt, {
43
41
  icon: opt.icon
44
42
  }, opt.abbr.toUpperCase());
45
43
  };
@@ -49,7 +47,7 @@ var optionLabel = function optionLabel(_ref3) {
49
47
  code = _ref3.code,
50
48
  icon = _ref3.icon,
51
49
  name = _ref3.name;
52
- return jsx(Opt, {
50
+ return /*#__PURE__*/React.createElement(Opt, {
53
51
  icon: icon
54
52
  }, getOptionLabel({
55
53
  abbr: abbr,
@@ -66,7 +64,7 @@ var formatOptionLabel = function formatOptionLabel(opt, _ref4) {
66
64
 
67
65
  // put it all together
68
66
  var CountrySelect = function CountrySelect(props) {
69
- return jsx(Select, _extends({
67
+ return /*#__PURE__*/React.createElement(Select, _extends({
70
68
  isClearable: false,
71
69
  formatOptionLabel: formatOptionLabel,
72
70
  getOptionLabel: getOptionLabel,
@@ -1,10 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["innerRef", "innerProps"];
4
- /** @jsx jsx */
5
-
6
4
  import { components } from 'react-select';
7
- import { css, jsx } from '@emotion/react';
5
+ import { css } from '@emotion/react';
8
6
  import VisuallyHidden from '@atlaskit/visually-hidden';
9
7
  import SearchIcon from '@atlaskit/icon/glyph/editor/search';
10
8
  import { layers } from '@atlaskit/theme/constants';
@@ -26,7 +24,7 @@ export var MenuDialog = function MenuDialog(_ref) {
26
24
  id = _ref.id,
27
25
  style = _ref.style,
28
26
  testId = _ref.testId;
29
- return jsx("div", {
27
+ return /*#__PURE__*/React.createElement("div", {
30
28
  css: [menuDialogStyles,
31
29
  // There is not a limited amount of values for the widths, so they need
32
30
  // to remain dynamic.
@@ -51,9 +49,9 @@ var dropdownStyles = css({
51
49
  width: 32
52
50
  });
53
51
  var DropdownIndicator = function DropdownIndicator() {
54
- return jsx("div", {
52
+ return /*#__PURE__*/React.createElement("div", {
55
53
  css: dropdownStyles
56
- }, jsx(SearchIcon, {
54
+ }, /*#__PURE__*/React.createElement(SearchIcon, {
57
55
  label: "open"
58
56
  }));
59
57
  };
@@ -64,22 +62,22 @@ var Control = function Control(_ref2) {
64
62
  var innerRef = _ref2.innerRef,
65
63
  innerProps = _ref2.innerProps,
66
64
  props = _objectWithoutProperties(_ref2, _excluded);
67
- return jsx("div", {
65
+ return /*#__PURE__*/React.createElement("div", {
68
66
  ref: innerRef,
69
67
  css: controlStyles
70
- }, jsx(components.Control, _extends({}, props, {
68
+ }, /*#__PURE__*/React.createElement(components.Control, _extends({}, props, {
71
69
  innerProps: innerProps
72
70
  })));
73
71
  };
74
72
  export var DummyControl = function DummyControl(props) {
75
- return jsx(VisuallyHidden, null, jsx(components.Control, props));
73
+ return /*#__PURE__*/React.createElement(VisuallyHidden, null, /*#__PURE__*/React.createElement(components.Control, props));
76
74
  };
77
75
 
78
76
  // NOTE `props` intentionally omitted from `Fragment`
79
77
  var Menu = function Menu(_ref3) {
80
78
  var children = _ref3.children,
81
79
  innerProps = _ref3.innerProps;
82
- return jsx("div", innerProps, children);
80
+ return /*#__PURE__*/React.createElement("div", innerProps, children);
83
81
  };
84
82
  export var defaultComponents = {
85
83
  Control: Control,
@@ -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 = "17.0.0";
5
+ var packageVersion = "17.0.2";
6
6
  export var SelectWithoutAnalytics = createSelect(Select);
7
7
  var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
8
8
  export default withAnalyticsContext({