@atlaskit/react-select 2.7.0 → 2.7.1

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,11 @@
1
1
  # @atlaskit/react-select
2
2
 
3
+ ## 2.7.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 2.7.0
4
10
 
5
11
  ### Minor Changes
@@ -14,8 +14,8 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
14
14
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
15
15
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
16
16
  var _react2 = require("@compiled/react");
17
- var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/utility/migration/chevron-down"));
18
- var _crossCircleSelectClear = _interopRequireDefault(require("@atlaskit/icon/utility/migration/cross-circle--select-clear"));
17
+ var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/migration/chevron-down"));
18
+ var _crossCircleSelectClear = _interopRequireDefault(require("@atlaskit/icon/core/migration/cross-circle--select-clear"));
19
19
  var _compiled = require("@atlaskit/primitives/compiled");
20
20
  var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
21
21
  var _utils = require("../../utils");
@@ -72,7 +72,8 @@ var DropdownIndicator = exports.DropdownIndicator = function DropdownIndicator(p
72
72
  }, /*#__PURE__*/React.createElement(_chevronDown.default, {
73
73
  color: "currentColor",
74
74
  label: "open",
75
- LEGACY_margin: "var(--ds-space-negative-075, -0.375rem)"
75
+ LEGACY_margin: "var(--ds-space-negative-075, -0.375rem)",
76
+ size: "small"
76
77
  })));
77
78
  };
78
79
  var clearIndicatorCSS = exports.clearIndicatorCSS = function clearIndicatorCSS() {
@@ -110,7 +111,8 @@ var ClearIndicator = exports.ClearIndicator = function ClearIndicator(props) {
110
111
  label: "",
111
112
  color: "currentColor",
112
113
  LEGACY_size: "small",
113
- LEGACY_margin: "var(--ds-space-negative-025, -0.125rem)"
114
+ LEGACY_margin: "var(--ds-space-negative-025, -0.125rem)",
115
+ size: "small"
114
116
  })));
115
117
  };
116
118
 
@@ -15,8 +15,8 @@ var _runtime = require("@compiled/react/runtime");
15
15
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
16
16
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
17
17
  var _react2 = require("@compiled/react");
18
+ var _close = _interopRequireDefault(require("@atlaskit/icon/core/close"));
18
19
  var _selectClear = _interopRequireDefault(require("@atlaskit/icon/glyph/select-clear"));
19
- var _cross = _interopRequireDefault(require("@atlaskit/icon/utility/cross"));
20
20
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
21
21
  var _utils = require("../../utils");
22
22
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
@@ -89,13 +89,14 @@ function MultiValueRemove(_ref3) {
89
89
  }), /*#__PURE__*/React.createElement("div", {
90
90
  "data-testid": isDisabled ? 'hide-clear-icon' : 'show-clear-icon',
91
91
  className: (0, _runtime.ax)([isDisabled && "_1e0cglyw", !isDisabled && "_1e0c1kw7"])
92
- }, /*#__PURE__*/React.createElement(_cross.default, {
92
+ }, /*#__PURE__*/React.createElement(_close.default, {
93
93
  label: "",
94
94
  color: "currentColor",
95
95
  LEGACY_fallbackIcon: _selectClear.default,
96
96
  LEGACY_primaryColor: "transparent",
97
97
  LEGACY_secondaryColor: "inherit",
98
- LEGACY_size: "small"
98
+ LEGACY_size: "small",
99
+ size: "small"
99
100
  })));
100
101
  }
101
102
  var MultiValue = function MultiValue(props) {
@@ -9,8 +9,8 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
9
9
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
11
  var _react = require("@emotion/react");
12
- var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/utility/migration/chevron-down"));
13
- var _crossCircleSelectClear = _interopRequireDefault(require("@atlaskit/icon/utility/migration/cross-circle--select-clear"));
12
+ var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/migration/chevron-down"));
13
+ var _crossCircleSelectClear = _interopRequireDefault(require("@atlaskit/icon/core/migration/cross-circle--select-clear"));
14
14
  var _primitives = require("@atlaskit/primitives");
15
15
  var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
16
16
  var _utils = require("../../utils");
@@ -70,7 +70,8 @@ var DropdownIndicator = exports.DropdownIndicator = function DropdownIndicator(p
70
70
  }, (0, _react.jsx)(_chevronDown.default, {
71
71
  color: "currentColor",
72
72
  label: "open",
73
- LEGACY_margin: "var(--ds-space-negative-075, -0.375rem)"
73
+ LEGACY_margin: "var(--ds-space-negative-075, -0.375rem)",
74
+ size: "small"
74
75
  })));
75
76
  };
