@atlaskit/select 15.2.0 → 15.2.4

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,31 @@
1
1
  # @atlaskit/select
2
2
 
3
+ ## 15.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`401179b652b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/401179b652b) - PopupSelect now returns focus to the "trigger" element on close.
8
+ - Updated dependencies
9
+
10
+ ## 15.2.3
11
+
12
+ ### Patch Changes
13
+
14
+ - [`b85e7ce12cd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b85e7ce12cd) - Internal upgrade of memoize-one to 6.0.0
15
+
16
+ ## 15.2.2
17
+
18
+ ### Patch Changes
19
+
20
+ - [`6fb4421c4c1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6fb4421c4c1) - Fixed the validation token for Select in the Dark theme.
21
+ - Updated dependencies
22
+
23
+ ## 15.2.1
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies
28
+
3
29
  ## 15.2.0
4
30
 
5
31
  ### Minor Changes
@@ -234,6 +234,10 @@ var PopupSelect = /*#__PURE__*/function (_PureComponent) {
234
234
  _this.focusTrap.deactivate();
235
235
  }
236
236
 
237
+ if (_this.targetRef != null) {
238
+ _this.targetRef.focus();
239
+ }
240
+
237
241
  if (typeof window === 'undefined') {
238
242
  return;
239
243
  }
@@ -14,7 +14,7 @@ var _analyticsNext = require("@atlaskit/analytics-next");
14
14
  var _createSelect = _interopRequireDefault(require("./createSelect"));
15
15
 
16
16
  var packageName = "@atlaskit/select";
17
- var packageVersion = "15.2.0";
17
+ var packageVersion = "15.2.4";
18
18
  var SelectWithoutAnalytics = (0, _createSelect.default)(_reactSelect.default);
19
19
  exports.SelectWithoutAnalytics = SelectWithoutAnalytics;
20
20
  var createAndFireEventOnAtlaskit = (0, _analyticsNext.createAndFireEvent)('atlaskit');
@@ -53,21 +53,21 @@ function baseStyles(validationState, isCompact) {
53
53
  }
54
54
 
55
55
  if (validationState === 'error') {
56
- borderColor = (0, _tokens.token)('color.text.danger', _colors.R400);
56
+ borderColor = (0, _tokens.token)('color.iconBorder.danger', _colors.R400);
57
57
  }
58
58
 
59
59
  if (validationState === 'success') {
60
- borderColor = (0, _tokens.token)('color.text.success', _colors.G400);
60
+ borderColor = (0, _tokens.token)('color.iconBorder.success', _colors.G400);
61
61
  }
62
62
 
63
63
  var borderColorHover = isFocused ? (0, _tokens.token)('color.border.focus', _colors.B100) : (0, _tokens.token)('color.border.neutral', _colors.N30);
64
64
 
65
65
  if (validationState === 'error') {
66
- borderColorHover = (0, _tokens.token)('color.text.danger', _colors.R400);
66
+ borderColorHover = (0, _tokens.token)('color.iconBorder.danger', _colors.R400);
67
67
  }
68
68
 
69
69
  if (validationState === 'success') {
70
- borderColorHover = (0, _tokens.token)('color.text.success', _colors.G400);
70
+ borderColorHover = (0, _tokens.token)('color.iconBorder.success', _colors.G400);
71
71
  }
72
72
 
73
73
  var transitionDuration = '200ms';
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/select",
3
- "version": "15.2.0",
3
+ "version": "15.2.4",
4
4
  "sideEffects": false
5
5
  }
@@ -183,6 +183,10 @@ export default class PopupSelect extends PureComponent {
183
183
  this.focusTrap.deactivate();
184
184
  }
185
185
 
186
+ if (this.targetRef != null) {
187
+ this.targetRef.focus();
188
+ }
189
+
186
190
  if (typeof window === 'undefined') {
187
191
  return;
188
192
  }
@@ -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 = "15.2.0";
5
+ const packageVersion = "15.2.4";
6
6
  export const SelectWithoutAnalytics = createSelect(Select);
7
7
  const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
