@atlaskit/react-select 3.14.4 → 3.15.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 +15 -0
- package/dist/cjs/components/containers/multi-value-container.compiled.css +3 -3
- package/dist/cjs/components/containers/multi-value-container.js +2 -2
- package/dist/cjs/components/input.js +1 -1
- package/dist/cjs/components/menu.compiled.css +1 -1
- package/dist/cjs/components/menu.js +1 -1
- package/dist/cjs/components/multi-value-remove.compiled.css +4 -4
- package/dist/cjs/components/multi-value-remove.js +2 -2
- package/dist/cjs/components/multi-value.compiled.css +2 -2
- package/dist/cjs/components/multi-value.js +1 -1
- package/dist/cjs/select.js +6 -16
- package/dist/es2019/components/containers/multi-value-container.compiled.css +3 -3
- package/dist/es2019/components/containers/multi-value-container.js +2 -2
- package/dist/es2019/components/input.js +1 -1
- package/dist/es2019/components/menu.compiled.css +1 -1
- package/dist/es2019/components/menu.js +1 -1
- package/dist/es2019/components/multi-value-remove.compiled.css +4 -4
- package/dist/es2019/components/multi-value-remove.js +2 -2
- package/dist/es2019/components/multi-value.compiled.css +2 -2
- package/dist/es2019/components/multi-value.js +1 -1
- package/dist/es2019/select.js +6 -16
- package/dist/esm/components/containers/multi-value-container.compiled.css +3 -3
- package/dist/esm/components/containers/multi-value-container.js +2 -2
- package/dist/esm/components/input.js +1 -1
- package/dist/esm/components/menu.compiled.css +1 -1
- package/dist/esm/components/menu.js +1 -1
- package/dist/esm/components/multi-value-remove.compiled.css +4 -4
- package/dist/esm/components/multi-value-remove.js +2 -2
- package/dist/esm/components/multi-value.compiled.css +2 -2
- package/dist/esm/components/multi-value.js +1 -1
- package/dist/esm/select.js +6 -16
- package/dist/types/internal/portal-placement-context.d.ts +2 -1
- package/dist/types/select.d.ts +0 -4
- package/dist/types-ts4.5/internal/portal-placement-context.d.ts +2 -1
- package/dist/types-ts4.5/select.d.ts +0 -4
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/react-select
|
|
2
2
|
|
|
3
|
+
## 3.15.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`31cb79d51457a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/31cb79d51457a) -
|
|
8
|
+
Remove prop shouldKeepInputOnSelect to clean up stale flag
|
|
9
|
+
|
|
10
|
+
## 3.14.5
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [`e2085d35701ca`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e2085d35701ca) -
|
|
15
|
+
Internal changes to remove unnecessary token fallbacks and imports from `@atlaskit/theme`
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 3.14.4
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
._189ee4h9{border-width:var(--ds-border-width,1px)}
|
|
4
4
|
._1dqonqa1{border-style:solid}
|
|
5
5
|
._1h6d14je{border-color:#b7b9be}._12l2v77o{margin-inline-end:var(--ds-space-025,2px)}
|
|
6
|
-
.
|
|
6
|
+
._16qs1xv8{box-shadow:0 0 0 2px var(--ds-surface,#fff),0 0 0 4px var(--ds-border-focused,#4688ec)}
|
|
7
7
|
._1e0c1txw{display:flex}
|
|
8
8
|
._1pfhv77o{margin-block-start:var(--ds-space-025,2px)}
|
|
9
9
|
._1ul9ze3t{min-width:var(--ds-space-0,0)}
|
|
@@ -14,6 +14,6 @@
|
|
|
14
14
|
._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
|
|
15
15
|
._p12f1osq{max-width:100%}
|
|
16
16
|
._syaz1gmx{color:var(--ds-text-disabled,#080f214a)}
|
|
17
|
-
.
|
|
18
|
-
.
|
|
17
|
+
._syaz6x5g{color:var(--ds-text-selected,#1868db)}
|
|
18
|
+
._syazi7uo{color:var(--ds-text,#292a2e)}
|
|
19
19
|
@media screen and (-ms-high-contrast:active){._1aewe4h9{border-width:var(--ds-border-width,1px)}._6up51j28{border-color:transparent}._1xdnnqa1{border-style:solid}._3yq3glyw{border:none}}
|
|
@@ -14,9 +14,9 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
14
14
|
var _react2 = require("@compiled/react");
|
|
15
15
|
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); }
|
|
16
16
|
var multiValueStyles = {
|
|
17
|
-
root: "_2rko12b0 _1h6d14je _1dqonqa1 _189ee4h9 _1e0c1txw _1ul9ze3t _1pfhv77o _12l2v77o _6rthv77o _ahbqv77o _bfhk1j9a _p12f1osq
|
|
17
|
+
root: "_2rko12b0 _1h6d14je _1dqonqa1 _189ee4h9 _1e0c1txw _1ul9ze3t _1pfhv77o _12l2v77o _6rthv77o _ahbqv77o _bfhk1j9a _p12f1osq _syazi7uo _3yq3glyw",
|
|
18
18
|
disabled: "_syaz1gmx _bfhki8nm",
|
|
19
|
-
focused: "
|
|
19
|
+
focused: "_syaz6x5g _bfhk15s3 _16qs1xv8 _1aewe4h9 _6up51j28 _1xdnnqa1"
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -46,7 +46,7 @@ var Input = function Input(props) {
|
|
|
46
46
|
}),
|
|
47
47
|
css = _getStyleProps.css,
|
|
48
48
|
className = _getStyleProps.className;
|
|
49
|
-
if ((0, _platformFeatureFlags.fg)('
|
|
49
|
+
if ((0, _platformFeatureFlags.fg)('platform_fix_input_component_styling')) {
|
|
50
50
|
return /*#__PURE__*/React.createElement("div", {
|
|
51
51
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
52
52
|
style: css
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
3
3
|
._2rko1mok{border-radius:var(--ds-radius-large,8px)}._152t1osq{inset-block-start:100%}
|
|
4
|
-
.
|
|
4
|
+
._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
|
|
5
5
|
._1bsb1osq{width:100%}
|
|
6
6
|
._1pbykb7n{z-index:1}
|
|
7
7
|
._1pfhu2gc{margin-block-start:var(--ds-space-100,8px)}
|
|
@@ -16,7 +16,7 @@ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
|
16
16
|
var _getStyleProps2 = require("../get-style-props");
|
|
17
17
|
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
18
|
var menuStyles = {
|
|
19
|
-
root: "_2rko12b0 _kqswstnw _1bsb1osq _1pbykb7n _6rthu2gc _1pfhu2gc _bfhk1bhr
|
|
19
|
+
root: "_2rko12b0 _kqswstnw _1bsb1osq _1pbykb7n _6rthu2gc _1pfhu2gc _bfhk1bhr _16qs130s",
|
|
20
20
|
rootT26Shape: "_2rko1mok",
|
|
21
21
|
bottom: "_152t1osq",
|
|
22
22
|
top: "_u7co1osq"
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
._bfhkb1q9{background-color:var(--ds-UNSAFE-transparent,transparent)}
|
|
13
13
|
._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
|
|
14
14
|
._bozgv77o{padding-inline-start:var(--ds-space-025,2px)}
|
|
15
|
-
.
|
|
16
|
-
.
|
|
15
|
+
._lswu6x5g{fill:var(--ds-text-selected,#1868db)}
|
|
16
|
+
._lswui7uo{fill:var(--ds-text,#292a2e)}
|
|
17
17
|
._r06hglyw{-webkit-appearance:none;appearance:none}
|
|
18
18
|
._syazi7uo{color:var(--ds-text,#292a2e)}
|
|
19
19
|
._y4tiv77o{padding-inline-end:var(--ds-space-025,2px)}
|
|
20
20
|
._1ah312gs:focus-visible{outline-offset:-2px}
|
|
21
|
-
.
|
|
21
|
+
._13br1tmw:hover{fill:var(--ds-text-danger,#ae2e24)}
|
|
22
22
|
._irr31dpa:hover{background-color:var(--ds-background-neutral-subtle-hovered,#0515240f)}
|
|
23
23
|
._1di6fcek:active{background-color:var(--ds-background-neutral-subtle-pressed,#0b120e24)}
|
|
24
|
-
.
|
|
24
|
+
._i5f81tmw:active{fill:var(--ds-text-danger,#ae2e24)}
|
|
@@ -17,8 +17,8 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
17
17
|
var disabledStyles = null;
|
|
18
18
|
var enabledStyles = null;
|
|
19
19
|
var multiValueRemoveStyles = {
|
|
20
|
-
focused: "_bfhkb1q9
|
|
21
|
-
root: "_19itglyw _2rko12b0 _4cvr1h6o _1bah1h6o _1wpz1h6o _r06hglyw _bfhksm61 _syazi7uo _1e0c1txw
|
|
20
|
+
focused: "_bfhkb1q9 _lswu6x5g",
|
|
21
|
+
root: "_19itglyw _2rko12b0 _4cvr1h6o _1bah1h6o _1wpz1h6o _r06hglyw _bfhksm61 _syazi7uo _1e0c1txw _lswui7uo _1q51v77o _y4tiv77o _85i5v77o _bozgv77o _12l2v77o _1ah312gs _irr31dpa _13br1tmw _1di6fcek _i5f81tmw"
|
|
22
22
|
};
|
|
23
23
|
function MultiValueRemove(_ref) {
|
|
24
24
|
var isDisabled = _ref.isDisabled,
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
._12l21b66{margin-inline-end:var(--ds-space-050,4px)}
|
|
21
21
|
._13muu67f{--cm-border-color:#fff}
|
|
22
22
|
._16jlidpf{flex-grow:0}
|
|
23
|
-
.
|
|
23
|
+
._16qs1xv8{box-shadow:0 0 0 2px var(--ds-surface,#fff),0 0 0 4px var(--ds-border-focused,#4688ec)}
|
|
24
24
|
._18m915vq{overflow-y:hidden}
|
|
25
25
|
._1e0c116y{display:inline-flex}
|
|
26
26
|
._1e0c1txw{display:flex}
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
._p12f1osq{max-width:100%}
|
|
45
45
|
._p12ff6dh{max-width:11.25rem}
|
|
46
46
|
._syaz1gmx{color:var(--ds-text-disabled,#080f214a)}
|
|
47
|
-
.
|
|
47
|
+
._syaz6x5g{color:var(--ds-text-selected,#1868db)}
|
|
48
48
|
._syazi7uo{color:var(--ds-text,#292a2e)}
|
|
49
49
|
._vchhusvi{box-sizing:border-box}
|
|
50
50
|
[data-color-mode=dark] ._hg5mr3uz{--cm-border-color:#000}
|
|
@@ -52,7 +52,7 @@ var multiValueTagLikeStyles = {
|
|
|
52
52
|
root: "_1reo15vq _18m915vq _2rko12b0 _11c8wadc _1mouv77o _195gv77o _1dqonqa1 _189ee4h9 _1e0c116y _vchhusvi _kqswh2mm _4cvr1h6o _1ul9idpf _p12ff6dh _4t3i1k92 _bfhksm61 _syazi7uo _80om73ad _3yq3glyw",
|
|
53
53
|
labelWrapper: "_16jlidpf _1o9zkb7n _i0dl1wug _1reo15vq _18m915vq _11c8wadc _1e0c1txw _4cvr1h6o _1ul9ze3t _1tkeidpf _2a9v1kw7",
|
|
54
54
|
disabled: "_syaz1gmx _bfhki8nm",
|
|
55
|
-
focused: "
|
|
55
|
+
focused: "_syaz6x5g _bfhk1dpa _16qs1xv8 _1aewe4h9 _6up51j28 _1xdnnqa1"
|
|
56
56
|
};
|
|
57
57
|
var getMultiValueLabelText = function getMultiValueLabelText(children, data) {
|
|
58
58
|
if (typeof children === 'string') {
|
package/dist/cjs/select.js
CHANGED
|
@@ -166,8 +166,7 @@ var defaultProps = exports.defaultProps = {
|
|
|
166
166
|
styles: {},
|
|
167
167
|
tabIndex: 0,
|
|
168
168
|
tabSelectsValue: true,
|
|
169
|
-
UNSAFE_is_experimental_generic: false
|
|
170
|
-
shouldKeepInputOnSelect: false
|
|
169
|
+
UNSAFE_is_experimental_generic: false
|
|
171
170
|
};
|
|
172
171
|
function toCategorizedOption(props, option, selectValue, index) {
|
|
173
172
|
var isDisabled = _isOptionDisabled(props, option, selectValue);
|
|
@@ -379,20 +378,11 @@ var Select = exports.default = /*#__PURE__*/function (_Component) {
|
|
|
379
378
|
var _this$props2 = _this.props,
|
|
380
379
|
closeMenuOnSelect = _this$props2.closeMenuOnSelect,
|
|
381
380
|
isMulti = _this$props2.isMulti,
|
|
382
|
-
inputValue = _this$props2.inputValue
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
action: 'set-value',
|
|
388
|
-
prevInputValue: inputValue
|
|
389
|
-
});
|
|
390
|
-
} else {
|
|
391
|
-
_this.onInputChange('', {
|
|
392
|
-
action: 'set-value',
|
|
393
|
-
prevInputValue: inputValue
|
|
394
|
-
});
|
|
395
|
-
}
|
|
381
|
+
inputValue = _this$props2.inputValue;
|
|
382
|
+
_this.onInputChange('', {
|
|
383
|
+
action: 'set-value',
|
|
384
|
+
prevInputValue: inputValue
|
|
385
|
+
});
|
|
396
386
|
if (closeMenuOnSelect) {
|
|
397
387
|
_this.setState({
|
|
398
388
|
inputIsHiddenAfterUpdate: !isMulti
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
._189ee4h9{border-width:var(--ds-border-width,1px)}
|
|
4
4
|
._1dqonqa1{border-style:solid}
|
|
5
5
|
._1h6d14je{border-color:#b7b9be}._12l2v77o{margin-inline-end:var(--ds-space-025,2px)}
|
|
6
|
-
.
|
|
6
|
+
._16qs1xv8{box-shadow:0 0 0 2px var(--ds-surface,#fff),0 0 0 4px var(--ds-border-focused,#4688ec)}
|
|
7
7
|
._1e0c1txw{display:flex}
|
|
8
8
|
._1pfhv77o{margin-block-start:var(--ds-space-025,2px)}
|
|
9
9
|
._1ul9ze3t{min-width:var(--ds-space-0,0)}
|
|
@@ -14,6 +14,6 @@
|
|
|
14
14
|
._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
|
|
15
15
|
._p12f1osq{max-width:100%}
|
|
16
16
|
._syaz1gmx{color:var(--ds-text-disabled,#080f214a)}
|
|
17
|
-
.
|
|
18
|
-
.
|
|
17
|
+
._syaz6x5g{color:var(--ds-text-selected,#1868db)}
|
|
18
|
+
._syazi7uo{color:var(--ds-text,#292a2e)}
|
|
19
19
|
@media screen and (-ms-high-contrast:active){._1aewe4h9{border-width:var(--ds-border-width,1px)}._6up51j28{border-color:transparent}._1xdnnqa1{border-style:solid}._3yq3glyw{border:none}}
|
|
@@ -5,9 +5,9 @@ import * as React from 'react';
|
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { cx } from '@compiled/react';
|
|
7
7
|
const multiValueStyles = {
|
|
8
|
-
root: "_2rko12b0 _1h6d14je _1dqonqa1 _189ee4h9 _1e0c1txw _1ul9ze3t _1pfhv77o _12l2v77o _6rthv77o _ahbqv77o _bfhk1j9a _p12f1osq
|
|
8
|
+
root: "_2rko12b0 _1h6d14je _1dqonqa1 _189ee4h9 _1e0c1txw _1ul9ze3t _1pfhv77o _12l2v77o _6rthv77o _ahbqv77o _bfhk1j9a _p12f1osq _syazi7uo _3yq3glyw",
|
|
9
9
|
disabled: "_syaz1gmx _bfhki8nm",
|
|
10
|
-
focused: "
|
|
10
|
+
focused: "_syaz6x5g _bfhk15s3 _16qs1xv8 _1aewe4h9 _6up51j28 _1xdnnqa1"
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -39,7 +39,7 @@ const Input = props => {
|
|
|
39
39
|
} = getStyleProps(props, 'input', {
|
|
40
40
|
'input-container': true
|
|
41
41
|
});
|
|
42
|
-
if (fg('
|
|
42
|
+
if (fg('platform_fix_input_component_styling')) {
|
|
43
43
|
return /*#__PURE__*/React.createElement("div", {
|
|
44
44
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
45
45
|
style: css
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
3
3
|
._2rko1mok{border-radius:var(--ds-radius-large,8px)}._152t1osq{inset-block-start:100%}
|
|
4
|
-
.
|
|
4
|
+
._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
|
|
5
5
|
._1bsb1osq{width:100%}
|
|
6
6
|
._1pbykb7n{z-index:1}
|
|
7
7
|
._1pfhu2gc{margin-block-start:var(--ds-space-100,8px)}
|
|
@@ -7,7 +7,7 @@ import { cx } from '@compiled/react';
|
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
8
|
import { getStyleProps } from '../get-style-props';
|
|
9
9
|
const menuStyles = {
|
|
10
|
-
root: "_2rko12b0 _kqswstnw _1bsb1osq _1pbykb7n _6rthu2gc _1pfhu2gc _bfhk1bhr
|
|
10
|
+
root: "_2rko12b0 _kqswstnw _1bsb1osq _1pbykb7n _6rthu2gc _1pfhu2gc _bfhk1bhr _16qs130s",
|
|
11
11
|
rootT26Shape: "_2rko1mok",
|
|
12
12
|
bottom: "_152t1osq",
|
|
13
13
|
top: "_u7co1osq"
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
._bfhkb1q9{background-color:var(--ds-UNSAFE-transparent,transparent)}
|
|
13
13
|
._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
|
|
14
14
|
._bozgv77o{padding-inline-start:var(--ds-space-025,2px)}
|
|
15
|
-
.
|
|
16
|
-
.
|
|
15
|
+
._lswu6x5g{fill:var(--ds-text-selected,#1868db)}
|
|
16
|
+
._lswui7uo{fill:var(--ds-text,#292a2e)}
|
|
17
17
|
._r06hglyw{-webkit-appearance:none;appearance:none}
|
|
18
18
|
._syazi7uo{color:var(--ds-text,#292a2e)}
|
|
19
19
|
._y4tiv77o{padding-inline-end:var(--ds-space-025,2px)}
|
|
20
20
|
._1ah312gs:focus-visible{outline-offset:-2px}
|
|
21
|
-
.
|
|
21
|
+
._13br1tmw:hover{fill:var(--ds-text-danger,#ae2e24)}
|
|
22
22
|
._irr31dpa:hover{background-color:var(--ds-background-neutral-subtle-hovered,#0515240f)}
|
|
23
23
|
._1di6fcek:active{background-color:var(--ds-background-neutral-subtle-pressed,#0b120e24)}
|
|
24
|
-
.
|
|
24
|
+
._i5f81tmw:active{fill:var(--ds-text-danger,#ae2e24)}
|
|
@@ -8,8 +8,8 @@ import CrossIcon from '@atlaskit/icon/core/cross';
|
|
|
8
8
|
const disabledStyles = null;
|
|
9
9
|
const enabledStyles = null;
|
|
10
10
|
const multiValueRemoveStyles = {
|
|
11
|
-
focused: "_bfhkb1q9
|
|
12
|
-
root: "_19itglyw _2rko12b0 _4cvr1h6o _1bah1h6o _1wpz1h6o _r06hglyw _bfhksm61 _syazi7uo _1e0c1txw
|
|
11
|
+
focused: "_bfhkb1q9 _lswu6x5g",
|
|
12
|
+
root: "_19itglyw _2rko12b0 _4cvr1h6o _1bah1h6o _1wpz1h6o _r06hglyw _bfhksm61 _syazi7uo _1e0c1txw _lswui7uo _1q51v77o _y4tiv77o _85i5v77o _bozgv77o _12l2v77o _1ah312gs _irr31dpa _13br1tmw _1di6fcek _i5f81tmw"
|
|
13
13
|
};
|
|
14
14
|
export function MultiValueRemove({
|
|
15
15
|
isDisabled,
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
._12l21b66{margin-inline-end:var(--ds-space-050,4px)}
|
|
21
21
|
._13muu67f{--cm-border-color:#fff}
|
|
22
22
|
._16jlidpf{flex-grow:0}
|
|
23
|
-
.
|
|
23
|
+
._16qs1xv8{box-shadow:0 0 0 2px var(--ds-surface,#fff),0 0 0 4px var(--ds-border-focused,#4688ec)}
|
|
24
24
|
._18m915vq{overflow-y:hidden}
|
|
25
25
|
._1e0c116y{display:inline-flex}
|
|
26
26
|
._1e0c1txw{display:flex}
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
._p12f1osq{max-width:100%}
|
|
45
45
|
._p12ff6dh{max-width:11.25rem}
|
|
46
46
|
._syaz1gmx{color:var(--ds-text-disabled,#080f214a)}
|
|
47
|
-
.
|
|
47
|
+
._syaz6x5g{color:var(--ds-text-selected,#1868db)}
|
|
48
48
|
._syazi7uo{color:var(--ds-text,#292a2e)}
|
|
49
49
|
._vchhusvi{box-sizing:border-box}
|
|
50
50
|
[data-color-mode=dark] ._hg5mr3uz{--cm-border-color:#000}
|
|
@@ -40,7 +40,7 @@ const multiValueTagLikeStyles = {
|
|
|
40
40
|
root: "_1reo15vq _18m915vq _2rko12b0 _11c8wadc _1mouv77o _195gv77o _1dqonqa1 _189ee4h9 _1e0c116y _vchhusvi _kqswh2mm _4cvr1h6o _1ul9idpf _p12ff6dh _4t3i1k92 _bfhksm61 _syazi7uo _80om73ad _3yq3glyw",
|
|
41
41
|
labelWrapper: "_16jlidpf _1o9zkb7n _i0dl1wug _1reo15vq _18m915vq _11c8wadc _1e0c1txw _4cvr1h6o _1ul9ze3t _1tkeidpf _2a9v1kw7",
|
|
42
42
|
disabled: "_syaz1gmx _bfhki8nm",
|
|
43
|
-
focused: "
|
|
43
|
+
focused: "_syaz6x5g _bfhk1dpa _16qs1xv8 _1aewe4h9 _6up51j28 _1xdnnqa1"
|
|
44
44
|
};
|
|
45
45
|
const getMultiValueLabelText = (children, data) => {
|
|
46
46
|
if (typeof children === 'string') {
|
package/dist/es2019/select.js
CHANGED
|
@@ -138,8 +138,7 @@ export const defaultProps = {
|
|
|
138
138
|
styles: {},
|
|
139
139
|
tabIndex: 0,
|
|
140
140
|
tabSelectsValue: true,
|
|
141
|
-
UNSAFE_is_experimental_generic: false
|
|
142
|
-
shouldKeepInputOnSelect: false
|
|
141
|
+
UNSAFE_is_experimental_generic: false
|
|
143
142
|
};
|
|
144
143
|
function toCategorizedOption(props, option, selectValue, index) {
|
|
145
144
|
const isDisabled = isOptionDisabled(props, option, selectValue);
|
|
@@ -347,21 +346,12 @@ export default class Select extends Component {
|
|
|
347
346
|
const {
|
|
348
347
|
closeMenuOnSelect,
|
|
349
348
|
isMulti,
|
|
350
|
-
inputValue
|
|
351
|
-
shouldKeepInputOnSelect
|
|
349
|
+
inputValue
|
|
352
350
|
} = this.props;
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
prevInputValue: inputValue
|
|
358
|
-
});
|
|
359
|
-
} else {
|
|
360
|
-
this.onInputChange('', {
|
|
361
|
-
action: 'set-value',
|
|
362
|
-
prevInputValue: inputValue
|
|
363
|
-
});
|
|
364
|
-
}
|
|
351
|
+
this.onInputChange('', {
|
|
352
|
+
action: 'set-value',
|
|
353
|
+
prevInputValue: inputValue
|
|
354
|
+
});
|
|
365
355
|
if (closeMenuOnSelect) {
|
|
366
356
|
this.setState({
|
|
367
357
|
inputIsHiddenAfterUpdate: !isMulti
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
._189ee4h9{border-width:var(--ds-border-width,1px)}
|
|
4
4
|
._1dqonqa1{border-style:solid}
|
|
5
5
|
._1h6d14je{border-color:#b7b9be}._12l2v77o{margin-inline-end:var(--ds-space-025,2px)}
|
|
6
|
-
.
|
|
6
|
+
._16qs1xv8{box-shadow:0 0 0 2px var(--ds-surface,#fff),0 0 0 4px var(--ds-border-focused,#4688ec)}
|
|
7
7
|
._1e0c1txw{display:flex}
|
|
8
8
|
._1pfhv77o{margin-block-start:var(--ds-space-025,2px)}
|
|
9
9
|
._1ul9ze3t{min-width:var(--ds-space-0,0)}
|
|
@@ -14,6 +14,6 @@
|
|
|
14
14
|
._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
|
|
15
15
|
._p12f1osq{max-width:100%}
|
|
16
16
|
._syaz1gmx{color:var(--ds-text-disabled,#080f214a)}
|
|
17
|
-
.
|
|
18
|
-
.
|
|
17
|
+
._syaz6x5g{color:var(--ds-text-selected,#1868db)}
|
|
18
|
+
._syazi7uo{color:var(--ds-text,#292a2e)}
|
|
19
19
|
@media screen and (-ms-high-contrast:active){._1aewe4h9{border-width:var(--ds-border-width,1px)}._6up51j28{border-color:transparent}._1xdnnqa1{border-style:solid}._3yq3glyw{border:none}}
|
|
@@ -5,9 +5,9 @@ import * as React from 'react';
|
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { cx } from '@compiled/react';
|
|
7
7
|
var multiValueStyles = {
|
|
8
|
-
root: "_2rko12b0 _1h6d14je _1dqonqa1 _189ee4h9 _1e0c1txw _1ul9ze3t _1pfhv77o _12l2v77o _6rthv77o _ahbqv77o _bfhk1j9a _p12f1osq
|
|
8
|
+
root: "_2rko12b0 _1h6d14je _1dqonqa1 _189ee4h9 _1e0c1txw _1ul9ze3t _1pfhv77o _12l2v77o _6rthv77o _ahbqv77o _bfhk1j9a _p12f1osq _syazi7uo _3yq3glyw",
|
|
9
9
|
disabled: "_syaz1gmx _bfhki8nm",
|
|
10
|
-
focused: "
|
|
10
|
+
focused: "_syaz6x5g _bfhk15s3 _16qs1xv8 _1aewe4h9 _6up51j28 _1xdnnqa1"
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -37,7 +37,7 @@ var Input = function Input(props) {
|
|
|
37
37
|
}),
|
|
38
38
|
css = _getStyleProps.css,
|
|
39
39
|
className = _getStyleProps.className;
|
|
40
|
-
if (fg('
|
|
40
|
+
if (fg('platform_fix_input_component_styling')) {
|
|
41
41
|
return /*#__PURE__*/React.createElement("div", {
|
|
42
42
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
43
43
|
style: css
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
3
3
|
._2rko1mok{border-radius:var(--ds-radius-large,8px)}._152t1osq{inset-block-start:100%}
|
|
4
|
-
.
|
|
4
|
+
._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
|
|
5
5
|
._1bsb1osq{width:100%}
|
|
6
6
|
._1pbykb7n{z-index:1}
|
|
7
7
|
._1pfhu2gc{margin-block-start:var(--ds-space-100,8px)}
|
|
@@ -7,7 +7,7 @@ import { cx } from '@compiled/react';
|
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
8
|
import { getStyleProps } from '../get-style-props';
|
|
9
9
|
var menuStyles = {
|
|
10
|
-
root: "_2rko12b0 _kqswstnw _1bsb1osq _1pbykb7n _6rthu2gc _1pfhu2gc _bfhk1bhr
|
|
10
|
+
root: "_2rko12b0 _kqswstnw _1bsb1osq _1pbykb7n _6rthu2gc _1pfhu2gc _bfhk1bhr _16qs130s",
|
|
11
11
|
rootT26Shape: "_2rko1mok",
|
|
12
12
|
bottom: "_152t1osq",
|
|
13
13
|
top: "_u7co1osq"
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
._bfhkb1q9{background-color:var(--ds-UNSAFE-transparent,transparent)}
|
|
13
13
|
._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
|
|
14
14
|
._bozgv77o{padding-inline-start:var(--ds-space-025,2px)}
|
|
15
|
-
.
|
|
16
|
-
.
|
|
15
|
+
._lswu6x5g{fill:var(--ds-text-selected,#1868db)}
|
|
16
|
+
._lswui7uo{fill:var(--ds-text,#292a2e)}
|
|
17
17
|
._r06hglyw{-webkit-appearance:none;appearance:none}
|
|
18
18
|
._syazi7uo{color:var(--ds-text,#292a2e)}
|
|
19
19
|
._y4tiv77o{padding-inline-end:var(--ds-space-025,2px)}
|
|
20
20
|
._1ah312gs:focus-visible{outline-offset:-2px}
|
|
21
|
-
.
|
|
21
|
+
._13br1tmw:hover{fill:var(--ds-text-danger,#ae2e24)}
|
|
22
22
|
._irr31dpa:hover{background-color:var(--ds-background-neutral-subtle-hovered,#0515240f)}
|
|
23
23
|
._1di6fcek:active{background-color:var(--ds-background-neutral-subtle-pressed,#0b120e24)}
|
|
24
|
-
.
|
|
24
|
+
._i5f81tmw:active{fill:var(--ds-text-danger,#ae2e24)}
|
|
@@ -8,8 +8,8 @@ import CrossIcon from '@atlaskit/icon/core/cross';
|
|
|
8
8
|
var disabledStyles = null;
|
|
9
9
|
var enabledStyles = null;
|
|
10
10
|
var multiValueRemoveStyles = {
|
|
11
|
-
focused: "_bfhkb1q9
|
|
12
|
-
root: "_19itglyw _2rko12b0 _4cvr1h6o _1bah1h6o _1wpz1h6o _r06hglyw _bfhksm61 _syazi7uo _1e0c1txw
|
|
11
|
+
focused: "_bfhkb1q9 _lswu6x5g",
|
|
12
|
+
root: "_19itglyw _2rko12b0 _4cvr1h6o _1bah1h6o _1wpz1h6o _r06hglyw _bfhksm61 _syazi7uo _1e0c1txw _lswui7uo _1q51v77o _y4tiv77o _85i5v77o _bozgv77o _12l2v77o _1ah312gs _irr31dpa _13br1tmw _1di6fcek _i5f81tmw"
|
|
13
13
|
};
|
|
14
14
|
export function MultiValueRemove(_ref) {
|
|
15
15
|
var isDisabled = _ref.isDisabled,
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
._12l21b66{margin-inline-end:var(--ds-space-050,4px)}
|
|
21
21
|
._13muu67f{--cm-border-color:#fff}
|
|
22
22
|
._16jlidpf{flex-grow:0}
|
|
23
|
-
.
|
|
23
|
+
._16qs1xv8{box-shadow:0 0 0 2px var(--ds-surface,#fff),0 0 0 4px var(--ds-border-focused,#4688ec)}
|
|
24
24
|
._18m915vq{overflow-y:hidden}
|
|
25
25
|
._1e0c116y{display:inline-flex}
|
|
26
26
|
._1e0c1txw{display:flex}
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
._p12f1osq{max-width:100%}
|
|
45
45
|
._p12ff6dh{max-width:11.25rem}
|
|
46
46
|
._syaz1gmx{color:var(--ds-text-disabled,#080f214a)}
|
|
47
|
-
.
|
|
47
|
+
._syaz6x5g{color:var(--ds-text-selected,#1868db)}
|
|
48
48
|
._syazi7uo{color:var(--ds-text,#292a2e)}
|
|
49
49
|
._vchhusvi{box-sizing:border-box}
|
|
50
50
|
[data-color-mode=dark] ._hg5mr3uz{--cm-border-color:#000}
|
|
@@ -43,7 +43,7 @@ var multiValueTagLikeStyles = {
|
|
|
43
43
|
root: "_1reo15vq _18m915vq _2rko12b0 _11c8wadc _1mouv77o _195gv77o _1dqonqa1 _189ee4h9 _1e0c116y _vchhusvi _kqswh2mm _4cvr1h6o _1ul9idpf _p12ff6dh _4t3i1k92 _bfhksm61 _syazi7uo _80om73ad _3yq3glyw",
|
|
44
44
|
labelWrapper: "_16jlidpf _1o9zkb7n _i0dl1wug _1reo15vq _18m915vq _11c8wadc _1e0c1txw _4cvr1h6o _1ul9ze3t _1tkeidpf _2a9v1kw7",
|
|
45
45
|
disabled: "_syaz1gmx _bfhki8nm",
|
|
46
|
-
focused: "
|
|
46
|
+
focused: "_syaz6x5g _bfhk1dpa _16qs1xv8 _1aewe4h9 _6up51j28 _1xdnnqa1"
|
|
47
47
|
};
|
|
48
48
|
var getMultiValueLabelText = function getMultiValueLabelText(children, data) {
|
|
49
49
|
if (typeof children === 'string') {
|
package/dist/esm/select.js
CHANGED
|
@@ -157,8 +157,7 @@ export var defaultProps = {
|
|
|
157
157
|
styles: {},
|
|
158
158
|
tabIndex: 0,
|
|
159
159
|
tabSelectsValue: true,
|
|
160
|
-
UNSAFE_is_experimental_generic: false
|
|
161
|
-
shouldKeepInputOnSelect: false
|
|
160
|
+
UNSAFE_is_experimental_generic: false
|
|
162
161
|
};
|
|
163
162
|
function toCategorizedOption(props, option, selectValue, index) {
|
|
164
163
|
var isDisabled = _isOptionDisabled(props, option, selectValue);
|
|
@@ -370,20 +369,11 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
370
369
|
var _this$props2 = _this.props,
|
|
371
370
|
closeMenuOnSelect = _this$props2.closeMenuOnSelect,
|
|
372
371
|
isMulti = _this$props2.isMulti,
|
|
373
|
-
inputValue = _this$props2.inputValue
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
action: 'set-value',
|
|
379
|
-
prevInputValue: inputValue
|
|
380
|
-
});
|
|
381
|
-
} else {
|
|
382
|
-
_this.onInputChange('', {
|
|
383
|
-
action: 'set-value',
|
|
384
|
-
prevInputValue: inputValue
|
|
385
|
-
});
|
|
386
|
-
}
|
|
372
|
+
inputValue = _this$props2.inputValue;
|
|
373
|
+
_this.onInputChange('', {
|
|
374
|
+
action: 'set-value',
|
|
375
|
+
prevInputValue: inputValue
|
|
376
|
+
});
|
|
387
377
|
if (closeMenuOnSelect) {
|
|
388
378
|
_this.setState({
|
|
389
379
|
inputIsHiddenAfterUpdate: !isMulti
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type Context } from 'react';
|
|
1
2
|
import type { CoercedMenuPlacement } from '../types';
|
|
2
3
|
/**
|
|
3
4
|
* __Portal placement context__
|
|
@@ -8,6 +9,6 @@ import type { CoercedMenuPlacement } from '../types';
|
|
|
8
9
|
* - [Code](https://atlassian.design/components/{packageName}/code)
|
|
9
10
|
* - [Usage](https://atlassian.design/components/{packageName}/usage)
|
|
10
11
|
*/
|
|
11
|
-
export declare const PortalPlacementContext:
|
|
12
|
+
export declare const PortalPlacementContext: Context<{
|
|
12
13
|
setPortalPlacement: (placement: CoercedMenuPlacement) => void;
|
|
13
14
|
} | null>;
|
package/dist/types/select.d.ts
CHANGED
|
@@ -437,10 +437,6 @@ export interface SelectProps<Option, IsMulti extends boolean, Group extends Grou
|
|
|
437
437
|
appearance: 'default' | 'subtle' | 'none';
|
|
438
438
|
[key: string]: any;
|
|
439
439
|
UNSAFE_is_experimental_generic?: boolean;
|
|
440
|
-
/**
|
|
441
|
-
* If `true`, the input value will be kept when an option is selected and isMulti is `true`. The default is `false`.
|
|
442
|
-
*/
|
|
443
|
-
shouldKeepInputOnSelect?: boolean;
|
|
444
440
|
}
|
|
445
441
|
export declare const defaultProps: Omit<SelectProps<unknown, false, GroupBase<unknown>>, 'inputValue' | 'onChange' | 'onInputChange' | 'onMenuOpen' | 'onMenuClose' | 'value' | 'appearance'>;
|
|
446
442
|
interface State<Option, IsMulti extends boolean, Group extends GroupBase<Option>> {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type Context } from 'react';
|
|
1
2
|
import type { CoercedMenuPlacement } from '../types';
|
|
2
3
|
/**
|
|
3
4
|
* __Portal placement context__
|
|
@@ -8,6 +9,6 @@ import type { CoercedMenuPlacement } from '../types';
|
|
|
8
9
|
* - [Code](https://atlassian.design/components/{packageName}/code)
|
|
9
10
|
* - [Usage](https://atlassian.design/components/{packageName}/usage)
|
|
10
11
|
*/
|
|
11
|
-
export declare const PortalPlacementContext:
|
|
12
|
+
export declare const PortalPlacementContext: Context<{
|
|
12
13
|
setPortalPlacement: (placement: CoercedMenuPlacement) => void;
|
|
13
14
|
} | null>;
|
|
@@ -437,10 +437,6 @@ export interface SelectProps<Option, IsMulti extends boolean, Group extends Grou
|
|
|
437
437
|
appearance: 'default' | 'subtle' | 'none';
|
|
438
438
|
[key: string]: any;
|
|
439
439
|
UNSAFE_is_experimental_generic?: boolean;
|
|
440
|
-
/**
|
|
441
|
-
* If `true`, the input value will be kept when an option is selected and isMulti is `true`. The default is `false`.
|
|
442
|
-
*/
|
|
443
|
-
shouldKeepInputOnSelect?: boolean;
|
|
444
440
|
}
|
|
445
441
|
export declare const defaultProps: Omit<SelectProps<unknown, false, GroupBase<unknown>>, 'inputValue' | 'onChange' | 'onInputChange' | 'onMenuOpen' | 'onMenuClose' | 'value' | 'appearance'>;
|
|
446
442
|
interface State<Option, IsMulti extends boolean, Group extends GroupBase<Option>> {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/react-select",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.15.0",
|
|
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",
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"atlaskit:src": "src/index.tsx",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@atlaskit/ds-lib": "^6.0.0",
|
|
24
|
-
"@atlaskit/icon": "^
|
|
24
|
+
"@atlaskit/icon": "^34.0.0",
|
|
25
25
|
"@atlaskit/layering": "^3.6.0",
|
|
26
26
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
27
27
|
"@atlaskit/primitives": "^18.1.0",
|
|
28
|
-
"@atlaskit/spinner": "^19.
|
|
29
|
-
"@atlaskit/tag": "^14.
|
|
28
|
+
"@atlaskit/spinner": "^19.1.0",
|
|
29
|
+
"@atlaskit/tag": "^14.7.0",
|
|
30
30
|
"@atlaskit/tokens": "^11.4.0",
|
|
31
31
|
"@babel/runtime": "^7.0.0",
|
|
32
32
|
"@compiled/react": "^0.20.0",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"platform_dst_select_menu_close_on_blur": {
|
|
55
55
|
"type": "boolean"
|
|
56
56
|
},
|
|
57
|
-
"
|
|
57
|
+
"platform_fix_input_component_styling": {
|
|
58
58
|
"type": "boolean"
|
|
59
59
|
},
|
|
60
60
|
"platform_fix_autocomplete_aria_for_select": {
|