76
77
  var clearIndicatorCSS = exports.clearIndicatorCSS = function clearIndicatorCSS(_ref2) {
@@ -103,7 +104,8 @@ var ClearIndicator = exports.ClearIndicator = function ClearIndicator(props) {
103
104
  label: "",
104
105
  color: "currentColor",
105
106
  LEGACY_size: "small",
106
- LEGACY_margin: "var(--ds-space-negative-025, -0.125rem)"
107
+ LEGACY_margin: "var(--ds-space-negative-025, -0.125rem)",
108
+ size: "small"
107
109
  })));
108
110
  };
109
111
 
@@ -9,8 +9,8 @@ exports.MultiValueRemove = MultiValueRemove;
9
9
  exports.multiValueRemoveCSS = exports.multiValueLabelCSS = exports.multiValueCSS = exports.default = void 0;
10
10
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
11
  var _react = require("@emotion/react");
12
+ var _close = _interopRequireDefault(require("@atlaskit/icon/core/close"));
12
13
  var _selectClear = _interopRequireDefault(require("@atlaskit/icon/glyph/select-clear"));
13
- var _cross = _interopRequireDefault(require("@atlaskit/icon/utility/cross"));
14
14
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
15
  var _utils = require("../../utils");
16
16
  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; }
@@ -145,13 +145,14 @@ function MultiValueRemove(_ref5) {
145
145
  (0, _react.jsx)("div", innerProps, (0, _react.jsx)("div", {
146
146
  css: isDisabled ? disabledStyles : enabledStyles,
147
147
  "data-testid": isDisabled ? 'hide-clear-icon' : 'show-clear-icon'
148
- }, (0, _react.jsx)(_cross.default, {
148
+ }, (0, _react.jsx)(_close.default, {
149
149
  label: "",
150
150
  color: "currentColor",
151
151
  LEGACY_fallbackIcon: _selectClear.default,
152
152
  LEGACY_primaryColor: "transparent",
153
153
  LEGACY_secondaryColor: "inherit",
154
- LEGACY_size: "small"
154
+ LEGACY_size: "small",
155
+ size: "small"
155
156
  })))
156
157
  );
157
158
  }
@@ -4,8 +4,8 @@ import "./indicators.compiled.css";
4
4
  import * as React from 'react';
5
5
  import { ax, ix } from "@compiled/react/runtime";
6
6
  import { cx } from '@compiled/react';
7
- import DownIcon from '@atlaskit/icon/utility/migration/chevron-down';
8
- import CrossIcon from '@atlaskit/icon/utility/migration/cross-circle--select-clear';
7
+ import DownIcon from '@atlaskit/icon/core/migration/chevron-down';
8
+ import CrossIcon from '@atlaskit/icon/core/migration/cross-circle--select-clear';
9
9
  import { Inline, Pressable } from '@atlaskit/primitives/compiled';
10
10
  import Spinner from '@atlaskit/spinner';
11
11
  import { getStyleProps } from '../../utils';
@@ -60,7 +60,8 @@ export const DropdownIndicator = props => {
60
60
  }, /*#__PURE__*/React.createElement(DownIcon, {
61
61
  color: "currentColor",
62
62
  label: "open",
63
- LEGACY_margin: "var(--ds-space-negative-075, -0.375rem)"
63
+ LEGACY_margin: "var(--ds-space-negative-075, -0.375rem)",
64
+ size: "small"
64
65
  })));
65
66
  };
66
67
  export const clearIndicatorCSS = () => ({});
@@ -98,7 +99,8 @@ export const ClearIndicator = props => {
98
99
  label: "",
99
100
  color: "currentColor",
100
101
  LEGACY_size: "small",
101
- LEGACY_margin: "var(--ds-space-negative-025, -0.125rem)"
102
+ LEGACY_margin: "var(--ds-space-negative-025, -0.125rem)",
103
+ size: "small"
102
104
  })));
103
105
  };
104
106
 
@@ -4,8 +4,8 @@ import "./multi-value.compiled.css";
4
4
  import * as React from 'react';
5
5
  import { ax, ix } from "@compiled/react/runtime";
6
6
  import { cx } from '@compiled/react';
7
+ import CrossIcon from '@atlaskit/icon/core/close';
7
8
  import LegacySelectClearIcon from '@atlaskit/icon/glyph/select-clear';
8
- import CrossIcon from '@atlaskit/icon/utility/cross';
9
9
  import { fg } from '@atlaskit/platform-feature-flags';
10
10
  import { getStyleProps } from '../../utils';
