@atlaskit/react-select 2.0.4 → 2.0.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
|
@@ -174,12 +174,15 @@ var renderIcon = function renderIcon() {
|
|
|
174
174
|
function MultiValueRemove(_ref5) {
|
|
175
175
|
var isDisabled = _ref5.isDisabled,
|
|
176
176
|
innerProps = _ref5.innerProps;
|
|
177
|
-
return (
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
177
|
+
return (
|
|
178
|
+
// The Remove button is intentionally excluded from the tab order, please avoid assigning a non-negative tabIndex to it. Context: https://hello.atlassian.net/wiki/spaces/A11YKB/pages/3031993460/Clear+Options+on+an+Input+Field
|
|
179
|
+
(0, _react.jsx)("div", (0, _extends2.default)({
|
|
180
|
+
role: "button"
|
|
181
|
+
}, innerProps), (0, _react.jsx)("div", {
|
|
182
|
+
css: isDisabled ? disabledStyles : enabledStyles,
|
|
183
|
+
"data-testid": isDisabled ? 'hide-clear-icon' : 'show-clear-icon'
|
|
184
|
+
}, renderIcon()))
|
|
185
|
+
);
|
|
183
186
|
}
|
|
184
187
|
var MultiValue = function MultiValue(props) {
|
|
185
188
|
var children = props.children,
|
|
@@ -166,12 +166,15 @@ export function MultiValueRemove({
|
|
|
166
166
|
isDisabled,
|
|
167
167
|
innerProps
|
|
168
168
|
}) {
|
|
169
|
-
return
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
"
|
|
174
|
-
|
|
169
|
+
return (
|
|
170
|
+
// The Remove button is intentionally excluded from the tab order, please avoid assigning a non-negative tabIndex to it. Context: https://hello.atlassian.net/wiki/spaces/A11YKB/pages/3031993460/Clear+Options+on+an+Input+Field
|
|
171
|
+
jsx("div", _extends({
|
|
172
|
+
role: "button"
|
|
173
|
+
}, innerProps), jsx("div", {
|
|
174
|
+
css: isDisabled ? disabledStyles : enabledStyles,
|
|
175
|
+
"data-testid": isDisabled ? 'hide-clear-icon' : 'show-clear-icon'
|
|
176
|
+
}, renderIcon()))
|
|
177
|
+
);
|
|
175
178
|
}
|
|
176
179
|
const MultiValue = props => {
|
|
177
180
|
const {
|
|
@@ -167,12 +167,15 @@ var renderIcon = function renderIcon() {
|
|
|
167
167
|
export function MultiValueRemove(_ref5) {
|
|
168
168
|
var isDisabled = _ref5.isDisabled,
|
|
169
169
|
innerProps = _ref5.innerProps;
|
|
170
|
-
return
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
"
|
|
175
|
-
|
|
170
|
+
return (
|
|
171
|
+
// The Remove button is intentionally excluded from the tab order, please avoid assigning a non-negative tabIndex to it. Context: https://hello.atlassian.net/wiki/spaces/A11YKB/pages/3031993460/Clear+Options+on+an+Input+Field
|
|
172
|
+
jsx("div", _extends({
|
|
173
|
+
role: "button"
|
|
174
|
+
}, innerProps), jsx("div", {
|
|
175
|
+
css: isDisabled ? disabledStyles : enabledStyles,
|
|
176
|
+
"data-testid": isDisabled ? 'hide-clear-icon' : 'show-clear-icon'
|
|
177
|
+
}, renderIcon()))
|
|
178
|
+
);
|
|
176
179
|
}
|
|
177
180
|
var MultiValue = function MultiValue(props) {
|
|
178
181
|
var children = props.children,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/react-select",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
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",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@atlaskit/ds-lib": "^4.0.0",
|
|
33
|
-
"@atlaskit/icon": "^
|
|
33
|
+
"@atlaskit/icon": "^25.0.0",
|
|
34
34
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
35
35
|
"@atlaskit/primitives": "^14.1.0",
|
|
36
36
|
"@atlaskit/spinner": "^18.0.0",
|
|
37
|
-
"@atlaskit/tokens": "^4.
|
|
37
|
+
"@atlaskit/tokens": "^4.4.0",
|
|
38
38
|
"@babel/runtime": "^7.0.0",
|
|
39
39
|
"@emotion/react": "^11.7.1",
|
|
40
40
|
"@floating-ui/dom": "^1.0.1",
|