@atlaskit/react-select 3.10.0 → 3.12.0

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,27 @@
1
1
  # @atlaskit/react-select
2
2
 
3
+ ## 3.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`fea5206ef4f36`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fea5206ef4f36) -
8
+ Updated border radius values behind a feature gate `platform-dst-shape-theme-default`.
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 3.11.0
15
+
16
+ ### Minor Changes
17
+
18
+ - [`762b79e21f96a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/762b79e21f96a) -
19
+ Migrated and cleaned up legacy iconography usage.
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies
24
+
3
25
  ## 3.10.0
4
26
 
5
27
  ### Minor Changes
@@ -1,5 +1,6 @@
1
1
 
2
- ._2rko12b0{border-radius:var(--ds-radius-small,4px)}._152t1nmo{inset-block-start:var(--menu-top)}
2
+ ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
3
+ ._2rko1mok{border-radius:var(--ds-radius-large,8px)}._152t1nmo{inset-block-start:var(--menu-top)}
3
4
  ._152t1osq{inset-block-start:100%}
4
5
  ._16qsd0yg{box-shadow:var(--ds-shadow-overlay,0 0 0 1px rgba(0,0,0,.1),0 4px 11px rgba(0,0,0,.1))}
5
6
  ._18m91wug{overflow-y:auto}
@@ -19,6 +19,7 @@ var _react2 = require("@compiled/react");
19
19
  var _dom = require("@floating-ui/dom");
20
20
  var _reactDom = require("react-dom");
21
21
  var _useIsomorphicLayoutEffect = _interopRequireDefault(require("use-isomorphic-layout-effect"));
22
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
22
23
  var _compiled = require("@atlaskit/primitives/compiled");
23
24
  var _utils = require("../utils");
24
25
  var _excluded = ["children", "innerProps", "xcss"],
@@ -197,6 +198,7 @@ var coercePlacement = function coercePlacement(p) {
197
198
  };
198
199
  var menuStyles = {
199
200
  root: "_2rko12b0 _kqswstnw _1bsb1osq _1pbykb7n _6rthu2gc _1pfhu2gc _bfhk1bhr _16qsd0yg",
201
+ rootT26Shape: "_2rko1mok",
200
202
  bottom: "_152t1osq",
201
203
  top: "_u7co1osq"
202
204
  };
@@ -271,7 +273,7 @@ var Menu = function Menu(props) {
271
273
  className = _getStyleProps.className;
272
274
  return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({
273
275
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/local-cx-xcss, @compiled/local-cx-xcss
274
- className: (0, _runtime.ax)([menuStyles.root, menuStyles[placement], (0, _react2.cx)(xcss, className, '-menu')])
276
+ className: (0, _runtime.ax)([menuStyles.root, menuStyles[placement], (0, _platformFeatureFlags.fg)('platform-dst-shape-theme-default') && menuStyles.rootT26Shape, (0, _react2.cx)(xcss, className, '-menu')])
275
277
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
276
278
  ,
277
279
  style: css,
@@ -16,7 +16,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
16
16
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
17
17
  var _react2 = require("@compiled/react");
18
18
  var _cross = _interopRequireDefault(require("@atlaskit/icon/core/cross"));
19
- var _selectClear = _interopRequireDefault(require("@atlaskit/icon/glyph/select-clear"));
20
19
  var _utils = require("../utils");
21
20
  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); }
22
21
  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; }
@@ -88,10 +87,6 @@ function MultiValueRemove(_ref3) {
88
87
  }, /*#__PURE__*/React.createElement(_cross.default, {
89
88
  label: "",
90
89
  color: "currentColor",
91
- LEGACY_fallbackIcon: _selectClear.default,
92
- LEGACY_primaryColor: "transparent",
93
- LEGACY_secondaryColor: "inherit",
94
- LEGACY_size: "small",
95
90
  size: "small"
96
91
  })));
97
92
  }
@@ -1,5 +1,6 @@
1
1
 
2
- ._2rko12b0{border-radius:var(--ds-radius-small,4px)}._152t1nmo{inset-block-start:var(--menu-top)}
2
+ ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
3
+ ._2rko1mok{border-radius:var(--ds-radius-large,8px)}._152t1nmo{inset-block-start:var(--menu-top)}
3
4
  ._152t1osq{inset-block-start:100%}
4
5
  ._16qsd0yg{box-shadow:var(--ds-shadow-overlay,0 0 0 1px rgba(0,0,0,.1),0 4px 11px rgba(0,0,0,.1))}
5
6
  ._18m91wug{overflow-y:auto}
@@ -8,6 +8,7 @@ import { cx } from '@compiled/react';
8
8
  import { autoUpdate } from '@floating-ui/dom';
9
9
  import { createPortal } from 'react-dom';
10
10
  import useLayoutEffect from 'use-isomorphic-layout-effect';
11
+ import { fg } from '@atlaskit/platform-feature-flags';
11
12
  import { Text } from '@atlaskit/primitives/compiled';
12
13
  import { animatedScrollTo, getBoundingClientObj, getScrollParent, getScrollTop, getStyleProps, normalizedHeight, scrollTo } from '../utils';
13
14
 
@@ -184,6 +185,7 @@ function getMenuPlacement({
184
185
  const coercePlacement = p => p === 'auto' ? 'bottom' : p;
185
186
  const menuStyles = {
186
187
  root: "_2rko12b0 _kqswstnw _1bsb1osq _1pbykb7n _6rthu2gc _1pfhu2gc _bfhk1bhr _16qsd0yg",
188
+ rootT26Shape: "_2rko1mok",
187
189
  bottom: "_152t1osq",
188
190
  top: "_u7co1osq"
189
191
  };
@@ -256,7 +258,7 @@ const Menu = props => {
256
258
  });
257
259
  return /*#__PURE__*/React.createElement("div", _extends({
258
260
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/local-cx-xcss, @compiled/local-cx-xcss
259
- className: ax([menuStyles.root, menuStyles[placement], cx(xcss, className, '-menu')])
261
+ className: ax([menuStyles.root, menuStyles[placement], fg('platform-dst-shape-theme-default') && menuStyles.rootT26Shape, cx(xcss, className, '-menu')])
260
262
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
261
263
  ,
262
264
  style: css,
@@ -5,7 +5,6 @@ import * as React from 'react';
5
5
  import { ax, ix } from "@compiled/react/runtime";
6
6
  import { cx } from '@compiled/react';
7
7
  import CrossIcon from '@atlaskit/icon/core/cross';
8
- import LegacySelectClearIcon from '@atlaskit/icon/glyph/select-clear';
9
8
  import { getStyleProps } from '../utils';
10
9
  const multiValueStyles = {
11
10
  root: "_2rko12b0 _1h6d14je _1dqonqa1 _189ee4h9 _1e0c1txw _1ul9ze3t _1pfhv77o _12l2v77o _6rthv77o _ahbqv77o _bfhk1j9a _p12f1osq _syazjpor _3yq3glyw",
@@ -71,10 +70,6 @@ export function MultiValueRemove({
71
70
  }, /*#__PURE__*/React.createElement(CrossIcon, {
72
71
  label: "",
73
72
  color: "currentColor",
74
- LEGACY_fallbackIcon: LegacySelectClearIcon,
75
- LEGACY_primaryColor: "transparent",
76
- LEGACY_secondaryColor: "inherit",
77
- LEGACY_size: "small",
78
73
  size: "small"
79
74
  })));
80
75
  }
@@ -1,5 +1,6 @@
1
1
 
2
- ._2rko12b0{border-radius:var(--ds-radius-small,4px)}._152t1nmo{inset-block-start:var(--menu-top)}
2
+ ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
3
+ ._2rko1mok{border-radius:var(--ds-radius-large,8px)}._152t1nmo{inset-block-start:var(--menu-top)}
3
4
  ._152t1osq{inset-block-start:100%}
4
5
  ._16qsd0yg{box-shadow:var(--ds-shadow-overlay,0 0 0 1px rgba(0,0,0,.1),0 4px 11px rgba(0,0,0,.1))}
5
6
  ._18m91wug{overflow-y:auto}
@@ -15,6 +15,7 @@ import { cx } from '@compiled/react';
15
15
  import { autoUpdate } from '@floating-ui/dom';
16
16
  import { createPortal } from 'react-dom';
17
17
  import useLayoutEffect from 'use-isomorphic-layout-effect';
18
+ import { fg } from '@atlaskit/platform-feature-flags';
18
19
  import { Text } from '@atlaskit/primitives/compiled';
19
20
  import { animatedScrollTo, getBoundingClientObj, getScrollParent, getScrollTop, getStyleProps, normalizedHeight, scrollTo } from '../utils';
20
21
 
@@ -189,6 +190,7 @@ var coercePlacement = function coercePlacement(p) {
189
190
  };
190
191
  var menuStyles = {
191
192
  root: "_2rko12b0 _kqswstnw _1bsb1osq _1pbykb7n _6rthu2gc _1pfhu2gc _bfhk1bhr _16qsd0yg",
193
+ rootT26Shape: "_2rko1mok",
192
194
  bottom: "_152t1osq",
193
195
  top: "_u7co1osq"
194
196
  };
@@ -263,7 +265,7 @@ var Menu = function Menu(props) {
263
265
  className = _getStyleProps.className;
264
266
  return /*#__PURE__*/React.createElement("div", _extends({
265
267
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/local-cx-xcss, @compiled/local-cx-xcss
266
- className: ax([menuStyles.root, menuStyles[placement], cx(xcss, className, '-menu')])
268
+ className: ax([menuStyles.root, menuStyles[placement], fg('platform-dst-shape-theme-default') && menuStyles.rootT26Shape, cx(xcss, className, '-menu')])
267
269
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
268
270
  ,
269
271
  style: css,
@@ -8,7 +8,6 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
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
10
  import CrossIcon from '@atlaskit/icon/core/cross';
11
- import LegacySelectClearIcon from '@atlaskit/icon/glyph/select-clear';
12
11
  import { getStyleProps } from '../utils';
13
12
  var multiValueStyles = {
14
13
  root: "_2rko12b0 _1h6d14je _1dqonqa1 _189ee4h9 _1e0c1txw _1ul9ze3t _1pfhv77o _12l2v77o _6rthv77o _ahbqv77o _bfhk1j9a _p12f1osq _syazjpor _3yq3glyw",
@@ -77,10 +76,6 @@ export function MultiValueRemove(_ref3) {
77
76
  }, /*#__PURE__*/React.createElement(CrossIcon, {
78
77
  label: "",
79
78
  color: "currentColor",
80
- LEGACY_fallbackIcon: LegacySelectClearIcon,
81
- LEGACY_primaryColor: "transparent",
82
- LEGACY_secondaryColor: "inherit",
83
- LEGACY_size: "small",
84
79
  size: "small"
85
80
  })));
86
81
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/react-select",
3
- "version": "3.10.0",
3
+ "version": "3.12.0",
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",
@@ -21,12 +21,12 @@
21
21
  "atlaskit:src": "src/index.tsx",
22
22
  "dependencies": {
23
23
  "@atlaskit/ds-lib": "^5.3.0",
24
- "@atlaskit/icon": "^29.0.0",
24
+ "@atlaskit/icon": "^29.3.0",
25
25
  "@atlaskit/layering": "^3.4.0",
26
26
  "@atlaskit/platform-feature-flags": "^1.1.0",
27
27
  "@atlaskit/primitives": "^16.4.0",
28
28
  "@atlaskit/spinner": "^19.0.0",
29
- "@atlaskit/tokens": "^8.4.0",
29
+ "@atlaskit/tokens": "^8.6.0",
30
30
  "@babel/runtime": "^7.0.0",
31
31
  "@compiled/react": "^0.18.6",
32
32
  "@floating-ui/dom": "^1.0.1",
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "devDependencies": {
41
41
  "@atlaskit/checkbox": "^17.2.0",
42
- "@atlaskit/form": "^14.3.0",
42
+ "@atlaskit/form": "^15.1.0",
43
43
  "@atlassian/feature-flags-test-utils": "^1.0.0",
44
44
  "@testing-library/react": "^13.4.0",
45
45
  "@testing-library/user-event": "^14.4.3",