11
11
  const multiValueStyles = {
@@ -78,7 +78,8 @@ export function MultiValueRemove({
78
78
  LEGACY_fallbackIcon: LegacySelectClearIcon,
79
79
  LEGACY_primaryColor: "transparent",
80
80
  LEGACY_secondaryColor: "inherit",
81
- LEGACY_size: "small"
81
+ LEGACY_size: "small",
82
+ size: "small"
82
83
  })));
83
84
  }
84
85
  const MultiValue = props => {
@@ -6,8 +6,8 @@ import _extends from "@babel/runtime/helpers/extends";
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
8
8
  import { jsx } from '@emotion/react';
9
- import DownIcon from '@atlaskit/icon/utility/migration/chevron-down';
10
- import CrossIcon from '@atlaskit/icon/utility/migration/cross-circle--select-clear';
9
+ import DownIcon from '@atlaskit/icon/core/migration/chevron-down';
10
+ import CrossIcon from '@atlaskit/icon/core/migration/cross-circle--select-clear';
11
11
  import { Inline, Pressable, xcss } from '@atlaskit/primitives';
12
12
  import Spinner from '@atlaskit/spinner';
13
13
  import { getStyleProps } from '../../utils';
@@ -61,7 +61,8 @@ export const DropdownIndicator = props => {
61
61
  }, jsx(DownIcon, {
62
62
  color: "currentColor",
63
63
  label: "open",
64
- LEGACY_margin: "var(--ds-space-negative-075, -0.375rem)"
64
+ LEGACY_margin: "var(--ds-space-negative-075, -0.375rem)",
65
+ size: "small"
65
66
  })));
66
67
  };
67
68
  export const clearIndicatorCSS = ({
@@ -94,7 +95,8 @@ export const ClearIndicator = props => {
94
95
  label: "",
95
96
  color: "currentColor",
96
97
  LEGACY_size: "small",
97
- LEGACY_margin: "var(--ds-space-negative-025, -0.125rem)"
98
+ LEGACY_margin: "var(--ds-space-negative-025, -0.125rem)",
99
+ size: "small"
98
100
  })));
99
101
  };
100
102
 
@@ -5,8 +5,8 @@
5
5
 
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
7
7
  import { css, jsx } from '@emotion/react';
8
+ import CrossIcon from '@atlaskit/icon/core/close';
8
9
  import LegacySelectClearIcon from '@atlaskit/icon/glyph/select-clear';
9
- import CrossIcon from '@atlaskit/icon/utility/cross';
10
10
  import { fg } from '@atlaskit/platform-feature-flags';
11
11
  import { getStyleProps } from '../../utils';
12
12
  export const multiValueCSS = ({
@@ -144,7 +144,8 @@ export function MultiValueRemove({
144
144
  LEGACY_fallbackIcon: LegacySelectClearIcon,
145
145
  LEGACY_primaryColor: "transparent",
146
146
  LEGACY_secondaryColor: "inherit",
147
- LEGACY_size: "small"
147
+ LEGACY_size: "small",
148
+ size: "small"
148
149
  })))
149
150
  );
150
151
  }
@@ -9,8 +9,8 @@ import { ax, ix } from "@compiled/react/runtime";
9
9
  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; }
10
10
  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) { _defineProperty(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; }
11
11
  import { cx } from '@compiled/react';
12
- import DownIcon from '@atlaskit/icon/utility/migration/chevron-down';
13
- import CrossIcon from '@atlaskit/icon/utility/migration/cross-circle--select-clear';
12
+ import DownIcon from '@atlaskit/icon/core/migration/chevron-down';
13
+ import CrossIcon from '@atlaskit/icon/core/migration/cross-circle--select-clear';
14
14
  import { Inline, Pressable } from '@atlaskit/primitives/compiled';
15
15
  import Spinner from '@atlaskit/spinner';
16
16
  import { getStyleProps } from '../../utils';
@@ -64,7 +64,8 @@ export var DropdownIndicator = function DropdownIndicator(props) {
64
64
  }, /*#__PURE__*/React.createElement(DownIcon, {
65
65
  color: "currentColor",
66
66
  label: "open",
67
- LEGACY_margin: "var(--ds-space-negative-075, -0.375rem)"
67
+ LEGACY_margin: "var(--ds-space-negative-075, -0.375rem)",
68
+ size: "small"
68
69
  })));
69
70
  };
70
71
  export var clearIndicatorCSS = function clearIndicatorCSS() {
@@ -102,7 +103,8 @@ export var ClearIndicator = function ClearIndicator(props) {
102
103
  label: "",
103
104
  color: "currentColor",
104
105
  LEGACY_size: "small",
105
- LEGACY_margin: "var(--ds-space-negative-025, -0.125rem)"
106
+ LEGACY_margin: "var(--ds-space-negative-025, -0.125rem)",
107
+ size: "small"
106
108
  })));
