@atlaskit/select 15.2.9 → 15.2.10

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,12 @@
1
1
  # @atlaskit/select
2
2
 
3
+ ## 15.2.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [`62edf20ab1e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/62edf20ab1e) - Migrates all usage of brand tokens to either selected or information tokens. This change is purely for semantic reasons, there are no visual or behavioural changes.
8
+ - Updated dependencies
9
+
3
10
  ## 15.2.9
4
11
 
5
12
  ### Patch Changes
@@ -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.9";
17
+ var packageVersion = "15.2.10";
18
18
  var SelectWithoutAnalytics = (0, _createSelect.default)(_reactSelect.default);
19
19
  exports.SelectWithoutAnalytics = SelectWithoutAnalytics;
20
20
  var createAndFireEventOnAtlaskit = (0, _analyticsNext.createAndFireEvent)('atlaskit');
@@ -69,7 +69,7 @@ var getPrimitiveStyles = function getPrimitiveStyles(props) {
69
69
  paddingBottom: 4,
70
70
  paddingLeft: "".concat((0, _constants.gridSize)() * 2, "px"),
71
71
  paddingTop: 4,
72
- boxShadow: isFocused ? "inset 2px 0px 0px ".concat("var(--ds-text-brand, ".concat(_colors.B400, ")"), ";") : '',
72
+ boxShadow: isFocused ? "inset 2px 0px 0px ".concat("var(--ds-border-focused, ".concat(_colors.B400, ")"), ";") : '',
73
73
  ':active': {
74
74
  backgroundColor: "var(--ds-background-neutral-subtle-pressed, ".concat(_colors.N30, ")")
75
75
  },
@@ -121,18 +121,18 @@ var getPrimaryColor = function getPrimaryColor(_ref) {
121
121
  });
122
122
  } else if (isSelected && isActive) {
123
123
  color = (0, _components.themed)({
124
- light: "var(--ds-background-brand-bold-pressed, ".concat(_colors.B75, ")"),
125
- dark: "var(--ds-background-brand-bold-pressed, ".concat(_colors.B200, ")")
124
+ light: "var(--ds-background-selected-bold-pressed, ".concat(_colors.B75, ")"),
125
+ dark: "var(--ds-background-selected-bold-pressed, ".concat(_colors.B200, ")")
126
126
  });
127
127
  } else if (isActive) {
128
128
  color = (0, _components.themed)({
129
- light: "var(--ds-background-brand-pressed, ".concat(_colors.B75, ")"),
130
- dark: "var(--ds-background-brand-pressed, ".concat(_colors.B200, ")")
129
+ light: "var(--ds-background-selected-pressed, ".concat(_colors.B75, ")"),
130
+ dark: "var(--ds-background-selected-pressed, ".concat(_colors.B200, ")")
131
131
  });
132
132
  } else if (isFocused && isSelected) {
133
133
  color = (0, _components.themed)({
134
- light: "var(--ds-background-brand-bold-hovered, ".concat(_colors.B300, ")"),
135
- dark: "var(--ds-background-brand-bold-hovered, ".concat(_colors.B75, ")")
134
+ light: "var(--ds-background-selected-bold-hovered, ".concat(_colors.B300, ")"),
135
+ dark: "var(--ds-background-selected-bold-hovered, ".concat(_colors.B75, ")")
136
136
  });
137
137
  } else if (isFocused) {
138
138
  color = (0, _components.themed)({
@@ -141,8 +141,8 @@ var getPrimaryColor = function getPrimaryColor(_ref) {
141
141
  });
142
142
  } else if (isSelected) {
143
143
  color = (0, _components.themed)({
144
- light: "var(--ds-background-brand-bold, ".concat(_colors.B400, ")"),
145
- dark: "var(--ds-background-brand-bold, ".concat(_colors.B100, ")")
144
+ light: "var(--ds-background-selected-bold, ".concat(_colors.B400, ")"),
145
+ dark: "var(--ds-background-selected-bold, ".concat(_colors.B100, ")")
146
146
  });
147
147
  }
148
148
 
@@ -190,15 +190,15 @@ var getBorderColor = function getBorderColor(_ref3) {
190
190
  } else if (isDisabled) {
191
191
  return "var(--ds-background-disabled, ".concat(_colors.N100, ")");
192
192
  } else if (isSelected && isActive) {
193
- return "var(--ds-background-brand-bold-pressed, ".concat(_colors.B400, ")");
193
+ return "var(--ds-background-selected-bold-pressed, ".concat(_colors.B400, ")");
194
194
  } else if (isActive) {
195
- return "var(--ds-background-brand-bold, ".concat(_colors.B400, ")");
195
+ return "var(--ds-background-selected-bold, ".concat(_colors.B400, ")");
196
196
  } else if (isFocused && isSelected) {
197
- return "var(--ds-background-brand-bold-hovered, ".concat(_colors.B400, ")");
197
+ return "var(--ds-background-selected-bold-hovered, ".concat(_colors.B400, ")");
198
198
  } else if (isFocused) {
199
199
  return "var(--ds-border, ".concat(_colors.N100, ")");
200
200
  } else if (isSelected) {
201
- return "var(--ds-background-brand-bold, ".concat(_colors.B400, ")");
201
+ return "var(--ds-background-selected-bold, ".concat(_colors.B400, ")");
202
202
  }
203
203
 
204
204
  return "var(--ds-border, ".concat(_colors.N100, ")");
@@ -56,9 +56,9 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
56
56
  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; } }
