@atlaskit/select 16.5.9 → 16.5.11

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,18 @@
1
1
  # @atlaskit/select
2
2
 
3
+ ## 16.5.11
4
+
5
+ ### Patch Changes
6
+
7
+ - [`479e6a92e33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/479e6a92e33) - Move css styles out to top-level scope for more consistency.
8
+
9
+ ## 16.5.10
10
+
11
+ ### Patch Changes
12
+
13
+ - [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
14
+ - Updated dependencies
15
+
3
16
  ## 16.5.9
4
17
 
5
18
  ### Patch Changes
@@ -19,7 +19,12 @@ var _excluded = ["innerRef", "innerProps"],
19
19
  // ==============================
20
20
  // Styled Components
21
21
  // ==============================
22
-
22
+ var menuDialogStyles = (0, _react.css)({
23
+ backgroundColor: "var(--ds-surface-overlay, white)",
24
+ borderRadius: "var(--ds-border-radius-100, 4px)",
25
+ boxShadow: "var(--ds-shadow-overlay, ".concat("0 0 0 1px ".concat(_colors.N40A, ", 0 4px 11px ").concat(_colors.N40A), ")"),
26
+ zIndex: _constants.layers.modal()
27
+ });
23
28
  var MenuDialog = function MenuDialog(_ref) {
24
29
  var maxWidth = _ref.maxWidth,
25
30
  minWidth = _ref.minWidth,
@@ -27,16 +32,14 @@ var MenuDialog = function MenuDialog(_ref) {
27
32
  id = _ref.id,
28
33
  style = _ref.style;
29
34
  return (0, _react.jsx)("div", {
30
- // TODO: Make these use proper dynamic styling (DSP-12490)
35
+ css: [menuDialogStyles,
36
+ // There is not a limited amount of values for the widths, so they need
37
+ // to remain dynamic.
31
38
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
32
- css: {
33
- backgroundColor: "var(--ds-surface-overlay, white)",
34
- borderRadius: 4,
35
- boxShadow: "var(--ds-shadow-overlay, ".concat("0 0 0 1px ".concat(_colors.N40A, ", 0 4px 11px ").concat(_colors.N40A), ")"),
39
+ {
36
40
  maxWidth: maxWidth,
37
- minWidth: minWidth,
38
- zIndex: _constants.layers.modal()
39
- },
41
+ minWidth: minWidth
42
+ }],
40
43
  style: style,
41
44
  id: id
42
45
  }, children);
@@ -46,31 +49,28 @@ var MenuDialog = function MenuDialog(_ref) {
46
49
  // Custom Components
47
50
  // ==============================
48
51
  exports.MenuDialog = MenuDialog;
52
+ var dropdownStyles = (0, _react.css)({
53
+ marginRight: "var(--ds-space-025, 2px)",
54
+ textAlign: 'center',
55
+ width: 32
56
+ });
49
57
  var DropdownIndicator = function DropdownIndicator() {
50
58
  return (0, _react.jsx)("div", {
51
- // TODO: Make these use proper dynamic styling (DSP-12490)
52
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
53
- css: {
54
- marginRight: "var(--ds-space-025, 2px)",
55
- textAlign: 'center',
56
- width: 32
57
- }
59
+ css: dropdownStyles
58
60
  }, (0, _react.jsx)(_search.default, {
59
61
  label: "open"
60
62
  }));
61
63
  };
64
+ var controlStyles = (0, _react.css)({
65
+ padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-100, 8px)", " ", "var(--ds-space-050, 4px)")
66
+ });
62
67
  var Control = function Control(_ref2) {
63
68
  var innerRef = _ref2.innerRef,
64
69
  innerProps = _ref2.innerProps,
65
70
  props = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
66
71
  return (0, _react.jsx)("div", {
67
- ref: innerRef
68
- // TODO: Make these use proper dynamic styling (DSP-12490)
69
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
70
- ,
71
- css: {
72
- padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-100, 8px)", " ", "var(--ds-space-050, 4px)")
73
- }
72
+ ref: innerRef,
73
+ css: controlStyles
74
74
  }, (0, _react.jsx)(_reactSelect.components.Control, (0, _extends2.default)({}, props, {
75
75
  innerProps: innerProps
76
76
  })));
@@ -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.9";
12
+ var packageVersion = "16.5.11";
13
13
  var SelectWithoutAnalytics = (0, _createSelect.default)(_reactSelect.default);
14
14
  exports.SelectWithoutAnalytics = SelectWithoutAnalytics;
15
15
  var createAndFireEventOnAtlaskit = (0, _analyticsNext.createAndFireEvent)('atlaskit');
@@ -36,7 +36,7 @@ var getPrimitiveStyles = function getPrimitiveStyles(props) {
36
36
  isDisabled = props.isDisabled,
37
37
  isFocused = props.isFocused,
38
38
  isSelected = props.isSelected;
39
- var styles = {
39
+ var baseStyles = {
40
40
  alignItems: 'center',
41
41
  backgroundColor: isFocused ? "var(--ds-background-neutral-subtle-hovered, ".concat(_colors.N20, ")") : 'transparent',
42
42
  color: isDisabled ? "var(--ds-text-disabled, inherit)" : 'inherit',
@@ -44,7 +44,9 @@ var getPrimitiveStyles = function getPrimitiveStyles(props) {
44
44
  paddingBottom: "var(--ds-space-050, 4px)",
45
45
  paddingLeft: "var(--ds-space-200, 16px)",
46
46
  paddingTop: "var(--ds-space-050, 4px)",
47
- boxShadow: isFocused ? "inset 2px 0px 0px ".concat("var(--ds-border-focused, ".concat(_colors.B400, ")"), ";") : '',
47
+ // This 'none' needs to be present to ensure that style is not applied when
48
+ // the option is selected but not focused.
49
+ boxShadow: isFocused ? "inset 2px 0px 0px ".concat("var(--ds-border-focused, ".concat(_colors.B400, ")")) : 'none',
48
50
  ':active': {
49
51
  backgroundColor: "var(--ds-background-neutral-subtle-pressed, ".concat(_colors.N30, ")")
50
52
  },
@@ -52,7 +54,7 @@ var getPrimitiveStyles = function getPrimitiveStyles(props) {
52
54
  borderLeft: isFocused ? '2px solid transparent' : ''
53
55
  }
54
56
  };
55
- var augmentedStyles = _objectSpread(_objectSpread({}, getStyles('option', props)), styles);
57
+ var augmentedStyles = (0, _react.css)(_objectSpread(_objectSpread({}, getStyles('option', props)), baseStyles));
56
58
  var bemClasses = {
57
59
  option: true,
58
60
  'option--is-disabled': isDisabled,
@@ -173,6 +175,26 @@ var getBorderColor = function getBorderColor(_ref3) {
173
175
  }
174
176
  return "var(--ds-border-input, ".concat(_colors.N100, ")");
175
177
  };
178
+ var baseIconStyles = (0, _react.css)({
179
+ alignItems: 'center',
180
+ display: 'flex ',
181
+ flexShrink: 0,
182
+ paddingRight: "var(--ds-space-050, 4px)",
183
+ // Here we are adding a border to the Checkbox and Radio SVG icons
184
+ // This is an a11y fix for Select only for now but it may be rolled
185
+ // into the `@atlaskit/icon` package's Checkbox and Radio SVGs later
186
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
187
+ '& svg rect, & svg circle:first-of-type': {
188
+ strokeWidth: "var(--ds-border-width-outline, 2px)",
189
+ strokeLinejoin: 'round'
190
+ }
191
+ });
192
+ var baseOptionStyles = (0, _react.css)({
193
+ textOverflow: 'ellipsis',
194
+ overflowX: 'hidden',
195
+ flexGrow: 1,
196
+ whiteSpace: 'nowrap'
197
+ });
176
198
  var ControlOption = /*#__PURE__*/function (_Component) {
177
199
  (0, _inherits2.default)(ControlOption, _Component);
178
200
  var _super = _createSuper(ControlOption);
@@ -227,47 +249,36 @@ var ControlOption = /*#__PURE__*/function (_Component) {
227
249
  styles = _getPrimitiveStyles2[0],
228
250
  classes = _getPrimitiveStyles2[1];
229
251
  return (
230
- /**
231
- * TODO Fix this type error
232
- * @see https://product-fabric.atlassian.net/browse/DSP-6063
233
- */
234
- // @ts-ignore
235
- // TODO: Make these use proper dynamic styling (DSP-12490)
252
+ // These need to remain this way because `react-select` passes props with
253
+ // styles inside, and that must be done dynamically.
236
254
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
237
255
  (0, _react.jsx)("div", (0, _extends2.default)({
238
256
  css: styles,
239
257
  className: classes,
240
258
  ref: innerRef
241
259
  }, props), (0, _react.jsx)("div", {
242
- // TODO: Make these use proper dynamic styling (DSP-12490)
260
+ css: [baseIconStyles,
261
+ // Here we are adding a border to the Checkbox and Radio SVG icons
262
+ // This is an a11y fix for Select only for now but it may be rolled
263
+ // into the `@atlaskit/icon` package's Checkbox and Radio SVGs later
243
264
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
244
- css: {
245
- alignItems: 'center',
246
- display: 'flex ',
247
- flexShrink: 0,
248
- paddingRight: "var(--ds-space-050, 4px)",
249
- // Here we are adding a border to the Checkbox and Radio SVG icons
250
- // This is an a11y fix for Select only for now but it may be rolled
251
- // into the `@atlaskit/icon` package's Checkbox and Radio SVGs later
265
+ {
266
+ // This can eventually be changed to static styles that are
267
+ // applied conditionally (e.g. `isActive && activeBorderStyles`),
268
+ // but considering there are multiple instances of `react-select`
269
+ // requiring styles to be generated dynamically, it seemed like a
270
+ // low priority.
271
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
252
272
  '& svg rect, & svg circle:first-of-type': {
253
- stroke: getBorderColor(_objectSpread(_objectSpread({}, this.props), this.state)),
254
- strokeWidth: '2px',
255
- strokeLinejoin: 'round'
273
+ stroke: getBorderColor(_objectSpread(_objectSpread({}, this.props), this.state))
256
274
  }
257
- }
275
+ }]
258
276
  }, !!Icon ? (0, _react.jsx)(Icon, {
259
277
  label: "",
260
278
  primaryColor: getPrimaryColor(_objectSpread(_objectSpread({}, this.props), this.state)),
261
279
  secondaryColor: getSecondaryColor(_objectSpread(_objectSpread({}, this.props), this.state))
262
280
  }) : null), (0, _react.jsx)("div", {
263
- // TODO: Make these use proper dynamic styling (DSP-12490)
264
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
265
- css: {
266
- textOverflow: 'ellipsis',
267
- overflowX: 'hidden',
268
- flexGrow: 1,
269
- whiteSpace: 'nowrap'
270
- }
281
+ css: baseOptionStyles
271
282
  }, children))
272
283
  );
273
284
  }
@@ -95,7 +95,6 @@ function baseStyles(validationState) {
95
95
  ':hover': {
96
96
  '::-webkit-scrollbar-thumb': {
97
97
  // scrollbars occur only if the user passes in a custom component with overflow: scroll
98
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
99
98
  backgroundColor: 'rgba(0,0,0,0.2)'
100
99
  },
101
100
  cursor: 'pointer',
@@ -103,7 +102,6 @@ function baseStyles(validationState) {
103
102
  borderColor: borderColorHover
104
103
  },
105
104
  '::-webkit-scrollbar-thumb:hover': {
106
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
107
105
  backgroundColor: 'rgba(0,0,0,0.4)'
108
106
  }
109
107
  });
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  /** @jsx jsx */
3
3
 
4
4
  import { components } from 'react-select';
5
- import { jsx } from '@emotion/react';
5
+ import { css, jsx } from '@emotion/react';
6
6
  import VisuallyHidden from '@atlaskit/visually-hidden';
7
7
  import SearchIcon from '@atlaskit/icon/glyph/editor/search';
8
8
  import { layers } from '@atlaskit/theme/constants';
@@ -11,6 +11,12 @@ import { N40A } from '@atlaskit/theme/colors';
11
11
  // ==============================
12
12
  // Styled Components
13
13
  // ==============================
14
+ const menuDialogStyles = css({
15
+ backgroundColor: "var(--ds-surface-overlay, white)",
16
+ borderRadius: "var(--ds-border-radius-100, 4px)",
17
+ boxShadow: `var(--ds-shadow-overlay, ${`0 0 0 1px ${N40A}, 0 4px 11px ${N40A}`})`,
18
+ zIndex: layers.modal()
19
+ });
14
20
  export const MenuDialog = ({
15
21
  maxWidth,
16
22
  minWidth,
@@ -18,16 +24,14 @@ export const MenuDialog = ({
18
24
  id,
19
25
  style
20
26
  }) => jsx("div", {
21
- // TODO: Make these use proper dynamic styling (DSP-12490)
27
+ css: [menuDialogStyles,
28
+ // There is not a limited amount of values for the widths, so they need
29
+ // to remain dynamic.
22
30
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
23
- css: {
24
- backgroundColor: "var(--ds-surface-overlay, white)",
25
- borderRadius: 4,
26
- boxShadow: `var(--ds-shadow-overlay, ${`0 0 0 1px ${N40A}, 0 4px 11px ${N40A}`})`,
31
+ {
27
32
  maxWidth,
28
- minWidth,
29
- zIndex: layers.modal()
30
- },
33
+ minWidth
34
+ }],
31
35
  style: style,
32
36
  id: id
33
37
  }, children);
@@ -36,29 +40,26 @@ export const MenuDialog = ({
36
40
  // Custom Components
37
41
  // ==============================
38
42
 
43
+ const dropdownStyles = css({
44
+ marginRight: "var(--ds-space-025, 2px)",
45
+ textAlign: 'center',
46
+ width: 32
47
+ });
39
48
  const DropdownIndicator = () => jsx("div", {
40
- // TODO: Make these use proper dynamic styling (DSP-12490)
41
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
42
- css: {
43
- marginRight: "var(--ds-space-025, 2px)",
44
- textAlign: 'center',
45
- width: 32
46
- }
49
+ css: dropdownStyles
47
50
  }, jsx(SearchIcon, {
48
51
  label: "open"
49
52
  }));
53
+ const controlStyles = css({
54
+ padding: `${"var(--ds-space-100, 8px)"} ${"var(--ds-space-100, 8px)"} ${"var(--ds-space-050, 4px)"}`
55
+ });
50
56
  const Control = ({
51
57
  innerRef,
52
58
  innerProps,
53
59
  ...props
54
60
  }) => jsx("div", {
55
- ref: innerRef
56
- // TODO: Make these use proper dynamic styling (DSP-12490)
57
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
58
- ,
59
- css: {
60
- padding: `${"var(--ds-space-100, 8px)"} ${"var(--ds-space-100, 8px)"} ${"var(--ds-space-050, 4px)"}`
61
- }
61
+ ref: innerRef,
62
+ css: controlStyles
62
63
  }, jsx(components.Control, _extends({}, props, {
63
64
  innerProps: innerProps
64
65
  })));
@@ -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.9";
5
+ const packageVersion = "16.5.11";
6
6
  export const SelectWithoutAnalytics = createSelect(Select);
7
7
  const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
8
8
  export default withAnalyticsContext({
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  /** @jsx jsx */
4
- import { jsx } from '@emotion/react';
4
+ import { css, jsx } from '@emotion/react';
5
5
  import { Component } from 'react';
6
6
  import RadioIcon from '@atlaskit/icon/glyph/radio';
7
7
  import CheckboxIcon from '@atlaskit/icon/glyph/checkbox';
@@ -16,7 +16,7 @@ const getPrimitiveStyles = props => {
16
16
  isFocused,
17
17
  isSelected
18
18
  } = props;
19
- const styles = {
19
+ const baseStyles = {
20
20
  alignItems: 'center',
21
21
  backgroundColor: isFocused ? `var(--ds-background-neutral-subtle-hovered, ${N20})` : 'transparent',
22
22
  color: isDisabled ? "var(--ds-text-disabled, inherit)" : 'inherit',
@@ -24,7 +24,9 @@ const getPrimitiveStyles = props => {
24
24
  paddingBottom: "var(--ds-space-050, 4px)",
25
25
  paddingLeft: "var(--ds-space-200, 16px)",
26
26
  paddingTop: "var(--ds-space-050, 4px)",
27
- boxShadow: isFocused ? `inset 2px 0px 0px ${`var(--ds-border-focused, ${B400})`};` : '',
27
+ // This 'none' needs to be present to ensure that style is not applied when
28
+ // the option is selected but not focused.
29
+ boxShadow: isFocused ? `inset 2px 0px 0px ${`var(--ds-border-focused, ${B400})`}` : 'none',
28
30
  ':active': {
29
31
  backgroundColor: `var(--ds-background-neutral-subtle-pressed, ${N30})`
30
32
  },
@@ -32,10 +34,10 @@ const getPrimitiveStyles = props => {
32
34
  borderLeft: isFocused ? '2px solid transparent' : ''
33
35
  }
34
36
  };
35
- const augmentedStyles = {
37
+ const augmentedStyles = css({
36
38
  ...getStyles('option', props),
37
- ...styles
38
- };
39
+ ...baseStyles
40
+ });
39
41
  const bemClasses = {
40
42
  option: true,
41
43
  'option--is-disabled': isDisabled,
@@ -159,6 +161,26 @@ const getBorderColor = ({
159
161
  }
160
162
  return `var(--ds-border-input, ${N100})`;
161
163
  };
164
+ const baseIconStyles = css({
165
+ alignItems: 'center',
166
+ display: 'flex ',
167
+ flexShrink: 0,
168
+ paddingRight: "var(--ds-space-050, 4px)",
169
+ // Here we are adding a border to the Checkbox and Radio SVG icons
170
+ // This is an a11y fix for Select only for now but it may be rolled
171
+ // into the `@atlaskit/icon` package's Checkbox and Radio SVGs later
172
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
173
+ '& svg rect, & svg circle:first-of-type': {
174
+ strokeWidth: "var(--ds-border-width-outline, 2px)",
175
+ strokeLinejoin: 'round'
176
+ }
177
+ });
178
+ const baseOptionStyles = css({
179
+ textOverflow: 'ellipsis',
180
+ overflowX: 'hidden',
181
+ flexGrow: 1,
182
+ whiteSpace: 'nowrap'
183
+ });
162
184
  class ControlOption extends Component {
163
185
  constructor(...args) {
164
186
  super(...args);
@@ -197,37 +219,33 @@ class ControlOption extends Component {
197
219
  ...rest
198
220
  });
199
221
  return (
200
- /**
201
- * TODO Fix this type error
202
- * @see https://product-fabric.atlassian.net/browse/DSP-6063
203
- */
204
- // @ts-ignore
205
- // TODO: Make these use proper dynamic styling (DSP-12490)
222
+ // These need to remain this way because `react-select` passes props with
223
+ // styles inside, and that must be done dynamically.
206
224
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
207
225
  jsx("div", _extends({
208
226
  css: styles,
209
227
  className: classes,
210
228
  ref: innerRef
211
229
  }, props), jsx("div", {
212
- // TODO: Make these use proper dynamic styling (DSP-12490)
230
+ css: [baseIconStyles,
231
+ // Here we are adding a border to the Checkbox and Radio SVG icons
232
+ // This is an a11y fix for Select only for now but it may be rolled
233
+ // into the `@atlaskit/icon` package's Checkbox and Radio SVGs later
213
234
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
214
- css: {
215
- alignItems: 'center',
216
- display: 'flex ',
217
- flexShrink: 0,
218
- paddingRight: "var(--ds-space-050, 4px)",
219
- // Here we are adding a border to the Checkbox and Radio SVG icons
220
- // This is an a11y fix for Select only for now but it may be rolled
221
- // into the `@atlaskit/icon` package's Checkbox and Radio SVGs later
235
+ {
236
+ // This can eventually be changed to static styles that are
237
+ // applied conditionally (e.g. `isActive && activeBorderStyles`),
238
+ // but considering there are multiple instances of `react-select`
239
+ // requiring styles to be generated dynamically, it seemed like a
240
+ // low priority.
241
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
222
242
  '& svg rect, & svg circle:first-of-type': {
223
243
  stroke: getBorderColor({
224
244
  ...this.props,
225
245
  ...this.state
226
- }),
227
- strokeWidth: '2px',
228
- strokeLinejoin: 'round'
246
+ })
229
247
  }
230
- }
248
+ }]
231
249
  }, !!Icon ? jsx(Icon, {
232
250
  label: "",
233
251
  primaryColor: getPrimaryColor({
@@ -239,14 +257,7 @@ class ControlOption extends Component {
239
257
  ...this.state
240
258
  })
241
259
  }) : null), jsx("div", {
242
- // TODO: Make these use proper dynamic styling (DSP-12490)
243
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
244
- css: {
245
- textOverflow: 'ellipsis',
246
- overflowX: 'hidden',
247
- flexGrow: 1,
248
- whiteSpace: 'nowrap'
249
- }
260
+ css: baseOptionStyles
250
261
  }, children))
251
262
  );
252
263
  }
@@ -86,7 +86,6 @@ export default function baseStyles(validationState, isCompact = false, appearanc
86
86
  ':hover': {
87
87
  '::-webkit-scrollbar-thumb': {
88
88
  // scrollbars occur only if the user passes in a custom component with overflow: scroll
89
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
90
89
  backgroundColor: 'rgba(0,0,0,0.2)'
91
90
  },
92
91
  cursor: 'pointer',
@@ -94,7 +93,6 @@ export default function baseStyles(validationState, isCompact = false, appearanc
94
93
  borderColor: borderColorHover
95
94
  },
96
95
  '::-webkit-scrollbar-thumb:hover': {
97
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
98
96
  backgroundColor: 'rgba(0,0,0,0.4)'
99
97
  }
100
98
  };
@@ -5,7 +5,7 @@ var _excluded = ["innerRef", "innerProps"],
5
5
  /** @jsx jsx */
6
6
 
7
7
  import { components } from 'react-select';
8
- import { jsx } from '@emotion/react';
8
+ import { css, jsx } from '@emotion/react';
9
9
  import VisuallyHidden from '@atlaskit/visually-hidden';
10
10
  import SearchIcon from '@atlaskit/icon/glyph/editor/search';
11
11
  import { layers } from '@atlaskit/theme/constants';
@@ -14,6 +14,12 @@ import { N40A } from '@atlaskit/theme/colors';
14
14
  // ==============================
15
15
  // Styled Components
16
16
  // ==============================
17
+ var menuDialogStyles = css({
18
+ backgroundColor: "var(--ds-surface-overlay, white)",
19
+ borderRadius: "var(--ds-border-radius-100, 4px)",
20
+ boxShadow: "var(--ds-shadow-overlay, ".concat("0 0 0 1px ".concat(N40A, ", 0 4px 11px ").concat(N40A), ")"),
21
+ zIndex: layers.modal()
22
+ });
17
23
  export var MenuDialog = function MenuDialog(_ref) {
18
24
  var maxWidth = _ref.maxWidth,
19
25
  minWidth = _ref.minWidth,
@@ -21,16 +27,14 @@ export var MenuDialog = function MenuDialog(_ref) {
21
27
  id = _ref.id,
22
28
  style = _ref.style;
23
29
  return jsx("div", {
24
- // TODO: Make these use proper dynamic styling (DSP-12490)
30
+ css: [menuDialogStyles,
31
+ // There is not a limited amount of values for the widths, so they need
32
+ // to remain dynamic.
25
33
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
26
- css: {
27
- backgroundColor: "var(--ds-surface-overlay, white)",
28
- borderRadius: 4,
29
- boxShadow: "var(--ds-shadow-overlay, ".concat("0 0 0 1px ".concat(N40A, ", 0 4px 11px ").concat(N40A), ")"),
34
+ {
30
35
  maxWidth: maxWidth,
31
- minWidth: minWidth,
32
- zIndex: layers.modal()
33
- },
36
+ minWidth: minWidth
37
+ }],
34
38
  style: style,
35
39
  id: id
36
40
  }, children);
@@ -40,31 +44,28 @@ export var MenuDialog = function MenuDialog(_ref) {
40
44
  // Custom Components
41
45
  // ==============================
42
46
 
47
+ var dropdownStyles = css({
48
+ marginRight: "var(--ds-space-025, 2px)",
49
+ textAlign: 'center',
50
+ width: 32
51
+ });
43
52
  var DropdownIndicator = function DropdownIndicator() {
44
53
  return jsx("div", {
45
- // TODO: Make these use proper dynamic styling (DSP-12490)
46
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
47
- css: {
48
- marginRight: "var(--ds-space-025, 2px)",
49
- textAlign: 'center',
50
- width: 32
51
- }
54
+ css: dropdownStyles
52
55
  }, jsx(SearchIcon, {
53
56
  label: "open"
54
57
  }));
55
58
  };
59
+ var controlStyles = css({
60
+ padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-100, 8px)", " ", "var(--ds-space-050, 4px)")
61
+ });
56
62
  var Control = function Control(_ref2) {
57
63
  var innerRef = _ref2.innerRef,
58
64
  innerProps = _ref2.innerProps,
59
65
  props = _objectWithoutProperties(_ref2, _excluded);
60
66
  return jsx("div", {
61
- ref: innerRef
62
- // TODO: Make these use proper dynamic styling (DSP-12490)
63
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
64
- ,
65
- css: {
66
- padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-100, 8px)", " ", "var(--ds-space-050, 4px)")
67
- }
67
+ ref: innerRef,
68
+ css: controlStyles
68
69
  }, jsx(components.Control, _extends({}, props, {
69
70
  innerProps: innerProps
70
71
  })));
@@ -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.9";
5
+ var packageVersion = "16.5.11";
6
6
  export var SelectWithoutAnalytics = createSelect(Select);
7
7
  var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
8
8
  export default withAnalyticsContext({
@@ -17,7 +17,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
17
17
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
18
18
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
19
19
  /** @jsx jsx */
20
- import { jsx } from '@emotion/react';
20
+ import { css, jsx } from '@emotion/react';
21
21
  import { Component } from 'react';
22
22
  import RadioIcon from '@atlaskit/icon/glyph/radio';
23
23
  import CheckboxIcon from '@atlaskit/icon/glyph/checkbox';
@@ -30,7 +30,7 @@ var getPrimitiveStyles = function getPrimitiveStyles(props) {
30
30
  isDisabled = props.isDisabled,
31
31
  isFocused = props.isFocused,
32
32
  isSelected = props.isSelected;
33
- var styles = {
33
+ var baseStyles = {
34
34
  alignItems: 'center',
35
35
  backgroundColor: isFocused ? "var(--ds-background-neutral-subtle-hovered, ".concat(N20, ")") : 'transparent',
36
36
  color: isDisabled ? "var(--ds-text-disabled, inherit)" : 'inherit',
@@ -38,7 +38,9 @@ var getPrimitiveStyles = function getPrimitiveStyles(props) {
38
38
  paddingBottom: "var(--ds-space-050, 4px)",
39
39
  paddingLeft: "var(--ds-space-200, 16px)",
40
40
  paddingTop: "var(--ds-space-050, 4px)",
41
- boxShadow: isFocused ? "inset 2px 0px 0px ".concat("var(--ds-border-focused, ".concat(B400, ")"), ";") : '',
41
+ // This 'none' needs to be present to ensure that style is not applied when
42
+ // the option is selected but not focused.
43
+ boxShadow: isFocused ? "inset 2px 0px 0px ".concat("var(--ds-border-focused, ".concat(B400, ")")) : 'none',
42
44
  ':active': {
43
45
  backgroundColor: "var(--ds-background-neutral-subtle-pressed, ".concat(N30, ")")
44
46
  },
@@ -46,7 +48,7 @@ var getPrimitiveStyles = function getPrimitiveStyles(props) {
46
48
  borderLeft: isFocused ? '2px solid transparent' : ''
47
49
  }
48
50
  };
49
- var augmentedStyles = _objectSpread(_objectSpread({}, getStyles('option', props)), styles);
51
+ var augmentedStyles = css(_objectSpread(_objectSpread({}, getStyles('option', props)), baseStyles));
50
52
  var bemClasses = {
51
53
  option: true,
52
54
  'option--is-disabled': isDisabled,
@@ -167,6 +169,26 @@ var getBorderColor = function getBorderColor(_ref3) {
167
169
  }
168
170
  return "var(--ds-border-input, ".concat(N100, ")");
169
171
  };
172
+ var baseIconStyles = css({
173
+ alignItems: 'center',
174
+ display: 'flex ',
175
+ flexShrink: 0,
176
+ paddingRight: "var(--ds-space-050, 4px)",
177
+ // Here we are adding a border to the Checkbox and Radio SVG icons
178
+ // This is an a11y fix for Select only for now but it may be rolled
179
+ // into the `@atlaskit/icon` package's Checkbox and Radio SVGs later
180
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
181
+ '& svg rect, & svg circle:first-of-type': {
182
+ strokeWidth: "var(--ds-border-width-outline, 2px)",
183
+ strokeLinejoin: 'round'
184
+ }
185
+ });
186
+ var baseOptionStyles = css({
187
+ textOverflow: 'ellipsis',
188
+ overflowX: 'hidden',
189
+ flexGrow: 1,
190
+ whiteSpace: 'nowrap'
191
+ });
170
192
  var ControlOption = /*#__PURE__*/function (_Component) {
171
193
  _inherits(ControlOption, _Component);
172
194
  var _super = _createSuper(ControlOption);
@@ -221,47 +243,36 @@ var ControlOption = /*#__PURE__*/function (_Component) {
221
243
  styles = _getPrimitiveStyles2[0],
222
244
  classes = _getPrimitiveStyles2[1];
223
245
  return (
224
- /**
225
- * TODO Fix this type error
226
- * @see https://product-fabric.atlassian.net/browse/DSP-6063
227
- */
228
- // @ts-ignore
229
- // TODO: Make these use proper dynamic styling (DSP-12490)
246
+ // These need to remain this way because `react-select` passes props with
247
+ // styles inside, and that must be done dynamically.
230
248
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
231
249
  jsx("div", _extends({
232
250
  css: styles,
233
251
  className: classes,
234
252
  ref: innerRef
235
253
  }, props), jsx("div", {
236
- // TODO: Make these use proper dynamic styling (DSP-12490)
254
+ css: [baseIconStyles,
255
+ // Here we are adding a border to the Checkbox and Radio SVG icons
256
+ // This is an a11y fix for Select only for now but it may be rolled
257
+ // into the `@atlaskit/icon` package's Checkbox and Radio SVGs later
237
258
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
238
- css: {
239
- alignItems: 'center',
240
- display: 'flex ',
241
- flexShrink: 0,
242
- paddingRight: "var(--ds-space-050, 4px)",
243
- // Here we are adding a border to the Checkbox and Radio SVG icons
244
- // This is an a11y fix for Select only for now but it may be rolled
245
- // into the `@atlaskit/icon` package's Checkbox and Radio SVGs later
259
+ {
260
+ // This can eventually be changed to static styles that are
261
+ // applied conditionally (e.g. `isActive && activeBorderStyles`),
262
+ // but considering there are multiple instances of `react-select`
263
+ // requiring styles to be generated dynamically, it seemed like a
264
+ // low priority.
265
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
246
266
  '& svg rect, & svg circle:first-of-type': {
247
- stroke: getBorderColor(_objectSpread(_objectSpread({}, this.props), this.state)),
248
- strokeWidth: '2px',
249
- strokeLinejoin: 'round'
267
+ stroke: getBorderColor(_objectSpread(_objectSpread({}, this.props), this.state))
250
268
  }
251
- }
269
+ }]
252
270
  }, !!Icon ? jsx(Icon, {
253
271
  label: "",
254
272
  primaryColor: getPrimaryColor(_objectSpread(_objectSpread({}, this.props), this.state)),
255
273
  secondaryColor: getSecondaryColor(_objectSpread(_objectSpread({}, this.props), this.state))
256
274
  }) : null), jsx("div", {
257
- // TODO: Make these use proper dynamic styling (DSP-12490)
258
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
259
- css: {
260
- textOverflow: 'ellipsis',
261
- overflowX: 'hidden',
262
- flexGrow: 1,
263
- whiteSpace: 'nowrap'
264
- }
275
+ css: baseOptionStyles
265
276
  }, children))
266
277
  );
267
278
  }
@@ -89,7 +89,6 @@ export default function baseStyles(validationState) {
89
89
  ':hover': {
90
90
  '::-webkit-scrollbar-thumb': {
91
91
  // scrollbars occur only if the user passes in a custom component with overflow: scroll
92
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
93
92
  backgroundColor: 'rgba(0,0,0,0.2)'
94
93
  },
95
94
  cursor: 'pointer',
@@ -97,7 +96,6 @@ export default function baseStyles(validationState) {
97
96
  borderColor: borderColorHover
98
97
  },
99
98
  '::-webkit-scrollbar-thumb:hover': {
100
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
101
99
  backgroundColor: 'rgba(0,0,0,0.4)'
102
100
  }
103
101
  });
@@ -11,7 +11,7 @@ declare const _default: {
11
11
  render(): JSX.Element;
12
12
  context: any;
13
13
  setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("./types").SelectProps<Option, IsMulti> | import("./types").AsyncSelectProps<Option, IsMulti> | import("./types").CreatableSelectProps<Option, IsMulti>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
14
- forceUpdate(callBack?: (() => void) | undefined): void;
14
+ forceUpdate(callback?: (() => void) | undefined): void;
15
15
  readonly props: Readonly<import("./types").SelectProps<Option, IsMulti> | import("./types").AsyncSelectProps<Option, IsMulti> | import("./types").CreatableSelectProps<Option, IsMulti>> & Readonly<{
16
16
  children?: import("react").ReactNode;
17
17
  }>;
@@ -11,7 +11,7 @@ declare const _default: {
11
11
  render(): JSX.Element;
12
12
  context: any;
13
13
  setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("./types").SelectProps<Option, IsMulti> | import("./types").AsyncSelectProps<Option, IsMulti> | import("./types").CreatableSelectProps<Option, IsMulti>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
14
- forceUpdate(callBack?: (() => void) | undefined): void;
14
+ forceUpdate(callback?: (() => void) | undefined): void;
15
15
  readonly props: Readonly<import("./types").SelectProps<Option, IsMulti> | import("./types").AsyncSelectProps<Option, IsMulti> | import("./types").CreatableSelectProps<Option, IsMulti>> & Readonly<{
16
16
  children?: import("react").ReactNode;
17
17
  }>;
@@ -11,7 +11,7 @@ declare const _default: {
11
11
  render(): JSX.Element;
12
12
  context: any;
13
13
  setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("./types").SelectProps<Option, IsMulti> | import("./types").AsyncSelectProps<Option, IsMulti> | import("./types").CreatableSelectProps<Option, IsMulti>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
14
- forceUpdate(callBack?: (() => void) | undefined): void;
14
+ forceUpdate(callback?: (() => void) | undefined): void;
15
15
  readonly props: Readonly<import("./types").SelectProps<Option, IsMulti> | import("./types").AsyncSelectProps<Option, IsMulti> | import("./types").CreatableSelectProps<Option, IsMulti>> & Readonly<{
16
16
  children?: import("react").ReactNode;
17
17
  }>;
@@ -11,7 +11,7 @@ export declare const SelectWithoutAnalytics: {
11
11
  render(): JSX.Element;
12
12
  context: any;
13
13
  setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("./types").SelectProps<Option, IsMulti> | import("./types").AsyncSelectProps<Option, IsMulti> | import("./types").CreatableSelectProps<Option, IsMulti>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
14
- forceUpdate(callBack?: (() => void) | undefined): void;
14
+ forceUpdate(callback?: (() => void) | undefined): void;
15
15
  readonly props: Readonly<import("./types").SelectProps<Option, IsMulti> | import("./types").AsyncSelectProps<Option, IsMulti> | import("./types").CreatableSelectProps<Option, IsMulti>> & Readonly<{
16
16
  children?: import("react").ReactNode;
17
17
  }>;
@@ -53,7 +53,7 @@ declare const _default: {
53
53
  render(): JSX.Element;
54
54
  context: any;
55
55
  setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("./types").SelectProps<Option, IsMulti> | import("./types").AsyncSelectProps<Option, IsMulti> | import("./types").CreatableSelectProps<Option, IsMulti>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
56
- forceUpdate(callBack?: (() => void) | undefined): void;
56
+ forceUpdate(callback?: (() => void) | undefined): void;
57
57
  readonly props: Readonly<import("./types").SelectProps<Option, IsMulti> | import("./types").AsyncSelectProps<Option, IsMulti> | import("./types").CreatableSelectProps<Option, IsMulti>> & Readonly<{
58
58
  children?: import("react").ReactNode;
59
59
  }>;
@@ -13,7 +13,7 @@ export default function createSelect(WrappedComponent: ComponentType<any>): {
13
13
  render(): JSX.Element;
14
14
  context: any;
15
15
  setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<SelectProps<Option, IsMulti> | AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
16
- forceUpdate(callBack?: (() => void) | undefined): void;
16
+ forceUpdate(callback?: (() => void) | undefined): void;
17
17
  readonly props: Readonly<SelectProps<Option, IsMulti> | AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>> & Readonly<{
18
18
  children?: React.ReactNode;
19
19
  }>;
@@ -11,7 +11,7 @@ declare const _default: {
11
11
  render(): JSX.Element;
12
12
  context: any;
13
13
  setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("./types").SelectProps<Option, IsMulti> | import("./types").AsyncSelectProps<Option, IsMulti> | import("./types").CreatableSelectProps<Option, IsMulti>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
14
- forceUpdate(callBack?: (() => void) | undefined): void;
14
+ forceUpdate(callback?: (() => void) | undefined): void;
15
15
  readonly props: Readonly<import("./types").SelectProps<Option, IsMulti> | import("./types").AsyncSelectProps<Option, IsMulti> | import("./types").CreatableSelectProps<Option, IsMulti>> & Readonly<{
16
16
  children?: import("react").ReactNode;
17
17
  }>;
@@ -11,7 +11,7 @@ declare const _default: {
11
11
  render(): JSX.Element;
12
12
  context: any;
13
13
  setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("./types").SelectProps<Option, IsMulti> | import("./types").AsyncSelectProps<Option, IsMulti> | import("./types").CreatableSelectProps<Option, IsMulti>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
14
- forceUpdate(callBack?: (() => void) | undefined): void;
14
+ forceUpdate(callback?: (() => void) | undefined): void;
15
15
  readonly props: Readonly<import("./types").SelectProps<Option, IsMulti> | import("./types").AsyncSelectProps<Option, IsMulti> | import("./types").CreatableSelectProps<Option, IsMulti>> & Readonly<{
16
16
  children?: import("react").ReactNode;
17
17
  }>;
@@ -11,7 +11,7 @@ declare const _default: {
11
11
  render(): JSX.Element;
12
12
  context: any;
13
13
  setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("./types").SelectProps<Option, IsMulti> | import("./types").AsyncSelectProps<Option, IsMulti> | import("./types").CreatableSelectProps<Option, IsMulti>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
14
- forceUpdate(callBack?: (() => void) | undefined): void;
14
+ forceUpdate(callback?: (() => void) | undefined): void;
15
15
  readonly props: Readonly<import("./types").SelectProps<Option, IsMulti> | import("./types").AsyncSelectProps<Option, IsMulti> | import("./types").CreatableSelectProps<Option, IsMulti>> & Readonly<{
16
16
  children?: import("react").ReactNode;
17
17
  }>;
@@ -11,7 +11,7 @@ export declare const SelectWithoutAnalytics: {
11
11
  render(): JSX.Element;
12
12
  context: any;
13
13
  setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("./types").SelectProps<Option, IsMulti> | import("./types").AsyncSelectProps<Option, IsMulti> | import("./types").CreatableSelectProps<Option, IsMulti>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
14
- forceUpdate(callBack?: (() => void) | undefined): void;
14
+ forceUpdate(callback?: (() => void) | undefined): void;
15
15
  readonly props: Readonly<import("./types").SelectProps<Option, IsMulti> | import("./types").AsyncSelectProps<Option, IsMulti> | import("./types").CreatableSelectProps<Option, IsMulti>> & Readonly<{
16
16
  children?: import("react").ReactNode;
17
17
  }>;
@@ -53,7 +53,7 @@ declare const _default: {
53
53
  render(): JSX.Element;
54
54
  context: any;
55
55
  setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("./types").SelectProps<Option, IsMulti> | import("./types").AsyncSelectProps<Option, IsMulti> | import("./types").CreatableSelectProps<Option, IsMulti>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
56
- forceUpdate(callBack?: (() => void) | undefined): void;
56
+ forceUpdate(callback?: (() => void) | undefined): void;
57
57
  readonly props: Readonly<import("./types").SelectProps<Option, IsMulti> | import("./types").AsyncSelectProps<Option, IsMulti> | import("./types").CreatableSelectProps<Option, IsMulti>> & Readonly<{
58
58
  children?: import("react").ReactNode;
59
59
  }>;
@@ -13,7 +13,7 @@ export default function createSelect(WrappedComponent: ComponentType<any>): {
13
13
  render(): JSX.Element;
14
14
  context: any;
15
15
  setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<SelectProps<Option, IsMulti> | AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
16
- forceUpdate(callBack?: (() => void) | undefined): void;
16
+ forceUpdate(callback?: (() => void) | undefined): void;
17
17
  readonly props: Readonly<SelectProps<Option, IsMulti> | AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>> & Readonly<{
18
18
  children?: React.ReactNode;
19
19
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/select",
3
- "version": "16.5.9",
3
+ "version": "16.5.11",
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.14.0",
46
+ "@atlaskit/tokens": "^1.15.0",
47
47
  "@atlaskit/visually-hidden": "^1.2.0",
48
48
  "@babel/runtime": "^7.0.0",
49
49
  "@emotion/react": "^11.7.1",
@@ -63,6 +63,7 @@
63
63
  "react-dom": "^16.8.0"
64
64
  },
65
65
  "devDependencies": {
66
+ "@af/accessibility-testing": "*",
66
67
  "@atlaskit/ssr": "*",
67
68
  "@atlaskit/visual-regression": "*",
68
69
  "@atlaskit/webdriver-runner": "*",
package/report.api.md CHANGED
@@ -112,7 +112,7 @@ export const AsyncCreatableSelect: {
112
112
  | {},
113
113
  callback?: (() => void) | undefined,
114
114
  ): void;
115
- forceUpdate(callBack?: (() => void) | undefined): void;
115
+ forceUpdate(callback?: (() => void) | undefined): void;
116
116
  readonly props: Readonly<
117
117
  | AsyncSelectProps<Option, IsMulti>
118
118
  | CreatableSelectProps<Option, IsMulti>
@@ -227,7 +227,7 @@ export const AsyncSelect: {
227
227
  | {},
228
228
  callback?: (() => void) | undefined,
229
229
  ): void;
230
- forceUpdate(callBack?: (() => void) | undefined): void;
230
+ forceUpdate(callback?: (() => void) | undefined): void;
231
231
  readonly props: Readonly<
232
232
  | AsyncSelectProps<Option, IsMulti>
233
233
  | CreatableSelectProps<Option, IsMulti>
@@ -385,7 +385,7 @@ export const CreatableSelect: {
385
385
  | {},
386
386
  callback?: (() => void) | undefined,
387
387
  ): void;
388
- forceUpdate(callBack?: (() => void) | undefined): void;
388
+ forceUpdate(callback?: (() => void) | undefined): void;
389
389
  readonly props: Readonly<
390
390
  | AsyncSelectProps<Option, IsMulti>
391
391
  | CreatableSelectProps<Option, IsMulti>
@@ -517,7 +517,7 @@ const _default: {
517
517
  | {},
518
518
  callback?: (() => void) | undefined,
519
519
  ): void;
520
- forceUpdate(callBack?: (() => void) | undefined): void;
520
+ forceUpdate(callback?: (() => void) | undefined): void;
521
521
  readonly props: Readonly<
522
522
  | AsyncSelectProps<Option, IsMulti>
523
523
  | CreatableSelectProps<Option, IsMulti>
@@ -1223,7 +1223,7 @@ export const SelectWithoutAnalytics: {
1223
1223
  | {},
1224
1224
  callback?: (() => void) | undefined,
1225
1225
  ): void;
1226
- forceUpdate(callBack?: (() => void) | undefined): void;
1226
+ forceUpdate(callback?: (() => void) | undefined): void;
1227
1227
  readonly props: Readonly<
1228
1228
  | AsyncSelectProps<Option, IsMulti>
1229
1229
  | CreatableSelectProps<Option, IsMulti>
@@ -81,7 +81,7 @@ export const AsyncCreatableSelect: {
81
81
  render(): JSX.Element;
82
82
  context: any;
83
83
  setState<K extends never>(state: ((prevState: Readonly<{}>, props: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >) => Pick<{}, K> | null | {}) | Pick<{}, K> | null | {}, callback?: (() => void) | undefined): void;
84
- forceUpdate(callBack?: (() => void) | undefined): void;
84
+ forceUpdate(callback?: (() => void) | undefined): void;
85
85
  readonly props: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> > & Readonly<{
86
86
  children?: ReactNode;
87
87
  }>;
@@ -125,7 +125,7 @@ export const AsyncSelect: {
125
125
  render(): JSX.Element;
126
126
  context: any;
127
127
  setState<K extends never>(state: ((prevState: Readonly<{}>, props: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >) => Pick<{}, K> | null | {}) | Pick<{}, K> | null | {}, callback?: (() => void) | undefined): void;
128
- forceUpdate(callBack?: (() => void) | undefined): void;
128
+ forceUpdate(callback?: (() => void) | undefined): void;
129
129
  readonly props: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> > & Readonly<{
130
130
  children?: ReactNode;
131
131
  }>;
@@ -206,7 +206,7 @@ export const CreatableSelect: {
206
206
  render(): JSX.Element;
207
207
  context: any;
208
208
  setState<K extends never>(state: ((prevState: Readonly<{}>, props: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >) => Pick<{}, K> | null | {}) | Pick<{}, K> | null | {}, callback?: (() => void) | undefined): void;
209
- forceUpdate(callBack?: (() => void) | undefined): void;
209
+ forceUpdate(callback?: (() => void) | undefined): void;
210
210
  readonly props: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> > & Readonly<{
211
211
  children?: ReactNode;
212
212
  }>;
@@ -266,7 +266,7 @@ const _default: {
266
266
  render(): JSX.Element;
267
267
  context: any;
268
268
  setState<K extends never>(state: ((prevState: Readonly<{}>, props: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >) => Pick<{}, K> | null | {}) | Pick<{}, K> | null | {}, callback?: (() => void) | undefined): void;
269
- forceUpdate(callBack?: (() => void) | undefined): void;
269
+ forceUpdate(callback?: (() => void) | undefined): void;
270
270
  readonly props: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> > & Readonly<{
271
271
  children?: ReactNode;
272
272
  }>;
@@ -620,7 +620,7 @@ export const SelectWithoutAnalytics: {
620
620
  render(): JSX.Element;
621
621
  context: any;
622
622
  setState<K extends never>(state: ((prevState: Readonly<{}>, props: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> >) => Pick<{}, K> | null | {}) | Pick<{}, K> | null | {}, callback?: (() => void) | undefined): void;
623
- forceUpdate(callBack?: (() => void) | undefined): void;
623
+ forceUpdate(callback?: (() => void) | undefined): void;
624
624
  readonly props: Readonly<AsyncSelectProps<Option, IsMulti> | CreatableSelectProps<Option, IsMulti>| SelectProps<Option, IsMulti> > & Readonly<{
625
625
  children?: ReactNode;
626
626
  }>;
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/select",
3
- "version": "16.5.9",
4
- "sideEffects": false
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/select",
3
- "version": "16.5.9",
4
- "sideEffects": false
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/select",
3
- "version": "16.5.9",
4
- "sideEffects": false
5
- }