@atlaskit/select 20.3.0 → 20.4.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,25 @@
1
1
  # @atlaskit/select
2
2
 
3
+ ## 20.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#142856](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/142856)
8
+ [`578fbeefd6128`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/578fbeefd6128) -
9
+ Remove feature flag to allow new controls
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 20.3.1
16
+
17
+ ### Patch Changes
18
+
19
+ - [#142578](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/142578)
20
+ [`a1e85a3a1ca96`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a1e85a3a1ca96) -
21
+ Export more types from atlaskit/react-select
22
+
3
23
  ## 20.3.0
4
24
 
5
25
  ### Minor Changes
@@ -10,8 +10,8 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
10
10
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
11
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
12
12
  var _react = _interopRequireWildcard(require("react"));
13
- var _Select = _interopRequireDefault(require("./Select"));
14
13
  var _inputOptions = require("./components/input-options");
14
+ var _Select = _interopRequireDefault(require("./Select"));
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
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; }
@@ -37,4 +37,6 @@ var CheckboxSelect = /*#__PURE__*/_react.default.memo(CheckboxSelectInternal
37
37
  // Type casting as `React.memo` does not forward generic types
38
38
  // Reference: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/37087#issuecomment-656596623
39
39
  );
40
+
41
+ // eslint-disable-next-line @repo/internal/react/require-jsdoc
40
42
  var _default = exports.default = CheckboxSelect;
