@atlaskit/react-select 3.8.9 → 3.9.1
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 +15 -0
- package/dist/cjs/compiled/components/containers.compiled.css +0 -1
- package/dist/cjs/compiled/components/containers.js +9 -5
- package/dist/cjs/components/containers.compiled.css +0 -1
- package/dist/cjs/components/containers.js +3 -5
- package/dist/cjs/select.js +3 -2
- package/dist/es2019/compiled/components/containers.compiled.css +0 -1
- package/dist/es2019/compiled/components/containers.js +9 -5
- package/dist/es2019/components/containers.compiled.css +0 -1
- package/dist/es2019/components/containers.js +3 -5
- package/dist/es2019/select.js +3 -1
- package/dist/esm/compiled/components/containers.compiled.css +0 -1
- package/dist/esm/compiled/components/containers.js +9 -5
- package/dist/esm/components/containers.compiled.css +0 -1
- package/dist/esm/components/containers.js +3 -5
- package/dist/esm/select.js +3 -2
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/react-select
|
|
2
2
|
|
|
3
|
+
## 3.9.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`062b55b337dd8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/062b55b337dd8) -
|
|
8
|
+
aria-autocomplete is omitted when isSearchable is false.
|
|
9
|
+
|
|
10
|
+
## 3.9.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- [`2568622464f45`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2568622464f45) -
|
|
15
|
+
release previously feature-gated change to textfield, textarea, and select to increase font size
|
|
16
|
+
to 16px on mobile
|
|
17
|
+
|
|
3
18
|
## 3.8.9
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
._11c81ixg{font:var(--ds-font-body-large,normal 400 1pc/24px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
-
._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
3
2
|
._16jlkb7n{flex-grow:1}
|
|
4
3
|
._18m915vq{overflow-y:hidden}
|
|
5
4
|
._19bv12x7{padding-left:var(--ds-space-075,6px)}
|
|
@@ -12,7 +12,6 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
13
13
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
14
14
|
var _react2 = require("@compiled/react");
|
|
15
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
15
|
var _utils = require("../../utils");
|
|
17
16
|
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); }
|
|
18
17
|
// ==============================
|
|
@@ -22,11 +21,16 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
22
21
|
var containerCSS = exports.containerCSS = function containerCSS() {
|
|
23
22
|
return {};
|
|
24
23
|
};
|
|
24
|
+
|
|
25
|
+
// iOS Safari automatically zooms into form inputs on focus when the font size is less than 16px.
|
|
26
|
+
// To prevent this zoom behaviour on mobile devices, the select container uses font.body.large (16px) by default,
|
|
27
|
+
// then switches to the smaller font.body on screens wider than 30rem (desktop).
|
|
28
|
+
// @see: https://medium.com/@rares.popescu/2-ways-to-avoid-the-automatic-zoom-in-on-input-fields-8a71479e542e
|
|
29
|
+
|
|
25
30
|
var containerStyles = {
|
|
26
|
-
default: "
|
|
31
|
+
default: "_11c81ixg _kqswh2mm _lcxv1rj4 _1tn22smr",
|
|
27
32
|
rtl: "_1eim1xrj",
|
|
28
|
-
disabled: "_80om13gf"
|
|
29
|
-
ff_safari_input_fix: "_11c81ixg _1tn22smr"
|
|
33
|
+
disabled: "_80om13gf"
|
|
30
34
|
};
|
|
31
35
|
|
|
32
36
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -44,7 +48,7 @@ var SelectContainer = exports.SelectContainer = function SelectContainer(props)
|
|
|
44
48
|
css = _getStyleProps.css;
|
|
45
49
|
return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({
|
|
46
50
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/local-cx-xcss, @compiled/local-cx-xcss
|
|
47
|
-
className: (0, _runtime.ax)([containerStyles.default, isRtl && containerStyles.rtl, isDisabled && containerStyles.disabled, (0,
|
|
51
|
+
className: (0, _runtime.ax)([containerStyles.default, isRtl && containerStyles.rtl, isDisabled && containerStyles.disabled, (0, _react2.cx)(className, xcss, '-container')])
|
|
48
52
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
49
53
|
,
|
|
50
54
|
style: css
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
._11c81ixg{font:var(--ds-font-body-large,normal 400 1pc/24px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
-
._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
3
2
|
._16jlkb7n{flex-grow:1}
|
|
4
3
|
._18m915vq{overflow-y:hidden}
|
|
5
4
|
._19bv12x7{padding-left:var(--ds-space-075,6px)}
|
|
@@ -12,7 +12,6 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
13
13
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
14
14
|
var _react2 = require("@compiled/react");
|
|
15
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
15
|
var _utils = require("../utils");
|
|
17
16
|
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); }
|
|
18
17
|
// ==============================
|
|
@@ -23,10 +22,9 @@ var containerCSS = exports.containerCSS = function containerCSS() {
|
|
|
23
22
|
return {};
|
|
24
23
|
};
|
|
25
24
|
var containerStyles = {
|
|
26
|
-
default: "
|
|
25
|
+
default: "_11c81ixg _kqswh2mm _lcxv1rj4 _1tn22smr",
|
|
27
26
|
rtl: "_1eim1xrj",
|
|
28
|
-
disabled: "_80om13gf"
|
|
29
|
-
ff_safari_input_fix: "_11c81ixg _1tn22smr"
|
|
27
|
+
disabled: "_80om13gf"
|
|
30
28
|
};
|
|
31
29
|
|
|
32
30
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -44,7 +42,7 @@ var SelectContainer = exports.SelectContainer = function SelectContainer(props)
|
|
|
44
42
|
css = _getStyleProps.css;
|
|
45
43
|
return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({
|
|
46
44
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/local-cx-xcss, @compiled/local-cx-xcss
|
|
47
|
-
className: (0, _runtime.ax)([containerStyles.default, isRtl && containerStyles.rtl, isDisabled && containerStyles.disabled, (0,
|
|
45
|
+
className: (0, _runtime.ax)([containerStyles.default, isRtl && containerStyles.rtl, isDisabled && containerStyles.disabled, (0, _react2.cx)(className, xcss, '-container')])
|
|
48
46
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
49
47
|
,
|
|
50
48
|
style: css
|
package/dist/cjs/select.js
CHANGED
|
@@ -1342,8 +1342,9 @@ var Select = exports.default = /*#__PURE__*/function (_Component) {
|
|
|
1342
1342
|
var id = inputId || this.getElementId('input');
|
|
1343
1343
|
|
|
1344
1344
|
// aria attributes makes the JSX "noisy", separated for clarity
|
|
1345
|
-
var ariaAttributes = _objectSpread(_objectSpread(_objectSpread({
|
|
1346
|
-
'aria-autocomplete': 'both'
|
|
1345
|
+
var ariaAttributes = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, !this.props.isSearchable && (0, _platformFeatureFlags.fg)('platform_fix_autocomplete_aria_for_select') ? {} : {
|
|
1346
|
+
'aria-autocomplete': 'both'
|
|
1347
|
+
}), {}, {
|
|
1347
1348
|
'aria-errormessage': this.props['aria-errormessage'],
|
|
1348
1349
|
'aria-expanded': menuIsOpen,
|
|
1349
1350
|
// TODO: aria-haspopup is implied as listbox with role="combobox" and was deprecated for aria 1.2, we still might need to keep it for back compat
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
._11c81ixg{font:var(--ds-font-body-large,normal 400 1pc/24px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
-
._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
3
2
|
._16jlkb7n{flex-grow:1}
|
|
4
3
|
._18m915vq{overflow-y:hidden}
|
|
5
4
|
._19bv12x7{padding-left:var(--ds-space-075,6px)}
|
|
@@ -4,7 +4,6 @@ import "./containers.compiled.css";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { cx } from '@compiled/react';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
7
|
import { getStyleProps } from '../../utils';
|
|
9
8
|
|
|
10
9
|
// ==============================
|
|
@@ -12,11 +11,16 @@ import { getStyleProps } from '../../utils';
|
|
|
12
11
|
// ==============================
|
|
13
12
|
|
|
14
13
|
export const containerCSS = () => ({});
|
|
14
|
+
|
|
15
|
+
// iOS Safari automatically zooms into form inputs on focus when the font size is less than 16px.
|
|
16
|
+
// To prevent this zoom behaviour on mobile devices, the select container uses font.body.large (16px) by default,
|
|
17
|
+
// then switches to the smaller font.body on screens wider than 30rem (desktop).
|
|
18
|
+
// @see: https://medium.com/@rares.popescu/2-ways-to-avoid-the-automatic-zoom-in-on-input-fields-8a71479e542e
|
|
19
|
+
|
|
15
20
|
const containerStyles = {
|
|
16
|
-
default: "
|
|
21
|
+
default: "_11c81ixg _kqswh2mm _lcxv1rj4 _1tn22smr",
|
|
17
22
|
rtl: "_1eim1xrj",
|
|
18
|
-
disabled: "_80om13gf"
|
|
19
|
-
ff_safari_input_fix: "_11c81ixg _1tn22smr"
|
|
23
|
+
disabled: "_80om13gf"
|
|
20
24
|
};
|
|
21
25
|
|
|
22
26
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -37,7 +41,7 @@ export const SelectContainer = props => {
|
|
|
37
41
|
});
|
|
38
42
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
39
43
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/local-cx-xcss, @compiled/local-cx-xcss
|
|
40
|
-
className: ax([containerStyles.default, isRtl && containerStyles.rtl, isDisabled && containerStyles.disabled,
|
|
44
|
+
className: ax([containerStyles.default, isRtl && containerStyles.rtl, isDisabled && containerStyles.disabled, cx(className, xcss, '-container')])
|
|
41
45
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
42
46
|
,
|
|
43
47
|
style: css
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
._11c81ixg{font:var(--ds-font-body-large,normal 400 1pc/24px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
-
._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
3
2
|
._16jlkb7n{flex-grow:1}
|
|
4
3
|
._18m915vq{overflow-y:hidden}
|
|
5
4
|
._19bv12x7{padding-left:var(--ds-space-075,6px)}
|
|
@@ -4,7 +4,6 @@ import "./containers.compiled.css";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { cx } from '@compiled/react';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
7
|
import { getStyleProps } from '../utils';
|
|
9
8
|
|
|
10
9
|
// ==============================
|
|
@@ -13,10 +12,9 @@ import { getStyleProps } from '../utils';
|
|
|
13
12
|
|
|
14
13
|
export const containerCSS = () => ({});
|
|
15
14
|
const containerStyles = {
|
|
16
|
-
default: "
|
|
15
|
+
default: "_11c81ixg _kqswh2mm _lcxv1rj4 _1tn22smr",
|
|
17
16
|
rtl: "_1eim1xrj",
|
|
18
|
-
disabled: "_80om13gf"
|
|
19
|
-
ff_safari_input_fix: "_11c81ixg _1tn22smr"
|
|
17
|
+
disabled: "_80om13gf"
|
|
20
18
|
};
|
|
21
19
|
|
|
22
20
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -37,7 +35,7 @@ export const SelectContainer = props => {
|
|
|
37
35
|
});
|
|
38
36
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
39
37
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/local-cx-xcss, @compiled/local-cx-xcss
|
|
40
|
-
className: ax([containerStyles.default, isRtl && containerStyles.rtl, isDisabled && containerStyles.disabled,
|
|
38
|
+
className: ax([containerStyles.default, isRtl && containerStyles.rtl, isDisabled && containerStyles.disabled, cx(className, xcss, '-container')])
|
|
41
39
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
42
40
|
,
|
|
43
41
|
style: css
|
package/dist/es2019/select.js
CHANGED
|
@@ -1345,7 +1345,9 @@ export default class Select extends Component {
|
|
|
1345
1345
|
|
|
1346
1346
|
// aria attributes makes the JSX "noisy", separated for clarity
|
|
1347
1347
|
const ariaAttributes = {
|
|
1348
|
-
'
|
|
1348
|
+
...(!this.props.isSearchable && fg('platform_fix_autocomplete_aria_for_select') ? {} : {
|
|
1349
|
+
'aria-autocomplete': 'both'
|
|
1350
|
+
}),
|
|
1349
1351
|
'aria-errormessage': this.props['aria-errormessage'],
|
|
1350
1352
|
'aria-expanded': menuIsOpen,
|
|
1351
1353
|
// TODO: aria-haspopup is implied as listbox with role="combobox" and was deprecated for aria 1.2, we still might need to keep it for back compat
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
._11c81ixg{font:var(--ds-font-body-large,normal 400 1pc/24px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
-
._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
3
2
|
._16jlkb7n{flex-grow:1}
|
|
4
3
|
._18m915vq{overflow-y:hidden}
|
|
5
4
|
._19bv12x7{padding-left:var(--ds-space-075,6px)}
|
|
@@ -4,7 +4,6 @@ import "./containers.compiled.css";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { cx } from '@compiled/react';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
7
|
import { getStyleProps } from '../../utils';
|
|
9
8
|
|
|
10
9
|
// ==============================
|
|
@@ -14,11 +13,16 @@ import { getStyleProps } from '../../utils';
|
|
|
14
13
|
export var containerCSS = function containerCSS() {
|
|
15
14
|
return {};
|
|
16
15
|
};
|
|
16
|
+
|
|
17
|
+
// iOS Safari automatically zooms into form inputs on focus when the font size is less than 16px.
|
|
18
|
+
// To prevent this zoom behaviour on mobile devices, the select container uses font.body.large (16px) by default,
|
|
19
|
+
// then switches to the smaller font.body on screens wider than 30rem (desktop).
|
|
20
|
+
// @see: https://medium.com/@rares.popescu/2-ways-to-avoid-the-automatic-zoom-in-on-input-fields-8a71479e542e
|
|
21
|
+
|
|
17
22
|
var containerStyles = {
|
|
18
|
-
default: "
|
|
23
|
+
default: "_11c81ixg _kqswh2mm _lcxv1rj4 _1tn22smr",
|
|
19
24
|
rtl: "_1eim1xrj",
|
|
20
|
-
disabled: "_80om13gf"
|
|
21
|
-
ff_safari_input_fix: "_11c81ixg _1tn22smr"
|
|
25
|
+
disabled: "_80om13gf"
|
|
22
26
|
};
|
|
23
27
|
|
|
24
28
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -36,7 +40,7 @@ export var SelectContainer = function SelectContainer(props) {
|
|
|
36
40
|
css = _getStyleProps.css;
|
|
37
41
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
38
42
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/local-cx-xcss, @compiled/local-cx-xcss
|
|
39
|
-
className: ax([containerStyles.default, isRtl && containerStyles.rtl, isDisabled && containerStyles.disabled,
|
|
43
|
+
className: ax([containerStyles.default, isRtl && containerStyles.rtl, isDisabled && containerStyles.disabled, cx(className, xcss, '-container')])
|
|
40
44
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
41
45
|
,
|
|
42
46
|
style: css
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
._11c81ixg{font:var(--ds-font-body-large,normal 400 1pc/24px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
-
._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
3
2
|
._16jlkb7n{flex-grow:1}
|
|
4
3
|
._18m915vq{overflow-y:hidden}
|
|
5
4
|
._19bv12x7{padding-left:var(--ds-space-075,6px)}
|
|
@@ -4,7 +4,6 @@ import "./containers.compiled.css";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { cx } from '@compiled/react';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
7
|
import { getStyleProps } from '../utils';
|
|
9
8
|
|
|
10
9
|
// ==============================
|
|
@@ -15,10 +14,9 @@ export var containerCSS = function containerCSS() {
|
|
|
15
14
|
return {};
|
|
16
15
|
};
|
|
17
16
|
var containerStyles = {
|
|
18
|
-
default: "
|
|
17
|
+
default: "_11c81ixg _kqswh2mm _lcxv1rj4 _1tn22smr",
|
|
19
18
|
rtl: "_1eim1xrj",
|
|
20
|
-
disabled: "_80om13gf"
|
|
21
|
-
ff_safari_input_fix: "_11c81ixg _1tn22smr"
|
|
19
|
+
disabled: "_80om13gf"
|
|
22
20
|
};
|
|
23
21
|
|
|
24
22
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -36,7 +34,7 @@ export var SelectContainer = function SelectContainer(props) {
|
|
|
36
34
|
css = _getStyleProps.css;
|
|
37
35
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
38
36
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/local-cx-xcss, @compiled/local-cx-xcss
|
|
39
|
-
className: ax([containerStyles.default, isRtl && containerStyles.rtl, isDisabled && containerStyles.disabled,
|
|
37
|
+
className: ax([containerStyles.default, isRtl && containerStyles.rtl, isDisabled && containerStyles.disabled, cx(className, xcss, '-container')])
|
|
40
38
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
41
39
|
,
|
|
42
40
|
style: css
|
package/dist/esm/select.js
CHANGED
|
@@ -1333,8 +1333,9 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
1333
1333
|
var id = inputId || this.getElementId('input');
|
|
1334
1334
|
|
|
1335
1335
|
// aria attributes makes the JSX "noisy", separated for clarity
|
|
1336
|
-
var ariaAttributes = _objectSpread(_objectSpread(_objectSpread({
|
|
1337
|
-
'aria-autocomplete': 'both'
|
|
1336
|
+
var ariaAttributes = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, !this.props.isSearchable && fg('platform_fix_autocomplete_aria_for_select') ? {} : {
|
|
1337
|
+
'aria-autocomplete': 'both'
|
|
1338
|
+
}), {}, {
|
|
1338
1339
|
'aria-errormessage': this.props['aria-errormessage'],
|
|
1339
1340
|
'aria-expanded': menuIsOpen,
|
|
1340
1341
|
// TODO: aria-haspopup is implied as listbox with role="combobox" and was deprecated for aria 1.2, we still might need to keep it for back compat
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/react-select",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.1",
|
|
4
4
|
"description": "A forked version of react-select to only be used in atlaskit/select",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@atlaskit/ds-lib": "^5.2.0",
|
|
24
24
|
"@atlaskit/icon": "^29.0.0",
|
|
25
|
-
"@atlaskit/layering": "^3.
|
|
25
|
+
"@atlaskit/layering": "^3.4.0",
|
|
26
26
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
27
|
-
"@atlaskit/primitives": "^16.
|
|
27
|
+
"@atlaskit/primitives": "^16.2.0",
|
|
28
28
|
"@atlaskit/spinner": "^19.0.0",
|
|
29
|
-
"@atlaskit/tokens": "^8.
|
|
29
|
+
"@atlaskit/tokens": "^8.1.0",
|
|
30
30
|
"@babel/runtime": "^7.0.0",
|
|
31
31
|
"@compiled/react": "^0.18.6",
|
|
32
32
|
"@floating-ui/dom": "^1.0.1",
|
|
@@ -49,14 +49,14 @@
|
|
|
49
49
|
"custom-interactive-elements-not-keyboard-focusable": {
|
|
50
50
|
"type": "boolean"
|
|
51
51
|
},
|
|
52
|
-
"platform_design_system_team_safari_input_fix": {
|
|
53
|
-
"type": "boolean"
|
|
54
|
-
},
|
|
55
52
|
"platform_dst_select_menu_close_on_blur": {
|
|
56
53
|
"type": "boolean"
|
|
57
54
|
},
|
|
58
55
|
"platform_do_not_clear_input_for_multiselect": {
|
|
59
56
|
"type": "boolean"
|
|
57
|
+
},
|
|
58
|
+
"platform_fix_autocomplete_aria_for_select": {
|
|
59
|
+
"type": "boolean"
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"techstack": {
|