@atlaskit/select 16.7.1 → 16.7.2

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.7.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#41115](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41115) [`6f2d15a60eb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6f2d15a60eb) - Remove unused variables in components and PopupSelect
8
+
3
9
  ## 16.7.1
4
10
 
5
11
  ### Patch Changes
@@ -13,8 +13,7 @@ var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden"
13
13
  var _search = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/search"));
14
14
  var _constants = require("@atlaskit/theme/constants");
15
15
  var _colors = require("@atlaskit/theme/colors");
16
- var _excluded = ["innerRef", "innerProps"],
17
- _excluded2 = ["children", "innerProps"];
16
+ var _excluded = ["innerRef", "innerProps"];
18
17
  /** @jsx jsx */
19
18
  // ==============================
20
19
  // Styled Components
@@ -52,7 +51,7 @@ var MenuDialog = exports.MenuDialog = function MenuDialog(_ref) {
52
51
  // ==============================
53
52
 
54
53
  var dropdownStyles = (0, _react.css)({
55
- marginRight: "var(--ds-space-025, 2px)",
54
+ marginInlineEnd: "var(--ds-space-025, 2px)",
56
55
  textAlign: 'center',
57
56
  width: 32
58
57
  });
@@ -84,8 +83,7 @@ var DummyControl = exports.DummyControl = function DummyControl(props) {
84
83
  // NOTE `props` intentionally omitted from `Fragment`
85
84
  var Menu = function Menu(_ref3) {
86
85
  var children = _ref3.children,
87
- innerProps = _ref3.innerProps,
88
- props = (0, _objectWithoutProperties2.default)(_ref3, _excluded2);
86
+ innerProps = _ref3.innerProps;
89
87
  return (0, _react.jsx)("div", innerProps, children);
90
88
  };
91
89
  var defaultComponents = exports.defaultComponents = {
@@ -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.7.1";
12
+ var packageVersion = "16.7.2";
13
13
  var SelectWithoutAnalytics = exports.SelectWithoutAnalytics = (0, _createSelect.default)(_reactSelect.default);
14
14
  var createAndFireEventOnAtlaskit = (0, _analyticsNext.createAndFireEvent)('atlaskit');
15
15
  var _default = exports.default = (0, _analyticsNext.withAnalyticsContext)({
@@ -24,8 +24,7 @@ var _components = require("@atlaskit/theme/components");
24
24
  var _colors = require("@atlaskit/theme/colors");
25
25
  var _excluded = ["isActive", "isDisabled", "isFocused", "isSelected"],
26
26
  _excluded2 = ["isActive", "isDisabled", "isSelected"],
27
- _excluded3 = ["isActive", "isDisabled", "isFocused", "isSelected"],
28
- _excluded4 = ["getStyles", "Icon", "children", "innerProps", "innerRef"];
27
+ _excluded3 = ["getStyles", "Icon", "children", "innerProps", "innerRef"];
29
28
  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); }; }
30
29
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
31
30
  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; }
@@ -157,8 +156,7 @@ var getBorderColor = function getBorderColor(_ref3) {
157
156
  var isActive = _ref3.isActive,
158
157
  isDisabled = _ref3.isDisabled,
159
158
  isFocused = _ref3.isFocused,
160
- isSelected = _ref3.isSelected,
161
- rest = (0, _objectWithoutProperties2.default)(_ref3, _excluded3);
159
+ isSelected = _ref3.isSelected;
162
160
  if (isDisabled && isSelected) {
163
161
  return "var(--ds-background-disabled, ".concat(_colors.B400, ")");
164
162
  } else if (isDisabled) {
@@ -180,7 +178,7 @@ var baseIconStyles = (0, _react.css)({
180
178
  alignItems: 'center',
181
179
  display: 'flex ',
182
180
  flexShrink: 0,
183
- paddingRight: "var(--ds-space-050, 4px)",
181
+ paddingInlineEnd: "var(--ds-space-050, 4px)",
184
182
  // Here we are adding a border to the Checkbox and Radio SVG icons
185
183
  // This is an a11y fix for Select only for now but it may be rolled
186
184
  // into the `@atlaskit/icon` package's Checkbox and Radio SVGs later
@@ -235,7 +233,7 @@ var ControlOption = /*#__PURE__*/function (_Component) {
235
233
  children = _this$props.children,
236
234
  innerProps = _this$props.innerProps,
237
235
  innerRef = _this$props.innerRef,
238
- rest = (0, _objectWithoutProperties2.default)(_this$props, _excluded4);
236
+ rest = (0, _objectWithoutProperties2.default)(_this$props, _excluded3);
239
237
 
240
238
  // prop assignment
241
239
  var props = _objectSpread(_objectSpread({}, innerProps), {}, {
@@ -43,7 +43,7 @@ export const MenuDialog = ({
43
43
  // ==============================
44
44
 
45
45
  const dropdownStyles = css({
46
- marginRight: "var(--ds-space-025, 2px)",
46
+ marginInlineEnd: "var(--ds-space-025, 2px)",
47
47
  textAlign: 'center',
48
48
  width: 32
49
49
  });
@@ -70,8 +70,7 @@ export const DummyControl = props => jsx(VisuallyHidden, null, jsx(components.Co
70
70
  // NOTE `props` intentionally omitted from `Fragment`
71
71
  const Menu = ({
72
72
  children,
73
- innerProps,
74
- ...props
73
+ innerProps
75
74
  }) => jsx("div", innerProps, children);
76
75
  export const defaultComponents = {
77
76
  Control,
@@ -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.7.1";
5
+ const packageVersion = "16.7.2";
6
6
  export const SelectWithoutAnalytics = createSelect(Select);
7
7
  const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
8
8
  export default withAnalyticsContext({
@@ -142,8 +142,7 @@ const getBorderColor = ({
142
142
  isActive,
143
143
  isDisabled,
144
144
  isFocused,
145
- isSelected,
146
- ...rest
145
+ isSelected
147
146
  }) => {
148
147
  if (isDisabled && isSelected) {
149
148
  return `var(--ds-background-disabled, ${B400})`;
@@ -166,7 +165,7 @@ const baseIconStyles = css({
166
165
  alignItems: 'center',
167
166
  display: 'flex ',
168
167
  flexShrink: 0,
169
- paddingRight: "var(--ds-space-050, 4px)",
168
+ paddingInlineEnd: "var(--ds-space-050, 4px)",
170
169
  // Here we are adding a border to the Checkbox and Radio SVG icons
171
170
  // This is an a11y fix for Select only for now but it may be rolled
172
171
  // into the `@atlaskit/icon` package's Checkbox and Radio SVGs later
@@ -1,7 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- var _excluded = ["innerRef", "innerProps"],
4
- _excluded2 = ["children", "innerProps"];
3
+ var _excluded = ["innerRef", "innerProps"];
5
4
  /** @jsx jsx */
6
5
 
7
6
  import { components } from 'react-select';
@@ -47,7 +46,7 @@ export var MenuDialog = function MenuDialog(_ref) {
47
46
  // ==============================
48
47
 
49
48
  var dropdownStyles = css({
50
- marginRight: "var(--ds-space-025, 2px)",
49
+ marginInlineEnd: "var(--ds-space-025, 2px)",
51
50
  textAlign: 'center',
52
51
  width: 32
53
52
  });
@@ -79,8 +78,7 @@ export var DummyControl = function DummyControl(props) {
79
78
  // NOTE `props` intentionally omitted from `Fragment`
80
79
  var Menu = function Menu(_ref3) {
81
80
  var children = _ref3.children,
82
- innerProps = _ref3.innerProps,
83
- props = _objectWithoutProperties(_ref3, _excluded2);
81
+ innerProps = _ref3.innerProps;
84
82
  return jsx("div", innerProps, children);
85
83
  };
86
84
  export var defaultComponents = {
@@ -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.7.1";
5
+ var packageVersion = "16.7.2";
6
6
  export var SelectWithoutAnalytics = createSelect(Select);
7
7
  var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
8
8
  export default withAnalyticsContext({
@@ -10,8 +10,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
10
10
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
11
11
  var _excluded = ["isActive", "isDisabled", "isFocused", "isSelected"],
12
12
  _excluded2 = ["isActive", "isDisabled", "isSelected"],
13
- _excluded3 = ["isActive", "isDisabled", "isFocused", "isSelected"],
14
- _excluded4 = ["getStyles", "Icon", "children", "innerProps", "innerRef"];
13
+ _excluded3 = ["getStyles", "Icon", "children", "innerProps", "innerRef"];
15
14
  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); }; }
16
15
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
17
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; }
@@ -151,8 +150,7 @@ var getBorderColor = function getBorderColor(_ref3) {
151
150
  var isActive = _ref3.isActive,
152
151
  isDisabled = _ref3.isDisabled,
153
152
  isFocused = _ref3.isFocused,
154
- isSelected = _ref3.isSelected,
155
- rest = _objectWithoutProperties(_ref3, _excluded3);
153
+ isSelected = _ref3.isSelected;
156
154
  if (isDisabled && isSelected) {
157
155
  return "var(--ds-background-disabled, ".concat(B400, ")");
158
156
  } else if (isDisabled) {
@@ -174,7 +172,7 @@ var baseIconStyles = css({
174
172
  alignItems: 'center',
175
173
  display: 'flex ',
176
174
  flexShrink: 0,
177
- paddingRight: "var(--ds-space-050, 4px)",
175
+ paddingInlineEnd: "var(--ds-space-050, 4px)",
178
176
  // Here we are adding a border to the Checkbox and Radio SVG icons
179
177
  // This is an a11y fix for Select only for now but it may be rolled
180
178
  // into the `@atlaskit/icon` package's Checkbox and Radio SVGs later
@@ -229,7 +227,7 @@ var ControlOption = /*#__PURE__*/function (_Component) {
229
227
  children = _this$props.children,
230
228
  innerProps = _this$props.innerProps,
231
229
  innerRef = _this$props.innerRef,
232
- rest = _objectWithoutProperties(_this$props, _excluded4);
230
+ rest = _objectWithoutProperties(_this$props, _excluded3);
233
231
 
234
232
  // prop assignment
235
233
  var props = _objectSpread(_objectSpread({}, innerProps), {}, {
@@ -104,7 +104,7 @@ export default class PopupSelect<Option = OptionType, IsMulti extends boolean =
104
104
  mergedComponents: {
105
105
  Control: React.FC<import("../types").ControlProps<OptionType, boolean>>;
106
106
  DropdownIndicator: () => import("@emotion/react").jsx.JSX.Element;
107
- Menu: ({ children, innerProps, ...props }: import("../types").MenuProps<OptionType, boolean>) => import("@emotion/react").jsx.JSX.Element;
107
+ Menu: ({ children, innerProps }: import("../types").MenuProps<OptionType, boolean>) => import("@emotion/react").jsx.JSX.Element;
108
108
  };
109
109
  mergedPopperProps: PopperPropsNoChildren<string>;
110
110
  focusLockEnabled?: undefined;
@@ -114,7 +114,7 @@ export default class PopupSelect<Option = OptionType, IsMulti extends boolean =
114
114
  mergedComponents: {
115
115
  Control: React.FC<import("../types").ControlProps<OptionType, boolean>>;
116
116
  DropdownIndicator: () => import("@emotion/react").jsx.JSX.Element;
117
- Menu: ({ children, innerProps, ...props }: import("../types").MenuProps<OptionType, boolean>) => import("@emotion/react").jsx.JSX.Element;
117
+ Menu: ({ children, innerProps }: import("../types").MenuProps<OptionType, boolean>) => import("@emotion/react").jsx.JSX.Element;
118
118
  };
119
119
  mergedPopperProps: PopperPropsNoChildren<string>;
120
120
  };
@@ -15,6 +15,6 @@ export declare const DummyControl: FC<ControlProps<OptionType, boolean>>;
15
15
  export declare const defaultComponents: {
16
16
  Control: FC<ControlProps<OptionType, boolean>>;
17
17
  DropdownIndicator: () => jsx.JSX.Element;
18
- Menu: ({ children, innerProps, ...props }: MenuProps<OptionType, boolean>) => jsx.JSX.Element;
18
+ Menu: ({ children, innerProps }: MenuProps<OptionType, boolean>) => jsx.JSX.Element;
19
19
  };
20
20
  export {};
@@ -104,7 +104,7 @@ export default class PopupSelect<Option = OptionType, IsMulti extends boolean =
104
104
  mergedComponents: {
105
105
  Control: React.FC<import("../types").ControlProps<OptionType, boolean>>;
106
106
  DropdownIndicator: () => import("@emotion/react").jsx.JSX.Element;
107
- Menu: ({ children, innerProps, ...props }: import("../types").MenuProps<OptionType, boolean>) => import("@emotion/react").jsx.JSX.Element;
107
+ Menu: ({ children, innerProps }: import("../types").MenuProps<OptionType, boolean>) => import("@emotion/react").jsx.JSX.Element;
108
108
  };
109
109
  mergedPopperProps: PopperPropsNoChildren<string>;
110
110
  focusLockEnabled?: undefined;
@@ -114,7 +114,7 @@ export default class PopupSelect<Option = OptionType, IsMulti extends boolean =
114
114
  mergedComponents: {
115
115
  Control: React.FC<import("../types").ControlProps<OptionType, boolean>>;
116
116
  DropdownIndicator: () => import("@emotion/react").jsx.JSX.Element;
117
- Menu: ({ children, innerProps, ...props }: import("../types").MenuProps<OptionType, boolean>) => import("@emotion/react").jsx.JSX.Element;
117
+ Menu: ({ children, innerProps }: import("../types").MenuProps<OptionType, boolean>) => import("@emotion/react").jsx.JSX.Element;
118
118
  };
119
119
  mergedPopperProps: PopperPropsNoChildren<string>;
120
120
  };
@@ -15,6 +15,6 @@ export declare const DummyControl: FC<ControlProps<OptionType, boolean>>;
15
15
  export declare const defaultComponents: {
16
16
  Control: FC<ControlProps<OptionType, boolean>>;
17
17
  DropdownIndicator: () => jsx.JSX.Element;
18
- Menu: ({ children, innerProps, ...props }: MenuProps<OptionType, boolean>) => jsx.JSX.Element;
18
+ Menu: ({ children, innerProps }: MenuProps<OptionType, boolean>) => jsx.JSX.Element;
19
19
  };
20
20
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/select",
3
- "version": "16.7.1",
3
+ "version": "16.7.2",
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/"
package/report.api.md CHANGED
@@ -624,7 +624,6 @@ const defaultComponents: {
624
624
  Menu: ({
625
625
  children,
626
626
  innerProps,
627
- ...props
628
627
  }: MenuProps<OptionType, boolean>) => jsx.JSX.Element;
629
628
  };
630
629
 
@@ -1122,7 +1121,6 @@ export class PopupSelect<
1122
1121
  Menu: ({
1123
1122
  children,
1124
1123
  innerProps,
1125
- ...props
1126
1124
  }: MenuProps<OptionType, boolean>) => jsx;
1127
1125
  };
1128
1126
  mergedPopperProps: PopperPropsNoChildren<string>;
@@ -1135,7 +1133,6 @@ export class PopupSelect<
1135
1133
  Menu: ({
1136
1134
  children,
1137
1135
  innerProps,
1138
- ...props
1139
1136
  }: MenuProps<OptionType, boolean>) => jsx;
1140
1137
  };
1141
1138
  mergedPopperProps: PopperPropsNoChildren<string>;
@@ -311,7 +311,7 @@ export default _default;
311
311
  const defaultComponents: {
312
312
  Control: FC<ControlProps<OptionType, boolean>>;
313
313
  DropdownIndicator: () => jsx.JSX.Element;
314
- Menu: ({ children, innerProps, ...props }: MenuProps<OptionType, boolean>) => jsx.JSX.Element;
314
+ Menu: ({ children, innerProps }: MenuProps<OptionType, boolean>) => jsx.JSX.Element;
315
315
  };
316
316
 
317
317
  // @public (undocumented)
@@ -548,7 +548,7 @@ export class PopupSelect<Option = OptionType, IsMulti extends boolean = false, M
548
548
  mergedComponents: {
549
549
  Control: React_2.FC<ControlProps<OptionType, boolean>>;
550
550
  DropdownIndicator: () => jsx;
551
- Menu: ({ children, innerProps, ...props }: MenuProps<OptionType, boolean>) => jsx;
551
+ Menu: ({ children, innerProps }: MenuProps<OptionType, boolean>) => jsx;
552
552
  };
553
553
  mergedPopperProps: PopperPropsNoChildren<string>;
554
554
  } | {
@@ -556,7 +556,7 @@ export class PopupSelect<Option = OptionType, IsMulti extends boolean = false, M
556
556
  mergedComponents: {
557
557
  Control: React_2.FC<ControlProps<OptionType, boolean>>;
558
558
  DropdownIndicator: () => jsx;
559
- Menu: ({ children, innerProps, ...props }: MenuProps<OptionType, boolean>) => jsx;
559
+ Menu: ({ children, innerProps }: MenuProps<OptionType, boolean>) => jsx;
560
560
  };
561
561
  mergedPopperProps: PopperPropsNoChildren<string>;
562
562
  focusLockEnabled?: undefined;