@atlaskit/select 17.16.0 → 17.17.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,17 @@
1
1
  # @atlaskit/select
2
2
 
3
+ ## 17.17.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#139873](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/139873)
8
+ [`141a2cdfda71c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/141a2cdfda71c) -
9
+ Fix select and radio icons when icon facade feature flag is enabled by opting out of new icons.
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 17.16.0
4
16
 
5
17
  ### Minor Changes
@@ -14,7 +14,7 @@ var _Select = _interopRequireDefault(require("./Select"));
14
14
  var _inputOptions = require("./components/input-options");
15
15
  var _excluded = ["components"];
16
16
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
17
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
17
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
18
  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; }
19
19
  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; }
20
20
  var CheckboxSelectInternal = function CheckboxSelectInternal(_ref) {
@@ -32,11 +32,11 @@ var _groupedOptionsAnnouncement = require("../utils/grouped-options-announcement
32
32
  var _components = require("./components");
33
33
  var _excluded = ["footer", "label", "maxMenuWidth", "minMenuWidth", "placeholder", "target", "testId", "onMenuOpen", "onMenuClose"];
34
34
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
35
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
35
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
36
36
  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; }
37
37
  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; }
38
- 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); }; }
39
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
38
+ function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; }
39
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } // eslint-disable-next-line @repo/internal/fs/filename-pattern-match
40
40
  /**
41
41
  * Are we rendering on the client or server?
42
42
  */
@@ -74,6 +74,8 @@ var defaultPopperProps = {
74
74
  var isEmpty = function isEmpty(obj) {
75
75
  return Object.keys(obj).length === 0;
76
76
  };
77
+
78
+ // eslint-disable-next-line @repo/internal/react/no-class-components
77
79
  var PopupSelect = exports.default = /*#__PURE__*/function (_PureComponent) {
78
80
  (0, _inherits2.default)(PopupSelect, _PureComponent);
79
81
  var _super = _createSuper(PopupSelect);
@@ -14,7 +14,7 @@ var _Select = _interopRequireDefault(require("./Select"));
14
14
  var _inputOptions = require("./components/input-options");
15
15
  var _excluded = ["components"];
16
16
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
17
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
17
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
18
  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; }
19
19
  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; }
20
20
  var RadioSelect = /*#__PURE__*/_react.default.memo(function (_ref) {
@@ -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.16.0";
12
+ var packageVersion = "17.17.0";
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)({
@@ -55,23 +55,42 @@ var iconWrapperStyles = (0, _primitives.xcss)({
55
55
  */
56
56
  var MultiValueRemove = exports.MultiValueRemove = function MultiValueRemove(props) {
57
57
  var isDisabled = props.selectProps.isDisabled;
58
- return (0, _react.jsx)(_reactSelect.components.MultiValueRemove, props, (0, _react.jsx)("div", {
59
- css: isDisabled ? disabledStyles : enabledStyles,
60
- "data-testid": isDisabled ? 'hide-clear-icon' : 'show-clear-icon'
61
- }, (0, _platformFeatureFlags.fg)('platform-component-visual-refresh') ?
62
- // eslint-disable-next-line @atlaskit/design-system/ensure-icon-color
63
- (0, _react.jsx)(_cross.default, {
64
- label: "Clear"
65
- }) : (0, _react.jsx)(_primitives.Inline, {
66
- xcss: iconWrapperStyles
67
- }, (0, _react.jsx)(_cross.default, {
68
- label: "Clear",
69
- color: "currentColor",
70
- LEGACY_fallbackIcon: _selectClear.default,
71
- LEGACY_size: "small",
72
- LEGACY_primaryColor: "transparent",
73
- LEGACY_secondaryColor: "inherit",
74
- LEGACY_margin: "var(--ds-space-negative-025, -2px)"
75
- }))));
58
+ var renderIcon = function renderIcon() {
59
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
60
+ if ((0, _platformFeatureFlags.fg)('platform-component-visual-refresh')) {
61
+ return (0, _react.jsx)(_cross.default, {
62
+ label: "Clear",
63
+ color: "currentColor"
64
+ });
65
+ }
66
+
67
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
68
+ if ((0, _platformFeatureFlags.fg)('platform-visual-refresh-icons-legacy-facade')) {
69
+ return (0, _react.jsx)(_primitives.Inline, {
70
+ xcss: iconWrapperStyles
71
+ }, (0, _react.jsx)(_cross.default, {
72
+ label: "Clear",
73
+ color: "currentColor"
74
+ }));
75
+ }
76
+ return (
77
+ // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
78
+ (0, _react.jsx)(_selectClear.default, {
79
+ label: "Clear",
80
+ primaryColor: "transparent",
81
+ size: "small",
82
+ secondaryColor: "inherit"
83
+ })
84
+ );
85
+ };
86
+ return (
87
+ // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
88
+ (0, _react.jsx)(_reactSelect.components.MultiValueRemove, props, (0, _react.jsx)("div", {
89
+ css: isDisabled ? disabledStyles : enabledStyles,
90
+ "data-testid": isDisabled ? 'hide-clear-icon' : 'show-clear-icon'
91
+ }, renderIcon()))
92
+ );
76
93
  };
94
+
95
+ // eslint-disable-next-line @repo/internal/react/require-jsdoc
77
96
  var IndicatorSeparator = exports.IndicatorSeparator = null;
@@ -18,7 +18,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
18
18
  * @jsxRuntime classic
19
19
  * @jsx jsx
20
20
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
21
- // import LegacyDownIcon from '@atlaskit/icon/glyph/chevron-down';
22
21
  var iconContainerStyles = (0, _primitives.xcss)({
23
22
  all: 'unset',
24
23
  outline: 'revert',
@@ -46,14 +45,17 @@ var ClearIndicator = exports.ClearIndicator = function ClearIndicator(props) {
46
45
  })));
47
46
  };
48
47
  var DropdownIndicator = exports.DropdownIndicator = function DropdownIndicator(props) {
49
- return (0, _react.jsx)(_reactSelect.components.DropdownIndicator, props, (0, _react.jsx)(_primitives.Inline, {
50
- as: "span",
51
- xcss: dropdownWrapperStyles
52
- }, (0, _react.jsx)(_chevronDown.default, {
53
- color: "currentColor",
54
- label: "open",
55
- LEGACY_margin: "var(--ds-space-negative-075, -0.375rem)"
56
- })));
48
+ return (
49
+ // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
50
+ (0, _react.jsx)(_reactSelect.components.DropdownIndicator, props, (0, _react.jsx)(_primitives.Inline, {
51
+ as: "span",
52
+ xcss: dropdownWrapperStyles
53
+ }, (0, _react.jsx)(_chevronDown.default, {
54
+ color: "currentColor",
55
+ label: "open",
56
+ LEGACY_margin: "var(--ds-space-negative-075, -0.375rem)"
57
+ })))
58
+ );
57
59
  };
58
60
  var LoadingIndicator = exports.LoadingIndicator = function LoadingIndicator(props) {
59
61
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
@@ -21,7 +21,7 @@ var _checkbox = _interopRequireDefault(require("@atlaskit/icon/glyph/checkbox"))
21
21
  var _radio = _interopRequireDefault(require("@atlaskit/icon/glyph/radio"));
22
22
  var _colors = require("@atlaskit/theme/colors");
23
23
  var _excluded = ["getStyles", "Icon", "children", "innerProps", "innerRef"];
24
- 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); }; }
24
+ function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; }
25
25
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
26
26
  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; }
27
27
  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; } /**
@@ -228,7 +228,8 @@ var ControlOption = /*#__PURE__*/function (_Component) {
228
228
  }, !!Icon ? (0, _react2.jsx)(Icon, {
229
229
  label: "",
230
230
  primaryColor: getPrimaryColor(_objectSpread(_objectSpread({}, this.props), this.state)),
231
- secondaryColor: getSecondaryColor(_objectSpread(_objectSpread({}, this.props), this.state))
231
+ secondaryColor: getSecondaryColor(_objectSpread(_objectSpread({}, this.props), this.state)),
232
+ isFacadeDisabled: true
232
233
  }) : null), (0, _react2.jsx)("div", {
233
234
  css: baseOptionStyles
234
235
  }, children))
@@ -242,7 +243,7 @@ var ControlOption = /*#__PURE__*/function (_Component) {
242
243
  */
243
244
  var CheckboxOption = exports.CheckboxOption = function CheckboxOption(props
244
245
  // TODO https://product-fabric.atlassian.net/browse/DSP-20768
245
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
246
+ // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons, @repo/internal/react/no-unsafe-spread-props
246
247
  ) {
247
248
  return (0, _react2.jsx)(ControlOption, (0, _extends2.default)({
248
249
  Icon: _checkbox.default
@@ -255,7 +256,7 @@ var CheckboxOption = exports.CheckboxOption = function CheckboxOption(props
255
256
  var RadioOption = exports.RadioOption = function RadioOption(props) {
256
257
  return (
257
258
  // TODO https://product-fabric.atlassian.net/browse/DSP-20769
258
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
259
+ // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons, @repo/internal/react/no-unsafe-spread-props
259
260
  (0, _react2.jsx)(ControlOption, (0, _extends2.default)({
260
261
  Icon: _radio.default
261
262
  }, props))
@@ -16,9 +16,9 @@ var _inputAriaDescribedby = require("./components/input-aria-describedby");
16
16
  var _noOptions = require("./components/no-options");
17
17
  var _styles = _interopRequireDefault(require("./styles"));
18
18
  var _groupedOptionsAnnouncement = require("./utils/grouped-options-announcement");
19
- var _excluded = ["appearance", "ariaLiveMessages", "components", "isInvalid", "onClickPreventDefault", "spacing", "styles", "tabSelectsValue", "validationState"];
19
+ var _excluded = ["appearance", "ariaLiveMessages", "components", "isInvalid", "onClickPreventDefault", "spacing", "styles", "tabSelectsValue", "validationState"]; // eslint-disable-next-line @repo/internal/fs/filename-pattern-match
20
20
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
21
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
21
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
22
22
  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; }
23
23
  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; }
24
24
  function createSelect(WrappedComponent) {
@@ -18,4 +18,4 @@ Object.defineProperty(exports, "default", {
18
18
  });
19
19
  var _Select = _interopRequireWildcard(require("../Select"));
20
20
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
21
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
21
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
package/dist/cjs/index.js CHANGED
@@ -134,4 +134,4 @@ var _CountrySelect = _interopRequireDefault(require("./CountrySelect"));
134
134
  var _RadioSelect = _interopRequireDefault(require("./RadioSelect"));
135
135
  var _PopupSelect = _interopRequireDefault(require("./PopupSelect"));
136
136
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
137
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
137
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -1,5 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
+ // eslint-disable-next-line @repo/internal/fs/filename-pattern-match
3
4
  import React, { PureComponent } from 'react';
4
5
  import { bind } from 'bind-event-listener';
5
6
  import { createPortal } from 'react-dom';
@@ -48,6 +49,8 @@ const defaultPopperProps = {
48
49
  placement: 'bottom-start'
49
50
  };
50
51
  const isEmpty = obj => Object.keys(obj).length === 0;
52
+
53
+ // eslint-disable-next-line @repo/internal/react/no-class-components
51
54
  export default class PopupSelect extends PureComponent {
52
55
  constructor(...args) {
53
56
  var _this$defaultOpenStat;
@@ -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.16.0";
5
+ const packageVersion = "17.17.0";
6
6
  export const SelectWithoutAnalytics = createSelect(ReactSelect);
7
7
  const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
8
8
  const Select = withAnalyticsContext({
@@ -30,23 +30,42 @@ export const MultiValueRemove = props => {
30
30
  const {
31
31
  isDisabled
32
32
  } = props.selectProps;
33
- return jsx(components.MultiValueRemove, props, jsx("div", {
34
- css: isDisabled ? disabledStyles : enabledStyles,
35
- "data-testid": isDisabled ? 'hide-clear-icon' : 'show-clear-icon'
36
- }, fg('platform-component-visual-refresh') ?
37
- // eslint-disable-next-line @atlaskit/design-system/ensure-icon-color
38
- jsx(CrossIcon, {
39
- label: "Clear"
40
- }) : jsx(Inline, {
41
- xcss: iconWrapperStyles
42
- }, jsx(CrossIcon, {
43
- label: "Clear",
44
- color: "currentColor",
45
- LEGACY_fallbackIcon: LegacySelectClearIcon,
46
- LEGACY_size: "small",
47
- LEGACY_primaryColor: "transparent",
48
- LEGACY_secondaryColor: "inherit",
49
- LEGACY_margin: "var(--ds-space-negative-025, -2px)"
50
- }))));
33
+ const renderIcon = () => {
34
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
35
+ if (fg('platform-component-visual-refresh')) {
36
+ return jsx(CrossIcon, {
37
+ label: "Clear",
38
+ color: "currentColor"
39
+ });
40
+ }
41
+
42
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
43
+ if (fg('platform-visual-refresh-icons-legacy-facade')) {
44
+ return jsx(Inline, {
45
+ xcss: iconWrapperStyles
46
+ }, jsx(CrossIcon, {
47
+ label: "Clear",
48
+ color: "currentColor"
49
+ }));
50
+ }
51
+ return (
52
+ // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
53
+ jsx(LegacySelectClearIcon, {
54
+ label: "Clear",
55
+ primaryColor: "transparent",
56
+ size: "small",
57
+ secondaryColor: "inherit"
58
+ })
59
+ );
60
+ };
61
+ return (
62
+ // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
63
+ jsx(components.MultiValueRemove, props, jsx("div", {
64
+ css: isDisabled ? disabledStyles : enabledStyles,
65
+ "data-testid": isDisabled ? 'hide-clear-icon' : 'show-clear-icon'
66
+ }, renderIcon()))
67
+ );
51
68
  };
69
+
70
+ // eslint-disable-next-line @repo/internal/react/require-jsdoc
52
71
  export const IndicatorSeparator = null;
@@ -7,8 +7,6 @@ import _extends from "@babel/runtime/helpers/extends";
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
8
  import { css, jsx } from '@emotion/react';
9
9
  import { components } from 'react-select';
10
-
11
- // import LegacyDownIcon from '@atlaskit/icon/glyph/chevron-down';
12
10
  import DownIcon from '@atlaskit/icon/utility/migration/chevron-down';
13
11
  import CrossIcon from '@atlaskit/icon/utility/migration/cross-circle--select-clear';
14
12
  import { Inline, Pressable, xcss } from '@atlaskit/primitives';
@@ -38,7 +36,9 @@ export const ClearIndicator = props => jsx(components.ClearIndicator, _extends({
38
36
  LEGACY_size: "small",
39
37
  LEGACY_margin: "var(--ds-space-negative-025, -0.125rem)"
40
38
  })));
41
- export const DropdownIndicator = props => jsx(components.DropdownIndicator, props, jsx(Inline, {
39
+ export const DropdownIndicator = props =>
40
+ // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
41
+ jsx(components.DropdownIndicator, props, jsx(Inline, {
42
42
  as: "span",
43
43
  xcss: dropdownWrapperStyles
44
44
  }, jsx(DownIcon, {
@@ -213,7 +213,8 @@ class ControlOption extends Component {
213
213
  secondaryColor: getSecondaryColor({
214
214
  ...this.props,
215
215
  ...this.state
216
- })
216
+ }),
217
+ isFacadeDisabled: true
217
218
  }) : null), jsx("div", {
218
219
  css: baseOptionStyles
219
220
  }, children))
@@ -226,7 +227,7 @@ class ControlOption extends Component {
226
227
  */
227
228
  export const CheckboxOption = (props
228
229
  // TODO https://product-fabric.atlassian.net/browse/DSP-20768
229
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
230
+ // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons, @repo/internal/react/no-unsafe-spread-props
230
231
  ) => jsx(ControlOption, _extends({
231
232
  Icon: CheckboxIcon
232
233
  }, props));
@@ -236,7 +237,7 @@ export const CheckboxOption = (props
236
237
  */
237
238
  export const RadioOption = props =>
238
239
  // TODO https://product-fabric.atlassian.net/browse/DSP-20769
239
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
240
+ // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons, @repo/internal/react/no-unsafe-spread-props
240
241
  jsx(ControlOption, _extends({
241
242
  Icon: RadioIcon
242
243
  }, props));
@@ -1,4 +1,5 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ // eslint-disable-next-line @repo/internal/fs/filename-pattern-match
2
3
  import React, { forwardRef, useEffect, useImperativeHandle, useMemo, useRef } from 'react';
3
4
  import { mergeStyles } from 'react-select';
4
5
  import { ClearIndicator, DropdownIndicator, IndicatorSeparator, LoadingIndicator, MultiValueRemove } from './components';
@@ -10,8 +10,9 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
10
10
  var _excluded = ["footer", "label", "maxMenuWidth", "minMenuWidth", "placeholder", "target", "testId", "onMenuOpen", "onMenuClose"];
11
11
  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; }
12
12
  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; }
13
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
13
+ function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
14
14
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
15
+ // eslint-disable-next-line @repo/internal/fs/filename-pattern-match
15
16
  import React, { PureComponent } from 'react';
16
17
  import { bind } from 'bind-event-listener';
17
18
  import { createPortal } from 'react-dom';
@@ -64,6 +65,8 @@ var defaultPopperProps = {
64
65
  var isEmpty = function isEmpty(obj) {
65
66
  return Object.keys(obj).length === 0;
66
67
  };
68
+
69
+ // eslint-disable-next-line @repo/internal/react/no-class-components
67
70
  var PopupSelect = /*#__PURE__*/function (_PureComponent) {
68
71
  _inherits(PopupSelect, _PureComponent);
69
72
  var _super = _createSuper(PopupSelect);
@@ -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.16.0";
5
+ var packageVersion = "17.17.0";
6
6
  export var SelectWithoutAnalytics = createSelect(ReactSelect);
7
7
  var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
8
8
  var Select = withAnalyticsContext({
@@ -28,23 +28,42 @@ var iconWrapperStyles = xcss({
28
28
  */
29
29
  export var MultiValueRemove = function MultiValueRemove(props) {
30
30
  var isDisabled = props.selectProps.isDisabled;
31
- return jsx(components.MultiValueRemove, props, jsx("div", {
32
- css: isDisabled ? disabledStyles : enabledStyles,
33
- "data-testid": isDisabled ? 'hide-clear-icon' : 'show-clear-icon'
34
- }, fg('platform-component-visual-refresh') ?
35
- // eslint-disable-next-line @atlaskit/design-system/ensure-icon-color
36
- jsx(CrossIcon, {
37
- label: "Clear"
38
- }) : jsx(Inline, {
39
- xcss: iconWrapperStyles
40
- }, jsx(CrossIcon, {
41
- label: "Clear",
42
- color: "currentColor",
43
- LEGACY_fallbackIcon: LegacySelectClearIcon,
44
- LEGACY_size: "small",
45
- LEGACY_primaryColor: "transparent",
46
- LEGACY_secondaryColor: "inherit",
47
- LEGACY_margin: "var(--ds-space-negative-025, -2px)"
48
- }))));
31
+ var renderIcon = function renderIcon() {
32
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
33
+ if (fg('platform-component-visual-refresh')) {
34
+ return jsx(CrossIcon, {
35
+ label: "Clear",
36
+ color: "currentColor"
37
+ });
38
+ }
39
+
40
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
41
+ if (fg('platform-visual-refresh-icons-legacy-facade')) {
42
+ return jsx(Inline, {
43
+ xcss: iconWrapperStyles
44
+ }, jsx(CrossIcon, {
45
+ label: "Clear",
46
+ color: "currentColor"
47
+ }));
48
+ }
49
+ return (
50
+ // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
51
+ jsx(LegacySelectClearIcon, {
52
+ label: "Clear",
53
+ primaryColor: "transparent",
54
+ size: "small",
55
+ secondaryColor: "inherit"
56
+ })
57
+ );
58
+ };
59
+ return (
60
+ // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
61
+ jsx(components.MultiValueRemove, props, jsx("div", {
62
+ css: isDisabled ? disabledStyles : enabledStyles,
63
+ "data-testid": isDisabled ? 'hide-clear-icon' : 'show-clear-icon'
64
+ }, renderIcon()))
65
+ );
49
66
  };
67
+
68
+ // eslint-disable-next-line @repo/internal/react/require-jsdoc
50
69
  export var IndicatorSeparator = null;
@@ -10,8 +10,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
10
10
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
11
  import { css, jsx } from '@emotion/react';
12
12
  import { components } from 'react-select';
13
-
14
- // import LegacyDownIcon from '@atlaskit/icon/glyph/chevron-down';
15
13
  import DownIcon from '@atlaskit/icon/utility/migration/chevron-down';
16
14
  import CrossIcon from '@atlaskit/icon/utility/migration/cross-circle--select-clear';
17
15
  import { Inline, Pressable, xcss } from '@atlaskit/primitives';
@@ -43,14 +41,17 @@ export var ClearIndicator = function ClearIndicator(props) {
43
41
  })));
44
42
  };
45
43
  export var DropdownIndicator = function DropdownIndicator(props) {
46
- return jsx(components.DropdownIndicator, props, jsx(Inline, {
47
- as: "span",
48
- xcss: dropdownWrapperStyles
49
- }, jsx(DownIcon, {
50
- color: "currentColor",
51
- label: "open",
52
- LEGACY_margin: "var(--ds-space-negative-075, -0.375rem)"
53
- })));
44
+ return (
45
+ // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
46
+ jsx(components.DropdownIndicator, props, jsx(Inline, {
47
+ as: "span",
48
+ xcss: dropdownWrapperStyles
49
+ }, jsx(DownIcon, {
50
+ color: "currentColor",
51
+ label: "open",
52
+ LEGACY_margin: "var(--ds-space-negative-075, -0.375rem)"
53
+ })))
54
+ );
54
55
  };
55
56
  export var LoadingIndicator = function LoadingIndicator(props) {
56
57
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
@@ -9,7 +9,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
9
9
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
10
10
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
11
11
  var _excluded = ["getStyles", "Icon", "children", "innerProps", "innerRef"];
12
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
12
+ function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
13
13
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
14
14
  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; }
15
15
  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; }
@@ -223,7 +223,8 @@ var ControlOption = /*#__PURE__*/function (_Component) {
223
223
  }, !!Icon ? jsx(Icon, {
224
224
  label: "",
225
225
  primaryColor: getPrimaryColor(_objectSpread(_objectSpread({}, this.props), this.state)),
226
- secondaryColor: getSecondaryColor(_objectSpread(_objectSpread({}, this.props), this.state))
226
+ secondaryColor: getSecondaryColor(_objectSpread(_objectSpread({}, this.props), this.state)),
227
+ isFacadeDisabled: true
227
228
  }) : null), jsx("div", {
228
229
  css: baseOptionStyles
229
230
  }, children))
@@ -237,7 +238,7 @@ var ControlOption = /*#__PURE__*/function (_Component) {
237
238
  */
238
239
  export var CheckboxOption = function CheckboxOption(props
239
240
  // TODO https://product-fabric.atlassian.net/browse/DSP-20768
240
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
241
+ // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons, @repo/internal/react/no-unsafe-spread-props
241
242
  ) {
242
243
  return jsx(ControlOption, _extends({
243
244
  Icon: CheckboxIcon
@@ -250,7 +251,7 @@ export var CheckboxOption = function CheckboxOption(props
250
251
  export var RadioOption = function RadioOption(props) {
251
252
  return (
252
253
  // TODO https://product-fabric.atlassian.net/browse/DSP-20769
253
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
254
+ // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons, @repo/internal/react/no-unsafe-spread-props
254
255
  jsx(ControlOption, _extends({
255
256
  Icon: RadioIcon
256
257
  }, props))
@@ -4,6 +4,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
4
4
  var _excluded = ["appearance", "ariaLiveMessages", "components", "isInvalid", "onClickPreventDefault", "spacing", "styles", "tabSelectsValue", "validationState"];
5
5
  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; }
6
6
  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; }
7
+ // eslint-disable-next-line @repo/internal/fs/filename-pattern-match
7
8
  import React, { forwardRef, useEffect, useImperativeHandle, useMemo, useRef } from 'react';
8
9
  import { mergeStyles } from 'react-select';
9
10
  import { ClearIndicator, DropdownIndicator, IndicatorSeparator, LoadingIndicator, MultiValueRemove } from './components';
@@ -110,7 +110,10 @@ export default class PopupSelect<Option = OptionType, IsMulti extends boolean =
110
110
  focusLockEnabled: boolean;
111
111
  isOpen: boolean;
112
112
  mergedComponents: {
113
- Control: React.FC<import("../types").ControlProps<OptionType, boolean>>;
113
+ Control: React.FC<import("../types").ControlProps<OptionType, boolean>>; /**
114
+ * The maximum width for the popup menu. Can be a number, representing the width in pixels,
115
+ * or a string containing a CSS length datatype.
116
+ */
114
117
  DropdownIndicator: () => import("@emotion/react").jsx.JSX.Element;
115
118
  Menu: ({ children, innerProps }: import("../types").MenuProps<OptionType, boolean>) => import("@emotion/react").jsx.JSX.Element;
116
119
  IndicatorSeparator: (props: import("react-select").IndicatorSeparatorProps<unknown, boolean, GroupBase<unknown>>) => import("@emotion/react").jsx.JSX.Element;
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
- import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
- import { type SelectInstance, type Props as ReactSelectProps, type FormatOptionLabelMeta, type OnChangeValue as RSValueType, type ActionMeta as RSActionMeta, type GroupBase as GroupType, type Options as RSOptionsType, type SelectComponentsConfig as RSSelectComponentsConfig, type StylesConfig as RSStylesConfig, type InputActionMeta, type ClearIndicatorProps, type DropdownIndicatorProps, type IndicatorSeparatorProps, type LoadingIndicatorProps, type NoticeProps, type ControlProps as RSControlProps, type GroupProps as RSGroupProps, type InputProps, type MenuProps as RSMenuProps, type MenuListProps as RSMenuListComponentProps, type MultiValueProps, type OptionProps as ReactSelectOptionProps, type PlaceholderProps as RSPlaceholderProps, type SingleValueProps, type ValueContainerProps as RSValueContainerProps, type MultiValueRemoveProps, type AriaOnFocusProps } from 'react-select';
4
- import type BaseSelect from 'react-select/base';
2
+ import { type AriaOnFocusProps, type ClearIndicatorProps, type DropdownIndicatorProps, type FormatOptionLabelMeta, type GroupBase as GroupType, type IndicatorSeparatorProps, type InputActionMeta, type InputProps, type LoadingIndicatorProps, type MultiValueProps, type MultiValueRemoveProps, type NoticeProps, type OptionProps as ReactSelectOptionProps, type Props as ReactSelectProps, type ActionMeta as RSActionMeta, type ControlProps as RSControlProps, type GroupProps as RSGroupProps, type MenuListProps as RSMenuListComponentProps, type MenuProps as RSMenuProps, type Options as RSOptionsType, type PlaceholderProps as RSPlaceholderProps, type SelectComponentsConfig as RSSelectComponentsConfig, type StylesConfig as RSStylesConfig, type ValueContainerProps as RSValueContainerProps, type OnChangeValue as RSValueType, type SelectInstance, type SingleValueProps } from 'react-select';
5
3
  import { type AsyncProps } from 'react-select/async';
4
+ import type BaseSelect from 'react-select/base';
6
5
  import { type CreatableProps } from 'react-select/creatable';
6
+ import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
7
7
  export type ValidationState = 'default' | 'error' | 'success';
8
8
  export interface OptionType {
9
9
  [key: string]: any;
@@ -19,27 +19,36 @@ export interface OptionProps<Option = OptionType, IsMulti extends boolean = fals
19
19
  onClick?: (e: MouseEvent) => void;
20
20
  primaryColor?: string;
21
21
  secondaryColor?: string;
22
+ isFacadeDisabled?: boolean;
22
23
  }>;
23
24
  isDisabled: boolean;
24
25
  isFocused: boolean;
25
26
  isSelected: boolean;
26
27
  }
27
28
  interface CustomSelectProps extends WithAnalyticsEventsProps {
28
- /** This prop affects the height of the select control. Compact is gridSize() * 4, default is gridSize * 5 */
29
+ /**
30
+ * This prop affects the height of the select control. Compact is gridSize() * 4, default is gridSize * 5
31
+ */
29
32
  spacing?: 'compact' | 'default';
30
- /** This prop affects the backgroundColor and border of the Select field. 'subtle' makes these transparent while 'none' prevents all field styling. Take care when using the none appearance as this doesn't include accessible interactions. */
33
+ /**
34
+ * This prop affects the backgroundColor and border of the Select field. 'subtle' makes these transparent while 'none' prevents all field styling. Take care when using the none appearance as this doesn't include accessible interactions.
35
+ */
31
36
  appearance?: 'default' | 'subtle' | 'none';
32
37
  /**
33
- A `testId` prop is provided for specified elements, which is a unique string that appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests.
34
-
35
- **WARNING:** This prop is currently broken and a test ID will not be added to select.
36
- Please refer to the [select testing page](https://atlassian.design/components/select/testing)
37
- for guidance on alternatives to identifying select in tests.
38
- */
38
+ * A `testId` prop is provided for specified elements, which is a unique string that appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests.
39
+ *
40
+ *WARNING:** This prop is currently broken and a test ID will not be added to select.
41
+ * Please refer to the [select testing page](https://atlassian.design/components/select/testing)
42
+ * for guidance on alternatives to identifying select in tests.
43
+ */
39
44
  testId?: string;
40
- /** This prop indicates if the component is in an error state */
45
+ /**
46
+ * This prop indicates if the component is in an error state
47
+ */
41
48
  isInvalid?: boolean;
42
- /** @deprecated Use isInvalid instead. The state of validation if used in a form. */
49
+ /**
50
+ * @deprecated Use isInvalid instead. The state of validation if used in a form.
51
+ */
43
52
  validationState?: ValidationState;
44
53
  }
45
54
  export interface SelectProps<Option, IsMulti extends boolean = false> extends ReactSelectProps<Option, IsMulti>, CustomSelectProps {
@@ -110,7 +110,10 @@ export default class PopupSelect<Option = OptionType, IsMulti extends boolean =
110
110
  focusLockEnabled: boolean;
111
111
  isOpen: boolean;
112
112
  mergedComponents: {
113
- Control: React.FC<import("../types").ControlProps<OptionType, boolean>>;
113
+ Control: React.FC<import("../types").ControlProps<OptionType, boolean>>; /**
114
+ * The maximum width for the popup menu. Can be a number, representing the width in pixels,
115
+ * or a string containing a CSS length datatype.
116
+ */
114
117
  DropdownIndicator: () => import("@emotion/react").jsx.JSX.Element;
115
118
  Menu: ({ children, innerProps }: import("../types").MenuProps<OptionType, boolean>) => import("@emotion/react").jsx.JSX.Element;
116
119
  IndicatorSeparator: (props: import("react-select").IndicatorSeparatorProps<unknown, boolean, GroupBase<unknown>>) => import("@emotion/react").jsx.JSX.Element;
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
- import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
- import { type SelectInstance, type Props as ReactSelectProps, type FormatOptionLabelMeta, type OnChangeValue as RSValueType, type ActionMeta as RSActionMeta, type GroupBase as GroupType, type Options as RSOptionsType, type SelectComponentsConfig as RSSelectComponentsConfig, type StylesConfig as RSStylesConfig, type InputActionMeta, type ClearIndicatorProps, type DropdownIndicatorProps, type IndicatorSeparatorProps, type LoadingIndicatorProps, type NoticeProps, type ControlProps as RSControlProps, type GroupProps as RSGroupProps, type InputProps, type MenuProps as RSMenuProps, type MenuListProps as RSMenuListComponentProps, type MultiValueProps, type OptionProps as ReactSelectOptionProps, type PlaceholderProps as RSPlaceholderProps, type SingleValueProps, type ValueContainerProps as RSValueContainerProps, type MultiValueRemoveProps, type AriaOnFocusProps } from 'react-select';
4
- import type BaseSelect from 'react-select/base';
2
+ import { type AriaOnFocusProps, type ClearIndicatorProps, type DropdownIndicatorProps, type FormatOptionLabelMeta, type GroupBase as GroupType, type IndicatorSeparatorProps, type InputActionMeta, type InputProps, type LoadingIndicatorProps, type MultiValueProps, type MultiValueRemoveProps, type NoticeProps, type OptionProps as ReactSelectOptionProps, type Props as ReactSelectProps, type ActionMeta as RSActionMeta, type ControlProps as RSControlProps, type GroupProps as RSGroupProps, type MenuListProps as RSMenuListComponentProps, type MenuProps as RSMenuProps, type Options as RSOptionsType, type PlaceholderProps as RSPlaceholderProps, type SelectComponentsConfig as RSSelectComponentsConfig, type StylesConfig as RSStylesConfig, type ValueContainerProps as RSValueContainerProps, type OnChangeValue as RSValueType, type SelectInstance, type SingleValueProps } from 'react-select';
5
3
  import { type AsyncProps } from 'react-select/async';
4
+ import type BaseSelect from 'react-select/base';
6
5
  import { type CreatableProps } from 'react-select/creatable';
6
+ import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
7
7
  export type ValidationState = 'default' | 'error' | 'success';
8
8
  export interface OptionType {
9
9
  [key: string]: any;
@@ -19,27 +19,36 @@ export interface OptionProps<Option = OptionType, IsMulti extends boolean = fals
19
19
  onClick?: (e: MouseEvent) => void;
20
20
  primaryColor?: string;
21
21
  secondaryColor?: string;
22
+ isFacadeDisabled?: boolean;
22
23
  }>;
23
24
  isDisabled: boolean;
24
25
  isFocused: boolean;
25
26
  isSelected: boolean;
26
27
  }
27
28
  interface CustomSelectProps extends WithAnalyticsEventsProps {
28
- /** This prop affects the height of the select control. Compact is gridSize() * 4, default is gridSize * 5 */
29
+ /**
30
+ * This prop affects the height of the select control. Compact is gridSize() * 4, default is gridSize * 5
31
+ */
29
32
  spacing?: 'compact' | 'default';
30
- /** This prop affects the backgroundColor and border of the Select field. 'subtle' makes these transparent while 'none' prevents all field styling. Take care when using the none appearance as this doesn't include accessible interactions. */
33
+ /**
34
+ * This prop affects the backgroundColor and border of the Select field. 'subtle' makes these transparent while 'none' prevents all field styling. Take care when using the none appearance as this doesn't include accessible interactions.
35
+ */
31
36
  appearance?: 'default' | 'subtle' | 'none';
32
37
  /**
33
- A `testId` prop is provided for specified elements, which is a unique string that appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests.
34
-
35
- **WARNING:** This prop is currently broken and a test ID will not be added to select.
36
- Please refer to the [select testing page](https://atlassian.design/components/select/testing)
37
- for guidance on alternatives to identifying select in tests.
38
- */
38
+ * A `testId` prop is provided for specified elements, which is a unique string that appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests.
39
+ *
40
+ *WARNING:** This prop is currently broken and a test ID will not be added to select.
41
+ * Please refer to the [select testing page](https://atlassian.design/components/select/testing)
42
+ * for guidance on alternatives to identifying select in tests.
43
+ */
39
44
  testId?: string;
40
- /** This prop indicates if the component is in an error state */
45
+ /**
46
+ * This prop indicates if the component is in an error state
47
+ */
41
48
  isInvalid?: boolean;
42
- /** @deprecated Use isInvalid instead. The state of validation if used in a form. */
49
+ /**
50
+ * @deprecated Use isInvalid instead. The state of validation if used in a form.
51
+ */
43
52
  validationState?: ValidationState;
44
53
  }
45
54
  export interface SelectProps<Option, IsMulti extends boolean = false> extends ReactSelectProps<Option, IsMulti>, CustomSelectProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/select",
3
- "version": "17.16.0",
3
+ "version": "17.17.0",
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/"
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@atlaskit/analytics-next": "^10.1.0",
42
- "@atlaskit/icon": "^22.16.0",
42
+ "@atlaskit/icon": "^22.17.0",
43
43
  "@atlaskit/platform-feature-flags": "^0.3.0",
44
44
  "@atlaskit/primitives": "^12.1.0",
45
45
  "@atlaskit/spinner": "^16.3.0",
@@ -105,6 +105,9 @@
105
105
  "platform-component-visual-refresh": {
106
106
  "type": "boolean"
107
107
  },
108
+ "platform-visual-refresh-icons-legacy-facade": {
109
+ "type": "boolean"
110
+ },
108
111
  "tab-event-should-close-popupSelect": {
109
112
  "type": "boolean"
110
113
  }