57
57
 
58
58
  function createSelect(WrappedComponent) {
59
- var _class, _temp;
59
+ var _class;
60
60
 
61
- return _temp = _class = /*#__PURE__*/function (_Component) {
61
+ return _class = /*#__PURE__*/function (_Component) {
62
62
  (0, _inherits2.default)(AtlaskitSelect, _Component);
63
63
 
64
64
  var _super = _createSuper(AtlaskitSelect);
@@ -140,5 +140,5 @@ function createSelect(WrappedComponent) {
140
140
  tabSelectsValue: false,
141
141
  components: {},
142
142
  styles: {}
143
- }), _temp;
143
+ }), _class;
144
144
  }
@@ -163,7 +163,7 @@ function baseStyles(validationState, isCompact) {
163
163
  if (isDisabled) {
164
164
  color = "var(--ds-text-disabled, ".concat(_colors.N70, ")");
165
165
  } else if (isSelected) {
166
- color = "var(--ds-text-brand, ".concat(_colors.B400, ")");
166
+ color = "var(--ds-text-selected, ".concat(_colors.B400, ")");
167
167
  }
168
168
 
169
169
  var boxShadow;
@@ -172,15 +172,15 @@ function baseStyles(validationState, isCompact) {
172
172
  if (isDisabled) {
173
173
  backgroundColor = undefined;
174
174
  } else if (isSelected && isFocused) {
175
- backgroundColor = "var(--ds-background-brand-hovered, ".concat(_colors.B50, ")");
175
+ backgroundColor = "var(--ds-background-selected-hovered, ".concat(_colors.B50, ")");
176
176
  } else if (isSelected) {
177
- backgroundColor = "var(--ds-background-brand, ".concat(_colors.B50, ")");
177
+ backgroundColor = "var(--ds-background-selected, ".concat(_colors.B50, ")");
178
178
  } else if (isFocused) {
179
179
  backgroundColor = "var(--ds-background-neutral-subtle-hovered, ".concat(_colors.N20, ")");
180
180
  }
181
181
 
182
182
  if (!isDisabled && (isFocused || isSelected)) {
183
- boxShadow = "inset 2px 0px 0px ".concat("var(--ds-text-brand, ".concat(_colors.B400, ")"));
183
+ boxShadow = "inset 2px 0px 0px ".concat("var(--ds-border-selected, ".concat(_colors.B400, ")"));
184
184
  }
185
185
 
186
186
  var cursor = isDisabled ? 'not-allowed' : undefined;
@@ -191,7 +191,7 @@ function baseStyles(validationState, isCompact) {
191
191
  cursor: cursor,
192
192
  boxShadow: boxShadow,
193
193
  ':active': {
194
- backgroundColor: !isDisabled ? isSelected ? "var(--ds-background-brand-pressed, ".concat(_colors.N20, ")") : "var(--ds-background-neutral-subtle-pressed, ".concat(_colors.N30, ")") : undefined
194
+ backgroundColor: !isDisabled ? isSelected ? "var(--ds-background-selected-pressed, ".concat(_colors.N20, ")") : "var(--ds-background-neutral-subtle-pressed, ".concat(_colors.N30, ")") : undefined
195
195
  },
196
196
  '@media screen and (-ms-high-contrast: active)': {
197
197
  borderLeft: !isDisabled && (isFocused || isSelected) ? '2px solid transparent' : ''
@@ -228,7 +228,7 @@ function baseStyles(validationState, isCompact) {
228
228
  var isFocused = _ref7.isFocused;
229
229
  return _objectSpread(_objectSpread({}, css), {}, {
230
230
  borderRadius: '2px',
231
- backgroundColor: isFocused ? "var(--ds-background-brand, ".concat(_colors.N40, ")") : "var(--ds-background-neutral-subtle-hovered, ".concat(_colors.N40, ")"),
231
+ backgroundColor: isFocused ? "var(--ds-background-selected, ".concat(_colors.N40, ")") : "var(--ds-background-neutral-subtle-hovered, ".concat(_colors.N40, ")"),
232
232
  boxShadow: isFocused ? "0 0 0 2px ".concat("var(--ds-surface, transparent)", ", 0 0 0 4px ").concat("var(--ds-border-focused, transparent)") : 'none',
233
233
  maxWidth: '100%',
234
234
  '@media screen and (-ms-high-contrast: active)': {
@@ -240,15 +240,15 @@ function baseStyles(validationState, isCompact) {
240
240
  var isFocused = _ref8.isFocused;
241
241
  return _objectSpread(_objectSpread({}, css), {}, {
242
242
  padding: '2px',
243
- color: isFocused ? "var(--ds-text-brand, hsl(0, 0%, 20%))" : "var(--ds-text, hsl(0, 0%, 20%))",
243
+ color: isFocused ? "var(--ds-text-selected, hsl(0, 0%, 20%))" : "var(--ds-text, hsl(0, 0%, 20%))",
244
244
  paddingRight: '2px'
245
245
  });
246
246
  },
247
247
  multiValueRemove: function multiValueRemove(css, _ref9) {
248
248
  var isFocused = _ref9.isFocused;
249
249
  return _objectSpread(_objectSpread({}, css), {}, {
250
- backgroundColor: isFocused && "var(--ds-background-brand, ".concat(_colors.R75, ")"),
251
- fill: isFocused ? "var(--ds-text-brand, #000)" : "var(--ds-text, #000)",
250
+ backgroundColor: isFocused && "var(--ds-background-selected, ".concat(_colors.R75, ")"),
251
+ fill: isFocused ? "var(--ds-text-selected, #000)" : "var(--ds-text, #000)",
252
252
  paddingLeft: '2px',
253
253
  paddingRight: '2px',
254
254
  borderRadius: '0px 2px 2px 0px',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/select",
3
- "version": "15.2.9",
3
+ "version": "15.2.10",
4
4
  "sideEffects": false
5
5
  }
@@ -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.9";
5
+ const packageVersion = "15.2.10";
6
6
  export const SelectWithoutAnalytics = createSelect(Select);
7
7
  const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
8
8
  export default withAnalyticsContext({
@@ -27,7 +27,7 @@ const getPrimitiveStyles = props => {
27
27
  paddingBottom: 4,
28
28
  paddingLeft: `${gridSize() * 2}px`,
29
29
  paddingTop: 4,
30
- boxShadow: isFocused ? `inset 2px 0px 0px ${`var(--ds-text-brand, ${B400})`};` : '',
30
+ boxShadow: isFocused ? `inset 2px 0px 0px ${`var(--ds-border-focused, ${B400})`};` : '',
31
31
  ':active': {
32
32
  backgroundColor: `var(--ds-background-neutral-subtle-pressed, ${N30})`
33
33
  },
@@ -80,18 +80,18 @@ const getPrimaryColor = ({
80
80
  });
81
81
  } else if (isSelected && isActive) {
82
82
  color = themed({
83
- light: `var(--ds-background-brand-bold-pressed, ${B75})`,
84
- dark: `var(--ds-background-brand-bold-pressed, ${B200})`
83
+ light: `var(--ds-background-selected-bold-pressed, ${B75})`,
84
+ dark: `var(--ds-background-selected-bold-pressed, ${B200})`
85
85
  });
86
86
  } else if (isActive) {
87
87
  color = themed({
88
- light: `var(--ds-background-brand-pressed, ${B75})`,
89
- dark: `var(--ds-background-brand-pressed, ${B200})`
88
+ light: `var(--ds-background-selected-pressed, ${B75})`,
89
+ dark: `var(--ds-background-selected-pressed, ${B200})`
90
90
  });
91
91
  } else if (isFocused && isSelected) {
92
92
  color = themed({
93
- light: `var(--ds-background-brand-bold-hovered, ${B300})`,
94
- dark: `var(--ds-background-brand-bold-hovered, ${B75})`
93
+ light: `var(--ds-background-selected-bold-hovered, ${B300})`,
94
+ dark: `var(--ds-background-selected-bold-hovered, ${B75})`
95
95
  });
96
96
  } else if (isFocused) {
97
97
  color = themed({
@@ -100,8 +100,8 @@ const getPrimaryColor = ({
100
100
  });
101
101
  } else if (isSelected) {
102
102
  color = themed({
103
- light: `var(--ds-background-brand-bold, ${B400})`,
104
- dark: `var(--ds-background-brand-bold, ${B100})`
103
+ light: `var(--ds-background-selected-bold, ${B400})`,
104
+ dark: `var(--ds-background-selected-bold, ${B100})`
105
105
  });
106
106
  }
107
107
 
@@ -150,15 +150,15 @@ const getBorderColor = ({
150
150
  } else if (isDisabled) {
151
151
  return `var(--ds-background-disabled, ${N100})`;
152
152
  } else if (isSelected && isActive) {
153
- return `var(--ds-background-brand-bold-pressed, ${B400})`;
153
+ return `var(--ds-background-selected-bold-pressed, ${B400})`;
154
154
  } else if (isActive) {
155
- return `var(--ds-background-brand-bold, ${B400})`;
155
+ return `var(--ds-background-selected-bold, ${B400})`;
156
156
  } else if (isFocused && isSelected) {
157
- return `var(--ds-background-brand-bold-hovered, ${B400})`;
157
+ return `var(--ds-background-selected-bold-hovered, ${B400})`;
158
158
  } else if (isFocused) {
159
159
  return `var(--ds-border, ${N100})`;
160
160
  } else if (isSelected) {
161
- return `var(--ds-background-brand-bold, ${B400})`;
161
+ return `var(--ds-background-selected-bold, ${B400})`;
162
162
  }
163
163
 
164
164
  return `var(--ds-border, ${N100})`;
@@ -7,9 +7,9 @@ import isEqual from 'react-fast-compare';
7
7
  import * as defaultComponents from './components';
8
8
  import baseStyles from './styles';
9
9
  export default function createSelect(WrappedComponent) {
10
- var _class, _temp;
10
+ var _class;
11
11
 
12
- return _temp = _class = class AtlaskitSelect extends Component {
12
+ return _class = class AtlaskitSelect extends Component {
13
13
  constructor(props) {
14
14
  super(props);
15
15
 
@@ -85,5 +85,5 @@ export default function createSelect(WrappedComponent) {
85
85
  tabSelectsValue: false,
86
86
  components: {},
87
87
  styles: {}
88
- }), _temp;
88
+ }), _class;
89
89
  }
@@ -138,7 +138,7 @@ export default function baseStyles(validationState, isCompact) {
138
138
  if (isDisabled) {
139
139
  color = `var(--ds-text-disabled, ${N70})`;
140
140
  } else if (isSelected) {
141
- color = `var(--ds-text-brand, ${B400})`;
141
+ color = `var(--ds-text-selected, ${B400})`;
142
142
  }
143
143
 
144
144
  let boxShadow;
@@ -147,15 +147,15 @@ export default function baseStyles(validationState, isCompact) {
147
147
  if (isDisabled) {
148
148
  backgroundColor = undefined;
149
149
  } else if (isSelected && isFocused) {
150
- backgroundColor = `var(--ds-background-brand-hovered, ${B50})`;
150
+ backgroundColor = `var(--ds-background-selected-hovered, ${B50})`;
151
151
  } else if (isSelected) {
152
- backgroundColor = `var(--ds-background-brand, ${B50})`;
152
+ backgroundColor = `var(--ds-background-selected, ${B50})`;
153
153
  } else if (isFocused) {
154
154
  backgroundColor = `var(--ds-background-neutral-subtle-hovered, ${N20})`;
155
155
  }
156
156
 
157
157
  if (!isDisabled && (isFocused || isSelected)) {
158
- boxShadow = `inset 2px 0px 0px ${`var(--ds-text-brand, ${B400})`}`;
158
+ boxShadow = `inset 2px 0px 0px ${`var(--ds-border-selected, ${B400})`}`;
159
159
  }
160
160
 
161
161
  const cursor = isDisabled ? 'not-allowed' : undefined;
@@ -166,7 +166,7 @@ export default function baseStyles(validationState, isCompact) {
166
166
  cursor,
167
167
  boxShadow,
168
168
  ':active': {
169
- backgroundColor: !isDisabled ? isSelected ? `var(--ds-background-brand-pressed, ${N20})` : `var(--ds-background-neutral-subtle-pressed, ${N30})` : undefined
169
+ backgroundColor: !isDisabled ? isSelected ? `var(--ds-background-selected-pressed, ${N20})` : `var(--ds-background-neutral-subtle-pressed, ${N30})` : undefined
170
170
  },
171
171
  '@media screen and (-ms-high-contrast: active)': {
172
172
  borderLeft: !isDisabled && (isFocused || isSelected) ? '2px solid transparent' : ''
@@ -197,7 +197,7 @@ export default function baseStyles(validationState, isCompact) {
197
197
  isFocused
198
198
  }) => ({ ...css,
199
199
  borderRadius: '2px',
200
- backgroundColor: isFocused ? `var(--ds-background-brand, ${N40})` : `var(--ds-background-neutral-subtle-hovered, ${N40})`,
200
+ backgroundColor: isFocused ? `var(--ds-background-selected, ${N40})` : `var(--ds-background-neutral-subtle-hovered, ${N40})`,
201
201
  boxShadow: isFocused ? `0 0 0 2px ${"var(--ds-surface, transparent)"}, 0 0 0 4px ${"var(--ds-border-focused, transparent)"}` : 'none',
202
202
  maxWidth: '100%',
203
203
  '@media screen and (-ms-high-contrast: active)': {
@@ -208,15 +208,15 @@ export default function baseStyles(validationState, isCompact) {
208
208
  isFocused
209
209
  }) => ({ ...css,
210
210
  padding: '2px',
211
- color: isFocused ? "var(--ds-text-brand, hsl(0, 0%, 20%))" : "var(--ds-text, hsl(0, 0%, 20%))",
211
+ color: isFocused ? "var(--ds-text-selected, hsl(0, 0%, 20%))" : "var(--ds-text, hsl(0, 0%, 20%))",
212
212
  paddingRight: '2px'
213
213
  }),
214
214
  multiValueRemove: (css, {
215
215
  // @ts-ignore: missing in @types/react-select
216
216
  isFocused
217
217
  }) => ({ ...css,
218
- backgroundColor: isFocused && `var(--ds-background-brand, ${R75})`,
219
- fill: isFocused ? "var(--ds-text-brand, #000)" : "var(--ds-text, #000)",
218
+ backgroundColor: isFocused && `var(--ds-background-selected, ${R75})`,
219
+ fill: isFocused ? "var(--ds-text-selected, #000)" : "var(--ds-text, #000)",
220
220
  paddingLeft: '2px',
221
221
  paddingRight: '2px',
222
222
  borderRadius: '0px 2px 2px 0px',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/select",
3
- "version": "15.2.9",
3
+ "version": "15.2.10",
4
4
  "sideEffects": false
5
5
  }
@@ -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.9";
5
+ var packageVersion = "15.2.10";
6
6
  export var SelectWithoutAnalytics = createSelect(Select);
7
7
  var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
8
8
  export default withAnalyticsContext({
@@ -45,7 +45,7 @@ var getPrimitiveStyles = function getPrimitiveStyles(props) {
45
45
  paddingBottom: 4,
46
46
  paddingLeft: "".concat(gridSize() * 2, "px"),
47
47
  paddingTop: 4,
48
- boxShadow: isFocused ? "inset 2px 0px 0px ".concat("var(--ds-text-brand, ".concat(B400, ")"), ";") : '',
48
+ boxShadow: isFocused ? "inset 2px 0px 0px ".concat("var(--ds-border-focused, ".concat(B400, ")"), ";") : '',
49
49
  ':active': {
50
50
  backgroundColor: "var(--ds-background-neutral-subtle-pressed, ".concat(N30, ")")
51
51
  },
@@ -98,18 +98,18 @@ var getPrimaryColor = function getPrimaryColor(_ref) {
98
98
  });
99
99
  } else if (isSelected && isActive) {
100
100
  color = themed({
101
- light: "var(--ds-background-brand-bold-pressed, ".concat(B75, ")"),
102
- dark: "var(--ds-background-brand-bold-pressed, ".concat(B200, ")")
101
+ light: "var(--ds-background-selected-bold-pressed, ".concat(B75, ")"),
102
+ dark: "var(--ds-background-selected-bold-pressed, ".concat(B200, ")")
103
103
  });
104
104
  } else if (isActive) {
105
105
  color = themed({
106
- light: "var(--ds-background-brand-pressed, ".concat(B75, ")"),
107
- dark: "var(--ds-background-brand-pressed, ".concat(B200, ")")
106
+ light: "var(--ds-background-selected-pressed, ".concat(B75, ")"),
107
+ dark: "var(--ds-background-selected-pressed, ".concat(B200, ")")
108
108
  });
109
109
  } else if (isFocused && isSelected) {
110
110
  color = themed({
111
- light: "var(--ds-background-brand-bold-hovered, ".concat(B300, ")"),
112
- dark: "var(--ds-background-brand-bold-hovered, ".concat(B75, ")")
111
+ light: "var(--ds-background-selected-bold-hovered, ".concat(B300, ")"),
112
+ dark: "var(--ds-background-selected-bold-hovered, ".concat(B75, ")")
113
113
  });
114
114
  } else if (isFocused) {
115
115
  color = themed({
@@ -118,8 +118,8 @@ var getPrimaryColor = function getPrimaryColor(_ref) {
118
118
  });
119
119
  } else if (isSelected) {
120
120
  color = themed({
121
- light: "var(--ds-background-brand-bold, ".concat(B400, ")"),
122
- dark: "var(--ds-background-brand-bold, ".concat(B100, ")")
121
+ light: "var(--ds-background-selected-bold, ".concat(B400, ")"),
122
+ dark: "var(--ds-background-selected-bold, ".concat(B100, ")")
123
123
  });
124
124
  }
125
125
 
@@ -168,15 +168,15 @@ var getBorderColor = function getBorderColor(_ref3) {
168
168
  } else if (isDisabled) {
169
169
  return "var(--ds-background-disabled, ".concat(N100, ")");
170
170
  } else if (isSelected && isActive) {
171
- return "var(--ds-background-brand-bold-pressed, ".concat(B400, ")");
171
+ return "var(--ds-background-selected-bold-pressed, ".concat(B400, ")");
172
172
  } else if (isActive) {
173
- return "var(--ds-background-brand-bold, ".concat(B400, ")");
173
+ return "var(--ds-background-selected-bold, ".concat(B400, ")");
174
174
  } else if (isFocused && isSelected) {
175
- return "var(--ds-background-brand-bold-hovered, ".concat(B400, ")");
175
+ return "var(--ds-background-selected-bold-hovered, ".concat(B400, ")");
176
176
  } else if (isFocused) {
177
177
  return "var(--ds-border, ".concat(N100, ")");
178
178
  } else if (isSelected) {
179
- return "var(--ds-background-brand-bold, ".concat(B400, ")");
179
+ return "var(--ds-background-selected-bold, ".concat(B400, ")");
180
180
  }
181
181
 
182
182
  return "var(--ds-border, ".concat(N100, ")");
@@ -25,9 +25,9 @@ import isEqual from 'react-fast-compare';
25
25
  import * as defaultComponents from './components';
26
26
  import baseStyles from './styles';
27
27
  export default function createSelect(WrappedComponent) {
28
- var _class, _temp;
28
+ var _class;
29
29
 
30
- return _temp = _class = /*#__PURE__*/function (_Component) {
30
+ return _class = /*#__PURE__*/function (_Component) {
31
31
  _inherits(AtlaskitSelect, _Component);
32
32
 
33
33
  var _super = _createSuper(AtlaskitSelect);
@@ -117,5 +117,5 @@ export default function createSelect(WrappedComponent) {
117
117
  tabSelectsValue: false,
118
118
  components: {},
119
119
  styles: {}
120
- }), _temp;
120
+ }), _class;
121
121
  }
@@ -151,7 +151,7 @@ export default function baseStyles(validationState, isCompact) {
151
151
  if (isDisabled) {
152
152
  color = "var(--ds-text-disabled, ".concat(N70, ")");
153
153
  } else if (isSelected) {
154
- color = "var(--ds-text-brand, ".concat(B400, ")");
154
+ color = "var(--ds-text-selected, ".concat(B400, ")");
155
155
  }
156
156
 
157
157
  var boxShadow;
@@ -160,15 +160,15 @@ export default function baseStyles(validationState, isCompact) {
160
160
  if (isDisabled) {
161
161
  backgroundColor = undefined;
162
162
  } else if (isSelected && isFocused) {
163
- backgroundColor = "var(--ds-background-brand-hovered, ".concat(B50, ")");
163
+ backgroundColor = "var(--ds-background-selected-hovered, ".concat(B50, ")");
164
164
  } else if (isSelected) {
165
- backgroundColor = "var(--ds-background-brand, ".concat(B50, ")");
165
+ backgroundColor = "var(--ds-background-selected, ".concat(B50, ")");
166
166
  } else if (isFocused) {
167
167
  backgroundColor = "var(--ds-background-neutral-subtle-hovered, ".concat(N20, ")");
168
168
  }
169
169
 
170
170
  if (!isDisabled && (isFocused || isSelected)) {
171
- boxShadow = "inset 2px 0px 0px ".concat("var(--ds-text-brand, ".concat(B400, ")"));
171
+ boxShadow = "inset 2px 0px 0px ".concat("var(--ds-border-selected, ".concat(B400, ")"));
172
172
  }
173
173
 
174
174
  var cursor = isDisabled ? 'not-allowed' : undefined;
@@ -179,7 +179,7 @@ export default function baseStyles(validationState, isCompact) {
179
179
  cursor: cursor,
180
180
  boxShadow: boxShadow,
181
181
  ':active': {
182
- backgroundColor: !isDisabled ? isSelected ? "var(--ds-background-brand-pressed, ".concat(N20, ")") : "var(--ds-background-neutral-subtle-pressed, ".concat(N30, ")") : undefined
182
+ backgroundColor: !isDisabled ? isSelected ? "var(--ds-background-selected-pressed, ".concat(N20, ")") : "var(--ds-background-neutral-subtle-pressed, ".concat(N30, ")") : undefined
183
183
  },
184
184
  '@media screen and (-ms-high-contrast: active)': {
185
185
  borderLeft: !isDisabled && (isFocused || isSelected) ? '2px solid transparent' : ''
@@ -216,7 +216,7 @@ export default function baseStyles(validationState, isCompact) {
216
216
  var isFocused = _ref7.isFocused;
217
217
  return _objectSpread(_objectSpread({}, css), {}, {
218
218
  borderRadius: '2px',
219
- backgroundColor: isFocused ? "var(--ds-background-brand, ".concat(N40, ")") : "var(--ds-background-neutral-subtle-hovered, ".concat(N40, ")"),
219
+ backgroundColor: isFocused ? "var(--ds-background-selected, ".concat(N40, ")") : "var(--ds-background-neutral-subtle-hovered, ".concat(N40, ")"),
220
220
  boxShadow: isFocused ? "0 0 0 2px ".concat("var(--ds-surface, transparent)", ", 0 0 0 4px ").concat("var(--ds-border-focused, transparent)") : 'none',
221
221
  maxWidth: '100%',
222
222
  '@media screen and (-ms-high-contrast: active)': {
@@ -228,15 +228,15 @@ export default function baseStyles(validationState, isCompact) {
228
228
  var isFocused = _ref8.isFocused;
229
229
  return _objectSpread(_objectSpread({}, css), {}, {
230
230
  padding: '2px',
231
- color: isFocused ? "var(--ds-text-brand, hsl(0, 0%, 20%))" : "var(--ds-text, hsl(0, 0%, 20%))",
231
+ color: isFocused ? "var(--ds-text-selected, hsl(0, 0%, 20%))" : "var(--ds-text, hsl(0, 0%, 20%))",
232
232
  paddingRight: '2px'
233
233
  });
234
234
  },
235
235
  multiValueRemove: function multiValueRemove(css, _ref9) {
236
236
  var isFocused = _ref9.isFocused;
237
237
  return _objectSpread(_objectSpread({}, css), {}, {
238
- backgroundColor: isFocused && "var(--ds-background-brand, ".concat(R75, ")"),
239
- fill: isFocused ? "var(--ds-text-brand, #000)" : "var(--ds-text, #000)",
238
+ backgroundColor: isFocused && "var(--ds-background-selected, ".concat(R75, ")"),
239
+ fill: isFocused ? "var(--ds-text-selected, #000)" : "var(--ds-text, #000)",
240
240
  paddingLeft: '2px',
241
241
  paddingRight: '2px',
242
242
  borderRadius: '0px 2px 2px 0px',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/select",
3
- "version": "15.2.9",
3
+ "version": "15.2.10",
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.9",
3
+ "version": "15.2.10",
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/"
@@ -27,7 +27,7 @@
27
27
  "@atlaskit/icon": "^21.10.0",
28
28
  "@atlaskit/spinner": "^15.0.0",
29
29
  "@atlaskit/theme": "^12.1.0",
30
- "@atlaskit/tokens": "^0.7.0",
30
+ "@atlaskit/tokens": "^0.8.0",
31
31
  "@atlaskit/visually-hidden": "^1.0.0",
32
32
  "@babel/runtime": "^7.0.0",
33
33
  "@emotion/core": "^10.0.9",