@atlaskit/select 17.8.0 → 17.9.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.9.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#96841](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96841)
8
+ [`6cca90095b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6cca90095b7e) -
9
+ `ClearIndicator` button now uses the `Pressable` primitive.
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 17.8.0
4
16
 
5
17
  ### Minor Changes
@@ -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.8.0";
12
+ var packageVersion = "17.9.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)({
@@ -9,12 +9,13 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
9
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
10
  var _react = require("@emotion/react");
11
11
  var _reactSelect = require("react-select");
12
+ var _primitives = require("@atlaskit/primitives");
12
13
  var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
13
14
  var _selectClear = _interopRequireDefault(require("@atlaskit/icon/glyph/select-clear"));
14
15
  var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-down"));
15
16
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
16
17
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /** @jsx jsx */
17
- var iconContainerStyles = (0, _react.css)({
18
+ var iconContainerStyles = (0, _primitives.xcss)({
18
19
  all: 'unset',
19
20
  outline: 'revert',
20
21
  display: 'flex',
@@ -25,9 +26,8 @@ var ClearIndicator = exports.ClearIndicator = function ClearIndicator(props) {
25
26
  innerProps: _objectSpread(_objectSpread({}, props.innerProps), {}, {
26
27
  'aria-hidden': 'false'
27
28
  })
28
- }), (0, _react.jsx)("button", {
29
- css: iconContainerStyles,
30
- type: "button",
29
+ }), (0, _react.jsx)(_primitives.Pressable, {
30
+ xcss: iconContainerStyles,
31
31
  tabIndex: -1
32
32
  }, (0, _react.jsx)(_selectClear.default, {
33
33
  size: "small",
@@ -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.8.0";
5
+ const packageVersion = "17.9.0";
6
6
  export const SelectWithoutAnalytics = createSelect(ReactSelect);
7
7
  const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
8
8
  const Select = withAnalyticsContext({
@@ -2,10 +2,11 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  /** @jsx jsx */
3
3
  import { jsx, css } from '@emotion/react';
4
4
  import { components } from 'react-select';
5
+ import { Pressable, xcss } from '@atlaskit/primitives';
5
6
  import Spinner from '@atlaskit/spinner';
6
7
  import SelectClearIcon from '@atlaskit/icon/glyph/select-clear';
7
8
  import DownIcon from '@atlaskit/icon/glyph/chevron-down';
8
- const iconContainerStyles = css({
9
+ const iconContainerStyles = xcss({
9
10
  all: 'unset',
10
11
  outline: 'revert',
11
12
  display: 'flex',
@@ -16,9 +17,8 @@ export const ClearIndicator = props => jsx(components.ClearIndicator, _extends({
16
17
  ...props.innerProps,
17
18
  'aria-hidden': 'false'
18
19
  }
19
- }), jsx("button", {
20
- css: iconContainerStyles,
21
- type: "button",
20
+ }), jsx(Pressable, {
21
+ xcss: iconContainerStyles,
22
22
  tabIndex: -1
23
23
  }, jsx(SelectClearIcon, {
24
24
  size: "small",
@@ -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.8.0";
5
+ var packageVersion = "17.9.0";
6
6
  export var SelectWithoutAnalytics = createSelect(ReactSelect);
7
7
  var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
8
8
  var Select = withAnalyticsContext({
@@ -5,10 +5,11 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
5
5
  /** @jsx jsx */
6
6
  import { jsx, css } from '@emotion/react';
7
7
  import { components } from 'react-select';
8
+ import { Pressable, xcss } from '@atlaskit/primitives';
8
9
  import Spinner from '@atlaskit/spinner';
9
10
  import SelectClearIcon from '@atlaskit/icon/glyph/select-clear';
10
11
  import DownIcon from '@atlaskit/icon/glyph/chevron-down';
11
- var iconContainerStyles = css({
12
+ var iconContainerStyles = xcss({
12
13
  all: 'unset',
13
14
  outline: 'revert',
14
15
  display: 'flex',
@@ -19,9 +20,8 @@ export var ClearIndicator = function ClearIndicator(props) {
19
20
  innerProps: _objectSpread(_objectSpread({}, props.innerProps), {}, {
20
21
  'aria-hidden': 'false'
21
22
  })
22
- }), jsx("button", {
23
- css: iconContainerStyles,
24
- type: "button",
23
+ }), jsx(Pressable, {
24
+ xcss: iconContainerStyles,
25
25
  tabIndex: -1
26
26
  }, jsx(SelectClearIcon, {
27
27
  size: "small",
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import { jsx } from '@emotion/react';
3
- import { ClearIndicatorProps, DropdownIndicatorProps, LoadingIndicatorProps } from '../types';
3
+ import { type ClearIndicatorProps, type DropdownIndicatorProps, type LoadingIndicatorProps } from '../types';
4
4
  export declare const ClearIndicator: <Option extends unknown, IsMulti extends boolean = false>(props: ClearIndicatorProps<Option, IsMulti>) => jsx.JSX.Element;
5
5
  export declare const DropdownIndicator: <Option extends unknown, IsMulti extends boolean = false>(props: DropdownIndicatorProps<Option, IsMulti>) => jsx.JSX.Element;
6
6
  export declare const LoadingIndicator: <Option extends unknown, IsMulti extends boolean = false>(props: LoadingIndicatorProps<Option, IsMulti>) => jsx.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import { jsx } from '@emotion/react';
3
- import { ClearIndicatorProps, DropdownIndicatorProps, LoadingIndicatorProps } from '../types';
3
+ import { type ClearIndicatorProps, type DropdownIndicatorProps, type LoadingIndicatorProps } from '../types';
4
4
  export declare const ClearIndicator: <Option extends unknown, IsMulti extends boolean = false>(props: ClearIndicatorProps<Option, IsMulti>) => jsx.JSX.Element;
5
5
  export declare const DropdownIndicator: <Option extends unknown, IsMulti extends boolean = false>(props: DropdownIndicatorProps<Option, IsMulti>) => jsx.JSX.Element;
6
6
  export declare const LoadingIndicator: <Option extends unknown, IsMulti extends boolean = false>(props: LoadingIndicatorProps<Option, IsMulti>) => jsx.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/select",
3
- "version": "17.8.0",
3
+ "version": "17.9.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/"
@@ -44,6 +44,7 @@
44
44
  "@atlaskit/analytics-next": "^9.3.0",
45
45
  "@atlaskit/icon": "^22.1.0",
46
46
  "@atlaskit/platform-feature-flags": "^0.2.0",
47
+ "@atlaskit/primitives": "^6.1.0",
47
48
  "@atlaskit/spinner": "^16.1.0",
48
49
  "@atlaskit/theme": "^12.7.0",
49
50
  "@atlaskit/tokens": "^1.45.0",