@atlaskit/select 16.1.4 → 16.1.5

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.1.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`7f5f23dcb68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7f5f23dcb68) - Introduce shape tokens to some packages.
8
+
3
9
  ## 16.1.4
4
10
 
5
11
  ### Patch Changes
@@ -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.1.4";
12
+ var packageVersion = "16.1.5";
13
13
  var SelectWithoutAnalytics = (0, _createSelect.default)(_reactSelect.default);
14
14
  exports.SelectWithoutAnalytics = SelectWithoutAnalytics;
15
15
  var createAndFireEventOnAtlaskit = (0, _analyticsNext.createAndFireEvent)('atlaskit');
@@ -20,7 +20,7 @@ function baseStyles(validationState) {
20
20
  container: function container(css, _ref) {
21
21
  var isDisabled = _ref.isDisabled;
22
22
  return _objectSpread(_objectSpread({}, css), {}, {
23
- fontFamily: (0, _constants.fontFamily)(),
23
+ fontFamily: "var(--ds-font-family-sans, ".concat((0, _constants.fontFamily)(), ")"),
24
24
  // react-select disables pointer events when isDisabled is true.
25
25
  // We override this and make the inner container turn it off instead.
26
26
  pointerEvents: 'all',
@@ -73,8 +73,8 @@ function baseStyles(validationState) {
73
73
  backgroundColor: backgroundColor,
74
74
  borderColor: borderColor,
75
75
  borderStyle: 'solid',
76
- borderRadius: '3px',
77
- borderWidth: '2px',
76
+ borderRadius: "var(--ds-radius-100, 3px)",
77
+ borderWidth: "var(--ds-width-100, 2px)",
78
78
  boxShadow: 'none',
79
79
  minHeight: isCompact ? (0, _constants.gridSize)() * 4 : (0, _constants.gridSize)() * 5,
80
80
  padding: 0,
@@ -199,7 +199,7 @@ function baseStyles(validationState) {
199
199
  var isDisabled = _ref6.isDisabled;
200
200
  return _objectSpread(_objectSpread({}, css), {}, {
201
201
  color: isDisabled ? "var(--ds-text-disabled, ".concat(_colors.N70, ")") : "var(--ds-text, ".concat(_colors.N800, ")"),
202
- lineHeight: "".concat((0, _constants.gridSize)() * 2, "px") // 16px
202
+ lineHeight: "var(--ds-font-lineHeight-100, 16px)" // 16px
203
203
  });
204
204
  },
205
205
 
@@ -211,14 +211,14 @@ function baseStyles(validationState) {
211
211
  },
212
212
  menuList: function menuList(css) {
213
213
  return _objectSpread(_objectSpread({}, css), {}, {
214
- paddingTop: (0, _constants.gridSize)(),
215
- paddingBottom: (0, _constants.gridSize)()
214
+ paddingTop: "var(--ds-space-100, 8px)",
215
+ paddingBottom: "var(--ds-space-100, 8px)"
216
216
  });
217
217
  },
218
218
  multiValue: function multiValue(css, _ref7) {
219
219
  var isFocused = _ref7.isFocused;
220
220
  return _objectSpread(_objectSpread({}, css), {}, {
221
- borderRadius: '2px',
221
+ borderRadius: "var(--ds-radius-050, 2px)",
222
222
  backgroundColor: isFocused ? "var(--ds-background-selected, ".concat(_colors.N40, ")") : "var(--ds-background-neutral, ".concat(_colors.N40, ")"),
223
223
  boxShadow: isFocused ? "0 0 0 2px ".concat("var(--ds-surface, transparent)", ", 0 0 0 4px ", "var(--ds-border-focused, transparent)") : 'none',
224
224
  maxWidth: '100%',
@@ -230,9 +230,9 @@ function baseStyles(validationState) {
230
230
  },
231
231
  multiValueLabel: function multiValueLabel(css) {
232
232
  return _objectSpread(_objectSpread({}, css), {}, {
233
- padding: '2px',
233
+ padding: "var(--ds-space-025, 2px)",
234
234
  color: 'inherit',
235
- paddingRight: '2px'
235
+ paddingRight: "var(--ds-space-025, 2px)"
236
236
  });
237
237
  },
238
238
  multiValueRemove: function multiValueRemove(css, _ref8) {
@@ -240,8 +240,8 @@ function baseStyles(validationState) {
240
240
  return _objectSpread(_objectSpread({}, css), {}, {
241
241
  backgroundColor: isFocused ? "var(--ds-UNSAFE-transparent, ".concat(_colors.R75, ")") : undefined,
242
242
  fill: isFocused ? "var(--ds-text-selected, #000)" : "var(--ds-text, #000)",
243
- paddingLeft: '2px',
244
- paddingRight: '2px',
243
+ paddingLeft: "var(--ds-space-025, 2px)",
244
+ paddingRight: "var(--ds-space-025, 2px)",
245
245
  borderRadius: '0px 2px 2px 0px',
246
246
  // DSP-6470 we should style like Tag once we have the :has selector
247
247
  ':hover': {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/select",
3
- "version": "16.1.4",
3
+ "version": "16.1.5",
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 = "16.1.4";
5
+ const packageVersion = "16.1.5";
6
6
  export const SelectWithoutAnalytics = createSelect(Select);
7
7
  const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
8
8
  export default withAnalyticsContext({
@@ -9,7 +9,7 @@ export default function baseStyles(validationState, isCompact = false, appearanc
9
9
  isDisabled
10
10
  }) => ({
11
11
  ...css,
12
- fontFamily: fontFamily(),
12
+ fontFamily: `var(--ds-font-family-sans, ${fontFamily()})`,
13
13
  // react-select disables pointer events when isDisabled is true.
14
14
  // We override this and make the inner container turn it off instead.
15
15
  pointerEvents: 'all',
@@ -62,8 +62,8 @@ export default function baseStyles(validationState, isCompact = false, appearanc
62
62
  backgroundColor,
63
63
  borderColor,
64
64
  borderStyle: 'solid',
65
- borderRadius: '3px',
66
- borderWidth: '2px',
65
+ borderRadius: "var(--ds-radius-100, 3px)",
66
+ borderWidth: "var(--ds-width-100, 2px)",
67
67
  boxShadow: 'none',
68
68
  minHeight: isCompact ? gridSize() * 4 : gridSize() * 5,
69
69
  padding: 0,
@@ -190,7 +190,7 @@ export default function baseStyles(validationState, isCompact = false, appearanc
190
190
  }) => ({
191
191
  ...css,
192
192
  color: isDisabled ? `var(--ds-text-disabled, ${N70})` : `var(--ds-text, ${N800})`,
193
- lineHeight: `${gridSize() * 2}px` // 16px
193
+ lineHeight: "var(--ds-font-lineHeight-100, 16px)" // 16px
194
194
  }),
195
195
 
196
196
  menu: css => ({
@@ -200,14 +200,14 @@ export default function baseStyles(validationState, isCompact = false, appearanc
200
200
  }),
201
201
  menuList: css => ({
202
202
  ...css,
203
- paddingTop: gridSize(),
204
- paddingBottom: gridSize()
203
+ paddingTop: "var(--ds-space-100, 8px)",
204
+ paddingBottom: "var(--ds-space-100, 8px)"
205
205
  }),
206
206
  multiValue: (css, {
207
207
  isFocused
208
208
  }) => ({
209
209
  ...css,
210
- borderRadius: '2px',
210
+ borderRadius: "var(--ds-radius-050, 2px)",
211
211
  backgroundColor: isFocused ? `var(--ds-background-selected, ${N40})` : `var(--ds-background-neutral, ${N40})`,
212
212
  boxShadow: isFocused ? `0 0 0 2px ${"var(--ds-surface, transparent)"}, 0 0 0 4px ${"var(--ds-border-focused, transparent)"}` : 'none',
213
213
  maxWidth: '100%',
@@ -218,9 +218,9 @@ export default function baseStyles(validationState, isCompact = false, appearanc
218
218
  }),
219
219
  multiValueLabel: css => ({
220
220
  ...css,
221
- padding: '2px',
221
+ padding: "var(--ds-space-025, 2px)",
222
222
  color: 'inherit',
223
- paddingRight: '2px'
223
+ paddingRight: "var(--ds-space-025, 2px)"
224
224
  }),
225
225
  multiValueRemove: (css, {
226
226
  isFocused
@@ -228,8 +228,8 @@ export default function baseStyles(validationState, isCompact = false, appearanc
228
228
  ...css,
229
229
  backgroundColor: isFocused ? `var(--ds-UNSAFE-transparent, ${R75})` : undefined,
230
230
  fill: isFocused ? "var(--ds-text-selected, #000)" : "var(--ds-text, #000)",
231
- paddingLeft: '2px',
232
- paddingRight: '2px',
231
+ paddingLeft: "var(--ds-space-025, 2px)",
232
+ paddingRight: "var(--ds-space-025, 2px)",
233
233
  borderRadius: '0px 2px 2px 0px',
234
234
  // DSP-6470 we should style like Tag once we have the :has selector
235
235
  ':hover': {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/select",
3
- "version": "16.1.4",
3
+ "version": "16.1.5",
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 = "16.1.4";
5
+ var packageVersion = "16.1.5";
6
6
  export var SelectWithoutAnalytics = createSelect(Select);
7
7
  var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
8
8
  export default withAnalyticsContext({
@@ -13,7 +13,7 @@ export default function baseStyles(validationState) {
13
13
  container: function container(css, _ref) {
14
14
  var isDisabled = _ref.isDisabled;
15
15
  return _objectSpread(_objectSpread({}, css), {}, {
16
- fontFamily: fontFamily(),
16
+ fontFamily: "var(--ds-font-family-sans, ".concat(fontFamily(), ")"),
17
17
  // react-select disables pointer events when isDisabled is true.
18
18
  // We override this and make the inner container turn it off instead.
19
19
  pointerEvents: 'all',
@@ -66,8 +66,8 @@ export default function baseStyles(validationState) {
66
66
  backgroundColor: backgroundColor,
67
67
  borderColor: borderColor,
68
68
  borderStyle: 'solid',
69
- borderRadius: '3px',
70
- borderWidth: '2px',
69
+ borderRadius: "var(--ds-radius-100, 3px)",
70
+ borderWidth: "var(--ds-width-100, 2px)",
71
71
  boxShadow: 'none',
72
72
  minHeight: isCompact ? gridSize() * 4 : gridSize() * 5,
73
73
  padding: 0,
@@ -192,7 +192,7 @@ export default function baseStyles(validationState) {
192
192
  var isDisabled = _ref6.isDisabled;
193
193
  return _objectSpread(_objectSpread({}, css), {}, {
194
194
  color: isDisabled ? "var(--ds-text-disabled, ".concat(N70, ")") : "var(--ds-text, ".concat(N800, ")"),
195
- lineHeight: "".concat(gridSize() * 2, "px") // 16px
195
+ lineHeight: "var(--ds-font-lineHeight-100, 16px)" // 16px
196
196
  });
197
197
  },
198
198
 
@@ -204,14 +204,14 @@ export default function baseStyles(validationState) {
204
204
  },
205
205
  menuList: function menuList(css) {
206
206
  return _objectSpread(_objectSpread({}, css), {}, {
207
- paddingTop: gridSize(),
208
- paddingBottom: gridSize()
207
+ paddingTop: "var(--ds-space-100, 8px)",
208
+ paddingBottom: "var(--ds-space-100, 8px)"
209
209
  });
210
210
  },
211
211
  multiValue: function multiValue(css, _ref7) {
212
212
  var isFocused = _ref7.isFocused;
213
213
  return _objectSpread(_objectSpread({}, css), {}, {
214
- borderRadius: '2px',
214
+ borderRadius: "var(--ds-radius-050, 2px)",
215
215
  backgroundColor: isFocused ? "var(--ds-background-selected, ".concat(N40, ")") : "var(--ds-background-neutral, ".concat(N40, ")"),
216
216
  boxShadow: isFocused ? "0 0 0 2px ".concat("var(--ds-surface, transparent)", ", 0 0 0 4px ", "var(--ds-border-focused, transparent)") : 'none',
217
217
  maxWidth: '100%',
@@ -223,9 +223,9 @@ export default function baseStyles(validationState) {
223
223
  },
224
224
  multiValueLabel: function multiValueLabel(css) {
225
225
  return _objectSpread(_objectSpread({}, css), {}, {
226
- padding: '2px',
226
+ padding: "var(--ds-space-025, 2px)",
227
227
  color: 'inherit',
228
- paddingRight: '2px'
228
+ paddingRight: "var(--ds-space-025, 2px)"
229
229
  });
230
230
  },
231
231
  multiValueRemove: function multiValueRemove(css, _ref8) {
@@ -233,8 +233,8 @@ export default function baseStyles(validationState) {
233
233
  return _objectSpread(_objectSpread({}, css), {}, {
234
234
  backgroundColor: isFocused ? "var(--ds-UNSAFE-transparent, ".concat(R75, ")") : undefined,
235
235
  fill: isFocused ? "var(--ds-text-selected, #000)" : "var(--ds-text, #000)",
236
- paddingLeft: '2px',
237
- paddingRight: '2px',
236
+ paddingLeft: "var(--ds-space-025, 2px)",
237
+ paddingRight: "var(--ds-space-025, 2px)",
238
238
  borderRadius: '0px 2px 2px 0px',
239
239
  // DSP-6470 we should style like Tag once we have the :has selector
240
240
  ':hover': {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/select",
3
- "version": "16.1.4",
3
+ "version": "16.1.5",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/select",
3
- "version": "16.1.4",
3
+ "version": "16.1.5",
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/"