107
109
  };
108
110
 
@@ -7,8 +7,8 @@ import { ax, ix } from "@compiled/react/runtime";
7
7
  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; }
8
8
  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) { _defineProperty(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; }
9
9
  import { cx } from '@compiled/react';
10
+ import CrossIcon from '@atlaskit/icon/core/close';
10
11
  import LegacySelectClearIcon from '@atlaskit/icon/glyph/select-clear';
11
- import CrossIcon from '@atlaskit/icon/utility/cross';
12
12
  import { fg } from '@atlaskit/platform-feature-flags';
13
13
  import { getStyleProps } from '../../utils';
14
14
  var multiValueStyles = {
@@ -84,7 +84,8 @@ export function MultiValueRemove(_ref3) {
84
84
  LEGACY_fallbackIcon: LegacySelectClearIcon,
85
85
  LEGACY_primaryColor: "transparent",
86
86
  LEGACY_secondaryColor: "inherit",
87
- LEGACY_size: "small"
87
+ LEGACY_size: "small",
88
+ size: "small"
88
89
  })));
89
90
  }
90
91
  var MultiValue = function MultiValue(props) {
@@ -11,8 +11,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
11
11
 
12
12
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
13
13
  import { jsx } from '@emotion/react';
14
- import DownIcon from '@atlaskit/icon/utility/migration/chevron-down';
15
- import CrossIcon from '@atlaskit/icon/utility/migration/cross-circle--select-clear';
14
+ import DownIcon from '@atlaskit/icon/core/migration/chevron-down';
15
+ import CrossIcon from '@atlaskit/icon/core/migration/cross-circle--select-clear';
16
16
  import { Inline, Pressable, xcss } from '@atlaskit/primitives';
17
17
  import Spinner from '@atlaskit/spinner';
18
18
  import { getStyleProps } from '../../utils';
@@ -65,7 +65,8 @@ export var DropdownIndicator = function DropdownIndicator(props) {
65
65
  }, jsx(DownIcon, {
66
66
  color: "currentColor",
67
67
  label: "open",
68
- LEGACY_margin: "var(--ds-space-negative-075, -0.375rem)"
68
+ LEGACY_margin: "var(--ds-space-negative-075, -0.375rem)",
69
+ size: "small"
69
70
  })));
70
71
  };
71
72
  export var clearIndicatorCSS = function clearIndicatorCSS(_ref2) {
@@ -98,7 +99,8 @@ export var ClearIndicator = function ClearIndicator(props) {
98
99
  label: "",
99
100
  color: "currentColor",
100
101
  LEGACY_size: "small",
101
- LEGACY_margin: "var(--ds-space-negative-025, -0.125rem)"
102
+ LEGACY_margin: "var(--ds-space-negative-025, -0.125rem)",
103
+ size: "small"
102
104
  })));
103
105
  };
104
106
 
@@ -8,8 +8,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
8
8
 
9
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
10
10
  import { css, jsx } from '@emotion/react';
11
+ import CrossIcon from '@atlaskit/icon/core/close';
11
12
  import LegacySelectClearIcon from '@atlaskit/icon/glyph/select-clear';
12
- import CrossIcon from '@atlaskit/icon/utility/cross';
13
13
  import { fg } from '@atlaskit/platform-feature-flags';
14
14
  import { getStyleProps } from '../../utils';
15
15
  export var multiValueCSS = function multiValueCSS(_ref) {
@@ -145,7 +145,8 @@ export function MultiValueRemove(_ref5) {
145
145
  LEGACY_fallbackIcon: LegacySelectClearIcon,
146
146
  LEGACY_primaryColor: "transparent",
147
147
  LEGACY_secondaryColor: "inherit",
148
- LEGACY_size: "small"
148
+ LEGACY_size: "small",
149
+ size: "small"
149
150
  })))
150
151
  );
151
152
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/react-select",
3
- "version": "2.7.0",
3
+ "version": "2.7.1",
4
4
  "description": "A forked version of react-select to only be used in atlaskit/select",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,7 +31,7 @@
31
31
  "dependencies": {
32
32
  "@atlaskit/ds-lib": "^4.0.0",
33
33
  "@atlaskit/icon": "^26.4.0",
34
- "@atlaskit/layering": "^2.2.0",
34
+ "@atlaskit/layering": "^3.0.0",
35
35
  "@atlaskit/platform-feature-flags": "^1.1.0",
36
36
  "@atlaskit/primitives": "^14.8.0",
37
37
  "@atlaskit/spinner": "^18.0.0",