@@ -429,9 +429,7 @@ var PopupSelect = exports.default = /*#__PURE__*/function (_PureComponent) {
429
429
  label: providedAriaLabel
430
430
  // TODO: Popup Select does not work well with active-descendant
431
431
  ,
432
- "aria-live": (0, _deviceCheck.isAppleDevice)() &&
433
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
434
- (0, _platformFeatureFlags.fg)('design_system_select-a11y-improvement') ? 'assertive' // only needed on Apple products
432
+ "aria-live": (0, _deviceCheck.isAppleDevice)() && (0, _platformFeatureFlags.fg)('design_system_select-a11y-improvement') ? 'assertive' // only needed on Apple products
435
433
  : undefined,
436
434
  backspaceRemovesValue: false,
437
435
  controlShouldRenderValue: false,
@@ -441,9 +439,7 @@ var PopupSelect = exports.default = /*#__PURE__*/function (_PureComponent) {
441
439
  placeholder: placeholder,
442
440
  ref: _this.getSelectRef
443
441
  }, props, {
444
- isSearchable: showSearchControl
445
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
446
- ,
442
+ isSearchable: showSearchControl,
447
443
  styles: (0, _reactSelect.mergeStyles)(_this.defaultStyles, props.styles || {}),
448
444
  maxMenuHeight: _this.getMaxHeight(),
449
445
  components: selectComponents,
@@ -20,6 +20,7 @@ var _openLayerObserver = require("@atlaskit/layering/experimental/open-layer-obs
20
20
  function NotifyOpenLayerObserver(_ref) {
21
21
  var isOpen = _ref.isOpen,
22
22
  onClose = _ref.onClose;
23
+ // @ts-ignore error TS2353: Object literal may only specify known properties, and 'onClose' does not exist in type '{ isOpen?: boolean | undefined; }'.
23
24
  (0, _openLayerObserver.useNotifyOpenLayerObserver)({
24
25
  isOpen: isOpen,
25
26
  onClose: onClose
@@ -11,7 +11,7 @@ var _createSelect = _interopRequireDefault(require("./createSelect"));
11
11
  /* eslint-disable @repo/internal/react/require-jsdoc */
12
12
 
13
13
  var packageName = "@atlaskit/select";
14
- var packageVersion = "20.3.0";
14
+ var packageVersion = "20.4.0";
15
15
  var SelectWithoutAnalytics = exports.SelectWithoutAnalytics = (0, _createSelect.default)(_async.default);
16
16
  var createAndFireEventOnAtlaskit = (0, _analyticsNext.createAndFireEvent)('atlaskit');
17
17
  var Select = (0, _analyticsNext.withAnalyticsContext)({
@@ -66,8 +66,6 @@ var iconStyles = {
66
66
  };
67
67
  var baseIconStyles = null;
68
68
  var baseOptionStyles = null;
69
-
70
- // eslint-disable-next-line @repo/internal/react/no-class-components
71
69
  var ControlOption = function ControlOption(props) {
72
70
  var _useState = (0, _react.useState)(false),
73
71
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
@@ -170,8 +168,8 @@ var NewRadioIcon = function NewRadioIcon(props) {
170
168
  var CheckboxOption = exports.CheckboxOption = function CheckboxOption(props) {
171
169
  return /*#__PURE__*/React.createElement(ControlOption, (0, _extends2.default)({
172
170
  Icon:
173
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix, @atlaskit/platform/no-preconditioning
174
- (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && (0, _platformFeatureFlags.fg)('platform-icon-control-migration') ? NewCheckboxIcon :
171
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
172
+ (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? NewCheckboxIcon :
175
173
  // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
176
174
  _checkbox.default
177
175
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
@@ -185,11 +183,10 @@ var RadioOption = exports.RadioOption = function RadioOption(props) {
185
183
  return (
186
184
  /*#__PURE__*/
187
185
  // TODO https://product-fabric.atlassian.net/browse/DSP-20769
188
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons, @repo/internal/react/no-unsafe-spread-props
189
186
  React.createElement(ControlOption, (0, _extends2.default)({
190
187
  Icon:
191
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix, @atlaskit/platform/no-preconditioning
192
- (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && (0, _platformFeatureFlags.fg)('platform-icon-control-migration') ? NewRadioIcon :
188
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
189
+ (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? NewRadioIcon :
193
190
  // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
194
191
  _radio.default
195
192
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
@@ -56,7 +56,6 @@ function createSelect(WrappedComponent) {
56
56
  ref: internalSelectRef,
57
57
  "aria-live": (0, _platformFeatureFlags.fg)('design_system_select-a11y-improvement') ? undefined : 'assertive',
58
58
  ariaLiveMessages:
59
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
60
59
  //TO DO: Still need live region for PopupSelect because of the menu being open by default
61
60
  (0, _groupedOptionsAnnouncement.isOptionsGrouped)(props.options) ? _objectSpread({
62
61
  onFocus: function onFocus(data) {
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { useMemo } from 'react';
3
- import Select from './Select';
4
3
  import { CheckboxOption } from './components/input-options';
4
+ import Select from './Select';
5
5
  const CheckboxSelectInternal = ({
6
6
  components,
7
7
  ...props
@@ -22,4 +22,6 @@ const CheckboxSelect = /*#__PURE__*/React.memo(CheckboxSelectInternal
22
22
  // Type casting as `React.memo` does not forward generic types
23
23
  // Reference: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/37087#issuecomment-656596623
24
24
  );
25
+
26
+ // eslint-disable-next-line @repo/internal/react/require-jsdoc
25
27
  export default CheckboxSelect;
@@ -412,9 +412,7 @@ export default class PopupSelect extends PureComponent {
412
412
  label: providedAriaLabel
413
413
  // TODO: Popup Select does not work well with active-descendant
414
414
  ,
415
- "aria-live": isAppleDevice() &&
416
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
417
- fg('design_system_select-a11y-improvement') ? 'assertive' // only needed on Apple products
415
+ "aria-live": isAppleDevice() && fg('design_system_select-a11y-improvement') ? 'assertive' // only needed on Apple products
418
416
  : undefined,
419
417
  backspaceRemovesValue: false,
420
418
  controlShouldRenderValue: false,
@@ -424,9 +422,7 @@ export default class PopupSelect extends PureComponent {
424
422
  placeholder: placeholder,
425
423
  ref: this.getSelectRef
426
424
  }, props, {
427
- isSearchable: showSearchControl
428
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
429
- ,
425
+ isSearchable: showSearchControl,
430
426
  styles: mergeStyles(this.defaultStyles, props.styles || {}),
431
427
  maxMenuHeight: this.getMaxHeight(),
432
428
  components: selectComponents,
@@ -15,6 +15,7 @@ export function NotifyOpenLayerObserver({
15
15
  isOpen,
16
16
  onClose
17
17
  }) {
18
+ // @ts-ignore error TS2353: Object literal may only specify known properties, and 'onClose' does not exist in type '{ isOpen?: boolean | undefined; }'.
18
19
  useNotifyOpenLayerObserver({
19
20
  isOpen,
20
21
  onClose
@@ -3,7 +3,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
3
3
  import AsyncSelect from '@atlaskit/react-select/async';
4
4
  import createSelect from './createSelect';
5
5
  const packageName = "@atlaskit/select";
6
- const packageVersion = "20.3.0";
6
+ const packageVersion = "20.4.0";
7
7
  export const SelectWithoutAnalytics = createSelect(AsyncSelect);
8
8
  const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
9
9
  const Select = withAnalyticsContext({
@@ -57,8 +57,6 @@ const iconStyles = {
57
57
  };
58
58
  const baseIconStyles = null;
59
59
  const baseOptionStyles = null;
60
-
61
- // eslint-disable-next-line @repo/internal/react/no-class-components
62
60
  const ControlOption = props => {
63
61
  const [isActive, setIsActive] = useState(false);
64
62
  const onMouseDown = useCallback(() => setIsActive(true), []);
@@ -147,8 +145,8 @@ React.createElement(PrimitiveSVGIcon, props, /*#__PURE__*/React.createElement("g
147
145
  */
148
146
  export const CheckboxOption = props => /*#__PURE__*/React.createElement(ControlOption, _extends({
149
147
  Icon:
150
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix, @atlaskit/platform/no-preconditioning
151
- fg('platform-visual-refresh-icons') && fg('platform-icon-control-migration') ? NewCheckboxIcon :
148
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
149
+ fg('platform-visual-refresh-icons') ? NewCheckboxIcon :
152
150
  // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
153
151
  CheckboxIcon
154
152
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
@@ -160,11 +158,10 @@ export const CheckboxOption = props => /*#__PURE__*/React.createElement(ControlO
160
158
  export const RadioOption = props =>
161
159
  /*#__PURE__*/
162
160
  // TODO https://product-fabric.atlassian.net/browse/DSP-20769
163
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons, @repo/internal/react/no-unsafe-spread-props
164
161
  React.createElement(ControlOption, _extends({
165
162
  Icon:
166
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix, @atlaskit/platform/no-preconditioning
167
- fg('platform-visual-refresh-icons') && fg('platform-icon-control-migration') ? NewRadioIcon :
163
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
164
+ fg('platform-visual-refresh-icons') ? NewRadioIcon :
168
165
  // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
169
166
  RadioIcon
170
167
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
@@ -39,7 +39,6 @@ export default function createSelect(WrappedComponent) {
39
39
  ref: internalSelectRef,
40
40
  "aria-live": fg('design_system_select-a11y-improvement') ? undefined : 'assertive',
41
41
  ariaLiveMessages:
42
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
43
42
  //TO DO: Still need live region for PopupSelect because of the menu being open by default
44
43
  isOptionsGrouped(props.options) ? {
45
44
  onFocus: data => onFocus(data, props.options),
@@ -5,8 +5,8 @@ var _excluded = ["components"];
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
7
  import React, { useMemo } from 'react';
8
- import Select from './Select';
9
8
  import { CheckboxOption } from './components/input-options';
9
+ import Select from './Select';
10
10
  var CheckboxSelectInternal = function CheckboxSelectInternal(_ref) {
11
11
  var components = _ref.components,
12
12
  props = _objectWithoutProperties(_ref, _excluded);
@@ -27,4 +27,6 @@ var CheckboxSelect = /*#__PURE__*/React.memo(CheckboxSelectInternal
27
27
  // Type casting as `React.memo` does not forward generic types
28
28
  // Reference: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/37087#issuecomment-656596623
29
29
  );
30
+
31
+ // eslint-disable-next-line @repo/internal/react/require-jsdoc
30
32
  export default CheckboxSelect;
@@ -421,9 +421,7 @@ var PopupSelect = /*#__PURE__*/function (_PureComponent) {
421
421
  label: providedAriaLabel
422
422
  // TODO: Popup Select does not work well with active-descendant
423
423
  ,
424
- "aria-live": isAppleDevice() &&
425
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
426
- fg('design_system_select-a11y-improvement') ? 'assertive' // only needed on Apple products
424
+ "aria-live": isAppleDevice() && fg('design_system_select-a11y-improvement') ? 'assertive' // only needed on Apple products
427
425
  : undefined,
428
426
  backspaceRemovesValue: false,
429
427
  controlShouldRenderValue: false,
@@ -433,9 +431,7 @@ var PopupSelect = /*#__PURE__*/function (_PureComponent) {
433
431
  placeholder: placeholder,
434
432
  ref: _this.getSelectRef
435
433
  }, props, {
436
- isSearchable: showSearchControl
437
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
438
- ,
434
+ isSearchable: showSearchControl,
439
435
  styles: mergeStyles(_this.defaultStyles, props.styles || {}),
440
436
  maxMenuHeight: _this.getMaxHeight(),
441
437
  components: selectComponents,
@@ -14,6 +14,7 @@ import { useNotifyOpenLayerObserver } from '@atlaskit/layering/experimental/open
14
14
  export function NotifyOpenLayerObserver(_ref) {
15
15
  var isOpen = _ref.isOpen,
16
16
  onClose = _ref.onClose;
17
+ // @ts-ignore error TS2353: Object literal may only specify known properties, and &#39;onClose&#39; does not exist in type &#39;{ isOpen?: boolean | undefined; }&#39;.
17
18
  useNotifyOpenLayerObserver({
18
19
  isOpen: isOpen,
19
20
  onClose: onClose
@@ -3,7 +3,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
3
3
  import AsyncSelect from '@atlaskit/react-select/async';
4
4
  import createSelect from './createSelect';
5
5
  var packageName = "@atlaskit/select";
6
- var packageVersion = "20.3.0";
6
+ var packageVersion = "20.4.0";
7
7
  export var SelectWithoutAnalytics = createSelect(AsyncSelect);
8
8
  var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
9
9
  var Select = withAnalyticsContext({
@@ -56,8 +56,6 @@ var iconStyles = {
56
56
  };
57
57
  var baseIconStyles = null;
58
58
  var baseOptionStyles = null;
59
-
60
- // eslint-disable-next-line @repo/internal/react/no-class-components
61
59
  var ControlOption = function ControlOption(props) {
62
60
  var _useState = useState(false),
63
61
  _useState2 = _slicedToArray(_useState, 2),
@@ -160,8 +158,8 @@ var NewRadioIcon = function NewRadioIcon(props) {
160
158
  export var CheckboxOption = function CheckboxOption(props) {
161
159
  return /*#__PURE__*/React.createElement(ControlOption, _extends({
162
160
  Icon:
163
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix, @atlaskit/platform/no-preconditioning
164
- fg('platform-visual-refresh-icons') && fg('platform-icon-control-migration') ? NewCheckboxIcon :
161
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
162
+ fg('platform-visual-refresh-icons') ? NewCheckboxIcon :
165
163
  // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
166
164
  CheckboxIcon
167
165
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
@@ -175,11 +173,10 @@ export var RadioOption = function RadioOption(props) {
175
173
  return (
176
174
  /*#__PURE__*/
177
175
  // TODO https://product-fabric.atlassian.net/browse/DSP-20769
178
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons, @repo/internal/react/no-unsafe-spread-props
179
176
  React.createElement(ControlOption, _extends({
180
177
  Icon:
181
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix, @atlaskit/platform/no-preconditioning
182
- fg('platform-visual-refresh-icons') && fg('platform-icon-control-migration') ? NewRadioIcon :
178
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
179
+ fg('platform-visual-refresh-icons') ? NewRadioIcon :
183
180
  // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
184
181
  RadioIcon
185
182
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
@@ -46,7 +46,6 @@ export default function createSelect(WrappedComponent) {
46
46
  ref: internalSelectRef,
47
47
  "aria-live": fg('design_system_select-a11y-improvement') ? undefined : 'assertive',
48
48
  ariaLiveMessages:
49
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
50
49
  //TO DO: Still need live region for PopupSelect because of the menu being open by default
51
50
  isOptionsGrouped(props.options) ? _objectSpread({
52
51
  onFocus: function onFocus(data) {
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { type SelectProps, type OptionType } from './types';
2
+ import { type OptionType, type SelectProps } from './types';
3
3
  declare const CheckboxSelect: <OptionT extends OptionType>({ components, ...props }: SelectProps<OptionT, true>) => React.JSX.Element;
4
4
  export default CheckboxSelect;
@@ -1,4 +1,4 @@
1
- export { components, createFilter, mergeStyles } from '@atlaskit/react-select';
1
+ export { components, createFilter, mergeStyles, type CSSObjectWithLabel, } from '@atlaskit/react-select';
2
2
  export { useAsync } from '@atlaskit/react-select/async';
3
3
  export { useCreatable } from '@atlaskit/react-select/creatable';
4
4
  export { CheckboxOption, RadioOption } from './components/input-options';
@@ -13,7 +13,7 @@ export { default as CountrySelect } from './CountrySelect';
13
13
  export { default as RadioSelect } from './RadioSelect';
14
14
  export { default as PopupSelect } from './PopupSelect';
15
15
  export type { PopupSelectProps, ModifierList } from './PopupSelect';
16
- export type { SelectInstance, ActionMeta, ControlProps, FormatOptionLabelMeta, InputActionMeta, InputProps, MenuProps, MenuListComponentProps, OptionProps, OptionsType, OptionType, SelectComponentsConfig, SelectProps, StylesConfig, ValueContainerProps, ValueType, GroupedOptionsType, GroupType, ClearIndicatorProps, DropdownIndicatorProps, IndicatorsContainerProps, LoadingIndicatorProps, MultiValueProps, MultiValueRemoveProps, ReactSelectProps, SingleValueProps, NoticeProps, ValidationState, GroupProps, AsyncSelectProps, PlaceholderProps, AriaOnFocusProps, } from './types';
16
+ export type { SelectInstance, ActionMeta, ControlProps, FormatOptionLabelMeta, InputActionMeta, InputProps, MenuProps, MenuListComponentProps, OptionProps, OptionsType, OptionType, SelectComponentsConfig, SelectProps, StylesConfig, ValueContainerProps, ValueType, GroupedOptionsType, GroupType, ClearIndicatorProps, DropdownIndicatorProps, IndicatorsContainerProps, LoadingIndicatorProps, MultiValueGenericProps, MultiValueProps, MultiValueRemoveProps, ReactSelectProps, SingleValueProps, NoticeProps, ValidationState, GroupProps, AsyncSelectProps, PlaceholderProps, AriaOnFocusProps, } from './types';
17
17
  /**
18
18
  * Types not exported on the public API, didn't find usages in sourcegraph
19
19
  *
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
- import { type AriaOnFocusProps, type ClearIndicatorProps, type DropdownIndicatorProps, type FormatOptionLabelMeta, type GroupBase as GroupType, type IndicatorsContainerProps, 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 '@atlaskit/react-select';
3
+ import { type AriaOnFocusProps, type ClearIndicatorProps, type DropdownIndicatorProps, type FormatOptionLabelMeta, type GroupBase as GroupType, type IndicatorsContainerProps, type InputActionMeta, type InputProps, type LoadingIndicatorProps, type MultiValueGenericProps, 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 '@atlaskit/react-select';
4
4
  import { type AsyncProps } from '@atlaskit/react-select/async';
5
5
  import type BaseSelect from '@atlaskit/react-select/base';
6
6
  import { type CreatableProps } from '@atlaskit/react-select/creatable';
@@ -82,4 +82,4 @@ export type AtlaskitSelectRefType = {
82
82
  blur: () => void;
83
83
  focus: () => void;
84
84
  };
85
- export type { SelectInstance, FormatOptionLabelMeta, InputActionMeta, GroupType, InputProps, MultiValueProps, ReactSelectProps, SingleValueProps, ClearIndicatorProps, DropdownIndicatorProps, IndicatorsContainerProps, LoadingIndicatorProps, NoticeProps, MultiValueRemoveProps, AriaOnFocusProps, };
85
+ export type { SelectInstance, FormatOptionLabelMeta, InputActionMeta, GroupType, InputProps, MultiValueProps, MultiValueGenericProps, ReactSelectProps, SingleValueProps, ClearIndicatorProps, DropdownIndicatorProps, IndicatorsContainerProps, LoadingIndicatorProps, NoticeProps, MultiValueRemoveProps, AriaOnFocusProps, };
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { type SelectProps, type OptionType } from './types';
2
+ import { type OptionType, type SelectProps } from './types';
3
3
  declare const CheckboxSelect: <OptionT extends OptionType>({ components, ...props }: SelectProps<OptionT, true>) => React.JSX.Element;
4
4
  export default CheckboxSelect;
@@ -1,4 +1,4 @@
1
- export { components, createFilter, mergeStyles } from '@atlaskit/react-select';
1
+ export { components, createFilter, mergeStyles, type CSSObjectWithLabel, } from '@atlaskit/react-select';
2
2
  export { useAsync } from '@atlaskit/react-select/async';
3
3
  export { useCreatable } from '@atlaskit/react-select/creatable';
4
4
  export { CheckboxOption, RadioOption } from './components/input-options';
@@ -13,7 +13,7 @@ export { default as CountrySelect } from './CountrySelect';
13
13
  export { default as RadioSelect } from './RadioSelect';
14
14
  export { default as PopupSelect } from './PopupSelect';
15
15
  export type { PopupSelectProps, ModifierList } from './PopupSelect';
16
- export type { SelectInstance, ActionMeta, ControlProps, FormatOptionLabelMeta, InputActionMeta, InputProps, MenuProps, MenuListComponentProps, OptionProps, OptionsType, OptionType, SelectComponentsConfig, SelectProps, StylesConfig, ValueContainerProps, ValueType, GroupedOptionsType, GroupType, ClearIndicatorProps, DropdownIndicatorProps, IndicatorsContainerProps, LoadingIndicatorProps, MultiValueProps, MultiValueRemoveProps, ReactSelectProps, SingleValueProps, NoticeProps, ValidationState, GroupProps, AsyncSelectProps, PlaceholderProps, AriaOnFocusProps, } from './types';
16
+ export type { SelectInstance, ActionMeta, ControlProps, FormatOptionLabelMeta, InputActionMeta, InputProps, MenuProps, MenuListComponentProps, OptionProps, OptionsType, OptionType, SelectComponentsConfig, SelectProps, StylesConfig, ValueContainerProps, ValueType, GroupedOptionsType, GroupType, ClearIndicatorProps, DropdownIndicatorProps, IndicatorsContainerProps, LoadingIndicatorProps, MultiValueGenericProps, MultiValueProps, MultiValueRemoveProps, ReactSelectProps, SingleValueProps, NoticeProps, ValidationState, GroupProps, AsyncSelectProps, PlaceholderProps, AriaOnFocusProps, } from './types';
17
17
  /**
18
18
  * Types not exported on the public API, didn't find usages in sourcegraph
19
19
  *
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
- import { type AriaOnFocusProps, type ClearIndicatorProps, type DropdownIndicatorProps, type FormatOptionLabelMeta, type GroupBase as GroupType, type IndicatorsContainerProps, 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 '@atlaskit/react-select';
3
+ import { type AriaOnFocusProps, type ClearIndicatorProps, type DropdownIndicatorProps, type FormatOptionLabelMeta, type GroupBase as GroupType, type IndicatorsContainerProps, type InputActionMeta, type InputProps, type LoadingIndicatorProps, type MultiValueGenericProps, 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 '@atlaskit/react-select';
4
4
  import { type AsyncProps } from '@atlaskit/react-select/async';
5
5
  import type BaseSelect from '@atlaskit/react-select/base';
6
6
  import { type CreatableProps } from '@atlaskit/react-select/creatable';
@@ -82,4 +82,4 @@ export type AtlaskitSelectRefType = {
82
82
  blur: () => void;
83
83
  focus: () => void;
84
84
  };
85
- export type { SelectInstance, FormatOptionLabelMeta, InputActionMeta, GroupType, InputProps, MultiValueProps, ReactSelectProps, SingleValueProps, ClearIndicatorProps, DropdownIndicatorProps, IndicatorsContainerProps, LoadingIndicatorProps, NoticeProps, MultiValueRemoveProps, AriaOnFocusProps, };
85
+ export type { SelectInstance, FormatOptionLabelMeta, InputActionMeta, GroupType, InputProps, MultiValueProps, MultiValueGenericProps, ReactSelectProps, SingleValueProps, ClearIndicatorProps, DropdownIndicatorProps, IndicatorsContainerProps, LoadingIndicatorProps, NoticeProps, MultiValueRemoveProps, AriaOnFocusProps, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/select",
3
- "version": "20.3.0",
3
+ "version": "20.4.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/"
@@ -43,13 +43,13 @@
43
43
  "dependencies": {
44
44
  "@atlaskit/analytics-next": "^11.0.0",
45
45
  "@atlaskit/ds-lib": "^4.0.0",
46
- "@atlaskit/icon": "^25.5.0",
46
+ "@atlaskit/icon": "^25.6.0",
47
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
48
  "@atlaskit/primitives": "^14.4.0",
49
- "@atlaskit/react-select": "^2.2.0",
49
+ "@atlaskit/react-select": "^2.4.0",
50
50
  "@atlaskit/spinner": "^18.0.0",
51
51
  "@atlaskit/theme": "^18.0.0",
52
- "@atlaskit/tokens": "^4.7.0",
52
+ "@atlaskit/tokens": "^4.8.0",
53
53
  "@atlaskit/visually-hidden": "^3.0.0",
54
54
  "@babel/runtime": "^7.0.0",
55
55
  "@compiled/react": "^0.18.3",
@@ -68,14 +68,14 @@
68
68
  "@af/integration-testing": "^0.5.0",
69
69
  "@af/visual-regression": "^1.3.0",
70
70
  "@atlaskit/button": "^23.0.0",
71
- "@atlaskit/checkbox": "^17.0.0",
71
+ "@atlaskit/checkbox": "^17.1.0",
72
72
  "@atlaskit/docs": "^10.0.0",
73
73
  "@atlaskit/drawer": "^10.1.0",
74
74
  "@atlaskit/form": "^12.0.0",
75
75
  "@atlaskit/link": "^3.1.0",
76
76
  "@atlaskit/logo": "^16.0.0",
77
77
  "@atlaskit/modal-dialog": "^14.1.0",
78
- "@atlaskit/radio": "^8.0.0",
78
+ "@atlaskit/radio": "^8.1.0",
79
79
  "@atlaskit/section-message": "^8.2.0",
80
80
  "@atlassian/ssr-tests": "^0.2.0",
81
81
  "@testing-library/react": "^13.4.0",
@@ -115,9 +115,6 @@
115
115
  "platform-visual-refresh-icons": {
116
116
  "type": "boolean"
117
117
  },
118
- "platform-icon-control-migration": {
119
- "type": "boolean"
120
- },
121
118
  "platform_design_system_team_safari_input_fix": {
122
119
  "type": "boolean"
123
120
  },