@atlaskit/select 16.5.7 → 16.5.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/select
2
2
 
3
+ ## 16.5.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [`5c22f7ade33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5c22f7ade33) - Convert CSS tagged templates to explicit function calls with objects.
8
+
3
9
  ## 16.5.7
4
10
 
5
11
  ### Patch Changes
@@ -73,7 +73,6 @@ var DummyControl = function DummyControl(props) {
73
73
  };
74
74
 
75
75
  // NOTE `props` intentionally omitted from `Fragment`
76
- // eslint-disable-next-line
77
76
  exports.DummyControl = DummyControl;
78
77
  var Menu = function Menu(_ref3) {
79
78
  var children = _ref3.children,
@@ -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 = "16.5.7";
12
+ var packageVersion = "16.5.8";
13
13
  var SelectWithoutAnalytics = (0, _createSelect.default)(_reactSelect.default);
14
14
  exports.SelectWithoutAnalytics = SelectWithoutAnalytics;
15
15
  var createAndFireEventOnAtlaskit = (0, _analyticsNext.createAndFireEvent)('atlaskit');
@@ -24,19 +24,22 @@ Object.defineProperty(exports, "LoadingIndicator", {
24
24
  }
25
25
  });
26
26
  exports.MultiValueRemove = void 0;
27
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
28
27
  var _react = require("@emotion/react");
29
28
  var _selectClear = _interopRequireDefault(require("@atlaskit/icon/glyph/select-clear"));
30
29
  var _reactSelect = require("react-select");
31
30
  var _indicators = require("./indicators");
32
- var _templateObject, _templateObject2;
33
31
  /** @jsx jsx */
