@atlaskit/select 21.4.3 → 21.6.0

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,27 @@
1
1
  # @atlaskit/select
2
2
 
3
+ ## 21.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`762b79e21f96a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/762b79e21f96a) -
8
+ Migrated and cleaned up legacy iconography usage.
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 21.5.0
15
+
16
+ ### Minor Changes
17
+
18
+ - [`b867e641d818d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b867e641d818d) -
19
+ Updated border radius values behind a feature gate `platform-dst-shape-theme-default`.
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies
24
+
3
25
  ## 21.4.3
4
26
 
5
27
  ### Patch Changes
@@ -1,5 +1,6 @@
1
1
 
2
- ._2rko12b0{border-radius:var(--ds-radius-small,4px)}._12l2v77o{margin-inline-end:var(--ds-space-025,2px)}
2
+ ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
3
+ ._2rko1mok{border-radius:var(--ds-radius-large,8px)}._12l2v77o{margin-inline-end:var(--ds-space-025,2px)}
3
4
  ._16qsu838{box-shadow:var(--_z6sjud)}
4
5
  ._1bsbzwfg{width:2pc}
5
6
  ._1pby16oo{z-index:510}
@@ -15,6 +15,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
15
15
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
16
16
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
17
17
  var _searchEditorSearch = _interopRequireDefault(require("@atlaskit/icon/core/migration/search--editor-search"));
18
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
19
  var _reactSelect = require("@atlaskit/react-select");
19
20
  var _colors = require("@atlaskit/theme/colors");
20
21
  var _constants = require("@atlaskit/theme/constants");
@@ -28,6 +29,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
28
29
  // ==============================
29
30
 
30
31
  var menuDialogStyles = null;
32
+ var menuDialogStylesT26Shape = null;
31
33
 
32
34
  /**
33
35
  * __Menu dialog__
@@ -42,7 +44,7 @@ var MenuDialog = exports.MenuDialog = /*#__PURE__*/(0, _react.forwardRef)(functi
42
44
  ref: ref,
43
45
  id: id,
44
46
  "data-testid": testId && "".concat(testId, "--menu"),
45
- className: (0, _runtime.ax)(["_2rko12b0 _1pby16oo _bfhk1bhr _16qsu838"]),
47
+ className: (0, _runtime.ax)(["_2rko12b0 _1pby16oo _bfhk1bhr _16qsu838", (0, _platformFeatureFlags.fg)('platform-dst-shape-theme-default') && "_2rko1mok"]),
46
48
  style: _objectSpread(_objectSpread({}, style), {}, {
47
49
  "--_z6sjud": (0, _runtime.ix)("var(--ds-shadow-overlay, ".concat("0 0 0 1px ".concat(_colors.N40A, ", 0 4px 11px ").concat(_colors.N40A), ")"))
48
50
  })
@@ -11,7 +11,7 @@ var _createSelect = _interopRequireDefault(require("./createSelect"));
11
11
  /* eslint-disable @repo/internal/react/require-jsdoc */
12
12
 
13
13
  var packageName = "@atlaskit/select";
14
- var packageVersion = "21.4.2";
14
+ var packageVersion = "0.0.0-development";
15
15
  var SelectWithoutAnalytics = exports.SelectWithoutAnalytics = (0, _createSelect.default)(_async.default);
16
16
  var createAndFireEventOnAtlaskit = (0, _analyticsNext.createAndFireEvent)('atlaskit');
17
17
  var Select = (0, _analyticsNext.withAnalyticsContext)({
@@ -13,8 +13,6 @@ var React = _react;
13
13
  var _runtime = require("@compiled/react/runtime");
14
14
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
15
15
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
16
- var _checkbox = _interopRequireDefault(require("@atlaskit/icon/glyph/checkbox"));
17
- var _radio = _interopRequireDefault(require("@atlaskit/icon/glyph/radio"));
18
16
  var _svg = _interopRequireDefault(require("@atlaskit/icon/svg"));
19
17
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
20
18
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
@@ -148,7 +146,7 @@ var NewCheckboxIcon = function NewCheckboxIcon(props) {
148
146
  color: primaryColor,
149
147
  fill: secondaryColor
150
148
  },
151
- "aria-label": label,
149
+ "aria-label": label ? label : undefined,
152
150
  role: label ? 'img' : 'presentation',
153
151
  className: (0, _runtime.ax)(["_1reo15vq _18m915vq _1bsb1tcg _4t3i1tcg _lswuvuon _lcxvglyw"])
154
152
  }, newCheckboxIconPath);
@@ -184,7 +182,7 @@ var NewRadioIcon = function NewRadioIcon(props) {
184
182
  color: primaryColor,
185
183
  fill: secondaryColor
186
184
  },
187
- "aria-label": label,
185
+ "aria-label": label ? label : undefined,
188
186
  role: label ? 'img' : 'presentation',
189
187
  className: (0, _runtime.ax)(["_1reo15vq _18m915vq _1bsb1tcg _4t3i1tcg _lswuvuon _lcxvglyw"])
190
188
  }, newRadioIconPath);
@@ -201,9 +199,7 @@ var NewRadioIcon = function NewRadioIcon(props) {
201
199
  */
202
200
  var CheckboxOption = exports.CheckboxOption = function CheckboxOption(props) {
203
201
  return /*#__PURE__*/React.createElement(ControlOption, (0, _extends2.default)({
204
- Icon: (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? NewCheckboxIcon :
205
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
206
- _checkbox.default
202
+ Icon: NewCheckboxIcon
207
203
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
208
204
  }, props));
209
205
  };
@@ -216,9 +212,7 @@ var RadioOption = exports.RadioOption = function RadioOption(props) {
216
212
  /*#__PURE__*/
217
213
  // TODO https://product-fabric.atlassian.net/browse/DSP-20769
218
214
  React.createElement(ControlOption, (0, _extends2.default)({
219
- Icon: (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? NewRadioIcon :
220
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
221
- _radio.default
215
+ Icon: NewRadioIcon
222
216
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
223
217
  }, props))
224
218
  );
@@ -1,5 +1,6 @@
1
1
 
2
- ._2rko12b0{border-radius:var(--ds-radius-small,4px)}._12l2v77o{margin-inline-end:var(--ds-space-025,2px)}
2
+ ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
3
+ ._2rko1mok{border-radius:var(--ds-radius-large,8px)}._12l2v77o{margin-inline-end:var(--ds-space-025,2px)}
3
4
  ._16qs1s1a{box-shadow:var(--ds-shadow-overlay,0 0 0 1px rgba(9,30,66,.13),0 4px 11px rgba(9,30,66,.13))}
4
5
  ._1bsbzwfg{width:2pc}
5
6
  ._1pby16oo{z-index:510}
@@ -5,6 +5,7 @@ import * as React from 'react';
5
5
  import { ax, ix } from "@compiled/react/runtime";
6
6
  import { forwardRef } from 'react';
7
7
  import SearchIcon from '@atlaskit/icon/core/migration/search--editor-search';
8
+ import { fg } from '@atlaskit/platform-feature-flags';
8
9
  import { components } from '@atlaskit/react-select';
9
10
  import { N40A } from '@atlaskit/theme/colors';
10
11
  import { layers } from '@atlaskit/theme/constants';
@@ -15,6 +16,7 @@ import VisuallyHidden from '@atlaskit/visually-hidden';
15
16
  // ==============================
16
17
 
17
18
  const menuDialogStyles = null;
19
+ const menuDialogStylesT26Shape = null;
18
20
 
19
21
  /**
20
22
  * __Menu dialog__
@@ -32,7 +34,7 @@ export const MenuDialog = /*#__PURE__*/forwardRef(({
32
34
  style: style,
33
35
  id: id,
34
36
  "data-testid": testId && `${testId}--menu`,
35
- className: ax(["_2rko12b0 _1pby16oo _bfhk1bhr _16qs1s1a"])
37
+ className: ax(["_2rko12b0 _1pby16oo _bfhk1bhr _16qs1s1a", fg('platform-dst-shape-theme-default') && "_2rko1mok"])
36
38
  }, children);
37
39
  });
38
40
 
@@ -3,7 +3,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
3
3
  import AsyncSelect from '@atlaskit/react-select/async';
4
4
  import createSelect from './createSelect';
5
5
  const packageName = "@atlaskit/select";
6
- const packageVersion = "21.4.2";
6
+ const packageVersion = "0.0.0-development";
7
7
  export const SelectWithoutAnalytics = createSelect(AsyncSelect);
8
8
  const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
9
9
  const Select = withAnalyticsContext({
@@ -4,8 +4,6 @@ import "./input-options.compiled.css";
4
4
  import * as React from 'react';
5
5
  import { ax, ix } from "@compiled/react/runtime";
6
6
  import { useCallback, useMemo, useState } from 'react';
7
- import CheckboxIcon from '@atlaskit/icon/glyph/checkbox';
8
- import RadioIcon from '@atlaskit/icon/glyph/radio';
9
7
  import PrimitiveSVGIcon from '@atlaskit/icon/svg';
10
8
  import { fg } from '@atlaskit/platform-feature-flags';
11
9
  const optionStyles = {
@@ -135,7 +133,7 @@ const NewCheckboxIcon = props => {
135
133
  color: primaryColor,
136
134
  fill: secondaryColor
137
135
  },
138
- "aria-label": label,
136
+ "aria-label": label ? label : undefined,
139
137
  role: label ? 'img' : 'presentation',
140
138
  className: ax(["_1reo15vq _18m915vq _1bsb1tcg _4t3i1tcg _lswuvuon _lcxvglyw"])
141
139
  }, newCheckboxIconPath);
@@ -173,7 +171,7 @@ const NewRadioIcon = props => {
173
171
  color: primaryColor,
174
172
  fill: secondaryColor
175
173
  },
176
- "aria-label": label,
174
+ "aria-label": label ? label : undefined,
177
175
  role: label ? 'img' : 'presentation',
178
176
  className: ax(["_1reo15vq _18m915vq _1bsb1tcg _4t3i1tcg _lswuvuon _lcxvglyw"])
179
177
  }, newRadioIconPath);
@@ -189,9 +187,7 @@ const NewRadioIcon = props => {
189
187
  * __Checkbox option__
190
188
  */
191
189
  export const CheckboxOption = props => /*#__PURE__*/React.createElement(ControlOption, _extends({
192
- Icon: fg('platform-visual-refresh-icons') ? NewCheckboxIcon :
193
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
194
- CheckboxIcon
190
+ Icon: NewCheckboxIcon
195
191
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
196
192
  }, props));
197
193
 
@@ -202,8 +198,6 @@ export const RadioOption = props =>
202
198
  /*#__PURE__*/
203
199
  // TODO https://product-fabric.atlassian.net/browse/DSP-20769
204
200
  React.createElement(ControlOption, _extends({
205
- Icon: fg('platform-visual-refresh-icons') ? NewRadioIcon :
206
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
207
- RadioIcon
201
+ Icon: NewRadioIcon
208
202
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
209
203
  }, props));
@@ -1,5 +1,6 @@
1
1
 
2
- ._2rko12b0{border-radius:var(--ds-radius-small,4px)}._12l2v77o{margin-inline-end:var(--ds-space-025,2px)}
2
+ ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
3
+ ._2rko1mok{border-radius:var(--ds-radius-large,8px)}._12l2v77o{margin-inline-end:var(--ds-space-025,2px)}
3
4
  ._16qsu838{box-shadow:var(--_z6sjud)}
4
5
  ._1bsbzwfg{width:2pc}
5
6
  ._1pby16oo{z-index:510}
@@ -10,6 +10,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
10
10
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
11
11
  import { forwardRef } from 'react';
12
12
  import SearchIcon from '@atlaskit/icon/core/migration/search--editor-search';
13
+ import { fg } from '@atlaskit/platform-feature-flags';
13
14
  import { components } from '@atlaskit/react-select';
14
15
  import { N40A } from '@atlaskit/theme/colors';
15
16
  import { layers } from '@atlaskit/theme/constants';
@@ -20,6 +21,7 @@ import VisuallyHidden from '@atlaskit/visually-hidden';
20
21
  // ==============================
21
22
 
22
23
  var menuDialogStyles = null;
24
+ var menuDialogStylesT26Shape = null;
23
25
 
24
26
  /**
25
27
  * __Menu dialog__
@@ -34,7 +36,7 @@ export var MenuDialog = /*#__PURE__*/forwardRef(function (_ref, ref) {
34
36
  ref: ref,
35
37
  id: id,
36
38
  "data-testid": testId && "".concat(testId, "--menu"),
37
- className: ax(["_2rko12b0 _1pby16oo _bfhk1bhr _16qsu838"]),
39
+ className: ax(["_2rko12b0 _1pby16oo _bfhk1bhr _16qsu838", fg('platform-dst-shape-theme-default') && "_2rko1mok"]),
38
40
  style: _objectSpread(_objectSpread({}, style), {}, {
39
41
  "--_z6sjud": ix("var(--ds-shadow-overlay, ".concat("0 0 0 1px ".concat(N40A, ", 0 4px 11px ").concat(N40A), ")"))
40
42
  })
@@ -3,7 +3,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
3
3
  import AsyncSelect from '@atlaskit/react-select/async';
4
4
  import createSelect from './createSelect';
5
5
  var packageName = "@atlaskit/select";
6
- var packageVersion = "21.4.2";
6
+ var packageVersion = "0.0.0-development";
7
7
  export var SelectWithoutAnalytics = createSelect(AsyncSelect);
8
8
  var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
9
9
  var Select = withAnalyticsContext({
@@ -5,8 +5,6 @@ import "./input-options.compiled.css";
5
5
  import * as React from 'react';
6
6
  import { ax, ix } from "@compiled/react/runtime";
7
7
  import { useCallback, useMemo, useState } from 'react';
8
- import CheckboxIcon from '@atlaskit/icon/glyph/checkbox';
9
- import RadioIcon from '@atlaskit/icon/glyph/radio';
10
8
  import PrimitiveSVGIcon from '@atlaskit/icon/svg';
11
9
  import { fg } from '@atlaskit/platform-feature-flags';
12
10
  var optionStyles = {
@@ -139,7 +137,7 @@ var NewCheckboxIcon = function NewCheckboxIcon(props) {
139
137
  color: primaryColor,
140
138
  fill: secondaryColor
141
139
  },
142
- "aria-label": label,
140
+ "aria-label": label ? label : undefined,
143
141
  role: label ? 'img' : 'presentation',
144
142
  className: ax(["_1reo15vq _18m915vq _1bsb1tcg _4t3i1tcg _lswuvuon _lcxvglyw"])
145
143
  }, newCheckboxIconPath);
@@ -175,7 +173,7 @@ var NewRadioIcon = function NewRadioIcon(props) {
175
173
  color: primaryColor,
176
174
  fill: secondaryColor
177
175
  },
178
- "aria-label": label,
176
+ "aria-label": label ? label : undefined,
179
177
  role: label ? 'img' : 'presentation',
180
178
  className: ax(["_1reo15vq _18m915vq _1bsb1tcg _4t3i1tcg _lswuvuon _lcxvglyw"])
181
179
  }, newRadioIconPath);
@@ -192,9 +190,7 @@ var NewRadioIcon = function NewRadioIcon(props) {
192
190
  */
193
191
  export var CheckboxOption = function CheckboxOption(props) {
194
192
  return /*#__PURE__*/React.createElement(ControlOption, _extends({
195
- Icon: fg('platform-visual-refresh-icons') ? NewCheckboxIcon :
196
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
197
- CheckboxIcon
193
+ Icon: NewCheckboxIcon
198
194
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
199
195
  }, props));
200
196
  };
@@ -207,9 +203,7 @@ export var RadioOption = function RadioOption(props) {
207
203
  /*#__PURE__*/
208
204
  // TODO https://product-fabric.atlassian.net/browse/DSP-20769
209
205
  React.createElement(ControlOption, _extends({
210
- Icon: fg('platform-visual-refresh-icons') ? NewRadioIcon :
211
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
212
- RadioIcon
206
+ Icon: NewRadioIcon
213
207
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
214
208
  }, props))
215
209
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/select",
3
- "version": "21.4.3",
3
+ "version": "21.6.0",
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/"
@@ -34,12 +34,12 @@
34
34
  "dependencies": {
35
35
  "@atlaskit/analytics-next": "^11.1.0",
36
36
  "@atlaskit/ds-lib": "^5.3.0",
37
- "@atlaskit/icon": "^29.0.0",
37
+ "@atlaskit/icon": "^29.2.0",
38
38
  "@atlaskit/platform-feature-flags": "^1.1.0",
39
39
  "@atlaskit/primitives": "^16.4.0",
40
- "@atlaskit/react-select": "^3.9.0",
40
+ "@atlaskit/react-select": "^3.11.0",
41
41
  "@atlaskit/theme": "^21.0.0",
42
- "@atlaskit/tokens": "^8.4.0",
42
+ "@atlaskit/tokens": "^8.6.0",
43
43
  "@atlaskit/visually-hidden": "^3.0.0",
44
44
  "@babel/runtime": "^7.0.0",
45
45
  "@compiled/react": "^0.18.6",
@@ -57,16 +57,16 @@
57
57
  "@af/accessibility-testing": "workspace:^",
58
58
  "@af/integration-testing": "workspace:^",
59
59
  "@af/visual-regression": "workspace:^",
60
- "@atlaskit/button": "^23.6.0",
61
- "@atlaskit/checkbox": "^17.1.0",
60
+ "@atlaskit/button": "^23.8.0",
61
+ "@atlaskit/checkbox": "^17.2.0",
62
62
  "@atlaskit/docs": "^11.2.0",
63
63
  "@atlaskit/drawer": "^11.0.0",
64
- "@atlaskit/form": "^14.3.0",
64
+ "@atlaskit/form": "^15.0.0",
65
65
  "@atlaskit/link": "^3.2.0",
66
66
  "@atlaskit/logo": "^19.9.0",
67
- "@atlaskit/modal-dialog": "^14.7.0",
67
+ "@atlaskit/modal-dialog": "^14.9.0",
68
68
  "@atlaskit/radio": "^8.3.0",
69
- "@atlaskit/section-message": "^8.9.0",
69
+ "@atlaskit/section-message": "^8.11.0",
70
70
  "@atlassian/ssr-tests": "workspace:^",
71
71
  "@testing-library/react": "^13.4.0",
72
72
  "@testing-library/user-event": "^14.4.3",
@@ -102,6 +102,9 @@
102
102
  },
103
103
  "platform_dst_nav4_layering_in_main_slot_fixes": {
104
104
  "type": "boolean"
105
+ },
106
+ "platform-dst-shape-theme-default": {
107
+ "type": "boolean"
105
108
  }
106
109
  },
107
110
  "homepage": "https://atlassian.design/components/select/"