@atlaskit/select 16.5.8 → 16.5.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,18 @@
1
1
  # @atlaskit/select
2
2
 
3
+ ## 16.5.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
8
+ - Updated dependencies
9
+
10
+ ## 16.5.9
11
+
12
+ ### Patch Changes
13
+
14
+ - [`2c77d477cbb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2c77d477cbb) - Ensures static linting occurs in the techstack, fixes one example's eslint error.
15
+
3
16
  ## 16.5.8
4
17
 
5
18
  ### Patch Changes
@@ -27,6 +27,8 @@ var MenuDialog = function MenuDialog(_ref) {
27
27
  id = _ref.id,
28
28
  style = _ref.style;
29
29
  return (0, _react.jsx)("div", {
30
+ // TODO: Make these use proper dynamic styling (DSP-12490)
31
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
30
32
  css: {
31
33
  backgroundColor: "var(--ds-surface-overlay, white)",
32
34
  borderRadius: 4,
@@ -46,6 +48,8 @@ var MenuDialog = function MenuDialog(_ref) {
46
48
  exports.MenuDialog = MenuDialog;
47
49
  var DropdownIndicator = function DropdownIndicator() {
48
50
  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
49
53
  css: {
50
54
  marginRight: "var(--ds-space-025, 2px)",
51
55
  textAlign: 'center',
@@ -60,7 +64,10 @@ var Control = function Control(_ref2) {
60
64
  innerProps = _ref2.innerProps,
61
65
  props = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
62
66
  return (0, _react.jsx)("div", {
63
- ref: innerRef,
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
+ ,
64
71
  css: {
65
72
  padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-100, 8px)", " ", "var(--ds-space-050, 4px)")
66
73
  }
@@ -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.8";
12
+ var packageVersion = "16.5.10";
13
13
  var SelectWithoutAnalytics = (0, _createSelect.default)(_reactSelect.default);
14
14
  exports.SelectWithoutAnalytics = SelectWithoutAnalytics;
15
15
  var createAndFireEventOnAtlaskit = (0, _analyticsNext.createAndFireEvent)('atlaskit');
@@ -43,10 +43,15 @@ var DropdownIndicator = function DropdownIndicator(props) {
43
43
  exports.DropdownIndicator = DropdownIndicator;
44
44
  var LoadingIndicator = function LoadingIndicator(props) {
45
45
  var loadingStyles = (0, _react.css)(props.getStyles('loadingIndicator', props));
46
- return (0, _react.jsx)("div", (0, _extends2.default)({
47
- css: loadingStyles
48
- }, props.innerProps), (0, _react.jsx)(_spinner.default, {
49
- size: "small"
50
- }));
46
+ return (
47
+ // This *must* be constructed this way because this is being consumed by
48
+ // `react-select` and we don't control what it wants.
49
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
50
+ (0, _react.jsx)("div", (0, _extends2.default)({
51
+ css: loadingStyles
52
+ }, props.innerProps), (0, _react.jsx)(_spinner.default, {
53
+ size: "small"
54
+ }))
55
+ );
51
56
  };
52
57
  exports.LoadingIndicator = LoadingIndicator;
@@ -232,11 +232,15 @@ var ControlOption = /*#__PURE__*/function (_Component) {
232
232
  * @see https://product-fabric.atlassian.net/browse/DSP-6063
233
233
  */
234
234
  // @ts-ignore
235
+ // TODO: Make these use proper dynamic styling (DSP-12490)
236
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
235
237
  (0, _react.jsx)("div", (0, _extends2.default)({
236
238
  css: styles,
237
239
  className: classes,
238
240
  ref: innerRef
239
241
  }, props), (0, _react.jsx)("div", {
242
+ // TODO: Make these use proper dynamic styling (DSP-12490)
243
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
240
244
  css: {
241
245
  alignItems: 'center',
242
246
  display: 'flex ',
@@ -256,6 +260,8 @@ var ControlOption = /*#__PURE__*/function (_Component) {
256
260
  primaryColor: getPrimaryColor(_objectSpread(_objectSpread({}, this.props), this.state)),
257
261
  secondaryColor: getSecondaryColor(_objectSpread(_objectSpread({}, this.props), this.state))
258
262
  }) : 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
259
265
  css: {
260
266
  textOverflow: 'ellipsis',
261
267
  overflowX: 'hidden',
@@ -18,6 +18,8 @@ export const MenuDialog = ({
18
18
  id,
19
19
  style
20
20
  }) => jsx("div", {
21
+ // TODO: Make these use proper dynamic styling (DSP-12490)
22
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
21
23
  css: {
22
24
  backgroundColor: "var(--ds-surface-overlay, white)",
23
25
  borderRadius: 4,
@@ -35,6 +37,8 @@ export const MenuDialog = ({
35
37
  // ==============================
36
38
 
37
39
  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
38
42
  css: {
39
43
  marginRight: "var(--ds-space-025, 2px)",
40
44
  textAlign: 'center',
@@ -48,7 +52,10 @@ const Control = ({
48
52
  innerProps,
49
53
  ...props
50
54
  }) => jsx("div", {
51
- ref: innerRef,
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
+ ,
52
59
  css: {
53
60
  padding: `${"var(--ds-space-100, 8px)"} ${"var(--ds-space-100, 8px)"} ${"var(--ds-space-050, 4px)"}`
54
61
  }
@@ -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.8";
5
+ const packageVersion = "16.5.10";
6
6
  export const SelectWithoutAnalytics = createSelect(Select);
7
7
  const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
8
8
  export default withAnalyticsContext({
@@ -29,9 +29,14 @@ export const DropdownIndicator = props => jsx(components.DropdownIndicator, prop
29
29
  }));
30
30
  export const LoadingIndicator = props => {
31
31
  const loadingStyles = css(props.getStyles('loadingIndicator', props));
32
- return jsx("div", _extends({
33
- css: loadingStyles
34
- }, props.innerProps), jsx(Spinner, {
35
- size: "small"
36
- }));
32
+ return (
33
+ // This *must* be constructed this way because this is being consumed by
34
+ // `react-select` and we don't control what it wants.
35
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
36
+ jsx("div", _extends({
37
+ css: loadingStyles
38
+ }, props.innerProps), jsx(Spinner, {
39
+ size: "small"
40
+ }))
41
+ );
37
42
  };
@@ -202,11 +202,15 @@ class ControlOption extends Component {
202
202
  * @see https://product-fabric.atlassian.net/browse/DSP-6063
203
203
  */
204
204
  // @ts-ignore
205
+ // TODO: Make these use proper dynamic styling (DSP-12490)
206
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
205
207
  jsx("div", _extends({
206
208
  css: styles,
207
209
  className: classes,
208
210
  ref: innerRef
209
211
  }, props), jsx("div", {
212
+ // TODO: Make these use proper dynamic styling (DSP-12490)
213
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
210
214
  css: {
211
215
  alignItems: 'center',
212
216
  display: 'flex ',
@@ -235,6 +239,8 @@ class ControlOption extends Component {
235
239
  ...this.state
236
240
  })
237
241
  }) : 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
238
244
  css: {
239
245
  textOverflow: 'ellipsis',
240
246
  overflowX: 'hidden',
@@ -21,6 +21,8 @@ export var MenuDialog = function MenuDialog(_ref) {
21
21
  id = _ref.id,
22
22
  style = _ref.style;
23
23
  return jsx("div", {
24
+ // TODO: Make these use proper dynamic styling (DSP-12490)
25
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
24
26
  css: {
25
27
  backgroundColor: "var(--ds-surface-overlay, white)",
26
28
  borderRadius: 4,
@@ -40,6 +42,8 @@ export var MenuDialog = function MenuDialog(_ref) {
40
42
 
41
43
  var DropdownIndicator = function DropdownIndicator() {
42
44
  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
43
47
  css: {
44
48
  marginRight: "var(--ds-space-025, 2px)",
45
49
  textAlign: 'center',
@@ -54,7 +58,10 @@ var Control = function Control(_ref2) {
54
58
  innerProps = _ref2.innerProps,
55
59
  props = _objectWithoutProperties(_ref2, _excluded);
56
60
  return jsx("div", {
57
- ref: innerRef,
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
+ ,
58
65
  css: {
59
66
  padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-100, 8px)", " ", "var(--ds-space-050, 4px)")
60
67
  }
@@ -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.8";
5
+ var packageVersion = "16.5.10";
6
6
  export var SelectWithoutAnalytics = createSelect(Select);
7
7
  var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
8
8
  export default withAnalyticsContext({
@@ -35,9 +35,14 @@ export var DropdownIndicator = function DropdownIndicator(props) {
35
35
  };
36
36
  export var LoadingIndicator = function LoadingIndicator(props) {
37
37
  var loadingStyles = css(props.getStyles('loadingIndicator', props));
38
- return jsx("div", _extends({
39
- css: loadingStyles
40
- }, props.innerProps), jsx(Spinner, {
41
- size: "small"
42
- }));
38
+ return (
39
+ // This *must* be constructed this way because this is being consumed by
40
+ // `react-select` and we don't control what it wants.
41
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
42
+ jsx("div", _extends({
43
+ css: loadingStyles
44
+ }, props.innerProps), jsx(Spinner, {
45
+ size: "small"
46
+ }))
47
+ );
43
48
  };
@@ -226,11 +226,15 @@ var ControlOption = /*#__PURE__*/function (_Component) {
226
226
  * @see https://product-fabric.atlassian.net/browse/DSP-6063
227
227
  */
228
228
  // @ts-ignore
229
+ // TODO: Make these use proper dynamic styling (DSP-12490)
230
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
229
231
  jsx("div", _extends({
230
232
  css: styles,
231
233
  className: classes,
232
234
  ref: innerRef
233
235
  }, props), jsx("div", {
236
+ // TODO: Make these use proper dynamic styling (DSP-12490)
237
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
234
238
  css: {
235
239
  alignItems: 'center',
236
240
  display: 'flex ',
@@ -250,6 +254,8 @@ var ControlOption = /*#__PURE__*/function (_Component) {
250
254
  primaryColor: getPrimaryColor(_objectSpread(_objectSpread({}, this.props), this.state)),
251
255
  secondaryColor: getSecondaryColor(_objectSpread(_objectSpread({}, this.props), this.state))
252
256
  }) : 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
253
259
  css: {
254
260
  textOverflow: 'ellipsis',
255
261
  overflowX: 'hidden',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/select",
3
- "version": "16.5.8",
3
+ "version": "16.5.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/"
@@ -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",
@@ -87,7 +87,8 @@
87
87
  ],
88
88
  "deprecation": "no-deprecated-imports",
89
89
  "styling": [
90
- "emotion"
90
+ "emotion",
91
+ "static"
91
92
  ]
92
93
  }
93
94
  },
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/select",
3
- "version": "16.5.8",
4
- "sideEffects": false
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/select",
3
- "version": "16.5.8",
4
- "sideEffects": false
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/select",
3
- "version": "16.5.8",
4
- "sideEffects": false
5
- }