34
- var disabledProps = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: none;\n"])));
35
- var enabledProps = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: inherit;\n"])));
32
+
33
+ var disabledStyles = (0, _react.css)({
34
+ display: 'none'
35
+ });
36
+ var enabledStyles = (0, _react.css)({
37
+ display: 'inherit'
38
+ });
36
39
  var MultiValueRemove = function MultiValueRemove(props) {
37
40
  var isDisabled = props.selectProps.isDisabled;
38
41
  return (0, _react.jsx)(_reactSelect.components.MultiValueRemove, props, (0, _react.jsx)("div", {
39
- css: isDisabled ? disabledProps : enabledProps,
42
+ css: isDisabled ? disabledStyles : enabledStyles,
40
43
  "data-testid": isDisabled ? 'hide-clear-icon' : 'show-clear-icon'
41
44
  }, (0, _react.jsx)(_selectClear.default, {
42
45
  label: "Clear",
@@ -42,9 +42,9 @@ var DropdownIndicator = function DropdownIndicator(props) {
42
42
  };
43
43
  exports.DropdownIndicator = DropdownIndicator;
44
44
  var LoadingIndicator = function LoadingIndicator(props) {
45
- var loadingCSS = (0, _react.css)(props.getStyles('loadingIndicator', props));
45
+ var loadingStyles = (0, _react.css)(props.getStyles('loadingIndicator', props));
46
46
  return (0, _react.jsx)("div", (0, _extends2.default)({
47
- css: loadingCSS
47
+ css: loadingStyles
48
48
  }, props.innerProps), (0, _react.jsx)(_spinner.default, {
49
49
  size: "small"
50
50
  }));
@@ -4,8 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.groupedCountries = exports.allCountries = void 0;
7
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
8
-
9
7
  var allCountries = [{
10
8
  icon: '🇦🇫',
11
9
  name: 'Afghanistan',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/select",
3
- "version": "16.5.7",
3
+ "version": "16.5.8",
4
4
  "sideEffects": false
5
5
  }
@@ -58,7 +58,6 @@ const Control = ({
58
58
  export const DummyControl = props => jsx(VisuallyHidden, null, jsx(components.Control, props));
59
59
 
60
60
  // NOTE `props` intentionally omitted from `Fragment`
61
- // eslint-disable-next-line
62
61
  const Menu = ({
63
62
  children,
64
63
  innerProps,
@@ -2,7 +2,7 @@ import Select 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 = "16.5.7";
5
+ const packageVersion = "16.5.8";
6
6
  export const SelectWithoutAnalytics = createSelect(Select);
7
7
  const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
8
8
  export default withAnalyticsContext({
@@ -3,18 +3,18 @@ import { jsx, css } from '@emotion/react';
3
3
  import SelectClearIcon from '@atlaskit/icon/glyph/select-clear';
4
4
  import { components } from 'react-select';
5
5
  export { ClearIndicator, DropdownIndicator, LoadingIndicator } from './indicators';
6
- const disabledProps = css`
7
- display: none;
8
- `;
9
- const enabledProps = css`
10
- display: inherit;
11
- `;
6
+ const disabledStyles = css({
7
+ display: 'none'
8
+ });
9
+ const enabledStyles = css({
10
+ display: 'inherit'
11
+ });
12
12
  export const MultiValueRemove = props => {
13
13
  const {
14
14
  isDisabled
15
15
  } = props.selectProps;
16
16
  return jsx(components.MultiValueRemove, props, jsx("div", {
17
- css: isDisabled ? disabledProps : enabledProps,
17
+ css: isDisabled ? disabledStyles : enabledStyles,
18
18
  "data-testid": isDisabled ? 'hide-clear-icon' : 'show-clear-icon'
19
19
  }, jsx(SelectClearIcon, {
20
20
  label: "Clear",
@@ -28,9 +28,9 @@ export const DropdownIndicator = props => jsx(components.DropdownIndicator, prop
28
28
  label: "open"
29
29
  }));
30
30
  export const LoadingIndicator = props => {
31
- const loadingCSS = css(props.getStyles('loadingIndicator', props));
31
+ const loadingStyles = css(props.getStyles('loadingIndicator', props));
32
32
  return jsx("div", _extends({
33
- css: loadingCSS
33
+ css: loadingStyles
34
34
  }, props.innerProps), jsx(Spinner, {
35
35
  size: "small"
36
36
  }));
@@ -1,5 +1,3 @@
1
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
2
-
3
1
  export const allCountries = [{
4
2
  icon: '🇦🇫',
5
3
  name: 'Afghanistan',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/select",
3
- "version": "16.5.7",
3
+ "version": "16.5.8",
4
4
  "sideEffects": false
5
5
  }
@@ -67,7 +67,6 @@ export var DummyControl = function DummyControl(props) {
67
67
  };
68
68
 
69
69
  // NOTE `props` intentionally omitted from `Fragment`
70
- // eslint-disable-next-line
71
70
  var Menu = function Menu(_ref3) {
72
71
  var children = _ref3.children,
73
72
  innerProps = _ref3.innerProps,
@@ -2,7 +2,7 @@ import Select 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 = "16.5.7";
5
+ var packageVersion = "16.5.8";
6
6
  export var SelectWithoutAnalytics = createSelect(Select);
7
7
  var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
8
8
  export default withAnalyticsContext({
@@ -1,16 +1,18 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- var _templateObject, _templateObject2;
3
1
  /** @jsx jsx */
4
2
  import { jsx, css } from '@emotion/react';
5
3
  import SelectClearIcon from '@atlaskit/icon/glyph/select-clear';
6
4
  import { components } from 'react-select';
7
5
  export { ClearIndicator, DropdownIndicator, LoadingIndicator } from './indicators';
8
- var disabledProps = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: none;\n"])));
9
- var enabledProps = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: inherit;\n"])));
6
+ var disabledStyles = css({
7
+ display: 'none'
8
+ });
9
+ var enabledStyles = css({
10
+ display: 'inherit'
11
+ });
10
12
  export var MultiValueRemove = function MultiValueRemove(props) {
11
13
  var isDisabled = props.selectProps.isDisabled;
12
14
  return jsx(components.MultiValueRemove, props, jsx("div", {
13
- css: isDisabled ? disabledProps : enabledProps,
15
+ css: isDisabled ? disabledStyles : enabledStyles,
14
16
  "data-testid": isDisabled ? 'hide-clear-icon' : 'show-clear-icon'
15
17
  }, jsx(SelectClearIcon, {
16
18
  label: "Clear",
@@ -34,9 +34,9 @@ export var DropdownIndicator = function DropdownIndicator(props) {
34
34
  }));
35
35
  };
36
36
  export var LoadingIndicator = function LoadingIndicator(props) {
37
- var loadingCSS = css(props.getStyles('loadingIndicator', props));
37
+ var loadingStyles = css(props.getStyles('loadingIndicator', props));
38
38
  return jsx("div", _extends({
39
- css: loadingCSS
39
+ css: loadingStyles
40
40
  }, props.innerProps), jsx(Spinner, {
41
41
  size: "small"
42
42
  }));
@@ -1,5 +1,3 @@
1
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
2
-
3
1
  export var allCountries = [{
4
2
  icon: '🇦🇫',
5
3
  name: 'Afghanistan',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/select",
3
- "version": "16.5.7",
3
+ "version": "16.5.8",
4
4
  "sideEffects": false
5
5
  }
@@ -100,13 +100,7 @@ export default class PopupSelect<Option = OptionType, IsMulti extends boolean =
100
100
  mergedComponents: {
101
101
  Control: React.FC<import("../types").ControlProps<OptionType, boolean>>;
102
102
  DropdownIndicator: () => import("@emotion/react").jsx.JSX.Element;
103
- Menu: ({ children, innerProps, ...props }: import("../types").MenuProps<OptionType, boolean>) => import("@emotion/react").jsx.JSX.Element; /**
104
- The props passed down to React Popper.
105
-
106
- Use these to override the default positioning strategy, behaviour and placement used by this library.
107
- For more information, see the Popper Props section below, or [React Popper documentation](https://popper.js.org/react-popper/v2/render-props).
108
-
109
- */
103
+ Menu: ({ children, innerProps, ...props }: import("../types").MenuProps<OptionType, boolean>) => import("@emotion/react").jsx.JSX.Element;
110
104
  };
111
105
  mergedPopperProps: PopperPropsNoChildren<string>;
112
106
  focusLockEnabled?: undefined;
@@ -116,13 +110,7 @@ export default class PopupSelect<Option = OptionType, IsMulti extends boolean =
116
110
  mergedComponents: {
117
111
  Control: React.FC<import("../types").ControlProps<OptionType, boolean>>;
118
112
  DropdownIndicator: () => import("@emotion/react").jsx.JSX.Element;
119
- Menu: ({ children, innerProps, ...props }: import("../types").MenuProps<OptionType, boolean>) => import("@emotion/react").jsx.JSX.Element; /**
120
- The props passed down to React Popper.
121
-
122
- Use these to override the default positioning strategy, behaviour and placement used by this library.
123
- For more information, see the Popper Props section below, or [React Popper documentation](https://popper.js.org/react-popper/v2/render-props).
124
-
125
- */
113
+ Menu: ({ children, innerProps, ...props }: import("../types").MenuProps<OptionType, boolean>) => import("@emotion/react").jsx.JSX.Element;
126
114
  };
127
115
  mergedPopperProps: PopperPropsNoChildren<string>;
128
116
  };
@@ -100,13 +100,7 @@ export default class PopupSelect<Option = OptionType, IsMulti extends boolean =
100
100
  mergedComponents: {
101
101
  Control: React.FC<import("../types").ControlProps<OptionType, boolean>>;
102
102
  DropdownIndicator: () => import("@emotion/react").jsx.JSX.Element;
103
- Menu: ({ children, innerProps, ...props }: import("../types").MenuProps<OptionType, boolean>) => import("@emotion/react").jsx.JSX.Element; /**
104
- The props passed down to React Popper.
105
-
106
- Use these to override the default positioning strategy, behaviour and placement used by this library.
107
- For more information, see the Popper Props section below, or [React Popper documentation](https://popper.js.org/react-popper/v2/render-props).
108
-
109
- */
103
+ Menu: ({ children, innerProps, ...props }: import("../types").MenuProps<OptionType, boolean>) => import("@emotion/react").jsx.JSX.Element;
110
104
  };
111
105
  mergedPopperProps: PopperPropsNoChildren<string>;
112
106
  focusLockEnabled?: undefined;
@@ -116,13 +110,7 @@ export default class PopupSelect<Option = OptionType, IsMulti extends boolean =
116
110
  mergedComponents: {
117
111
  Control: React.FC<import("../types").ControlProps<OptionType, boolean>>;
118
112
  DropdownIndicator: () => import("@emotion/react").jsx.JSX.Element;
119
- Menu: ({ children, innerProps, ...props }: import("../types").MenuProps<OptionType, boolean>) => import("@emotion/react").jsx.JSX.Element; /**
120
- The props passed down to React Popper.
121
-
122
- Use these to override the default positioning strategy, behaviour and placement used by this library.
123
- For more information, see the Popper Props section below, or [React Popper documentation](https://popper.js.org/react-popper/v2/render-props).
124
-
125
- */
113
+ Menu: ({ children, innerProps, ...props }: import("../types").MenuProps<OptionType, boolean>) => import("@emotion/react").jsx.JSX.Element;
126
114
  };
127
115
  mergedPopperProps: PopperPropsNoChildren<string>;
128
116
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/select",
3
- "version": "16.5.7",
3
+ "version": "16.5.8",
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,7 +43,7 @@
43
43
  "@atlaskit/platform-feature-flags": "^0.2.0",
44
44
  "@atlaskit/spinner": "^15.5.0",
45
45
  "@atlaskit/theme": "^12.5.0",
46
- "@atlaskit/tokens": "^1.11.0",
46
+ "@atlaskit/tokens": "^1.14.0",
47
47
  "@atlaskit/visually-hidden": "^1.2.0",
48
48
  "@babel/runtime": "^7.0.0",
49
49
  "@emotion/react": "^11.7.1",
package/report.api.md CHANGED
@@ -1099,13 +1099,7 @@ export class PopupSelect<
1099
1099
  children,
1100
1100
  innerProps,
1101
1101
  ...props
1102
- }: MenuProps<OptionType, boolean>) => jsx /**
1103
- The props passed down to React Popper.
1104
-
1105
- Use these to override the default positioning strategy, behaviour and placement used by this library.
1106
- For more information, see the Popper Props section below, or [React Popper documentation](https://popper.js.org/react-popper/v2/render-props).
1107
-
1108
- */;
1102
+ }: MenuProps<OptionType, boolean>) => jsx;
1109
1103
  };
1110
1104
  mergedPopperProps: PopperPropsNoChildren<string>;
1111
1105
  }
@@ -1118,13 +1112,7 @@ export class PopupSelect<
1118
1112
  children,
1119
1113
  innerProps,
1120
1114
  ...props
1121
- }: MenuProps<OptionType, boolean>) => jsx /**
1122
- The props passed down to React Popper.
1123
-
1124
- Use these to override the default positioning strategy, behaviour and placement used by this library.
1125
- For more information, see the Popper Props section below, or [React Popper documentation](https://popper.js.org/react-popper/v2/render-props).
1126
-
1127
- */;
1115
+ }: MenuProps<OptionType, boolean>) => jsx;
1128
1116
  };
1129
1117
  mergedPopperProps: PopperPropsNoChildren<string>;
1130
1118
  focusLockEnabled?: undefined;
@@ -533,13 +533,7 @@ export class PopupSelect<Option = OptionType, IsMulti extends boolean = false, M
533
533
  mergedComponents: {
534
534
  Control: React_2.FC<ControlProps<OptionType, boolean>>;
535
535
  DropdownIndicator: () => jsx;
536
- Menu: ({ children, innerProps, ...props }: MenuProps<OptionType, boolean>) => jsx; /**
537
- The props passed down to React Popper.
538
-
539
- Use these to override the default positioning strategy, behaviour and placement used by this library.
540
- For more information, see the Popper Props section below, or [React Popper documentation](https://popper.js.org/react-popper/v2/render-props).
541
-
542
- */
536
+ Menu: ({ children, innerProps, ...props }: MenuProps<OptionType, boolean>) => jsx;
543
537
  };
544
538
  mergedPopperProps: PopperPropsNoChildren<string>;
545
539
  } | {
@@ -547,13 +541,7 @@ export class PopupSelect<Option = OptionType, IsMulti extends boolean = false, M
547
541
  mergedComponents: {
548
542
  Control: React_2.FC<ControlProps<OptionType, boolean>>;
549
543
  DropdownIndicator: () => jsx;
550
- Menu: ({ children, innerProps, ...props }: MenuProps<OptionType, boolean>) => jsx; /**
551
- The props passed down to React Popper.
552
-
553
- Use these to override the default positioning strategy, behaviour and placement used by this library.
554
- For more information, see the Popper Props section below, or [React Popper documentation](https://popper.js.org/react-popper/v2/render-props).
555
-
556
- */
544
+ Menu: ({ children, innerProps, ...props }: MenuProps<OptionType, boolean>) => jsx;
557
545
  };
558
546
  mergedPopperProps: PopperPropsNoChildren<string>;
559
547
  focusLockEnabled?: undefined;