8
8
  export default withAnalyticsContext({
@@ -32,21 +32,21 @@ export default function baseStyles(validationState, isCompact) {
32
32
  }
33
33
 
34
34
  if (validationState === 'error') {
35
- borderColor = token('color.text.danger', R400);
35
+ borderColor = token('color.iconBorder.danger', R400);
36
36
  }
37
37
 
38
38
  if (validationState === 'success') {
39
- borderColor = token('color.text.success', G400);
39
+ borderColor = token('color.iconBorder.success', G400);
40
40
  }
41
41
 
42
42
  let borderColorHover = isFocused ? token('color.border.focus', B100) : token('color.border.neutral', N30);
43
43
 
44
44
  if (validationState === 'error') {
45
- borderColorHover = token('color.text.danger', R400);
45
+ borderColorHover = token('color.iconBorder.danger', R400);
46
46
  }
47
47
 
48
48
  if (validationState === 'success') {
49
- borderColorHover = token('color.text.success', G400);
49
+ borderColorHover = token('color.iconBorder.success', G400);
50
50
  }
51
51
 
52
52
  const transitionDuration = '200ms';
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/select",
3
- "version": "15.2.0",
3
+ "version": "15.2.4",
4
4
  "sideEffects": false
5
5
  }
@@ -213,6 +213,10 @@ var PopupSelect = /*#__PURE__*/function (_PureComponent) {
213
213
  _this.focusTrap.deactivate();
214
214
  }
215
215
 
216
+ if (_this.targetRef != null) {
217
+ _this.targetRef.focus();
218
+ }
219
+
216
220
  if (typeof window === 'undefined') {
217
221
  return;
218
222
  }
@@ -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 = "15.2.0";
5
+ var packageVersion = "15.2.4";
6
6
  export var SelectWithoutAnalytics = createSelect(Select);
7
7
  var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
8
8
  export default withAnalyticsContext({
@@ -40,21 +40,21 @@ export default function baseStyles(validationState, isCompact) {
40
40
  }
41
41
 
42
42
  if (validationState === 'error') {
43
- borderColor = token('color.text.danger', R400);
43
+ borderColor = token('color.iconBorder.danger', R400);
44
44
  }
45
45
 
46
46
  if (validationState === 'success') {
47
- borderColor = token('color.text.success', G400);
47
+ borderColor = token('color.iconBorder.success', G400);
48
48
  }
49
49
 
50
50
  var borderColorHover = isFocused ? token('color.border.focus', B100) : token('color.border.neutral', N30);
51
51
 
52
52
  if (validationState === 'error') {
53
- borderColorHover = token('color.text.danger', R400);
53
+ borderColorHover = token('color.iconBorder.danger', R400);
54
54
  }
55
55
 
56
56
  if (validationState === 'success') {
57
- borderColorHover = token('color.text.success', G400);
57
+ borderColorHover = token('color.iconBorder.success', G400);
58
58
  }
59
59
 
60
60
  var transitionDuration = '200ms';
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/select",
3
- "version": "15.2.0",
3
+ "version": "15.2.4",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/select",
3
- "version": "15.2.0",
3
+ "version": "15.2.4",
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/"
@@ -25,16 +25,16 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@atlaskit/analytics-next": "^8.2.0",
28
- "@atlaskit/icon": "^21.8.0",
28
+ "@atlaskit/icon": "^21.9.0",
29
29
  "@atlaskit/spinner": "^15.0.0",
30
- "@atlaskit/theme": "^11.5.0",
31
- "@atlaskit/tokens": "^0.1.0",
30
+ "@atlaskit/theme": "^12.0.0",
31
+ "@atlaskit/tokens": "^0.3.0",
32
32
  "@babel/runtime": "^7.0.0",
33
33
  "@emotion/core": "^10.0.9",
34
34
  "@popperjs/core": "^2.9.1",
35
35
  "@types/react-select": "^4.0.13",
36
36
  "focus-trap": "^2.4.5",
37
- "memoize-one": "^5.1.0",
37
+ "memoize-one": "^6.0.0",
38
38
  "react-fast-compare": "^2.0.1",
39
39
  "react-node-resolver": "^1.0.1",
40
40
  "react-popper": "^2.2.3",
@@ -51,13 +51,13 @@
51
51
  "@atlaskit/button": "^16.0.0",
52
52
  "@atlaskit/checkbox": "^12.2.0",
53
53
  "@atlaskit/docs": "*",
54
- "@atlaskit/drawer": "^6.0.0",
55
- "@atlaskit/form": "^8.1.0",
54
+ "@atlaskit/drawer": "^7.0.0",
55
+ "@atlaskit/form": "^8.4.0",
56
56
  "@atlaskit/logo": "^13.5.0",
57
- "@atlaskit/modal-dialog": "^12.0.0",
57
+ "@atlaskit/modal-dialog": "^12.1.0",
58
58
  "@atlaskit/section-message": "^6.0.0",
59
59
  "@atlaskit/ssr": "*",
60
- "@atlaskit/tooltip": "^17.3.0",
60
+ "@atlaskit/tooltip": "^17.5.0",
61
61
  "@atlaskit/visual-regression": "*",
62
62
  "@atlaskit/webdriver-runner": "*",
63
63
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",