@atlaskit/react-select 3.15.1 → 3.15.3
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 +14 -0
- package/dist/cjs/compiled/components/containers.compiled.css +3 -0
- package/dist/cjs/compiled/components/containers.js +11 -3
- package/dist/cjs/components/containers/value-container.compiled.css +4 -1
- package/dist/cjs/components/containers/value-container.js +11 -3
- package/dist/cjs/components/input.compiled.css +4 -0
- package/dist/cjs/components/input.js +9 -5
- package/dist/cjs/components/multi-value.compiled.css +11 -8
- package/dist/cjs/components/multi-value.js +9 -13
- package/dist/es2019/compiled/components/containers.compiled.css +3 -0
- package/dist/es2019/compiled/components/containers.js +11 -3
- package/dist/es2019/components/containers/value-container.compiled.css +4 -1
- package/dist/es2019/components/containers/value-container.js +11 -3
- package/dist/es2019/components/input.compiled.css +4 -0
- package/dist/es2019/components/input.js +9 -5
- package/dist/es2019/components/multi-value.compiled.css +11 -8
- package/dist/es2019/components/multi-value.js +9 -13
- package/dist/esm/compiled/components/containers.compiled.css +3 -0
- package/dist/esm/compiled/components/containers.js +11 -3
- package/dist/esm/components/containers/value-container.compiled.css +4 -1
- package/dist/esm/components/containers/value-container.js +11 -3
- package/dist/esm/components/input.compiled.css +4 -0
- package/dist/esm/components/input.js +9 -5
- package/dist/esm/components/multi-value.compiled.css +11 -8
- package/dist/esm/components/multi-value.js +9 -13
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/react-select
|
|
2
2
|
|
|
3
|
+
## 3.15.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ea970883e4943`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ea970883e4943) -
|
|
8
|
+
[ux] Fixes bug where tags were overlapping in multi-select in smaller screen sizes.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 3.15.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 3.15.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
._11c81d4k{font:var(--ds-font-body-large,normal 400 1pc/24px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._zulp1b66{gap:var(--ds-space-050,4px)}
|
|
2
3
|
._16jlkb7n{flex-grow:1}
|
|
3
4
|
._18m915vq{overflow-y:hidden}
|
|
4
5
|
._1e0c11p5{display:grid}
|
|
@@ -7,12 +8,14 @@
|
|
|
7
8
|
._1n261g80{flex-wrap:wrap}
|
|
8
9
|
._1o9zidpf{flex-shrink:0}
|
|
9
10
|
._1o9zkb7n{flex-shrink:1}
|
|
11
|
+
._1q511b66{padding-block-start:var(--ds-space-050,4px)}
|
|
10
12
|
._1q51v77o{padding-block-start:var(--ds-space-025,2px)}
|
|
11
13
|
._1q51ze3t{padding-block-start:var(--ds-space-0,0)}
|
|
12
14
|
._1reo15vq{overflow-x:hidden}
|
|
13
15
|
._1wpz1fhb{align-self:stretch}
|
|
14
16
|
._4cvr1h6o{align-items:center}
|
|
15
17
|
._80om13gf{cursor:not-allowed}
|
|
18
|
+
._85i51b66{padding-block-end:var(--ds-space-050,4px)}
|
|
16
19
|
._85i5v77o{padding-block-end:var(--ds-space-025,2px)}
|
|
17
20
|
._85i5ze3t{padding-block-end:var(--ds-space-0,0)}
|
|
18
21
|
._8am5i4x0{-webkit-overflow-scrolling:touch}
|
|
@@ -12,6 +12,7 @@ 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");
|
|
15
16
|
var _getStyleProps4 = require("../../get-style-props");
|
|
16
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); }
|
|
17
18
|
// ==============================
|
|
@@ -56,9 +57,13 @@ var SelectContainer = exports.SelectContainer = function SelectContainer(props)
|
|
|
56
57
|
// ==============================
|
|
57
58
|
|
|
58
59
|
var valueContainerStyles = {
|
|
59
|
-
default: "_16jlkb7n _1o9zkb7n _i0dlf1ug _1reo15vq _18m915vq _4cvr1h6o _1e0c11p5 _1n261g80 _8am5i4x0 _kqswh2mm
|
|
60
|
+
default: "_16jlkb7n _1o9zkb7n _i0dlf1ug _1reo15vq _18m915vq _4cvr1h6o _1e0c11p5 _1n261g80 _8am5i4x0 _kqswh2mm _y4ti12x7 _bozg12x7",
|
|
61
|
+
verticalPaddingStandard: "_1q51v77o _85i5v77o",
|
|
62
|
+
verticalPaddingTagUpliftMulti: "_1q511b66 _85i51b66",
|
|
63
|
+
verticalPaddingTagUpliftCompactMulti: "_1q51v77o _85i5v77o",
|
|
64
|
+
verticalPaddingCompactNonUplift: "_1q51ze3t _85i5ze3t",
|
|
60
65
|
flex: "_1e0c1txw",
|
|
61
|
-
|
|
66
|
+
flexWithGap: "_zulp1b66 _1e0c1txw _1n261g80"
|
|
62
67
|
};
|
|
63
68
|
|
|
64
69
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -77,9 +82,12 @@ var ValueContainer = exports.ValueContainer = function ValueContainer(props) {
|
|
|
77
82
|
}),
|
|
78
83
|
css = _getStyleProps2.css,
|
|
79
84
|
className = _getStyleProps2.className;
|
|
85
|
+
var ffTagUplifts = (0, _platformFeatureFlags.fg)('platform-dst-lozenge-tag-badge-visual-uplifts');
|
|
86
|
+
var tagUpliftMultiVertical = ffTagUplifts && isMulti;
|
|
87
|
+
var tagUpliftChipRow = ffTagUplifts && isMulti && hasValue && controlShouldRenderValue;
|
|
80
88
|
return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({
|
|
81
89
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/local-cx-xcss, @compiled/local-cx-xcss
|
|
82
|
-
className: (0, _runtime.ax)([valueContainerStyles.default, isMulti && hasValue && controlShouldRenderValue && valueContainerStyles.flex,
|
|
90
|
+
className: (0, _runtime.ax)([valueContainerStyles.default, tagUpliftMultiVertical && isCompact && valueContainerStyles.verticalPaddingTagUpliftCompactMulti, tagUpliftMultiVertical && !isCompact && valueContainerStyles.verticalPaddingTagUpliftMulti, !tagUpliftMultiVertical && !isCompact && valueContainerStyles.verticalPaddingStandard, !tagUpliftMultiVertical && isCompact && valueContainerStyles.verticalPaddingCompactNonUplift, isMulti && hasValue && controlShouldRenderValue && valueContainerStyles.flex, tagUpliftChipRow && valueContainerStyles.flexWithGap, (0, _react2.cx)(className, xcss, '-ValueContainer')])
|
|
83
91
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
84
92
|
,
|
|
85
93
|
style: css
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
._zulp1b66{gap:var(--ds-space-050,4px)}._16jlkb7n{flex-grow:1}
|
|
2
3
|
._18m915vq{overflow-y:hidden}
|
|
3
4
|
._1e0c11p5{display:grid}
|
|
4
5
|
._1e0c1txw{display:flex}
|
|
5
6
|
._1n261g80{flex-wrap:wrap}
|
|
6
7
|
._1o9zkb7n{flex-shrink:1}
|
|
8
|
+
._1q511b66{padding-block-start:var(--ds-space-050,4px)}
|
|
7
9
|
._1q51v77o{padding-block-start:var(--ds-space-025,2px)}
|
|
8
10
|
._1q51ze3t{padding-block-start:var(--ds-space-0,0)}
|
|
9
11
|
._1reo15vq{overflow-x:hidden}
|
|
10
12
|
._4cvr1h6o{align-items:center}
|
|
13
|
+
._85i51b66{padding-block-end:var(--ds-space-050,4px)}
|
|
11
14
|
._85i5v77o{padding-block-end:var(--ds-space-025,2px)}
|
|
12
15
|
._85i5ze3t{padding-block-end:var(--ds-space-0,0)}
|
|
13
16
|
._8am5i4x0{-webkit-overflow-scrolling:touch}
|
|
@@ -12,12 +12,17 @@ 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");
|
|
15
16
|
var _getStyleProps2 = require("../../get-style-props");
|
|
16
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); }
|
|
17
18
|
var valueContainerStyles = {
|
|
18
|
-
default: "_16jlkb7n _1o9zkb7n _i0dlf1ug _1reo15vq _18m915vq _4cvr1h6o _1e0c11p5 _1n261g80 _8am5i4x0 _kqswh2mm
|
|
19
|
+
default: "_16jlkb7n _1o9zkb7n _i0dlf1ug _1reo15vq _18m915vq _4cvr1h6o _1e0c11p5 _1n261g80 _8am5i4x0 _kqswh2mm _y4ti12x7 _bozg12x7",
|
|
20
|
+
verticalPaddingStandard: "_1q51v77o _85i5v77o",
|
|
21
|
+
verticalPaddingTagUpliftMulti: "_1q511b66 _85i51b66",
|
|
22
|
+
verticalPaddingTagUpliftCompactMulti: "_1q51v77o _85i5v77o",
|
|
23
|
+
verticalPaddingCompactNonUplift: "_1q51ze3t _85i5ze3t",
|
|
19
24
|
flex: "_1e0c1txw",
|
|
20
|
-
|
|
25
|
+
flexWithGap: "_zulp1b66 _1e0c1txw _1n261g80"
|
|
21
26
|
};
|
|
22
27
|
|
|
23
28
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -36,9 +41,12 @@ var ValueContainer = exports.ValueContainer = function ValueContainer(props) {
|
|
|
36
41
|
}),
|
|
37
42
|
css = _getStyleProps.css,
|
|
38
43
|
className = _getStyleProps.className;
|
|
44
|
+
var ffTagUplifts = (0, _platformFeatureFlags.fg)('platform-dst-lozenge-tag-badge-visual-uplifts');
|
|
45
|
+
var tagUpliftMultiVertical = ffTagUplifts && isMulti;
|
|
46
|
+
var tagUpliftChipRow = ffTagUplifts && isMulti && hasValue && controlShouldRenderValue;
|
|
39
47
|
return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({
|
|
40
48
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/local-cx-xcss, @compiled/local-cx-xcss
|
|
41
|
-
className: (0, _runtime.ax)([valueContainerStyles.default, isMulti && hasValue && controlShouldRenderValue && valueContainerStyles.flex,
|
|
49
|
+
className: (0, _runtime.ax)([valueContainerStyles.default, tagUpliftMultiVertical && isCompact && valueContainerStyles.verticalPaddingTagUpliftCompactMulti, tagUpliftMultiVertical && !isCompact && valueContainerStyles.verticalPaddingTagUpliftMulti, !tagUpliftMultiVertical && !isCompact && valueContainerStyles.verticalPaddingStandard, !tagUpliftMultiVertical && isCompact && valueContainerStyles.verticalPaddingCompactNonUplift, isMulti && hasValue && controlShouldRenderValue && valueContainerStyles.flex, tagUpliftChipRow && valueContainerStyles.flexWithGap, (0, _react2.cx)(className, xcss, '-ValueContainer')])
|
|
42
50
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
43
51
|
,
|
|
44
52
|
style: css
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
._11c81kw7{font:inherit}
|
|
2
|
+
._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
3
|
._11q7idpf{background:0}
|
|
3
4
|
._19itidpf{border:0}
|
|
4
5
|
._1h9u1kw7:after{font:inherit}
|
|
@@ -8,8 +9,11 @@
|
|
|
8
9
|
._nd5l1sux{grid-area:1/1/2/3}
|
|
9
10
|
._nd5l1yjy{grid-area:1/2}
|
|
10
11
|
._195gv77o{margin-inline:var(--ds-space-025,2px)}
|
|
12
|
+
._195gze3t{margin-inline:var(--ds-space-0,0)}
|
|
11
13
|
._1mouv77o{margin-block:var(--ds-space-025,2px)}
|
|
14
|
+
._1mouze3t{margin-block:var(--ds-space-0,0)}
|
|
12
15
|
._1rjcv77o{padding-block:var(--ds-space-025,2px)}
|
|
16
|
+
._1rjcze3t{padding-block:var(--ds-space-0,0)}
|
|
13
17
|
._12ji1r31{outline-color:currentColor}
|
|
14
18
|
._12y3idpf{outline-width:0}
|
|
15
19
|
._16jlkb7n{flex-grow:1}
|
|
@@ -20,11 +20,13 @@ var _excluded = ["innerRef", "isDisabled", "isHidden", "inputClassName", "testId
|
|
|
20
20
|
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); }
|
|
21
21
|
var inputStylesOld = {
|
|
22
22
|
root: "_16jlkb7n _1o9zkb7n _i0dl1wug _nd5l1sux _1mouv77o _195gv77o _1rjcv77o _1e0c1n7u _yv0e12qd _syazi7uo _j8d6idpf _1av2idpf _1doyidpf _pfztidpf _uoe3idpf _1recidpf _70xridpf _1k96idpf _eq43idpf _1h9u1kw7 _ckog1yjy _1x651r31 _1nn4glyw _1rzeidpf _1yd8yh40 _aetr11ps _uy7x15vq _1qjlqvpr",
|
|
23
|
-
disabled: "_3um015vq"
|
|
23
|
+
disabled: "_3um015vq",
|
|
24
|
+
labellingFFStyles: "_11c8wadc _1mouze3t _195gze3t _1rjcze3t"
|
|
24
25
|
};
|
|
25
26
|
var inputStyles = {
|
|
26
27
|
root: "_16jlkb7n _1o9zkb7n _i0dl1wug _nd5l1sux _1mouv77o _195gv77o _1rjcv77o _kqswh2mm _1e0c1txw _yv0e12qd _syazi7uo _j8d6idpf _1av2idpf _1doyidpf _pfztidpf _uoe3idpf _1recidpf _70xridpf _1k96idpf _eq43idpf _1h9u1kw7 _ckog1yjy _1x651r31 _1nn4glyw _1rzeidpf _1yd8yh40 _aetr11ps _uy7x15vq _1qjlqvpr",
|
|
27
|
-
disabled: "_3um015vq"
|
|
28
|
+
disabled: "_3um015vq",
|
|
29
|
+
labellingFFStyles: "_11c8wadc _1mouze3t _195gze3t _1rjcze3t"
|
|
28
30
|
};
|
|
29
31
|
var nativeInputStylesOld = null;
|
|
30
32
|
var nativeInputStyles = null;
|
|
@@ -32,7 +34,8 @@ var hidden = null;
|
|
|
32
34
|
var Input = function Input(props) {
|
|
33
35
|
var builtinCX = props.cx,
|
|
34
36
|
value = props.value,
|
|
35
|
-
xcss = props.xcss
|
|
37
|
+
xcss = props.xcss,
|
|
38
|
+
isMulti = props.isMulti;
|
|
36
39
|
var _cleanCommonProps = (0, _cleanCommonProps2.cleanCommonProps)(props),
|
|
37
40
|
innerRef = _cleanCommonProps.innerRef,
|
|
38
41
|
isDisabled = _cleanCommonProps.isDisabled,
|
|
@@ -46,13 +49,14 @@ var Input = function Input(props) {
|
|
|
46
49
|
}),
|
|
47
50
|
css = _getStyleProps.css,
|
|
48
51
|
className = _getStyleProps.className;
|
|
52
|
+
var ffTagUplifts = (0, _platformFeatureFlags.fg)('platform-dst-lozenge-tag-badge-visual-uplifts');
|
|
49
53
|
if ((0, _platformFeatureFlags.fg)('platform_fix_input_component_styling')) {
|
|
50
54
|
return /*#__PURE__*/React.createElement("div", {
|
|
51
55
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
52
56
|
style: css
|
|
53
57
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/local-cx-xcss, @compiled/local-cx-xcss
|
|
54
58
|
,
|
|
55
|
-
className: (0, _runtime.ax)([inputStyles.root, isDisabled && inputStyles.disabled, (0, _react2.cx)(className, xcss, '-Input')]),
|
|
59
|
+
className: (0, _runtime.ax)([inputStyles.root, isMulti && ffTagUplifts && inputStyles.labellingFFStyles, isDisabled && inputStyles.disabled, (0, _react2.cx)(className, xcss, '-Input')]),
|
|
56
60
|
"data-value": value || '',
|
|
57
61
|
"data-testid": dataId && "".concat(dataId, "-container")
|
|
58
62
|
}, /*#__PURE__*/React.createElement("input", (0, _extends2.default)({
|
|
@@ -70,7 +74,7 @@ var Input = function Input(props) {
|
|
|
70
74
|
style: css
|
|
71
75
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/local-cx-xcss, @compiled/local-cx-xcss
|
|
72
76
|
,
|
|
73
|
-
className: (0, _runtime.ax)([inputStylesOld.root, isDisabled && inputStylesOld.disabled, (0, _react2.cx)(className, xcss, '-Input')]),
|
|
77
|
+
className: (0, _runtime.ax)([inputStylesOld.root, isMulti && ffTagUplifts && inputStylesOld.labellingFFStyles, isDisabled && inputStylesOld.disabled, (0, _react2.cx)(className, xcss, '-Input')]),
|
|
74
78
|
"data-value": value || '',
|
|
75
79
|
"data-testid": dataId && "".concat(dataId, "-container")
|
|
76
80
|
}, /*#__PURE__*/React.createElement("input", (0, _extends2.default)({
|
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
._2a9v1kw7 *{font:inherit}
|
|
4
4
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
5
5
|
._189ee4h9{border-width:var(--ds-border-width,1px)}
|
|
6
|
-
.
|
|
7
|
-
._195gv77o{margin-inline:var(--ds-space-025,2px)}
|
|
6
|
+
._195gze3t{margin-inline:var(--ds-space-0,0)}
|
|
8
7
|
._1dqonqa1{border-style:solid}
|
|
9
8
|
._1h6dpryq{border-color:color-mix(in oklch,var(--tag-border-token) 100%,var(--cm-border-color) var(--cm-border-value))}
|
|
10
|
-
.
|
|
9
|
+
._1mouze3t{margin-block:var(--ds-space-0,0)}._119b16y8{--tag-border-token:var(--ds-border-accent-red,#e2483d)}
|
|
11
10
|
._119b1b2s{--tag-border-token:var(--ds-border-accent-orange,#e06c00)}
|
|
12
11
|
._119b1crs{--tag-border-token:var(--ds-border-accent-green,#22a06b)}
|
|
13
12
|
._119b1h3o{--tag-border-token:var(--ds-border-accent-teal,#2898bd)}
|
|
@@ -17,36 +16,40 @@
|
|
|
17
16
|
._119bfeiv{--tag-border-token:var(--ds-border-accent-yellow,#b38600)}
|
|
18
17
|
._119bnf89{--tag-border-token:var(--ds-border-accent-lime,#6a9a23)}
|
|
19
18
|
._119buwd0{--tag-border-token:var(--ds-border-accent-magenta,#cd519d)}
|
|
20
|
-
.
|
|
19
|
+
._13lsf1ug>*{flex-basis:0%}
|
|
21
20
|
._13muu67f{--cm-border-color:#fff}
|
|
22
21
|
._16jlidpf{flex-grow:0}
|
|
22
|
+
._16jlkb7n{flex-grow:1}
|
|
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}
|
|
27
27
|
._1k671038{--border-l-factor:1.33}
|
|
28
28
|
._1o9zkb7n{flex-shrink:1}
|
|
29
|
-
.
|
|
29
|
+
._1ouwze3t>*{min-width:var(--ds-space-0,0)}
|
|
30
30
|
._1reo15vq{overflow-x:hidden}
|
|
31
31
|
._1tkeidpf{min-height:0}
|
|
32
|
-
._1ul9idpf{min-width:0}
|
|
33
32
|
._1ul9ze3t{min-width:var(--ds-space-0,0)}
|
|
33
|
+
._1wpz1h6o{align-self:center}
|
|
34
|
+
._3pxh1h6o>*{align-items:center}
|
|
34
35
|
._4cvr1h6o{align-items:center}
|
|
35
36
|
._4t3i1k92{height:1.25rem}
|
|
36
|
-
._6rthv77o{margin-block-end:var(--ds-space-025,2px)}
|
|
37
37
|
._80om73ad{cursor:default}
|
|
38
38
|
._bfhk1dpa{background-color:var(--ds-background-neutral-subtle-hovered,#0515240f)}
|
|
39
39
|
._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
|
|
40
40
|
._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
|
|
41
|
+
._d0dz1txw>*{display:flex}
|
|
41
42
|
._i0dl1wug{flex-basis:auto}
|
|
43
|
+
._i0dlf1ug{flex-basis:0%}
|
|
42
44
|
._kqswh2mm{position:relative}
|
|
43
45
|
._oe6mmko7{--cm-border-value:45%}
|
|
44
|
-
._p12f1osq{max-width:100%}
|
|
45
46
|
._p12ff6dh{max-width:11.25rem}
|
|
46
47
|
._syaz1gmx{color:var(--ds-text-disabled,#080f214a)}
|
|
47
48
|
._syaz6x5g{color:var(--ds-text-selected,#1868db)}
|
|
48
49
|
._syazi7uo{color:var(--ds-text,#292a2e)}
|
|
50
|
+
._v5ynkb7n>*{flex-shrink:1}
|
|
49
51
|
._vchhusvi{box-sizing:border-box}
|
|
52
|
+
._zdxokb7n>*{flex-grow:1}
|
|
50
53
|
[data-color-mode=dark] ._hg5mr3uz{--cm-border-color:#000}
|
|
51
54
|
[data-color-mode=dark] ._u8p61h4e{--border-l-factor:0.7}
|
|
52
55
|
@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}}
|
|
@@ -20,11 +20,8 @@ var _multiValueLabel = require("./multi-value-label");
|
|
|
20
20
|
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); }
|
|
21
21
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22
22
|
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) { (0, _defineProperty2.default)(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; }
|
|
23
|
-
// Tag wrapper: Tag has built-in margin; cancel the inline margin so we control spacing
|
|
24
|
-
var tagMarginToken = "var(--ds-space-050, 4px)";
|
|
25
23
|
var multiValueTagWrapperStyles = {
|
|
26
|
-
root: "_1e0c1txw _1ul9ze3t
|
|
27
|
-
inner: "_195g8ily"
|
|
24
|
+
root: "_16jlidpf _1o9zkb7n _i0dl1wug _1mouze3t _195gze3t _4cvr1h6o _1e0c1txw _1ul9ze3t _zdxokb7n _v5ynkb7n _13lsf1ug _3pxh1h6o _d0dz1txw _1ouwze3t"
|
|
28
25
|
};
|
|
29
26
|
|
|
30
27
|
// Tag-like color styles
|
|
@@ -49,8 +46,8 @@ var tagLikeBorderFilterStyles = null;
|
|
|
49
46
|
// The container uses tag-like styling while Label/Remove sub-components are preserved
|
|
50
47
|
// so custom overrides (e.g. custom aria-labels, rendering objects as data) continue to work.
|
|
51
48
|
var multiValueTagLikeStyles = {
|
|
52
|
-
root: "_1reo15vq _18m915vq _2rko12b0 _11c8wadc
|
|
53
|
-
labelWrapper: "
|
|
49
|
+
root: "_1reo15vq _18m915vq _2rko12b0 _11c8wadc _1dqonqa1 _189ee4h9 _1mouze3t _195gze3t _1e0c116y _vchhusvi _kqswh2mm _4cvr1h6o _1wpz1h6o _1ul9ze3t _1o9zkb7n _p12ff6dh _4t3i1k92 _bfhksm61 _syazi7uo _80om73ad _3yq3glyw",
|
|
50
|
+
labelWrapper: "_16jlkb7n _1o9zkb7n _i0dlf1ug _1reo15vq _18m915vq _11c8wadc _1e0c1txw _4cvr1h6o _1ul9ze3t _1tkeidpf _2a9v1kw7",
|
|
54
51
|
disabled: "_syaz1gmx _bfhki8nm",
|
|
55
52
|
focused: "_syaz6x5g _bfhk1dpa _16qs1xv8 _1aewe4h9 _6up51j28 _1xdnnqa1"
|
|
56
53
|
};
|
|
@@ -94,6 +91,7 @@ var MultiValue = function MultiValue(props) {
|
|
|
94
91
|
removeCss = _getStyleProps3.css,
|
|
95
92
|
removeClassName = _getStyleProps3.className;
|
|
96
93
|
var hasCustomLabel = Label !== _multiValueLabel.MultiValueLabel;
|
|
94
|
+
// Plain labels: use Tag with fillContainer so it truncates like tag-like structure.
|
|
97
95
|
if (ffTagUplifts && isPlainLabel && !hasCustomLabel) {
|
|
98
96
|
var _ref = data !== null && data !== void 0 ? data : {},
|
|
99
97
|
elemBefore = _ref.elemBefore,
|
|
@@ -101,9 +99,7 @@ var MultiValue = function MultiValue(props) {
|
|
|
101
99
|
return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({}, innerProps, {
|
|
102
100
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/local-cx-xcss, @compiled/local-cx-xcss
|
|
103
101
|
className: (0, _runtime.ax)([multiValueTagWrapperStyles.root, (0, _react2.cx)(props.className, containerClassName, props.xcss, '-multiValue')])
|
|
104
|
-
}), /*#__PURE__*/React.createElement(
|
|
105
|
-
className: (0, _runtime.ax)([multiValueTagWrapperStyles.inner])
|
|
106
|
-
}, /*#__PURE__*/React.createElement(_tag.default, {
|
|
102
|
+
}), /*#__PURE__*/React.createElement(_tag.default, {
|
|
107
103
|
text: labelText,
|
|
108
104
|
isRemovable: !isDisabled,
|
|
109
105
|
removeButtonLabel: "".concat(labelText, ", remove"),
|
|
@@ -113,12 +109,12 @@ var MultiValue = function MultiValue(props) {
|
|
|
113
109
|
return false;
|
|
114
110
|
},
|
|
115
111
|
color: tagColor !== null && tagColor !== void 0 ? tagColor : 'gray',
|
|
116
|
-
elemBefore: elemBefore
|
|
117
|
-
|
|
112
|
+
elemBefore: elemBefore,
|
|
113
|
+
hasMargin: false
|
|
114
|
+
}));
|
|
118
115
|
}
|
|
119
116
|
|
|
120
|
-
// FF on + custom content
|
|
121
|
-
// Label and Remove components so custom overrides continue to work.
|
|
117
|
+
// FF on + custom content → tag-like path
|
|
122
118
|
if (ffTagUplifts) {
|
|
123
119
|
var colorKey = data === null || data === void 0 ? void 0 : data.color;
|
|
124
120
|
return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
._11c81d4k{font:var(--ds-font-body-large,normal 400 1pc/24px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._zulp1b66{gap:var(--ds-space-050,4px)}
|
|
2
3
|
._16jlkb7n{flex-grow:1}
|
|
3
4
|
._18m915vq{overflow-y:hidden}
|
|
4
5
|
._1e0c11p5{display:grid}
|
|
@@ -7,12 +8,14 @@
|
|
|
7
8
|
._1n261g80{flex-wrap:wrap}
|
|
8
9
|
._1o9zidpf{flex-shrink:0}
|
|
9
10
|
._1o9zkb7n{flex-shrink:1}
|
|
11
|
+
._1q511b66{padding-block-start:var(--ds-space-050,4px)}
|
|
10
12
|
._1q51v77o{padding-block-start:var(--ds-space-025,2px)}
|
|
11
13
|
._1q51ze3t{padding-block-start:var(--ds-space-0,0)}
|
|
12
14
|
._1reo15vq{overflow-x:hidden}
|
|
13
15
|
._1wpz1fhb{align-self:stretch}
|
|
14
16
|
._4cvr1h6o{align-items:center}
|
|
15
17
|
._80om13gf{cursor:not-allowed}
|
|
18
|
+
._85i51b66{padding-block-end:var(--ds-space-050,4px)}
|
|
16
19
|
._85i5v77o{padding-block-end:var(--ds-space-025,2px)}
|
|
17
20
|
._85i5ze3t{padding-block-end:var(--ds-space-0,0)}
|
|
18
21
|
._8am5i4x0{-webkit-overflow-scrolling:touch}
|
|
@@ -4,6 +4,7 @@ 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';
|
|
7
8
|
import { getStyleProps } from '../../get-style-props';
|
|
8
9
|
|
|
9
10
|
// ==============================
|
|
@@ -51,9 +52,13 @@ export const SelectContainer = props => {
|
|
|
51
52
|
// ==============================
|
|
52
53
|
|
|
53
54
|
const valueContainerStyles = {
|
|
54
|
-
default: "_16jlkb7n _1o9zkb7n _i0dlf1ug _1reo15vq _18m915vq _4cvr1h6o _1e0c11p5 _1n261g80 _8am5i4x0 _kqswh2mm
|
|
55
|
+
default: "_16jlkb7n _1o9zkb7n _i0dlf1ug _1reo15vq _18m915vq _4cvr1h6o _1e0c11p5 _1n261g80 _8am5i4x0 _kqswh2mm _y4ti12x7 _bozg12x7",
|
|
56
|
+
verticalPaddingStandard: "_1q51v77o _85i5v77o",
|
|
57
|
+
verticalPaddingTagUpliftMulti: "_1q511b66 _85i51b66",
|
|
58
|
+
verticalPaddingTagUpliftCompactMulti: "_1q51v77o _85i5v77o",
|
|
59
|
+
verticalPaddingCompactNonUplift: "_1q51ze3t _85i5ze3t",
|
|
55
60
|
flex: "_1e0c1txw",
|
|
56
|
-
|
|
61
|
+
flexWithGap: "_zulp1b66 _1e0c1txw _1n261g80"
|
|
57
62
|
};
|
|
58
63
|
|
|
59
64
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -77,9 +82,12 @@ export const ValueContainer = props => {
|
|
|
77
82
|
'value-container--is-multi': isMulti,
|
|
78
83
|
'value-container--has-value': hasValue
|
|
79
84
|
});
|
|
85
|
+
const ffTagUplifts = fg('platform-dst-lozenge-tag-badge-visual-uplifts');
|
|
86
|
+
const tagUpliftMultiVertical = ffTagUplifts && isMulti;
|
|
87
|
+
const tagUpliftChipRow = ffTagUplifts && isMulti && hasValue && controlShouldRenderValue;
|
|
80
88
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
81
89
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/local-cx-xcss, @compiled/local-cx-xcss
|
|
82
|
-
className: ax([valueContainerStyles.default, isMulti && hasValue && controlShouldRenderValue && valueContainerStyles.flex,
|
|
90
|
+
className: ax([valueContainerStyles.default, tagUpliftMultiVertical && isCompact && valueContainerStyles.verticalPaddingTagUpliftCompactMulti, tagUpliftMultiVertical && !isCompact && valueContainerStyles.verticalPaddingTagUpliftMulti, !tagUpliftMultiVertical && !isCompact && valueContainerStyles.verticalPaddingStandard, !tagUpliftMultiVertical && isCompact && valueContainerStyles.verticalPaddingCompactNonUplift, isMulti && hasValue && controlShouldRenderValue && valueContainerStyles.flex, tagUpliftChipRow && valueContainerStyles.flexWithGap, cx(className, xcss, '-ValueContainer')])
|
|
83
91
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
84
92
|
,
|
|
85
93
|
style: css
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
._zulp1b66{gap:var(--ds-space-050,4px)}._16jlkb7n{flex-grow:1}
|
|
2
3
|
._18m915vq{overflow-y:hidden}
|
|
3
4
|
._1e0c11p5{display:grid}
|
|
4
5
|
._1e0c1txw{display:flex}
|
|
5
6
|
._1n261g80{flex-wrap:wrap}
|
|
6
7
|
._1o9zkb7n{flex-shrink:1}
|
|
8
|
+
._1q511b66{padding-block-start:var(--ds-space-050,4px)}
|
|
7
9
|
._1q51v77o{padding-block-start:var(--ds-space-025,2px)}
|
|
8
10
|
._1q51ze3t{padding-block-start:var(--ds-space-0,0)}
|
|
9
11
|
._1reo15vq{overflow-x:hidden}
|
|
10
12
|
._4cvr1h6o{align-items:center}
|
|
13
|
+
._85i51b66{padding-block-end:var(--ds-space-050,4px)}
|
|
11
14
|
._85i5v77o{padding-block-end:var(--ds-space-025,2px)}
|
|
12
15
|
._85i5ze3t{padding-block-end:var(--ds-space-0,0)}
|
|
13
16
|
._8am5i4x0{-webkit-overflow-scrolling:touch}
|
|
@@ -4,11 +4,16 @@ import "./value-container.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';
|
|
7
8
|
import { getStyleProps } from '../../get-style-props';
|
|
8
9
|
const valueContainerStyles = {
|
|
9
|
-
default: "_16jlkb7n _1o9zkb7n _i0dlf1ug _1reo15vq _18m915vq _4cvr1h6o _1e0c11p5 _1n261g80 _8am5i4x0 _kqswh2mm
|
|
10
|
+
default: "_16jlkb7n _1o9zkb7n _i0dlf1ug _1reo15vq _18m915vq _4cvr1h6o _1e0c11p5 _1n261g80 _8am5i4x0 _kqswh2mm _y4ti12x7 _bozg12x7",
|
|
11
|
+
verticalPaddingStandard: "_1q51v77o _85i5v77o",
|
|
12
|
+
verticalPaddingTagUpliftMulti: "_1q511b66 _85i51b66",
|
|
13
|
+
verticalPaddingTagUpliftCompactMulti: "_1q51v77o _85i5v77o",
|
|
14
|
+
verticalPaddingCompactNonUplift: "_1q51ze3t _85i5ze3t",
|
|
10
15
|
flex: "_1e0c1txw",
|
|
11
|
-
|
|
16
|
+
flexWithGap: "_zulp1b66 _1e0c1txw _1n261g80"
|
|
12
17
|
};
|
|
13
18
|
|
|
14
19
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -32,9 +37,12 @@ export const ValueContainer = props => {
|
|
|
32
37
|
'value-container--is-multi': isMulti,
|
|
33
38
|
'value-container--has-value': hasValue
|
|
34
39
|
});
|
|
40
|
+
const ffTagUplifts = fg('platform-dst-lozenge-tag-badge-visual-uplifts');
|
|
41
|
+
const tagUpliftMultiVertical = ffTagUplifts && isMulti;
|
|
42
|
+
const tagUpliftChipRow = ffTagUplifts && isMulti && hasValue && controlShouldRenderValue;
|
|
35
43
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
36
44
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/local-cx-xcss, @compiled/local-cx-xcss
|
|
37
|
-
className: ax([valueContainerStyles.default, isMulti && hasValue && controlShouldRenderValue && valueContainerStyles.flex,
|
|
45
|
+
className: ax([valueContainerStyles.default, tagUpliftMultiVertical && isCompact && valueContainerStyles.verticalPaddingTagUpliftCompactMulti, tagUpliftMultiVertical && !isCompact && valueContainerStyles.verticalPaddingTagUpliftMulti, !tagUpliftMultiVertical && !isCompact && valueContainerStyles.verticalPaddingStandard, !tagUpliftMultiVertical && isCompact && valueContainerStyles.verticalPaddingCompactNonUplift, isMulti && hasValue && controlShouldRenderValue && valueContainerStyles.flex, tagUpliftChipRow && valueContainerStyles.flexWithGap, cx(className, xcss, '-ValueContainer')])
|
|
38
46
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
39
47
|
,
|
|
40
48
|
style: css
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
._11c81kw7{font:inherit}
|
|
2
|
+
._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
3
|
._11q7idpf{background:0}
|
|
3
4
|
._19itidpf{border:0}
|
|
4
5
|
._1h9u1kw7:after{font:inherit}
|
|
@@ -8,8 +9,11 @@
|
|
|
8
9
|
._nd5l1sux{grid-area:1/1/2/3}
|
|
9
10
|
._nd5l1yjy{grid-area:1/2}
|
|
10
11
|
._195gv77o{margin-inline:var(--ds-space-025,2px)}
|
|
12
|
+
._195gze3t{margin-inline:var(--ds-space-0,0)}
|
|
11
13
|
._1mouv77o{margin-block:var(--ds-space-025,2px)}
|
|
14
|
+
._1mouze3t{margin-block:var(--ds-space-0,0)}
|
|
12
15
|
._1rjcv77o{padding-block:var(--ds-space-025,2px)}
|
|
16
|
+
._1rjcze3t{padding-block:var(--ds-space-0,0)}
|
|
13
17
|
._12ji1r31{outline-color:currentColor}
|
|
14
18
|
._12y3idpf{outline-width:0}
|
|
15
19
|
._16jlkb7n{flex-grow:1}
|
|
@@ -9,11 +9,13 @@ import { getStyleProps } from '../get-style-props';
|
|
|
9
9
|
import { cleanCommonProps } from '../internal/clean-common-props';
|
|
10
10
|
const inputStylesOld = {
|
|
11
11
|
root: "_16jlkb7n _1o9zkb7n _i0dl1wug _nd5l1sux _1mouv77o _195gv77o _1rjcv77o _1e0c1n7u _yv0e12qd _syazi7uo _j8d6idpf _1av2idpf _1doyidpf _pfztidpf _uoe3idpf _1recidpf _70xridpf _1k96idpf _eq43idpf _1h9u1kw7 _ckog1yjy _1x651r31 _1nn4glyw _1rzeidpf _1yd8yh40 _aetr11ps _uy7x15vq _1qjlqvpr",
|
|
12
|
-
disabled: "_3um015vq"
|
|
12
|
+
disabled: "_3um015vq",
|
|
13
|
+
labellingFFStyles: "_11c8wadc _1mouze3t _195gze3t _1rjcze3t"
|
|
13
14
|
};
|
|
14
15
|
const inputStyles = {
|
|
15
16
|
root: "_16jlkb7n _1o9zkb7n _i0dl1wug _nd5l1sux _1mouv77o _195gv77o _1rjcv77o _kqswh2mm _1e0c1txw _yv0e12qd _syazi7uo _j8d6idpf _1av2idpf _1doyidpf _pfztidpf _uoe3idpf _1recidpf _70xridpf _1k96idpf _eq43idpf _1h9u1kw7 _ckog1yjy _1x651r31 _1nn4glyw _1rzeidpf _1yd8yh40 _aetr11ps _uy7x15vq _1qjlqvpr",
|
|
16
|
-
disabled: "_3um015vq"
|
|
17
|
+
disabled: "_3um015vq",
|
|
18
|
+
labellingFFStyles: "_11c8wadc _1mouze3t _195gze3t _1rjcze3t"
|
|
17
19
|
};
|
|
18
20
|
const nativeInputStylesOld = null;
|
|
19
21
|
const nativeInputStyles = null;
|
|
@@ -22,7 +24,8 @@ const Input = props => {
|
|
|
22
24
|
const {
|
|
23
25
|
cx: builtinCX,
|
|
24
26
|
value,
|
|
25
|
-
xcss
|
|
27
|
+
xcss,
|
|
28
|
+
isMulti
|
|
26
29
|
} = props;
|
|
27
30
|
const {
|
|
28
31
|
innerRef,
|
|
@@ -39,13 +42,14 @@ const Input = props => {
|
|
|
39
42
|
} = getStyleProps(props, 'input', {
|
|
40
43
|
'input-container': true
|
|
41
44
|
});
|
|
45
|
+
const ffTagUplifts = fg('platform-dst-lozenge-tag-badge-visual-uplifts');
|
|
42
46
|
if (fg('platform_fix_input_component_styling')) {
|
|
43
47
|
return /*#__PURE__*/React.createElement("div", {
|
|
44
48
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
45
49
|
style: css
|
|
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
51
|
,
|
|
48
|
-
className: ax([inputStyles.root, isDisabled && inputStyles.disabled, cx(className, xcss, '-Input')]),
|
|
52
|
+
className: ax([inputStyles.root, isMulti && ffTagUplifts && inputStyles.labellingFFStyles, isDisabled && inputStyles.disabled, cx(className, xcss, '-Input')]),
|
|
49
53
|
"data-value": value || '',
|
|
50
54
|
"data-testid": dataId && `${dataId}-container`
|
|
51
55
|
}, /*#__PURE__*/React.createElement("input", _extends({
|
|
@@ -63,7 +67,7 @@ const Input = props => {
|
|
|
63
67
|
style: css
|
|
64
68
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/local-cx-xcss, @compiled/local-cx-xcss
|
|
65
69
|
,
|
|
66
|
-
className: ax([inputStylesOld.root, isDisabled && inputStylesOld.disabled, cx(className, xcss, '-Input')]),
|
|
70
|
+
className: ax([inputStylesOld.root, isMulti && ffTagUplifts && inputStylesOld.labellingFFStyles, isDisabled && inputStylesOld.disabled, cx(className, xcss, '-Input')]),
|
|
67
71
|
"data-value": value || '',
|
|
68
72
|
"data-testid": dataId && `${dataId}-container`
|
|
69
73
|
}, /*#__PURE__*/React.createElement("input", _extends({
|
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
._2a9v1kw7 *{font:inherit}
|
|
4
4
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
5
5
|
._189ee4h9{border-width:var(--ds-border-width,1px)}
|
|
6
|
-
.
|
|
7
|
-
._195gv77o{margin-inline:var(--ds-space-025,2px)}
|
|
6
|
+
._195gze3t{margin-inline:var(--ds-space-0,0)}
|
|
8
7
|
._1dqonqa1{border-style:solid}
|
|
9
8
|
._1h6dpryq{border-color:color-mix(in oklch,var(--tag-border-token) 100%,var(--cm-border-color) var(--cm-border-value))}
|
|
10
|
-
.
|
|
9
|
+
._1mouze3t{margin-block:var(--ds-space-0,0)}._119b16y8{--tag-border-token:var(--ds-border-accent-red,#e2483d)}
|
|
11
10
|
._119b1b2s{--tag-border-token:var(--ds-border-accent-orange,#e06c00)}
|
|
12
11
|
._119b1crs{--tag-border-token:var(--ds-border-accent-green,#22a06b)}
|
|
13
12
|
._119b1h3o{--tag-border-token:var(--ds-border-accent-teal,#2898bd)}
|
|
@@ -17,36 +16,40 @@
|
|
|
17
16
|
._119bfeiv{--tag-border-token:var(--ds-border-accent-yellow,#b38600)}
|
|
18
17
|
._119bnf89{--tag-border-token:var(--ds-border-accent-lime,#6a9a23)}
|
|
19
18
|
._119buwd0{--tag-border-token:var(--ds-border-accent-magenta,#cd519d)}
|
|
20
|
-
.
|
|
19
|
+
._13lsf1ug>*{flex-basis:0%}
|
|
21
20
|
._13muu67f{--cm-border-color:#fff}
|
|
22
21
|
._16jlidpf{flex-grow:0}
|
|
22
|
+
._16jlkb7n{flex-grow:1}
|
|
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}
|
|
27
27
|
._1k671038{--border-l-factor:1.33}
|
|
28
28
|
._1o9zkb7n{flex-shrink:1}
|
|
29
|
-
.
|
|
29
|
+
._1ouwze3t>*{min-width:var(--ds-space-0,0)}
|
|
30
30
|
._1reo15vq{overflow-x:hidden}
|
|
31
31
|
._1tkeidpf{min-height:0}
|
|
32
|
-
._1ul9idpf{min-width:0}
|
|
33
32
|
._1ul9ze3t{min-width:var(--ds-space-0,0)}
|
|
33
|
+
._1wpz1h6o{align-self:center}
|
|
34
|
+
._3pxh1h6o>*{align-items:center}
|
|
34
35
|
._4cvr1h6o{align-items:center}
|
|
35
36
|
._4t3i1k92{height:1.25rem}
|
|
36
|
-
._6rthv77o{margin-block-end:var(--ds-space-025,2px)}
|
|
37
37
|
._80om73ad{cursor:default}
|
|
38
38
|
._bfhk1dpa{background-color:var(--ds-background-neutral-subtle-hovered,#0515240f)}
|
|
39
39
|
._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
|
|
40
40
|
._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
|
|
41
|
+
._d0dz1txw>*{display:flex}
|
|
41
42
|
._i0dl1wug{flex-basis:auto}
|
|
43
|
+
._i0dlf1ug{flex-basis:0%}
|
|
42
44
|
._kqswh2mm{position:relative}
|
|
43
45
|
._oe6mmko7{--cm-border-value:45%}
|
|
44
|
-
._p12f1osq{max-width:100%}
|
|
45
46
|
._p12ff6dh{max-width:11.25rem}
|
|
46
47
|
._syaz1gmx{color:var(--ds-text-disabled,#080f214a)}
|
|
47
48
|
._syaz6x5g{color:var(--ds-text-selected,#1868db)}
|
|
48
49
|
._syazi7uo{color:var(--ds-text,#292a2e)}
|
|
50
|
+
._v5ynkb7n>*{flex-shrink:1}
|
|
49
51
|
._vchhusvi{box-sizing:border-box}
|
|
52
|
+
._zdxokb7n>*{flex-grow:1}
|
|
50
53
|
[data-color-mode=dark] ._hg5mr3uz{--cm-border-color:#000}
|
|
51
54
|
[data-color-mode=dark] ._u8p61h4e{--border-l-factor:0.7}
|
|
52
55
|
@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}}
|
|
@@ -8,11 +8,8 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
8
8
|
import Tag from '@atlaskit/tag';
|
|
9
9
|
import { getStyleProps } from '../get-style-props';
|
|
10
10
|
import { MultiValueLabel } from './multi-value-label';
|
|
11
|
-
// Tag wrapper: Tag has built-in margin; cancel the inline margin so we control spacing
|
|
12
|
-
const tagMarginToken = "var(--ds-space-050, 4px)";
|
|
13
11
|
const multiValueTagWrapperStyles = {
|
|
14
|
-
root: "_1e0c1txw _1ul9ze3t
|
|
15
|
-
inner: "_195g8ily"
|
|
12
|
+
root: "_16jlidpf _1o9zkb7n _i0dl1wug _1mouze3t _195gze3t _4cvr1h6o _1e0c1txw _1ul9ze3t _zdxokb7n _v5ynkb7n _13lsf1ug _3pxh1h6o _d0dz1txw _1ouwze3t"
|
|
16
13
|
};
|
|
17
14
|
|
|
18
15
|
// Tag-like color styles
|
|
@@ -37,8 +34,8 @@ const tagLikeBorderFilterStyles = null;
|
|
|
37
34
|
// The container uses tag-like styling while Label/Remove sub-components are preserved
|
|
38
35
|
// so custom overrides (e.g. custom aria-labels, rendering objects as data) continue to work.
|
|
39
36
|
const multiValueTagLikeStyles = {
|
|
40
|
-
root: "_1reo15vq _18m915vq _2rko12b0 _11c8wadc
|
|
41
|
-
labelWrapper: "
|
|
37
|
+
root: "_1reo15vq _18m915vq _2rko12b0 _11c8wadc _1dqonqa1 _189ee4h9 _1mouze3t _195gze3t _1e0c116y _vchhusvi _kqswh2mm _4cvr1h6o _1wpz1h6o _1ul9ze3t _1o9zkb7n _p12ff6dh _4t3i1k92 _bfhksm61 _syazi7uo _80om73ad _3yq3glyw",
|
|
38
|
+
labelWrapper: "_16jlkb7n _1o9zkb7n _i0dlf1ug _1reo15vq _18m915vq _11c8wadc _1e0c1txw _4cvr1h6o _1ul9ze3t _1tkeidpf _2a9v1kw7",
|
|
42
39
|
disabled: "_syaz1gmx _bfhki8nm",
|
|
43
40
|
focused: "_syaz6x5g _bfhk1dpa _16qs1xv8 _1aewe4h9 _6up51j28 _1xdnnqa1"
|
|
44
41
|
};
|
|
@@ -89,6 +86,7 @@ const MultiValue = props => {
|
|
|
89
86
|
'multi-value__remove': true
|
|
90
87
|
});
|
|
91
88
|
const hasCustomLabel = Label !== MultiValueLabel;
|
|
89
|
+
// Plain labels: use Tag with fillContainer so it truncates like tag-like structure.
|
|
92
90
|
if (ffTagUplifts && isPlainLabel && !hasCustomLabel) {
|
|
93
91
|
const {
|
|
94
92
|
elemBefore,
|
|
@@ -97,9 +95,7 @@ const MultiValue = props => {
|
|
|
97
95
|
return /*#__PURE__*/React.createElement("div", _extends({}, innerProps, {
|
|
98
96
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/local-cx-xcss, @compiled/local-cx-xcss
|
|
99
97
|
className: ax([multiValueTagWrapperStyles.root, cx(props.className, containerClassName, props.xcss, '-multiValue')])
|
|
100
|
-
}), /*#__PURE__*/React.createElement(
|
|
101
|
-
className: ax([multiValueTagWrapperStyles.inner])
|
|
102
|
-
}, /*#__PURE__*/React.createElement(Tag, {
|
|
98
|
+
}), /*#__PURE__*/React.createElement(Tag, {
|
|
103
99
|
text: labelText,
|
|
104
100
|
isRemovable: !isDisabled,
|
|
105
101
|
removeButtonLabel: `${labelText}, remove`,
|
|
@@ -109,12 +105,12 @@ const MultiValue = props => {
|
|
|
109
105
|
return false;
|
|
110
106
|
},
|
|
111
107
|
color: tagColor !== null && tagColor !== void 0 ? tagColor : 'gray',
|
|
112
|
-
elemBefore: elemBefore
|
|
113
|
-
|
|
108
|
+
elemBefore: elemBefore,
|
|
109
|
+
hasMargin: false
|
|
110
|
+
}));
|
|
114
111
|
}
|
|
115
112
|
|
|
116
|
-
// FF on + custom content
|
|
117
|
-
// Label and Remove components so custom overrides continue to work.
|
|
113
|
+
// FF on + custom content → tag-like path
|
|
118
114
|
if (ffTagUplifts) {
|
|
119
115
|
const colorKey = data === null || data === void 0 ? void 0 : data.color;
|
|
120
116
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
._11c81d4k{font:var(--ds-font-body-large,normal 400 1pc/24px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._zulp1b66{gap:var(--ds-space-050,4px)}
|
|
2
3
|
._16jlkb7n{flex-grow:1}
|
|
3
4
|
._18m915vq{overflow-y:hidden}
|
|
4
5
|
._1e0c11p5{display:grid}
|
|
@@ -7,12 +8,14 @@
|
|
|
7
8
|
._1n261g80{flex-wrap:wrap}
|
|
8
9
|
._1o9zidpf{flex-shrink:0}
|
|
9
10
|
._1o9zkb7n{flex-shrink:1}
|
|
11
|
+
._1q511b66{padding-block-start:var(--ds-space-050,4px)}
|
|
10
12
|
._1q51v77o{padding-block-start:var(--ds-space-025,2px)}
|
|
11
13
|
._1q51ze3t{padding-block-start:var(--ds-space-0,0)}
|
|
12
14
|
._1reo15vq{overflow-x:hidden}
|
|
13
15
|
._1wpz1fhb{align-self:stretch}
|
|
14
16
|
._4cvr1h6o{align-items:center}
|
|
15
17
|
._80om13gf{cursor:not-allowed}
|
|
18
|
+
._85i51b66{padding-block-end:var(--ds-space-050,4px)}
|
|
16
19
|
._85i5v77o{padding-block-end:var(--ds-space-025,2px)}
|
|
17
20
|
._85i5ze3t{padding-block-end:var(--ds-space-0,0)}
|
|
18
21
|
._8am5i4x0{-webkit-overflow-scrolling:touch}
|
|
@@ -4,6 +4,7 @@ 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';
|
|
7
8
|
import { getStyleProps } from '../../get-style-props';
|
|
8
9
|
|
|
9
10
|
// ==============================
|
|
@@ -48,9 +49,13 @@ export var SelectContainer = function SelectContainer(props) {
|
|
|
48
49
|
// ==============================
|
|
49
50
|
|
|
50
51
|
var valueContainerStyles = {
|
|
51
|
-
default: "_16jlkb7n _1o9zkb7n _i0dlf1ug _1reo15vq _18m915vq _4cvr1h6o _1e0c11p5 _1n261g80 _8am5i4x0 _kqswh2mm
|
|
52
|
+
default: "_16jlkb7n _1o9zkb7n _i0dlf1ug _1reo15vq _18m915vq _4cvr1h6o _1e0c11p5 _1n261g80 _8am5i4x0 _kqswh2mm _y4ti12x7 _bozg12x7",
|
|
53
|
+
verticalPaddingStandard: "_1q51v77o _85i5v77o",
|
|
54
|
+
verticalPaddingTagUpliftMulti: "_1q511b66 _85i51b66",
|
|
55
|
+
verticalPaddingTagUpliftCompactMulti: "_1q51v77o _85i5v77o",
|
|
56
|
+
verticalPaddingCompactNonUplift: "_1q51ze3t _85i5ze3t",
|
|
52
57
|
flex: "_1e0c1txw",
|
|
53
|
-
|
|
58
|
+
flexWithGap: "_zulp1b66 _1e0c1txw _1n261g80"
|
|
54
59
|
};
|
|
55
60
|
|
|
56
61
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -69,9 +74,12 @@ export var ValueContainer = function ValueContainer(props) {
|
|
|
69
74
|
}),
|
|
70
75
|
css = _getStyleProps2.css,
|
|
71
76
|
className = _getStyleProps2.className;
|
|
77
|
+
var ffTagUplifts = fg('platform-dst-lozenge-tag-badge-visual-uplifts');
|
|
78
|
+
var tagUpliftMultiVertical = ffTagUplifts && isMulti;
|
|
79
|
+
var tagUpliftChipRow = ffTagUplifts && isMulti && hasValue && controlShouldRenderValue;
|
|
72
80
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
73
81
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/local-cx-xcss, @compiled/local-cx-xcss
|
|
74
|
-
className: ax([valueContainerStyles.default, isMulti && hasValue && controlShouldRenderValue && valueContainerStyles.flex,
|
|
82
|
+
className: ax([valueContainerStyles.default, tagUpliftMultiVertical && isCompact && valueContainerStyles.verticalPaddingTagUpliftCompactMulti, tagUpliftMultiVertical && !isCompact && valueContainerStyles.verticalPaddingTagUpliftMulti, !tagUpliftMultiVertical && !isCompact && valueContainerStyles.verticalPaddingStandard, !tagUpliftMultiVertical && isCompact && valueContainerStyles.verticalPaddingCompactNonUplift, isMulti && hasValue && controlShouldRenderValue && valueContainerStyles.flex, tagUpliftChipRow && valueContainerStyles.flexWithGap, cx(className, xcss, '-ValueContainer')])
|
|
75
83
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
76
84
|
,
|
|
77
85
|
style: css
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
._zulp1b66{gap:var(--ds-space-050,4px)}._16jlkb7n{flex-grow:1}
|
|
2
3
|
._18m915vq{overflow-y:hidden}
|
|
3
4
|
._1e0c11p5{display:grid}
|
|
4
5
|
._1e0c1txw{display:flex}
|
|
5
6
|
._1n261g80{flex-wrap:wrap}
|
|
6
7
|
._1o9zkb7n{flex-shrink:1}
|
|
8
|
+
._1q511b66{padding-block-start:var(--ds-space-050,4px)}
|
|
7
9
|
._1q51v77o{padding-block-start:var(--ds-space-025,2px)}
|
|
8
10
|
._1q51ze3t{padding-block-start:var(--ds-space-0,0)}
|
|
9
11
|
._1reo15vq{overflow-x:hidden}
|
|
10
12
|
._4cvr1h6o{align-items:center}
|
|
13
|
+
._85i51b66{padding-block-end:var(--ds-space-050,4px)}
|
|
11
14
|
._85i5v77o{padding-block-end:var(--ds-space-025,2px)}
|
|
12
15
|
._85i5ze3t{padding-block-end:var(--ds-space-0,0)}
|
|
13
16
|
._8am5i4x0{-webkit-overflow-scrolling:touch}
|
|
@@ -4,11 +4,16 @@ import "./value-container.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';
|
|
7
8
|
import { getStyleProps } from '../../get-style-props';
|
|
8
9
|
var valueContainerStyles = {
|
|
9
|
-
default: "_16jlkb7n _1o9zkb7n _i0dlf1ug _1reo15vq _18m915vq _4cvr1h6o _1e0c11p5 _1n261g80 _8am5i4x0 _kqswh2mm
|
|
10
|
+
default: "_16jlkb7n _1o9zkb7n _i0dlf1ug _1reo15vq _18m915vq _4cvr1h6o _1e0c11p5 _1n261g80 _8am5i4x0 _kqswh2mm _y4ti12x7 _bozg12x7",
|
|
11
|
+
verticalPaddingStandard: "_1q51v77o _85i5v77o",
|
|
12
|
+
verticalPaddingTagUpliftMulti: "_1q511b66 _85i51b66",
|
|
13
|
+
verticalPaddingTagUpliftCompactMulti: "_1q51v77o _85i5v77o",
|
|
14
|
+
verticalPaddingCompactNonUplift: "_1q51ze3t _85i5ze3t",
|
|
10
15
|
flex: "_1e0c1txw",
|
|
11
|
-
|
|
16
|
+
flexWithGap: "_zulp1b66 _1e0c1txw _1n261g80"
|
|
12
17
|
};
|
|
13
18
|
|
|
14
19
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -27,9 +32,12 @@ export var ValueContainer = function ValueContainer(props) {
|
|
|
27
32
|
}),
|
|
28
33
|
css = _getStyleProps.css,
|
|
29
34
|
className = _getStyleProps.className;
|
|
35
|
+
var ffTagUplifts = fg('platform-dst-lozenge-tag-badge-visual-uplifts');
|
|
36
|
+
var tagUpliftMultiVertical = ffTagUplifts && isMulti;
|
|
37
|
+
var tagUpliftChipRow = ffTagUplifts && isMulti && hasValue && controlShouldRenderValue;
|
|
30
38
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
31
39
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/local-cx-xcss, @compiled/local-cx-xcss
|
|
32
|
-
className: ax([valueContainerStyles.default, isMulti && hasValue && controlShouldRenderValue && valueContainerStyles.flex,
|
|
40
|
+
className: ax([valueContainerStyles.default, tagUpliftMultiVertical && isCompact && valueContainerStyles.verticalPaddingTagUpliftCompactMulti, tagUpliftMultiVertical && !isCompact && valueContainerStyles.verticalPaddingTagUpliftMulti, !tagUpliftMultiVertical && !isCompact && valueContainerStyles.verticalPaddingStandard, !tagUpliftMultiVertical && isCompact && valueContainerStyles.verticalPaddingCompactNonUplift, isMulti && hasValue && controlShouldRenderValue && valueContainerStyles.flex, tagUpliftChipRow && valueContainerStyles.flexWithGap, cx(className, xcss, '-ValueContainer')])
|
|
33
41
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
34
42
|
,
|
|
35
43
|
style: css
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
._11c81kw7{font:inherit}
|
|
2
|
+
._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
3
|
._11q7idpf{background:0}
|
|
3
4
|
._19itidpf{border:0}
|
|
4
5
|
._1h9u1kw7:after{font:inherit}
|
|
@@ -8,8 +9,11 @@
|
|
|
8
9
|
._nd5l1sux{grid-area:1/1/2/3}
|
|
9
10
|
._nd5l1yjy{grid-area:1/2}
|
|
10
11
|
._195gv77o{margin-inline:var(--ds-space-025,2px)}
|
|
12
|
+
._195gze3t{margin-inline:var(--ds-space-0,0)}
|
|
11
13
|
._1mouv77o{margin-block:var(--ds-space-025,2px)}
|
|
14
|
+
._1mouze3t{margin-block:var(--ds-space-0,0)}
|
|
12
15
|
._1rjcv77o{padding-block:var(--ds-space-025,2px)}
|
|
16
|
+
._1rjcze3t{padding-block:var(--ds-space-0,0)}
|
|
13
17
|
._12ji1r31{outline-color:currentColor}
|
|
14
18
|
._12y3idpf{outline-width:0}
|
|
15
19
|
._16jlkb7n{flex-grow:1}
|
|
@@ -11,11 +11,13 @@ import { getStyleProps } from '../get-style-props';
|
|
|
11
11
|
import { cleanCommonProps } from '../internal/clean-common-props';
|
|
12
12
|
var inputStylesOld = {
|
|
13
13
|
root: "_16jlkb7n _1o9zkb7n _i0dl1wug _nd5l1sux _1mouv77o _195gv77o _1rjcv77o _1e0c1n7u _yv0e12qd _syazi7uo _j8d6idpf _1av2idpf _1doyidpf _pfztidpf _uoe3idpf _1recidpf _70xridpf _1k96idpf _eq43idpf _1h9u1kw7 _ckog1yjy _1x651r31 _1nn4glyw _1rzeidpf _1yd8yh40 _aetr11ps _uy7x15vq _1qjlqvpr",
|
|
14
|
-
disabled: "_3um015vq"
|
|
14
|
+
disabled: "_3um015vq",
|
|
15
|
+
labellingFFStyles: "_11c8wadc _1mouze3t _195gze3t _1rjcze3t"
|
|
15
16
|
};
|
|
16
17
|
var inputStyles = {
|
|
17
18
|
root: "_16jlkb7n _1o9zkb7n _i0dl1wug _nd5l1sux _1mouv77o _195gv77o _1rjcv77o _kqswh2mm _1e0c1txw _yv0e12qd _syazi7uo _j8d6idpf _1av2idpf _1doyidpf _pfztidpf _uoe3idpf _1recidpf _70xridpf _1k96idpf _eq43idpf _1h9u1kw7 _ckog1yjy _1x651r31 _1nn4glyw _1rzeidpf _1yd8yh40 _aetr11ps _uy7x15vq _1qjlqvpr",
|
|
18
|
-
disabled: "_3um015vq"
|
|
19
|
+
disabled: "_3um015vq",
|
|
20
|
+
labellingFFStyles: "_11c8wadc _1mouze3t _195gze3t _1rjcze3t"
|
|
19
21
|
};
|
|
20
22
|
var nativeInputStylesOld = null;
|
|
21
23
|
var nativeInputStyles = null;
|
|
@@ -23,7 +25,8 @@ var hidden = null;
|
|
|
23
25
|
var Input = function Input(props) {
|
|
24
26
|
var builtinCX = props.cx,
|
|
25
27
|
value = props.value,
|
|
26
|
-
xcss = props.xcss
|
|
28
|
+
xcss = props.xcss,
|
|
29
|
+
isMulti = props.isMulti;
|
|
27
30
|
var _cleanCommonProps = cleanCommonProps(props),
|
|
28
31
|
innerRef = _cleanCommonProps.innerRef,
|
|
29
32
|
isDisabled = _cleanCommonProps.isDisabled,
|
|
@@ -37,13 +40,14 @@ var Input = function Input(props) {
|
|
|
37
40
|
}),
|
|
38
41
|
css = _getStyleProps.css,
|
|
39
42
|
className = _getStyleProps.className;
|
|
43
|
+
var ffTagUplifts = fg('platform-dst-lozenge-tag-badge-visual-uplifts');
|
|
40
44
|
if (fg('platform_fix_input_component_styling')) {
|
|
41
45
|
return /*#__PURE__*/React.createElement("div", {
|
|
42
46
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
43
47
|
style: css
|
|
44
48
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/local-cx-xcss, @compiled/local-cx-xcss
|
|
45
49
|
,
|
|
46
|
-
className: ax([inputStyles.root, isDisabled && inputStyles.disabled, cx(className, xcss, '-Input')]),
|
|
50
|
+
className: ax([inputStyles.root, isMulti && ffTagUplifts && inputStyles.labellingFFStyles, isDisabled && inputStyles.disabled, cx(className, xcss, '-Input')]),
|
|
47
51
|
"data-value": value || '',
|
|
48
52
|
"data-testid": dataId && "".concat(dataId, "-container")
|
|
49
53
|
}, /*#__PURE__*/React.createElement("input", _extends({
|
|
@@ -61,7 +65,7 @@ var Input = function Input(props) {
|
|
|
61
65
|
style: css
|
|
62
66
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/local-cx-xcss, @compiled/local-cx-xcss
|
|
63
67
|
,
|
|
64
|
-
className: ax([inputStylesOld.root, isDisabled && inputStylesOld.disabled, cx(className, xcss, '-Input')]),
|
|
68
|
+
className: ax([inputStylesOld.root, isMulti && ffTagUplifts && inputStylesOld.labellingFFStyles, isDisabled && inputStylesOld.disabled, cx(className, xcss, '-Input')]),
|
|
65
69
|
"data-value": value || '',
|
|
66
70
|
"data-testid": dataId && "".concat(dataId, "-container")
|
|
67
71
|
}, /*#__PURE__*/React.createElement("input", _extends({
|
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
._2a9v1kw7 *{font:inherit}
|
|
4
4
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
5
5
|
._189ee4h9{border-width:var(--ds-border-width,1px)}
|
|
6
|
-
.
|
|
7
|
-
._195gv77o{margin-inline:var(--ds-space-025,2px)}
|
|
6
|
+
._195gze3t{margin-inline:var(--ds-space-0,0)}
|
|
8
7
|
._1dqonqa1{border-style:solid}
|
|
9
8
|
._1h6dpryq{border-color:color-mix(in oklch,var(--tag-border-token) 100%,var(--cm-border-color) var(--cm-border-value))}
|
|
10
|
-
.
|
|
9
|
+
._1mouze3t{margin-block:var(--ds-space-0,0)}._119b16y8{--tag-border-token:var(--ds-border-accent-red,#e2483d)}
|
|
11
10
|
._119b1b2s{--tag-border-token:var(--ds-border-accent-orange,#e06c00)}
|
|
12
11
|
._119b1crs{--tag-border-token:var(--ds-border-accent-green,#22a06b)}
|
|
13
12
|
._119b1h3o{--tag-border-token:var(--ds-border-accent-teal,#2898bd)}
|
|
@@ -17,36 +16,40 @@
|
|
|
17
16
|
._119bfeiv{--tag-border-token:var(--ds-border-accent-yellow,#b38600)}
|
|
18
17
|
._119bnf89{--tag-border-token:var(--ds-border-accent-lime,#6a9a23)}
|
|
19
18
|
._119buwd0{--tag-border-token:var(--ds-border-accent-magenta,#cd519d)}
|
|
20
|
-
.
|
|
19
|
+
._13lsf1ug>*{flex-basis:0%}
|
|
21
20
|
._13muu67f{--cm-border-color:#fff}
|
|
22
21
|
._16jlidpf{flex-grow:0}
|
|
22
|
+
._16jlkb7n{flex-grow:1}
|
|
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}
|
|
27
27
|
._1k671038{--border-l-factor:1.33}
|
|
28
28
|
._1o9zkb7n{flex-shrink:1}
|
|
29
|
-
.
|
|
29
|
+
._1ouwze3t>*{min-width:var(--ds-space-0,0)}
|
|
30
30
|
._1reo15vq{overflow-x:hidden}
|
|
31
31
|
._1tkeidpf{min-height:0}
|
|
32
|
-
._1ul9idpf{min-width:0}
|
|
33
32
|
._1ul9ze3t{min-width:var(--ds-space-0,0)}
|
|
33
|
+
._1wpz1h6o{align-self:center}
|
|
34
|
+
._3pxh1h6o>*{align-items:center}
|
|
34
35
|
._4cvr1h6o{align-items:center}
|
|
35
36
|
._4t3i1k92{height:1.25rem}
|
|
36
|
-
._6rthv77o{margin-block-end:var(--ds-space-025,2px)}
|
|
37
37
|
._80om73ad{cursor:default}
|
|
38
38
|
._bfhk1dpa{background-color:var(--ds-background-neutral-subtle-hovered,#0515240f)}
|
|
39
39
|
._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
|
|
40
40
|
._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
|
|
41
|
+
._d0dz1txw>*{display:flex}
|
|
41
42
|
._i0dl1wug{flex-basis:auto}
|
|
43
|
+
._i0dlf1ug{flex-basis:0%}
|
|
42
44
|
._kqswh2mm{position:relative}
|
|
43
45
|
._oe6mmko7{--cm-border-value:45%}
|
|
44
|
-
._p12f1osq{max-width:100%}
|
|
45
46
|
._p12ff6dh{max-width:11.25rem}
|
|
46
47
|
._syaz1gmx{color:var(--ds-text-disabled,#080f214a)}
|
|
47
48
|
._syaz6x5g{color:var(--ds-text-selected,#1868db)}
|
|
48
49
|
._syazi7uo{color:var(--ds-text,#292a2e)}
|
|
50
|
+
._v5ynkb7n>*{flex-shrink:1}
|
|
49
51
|
._vchhusvi{box-sizing:border-box}
|
|
52
|
+
._zdxokb7n>*{flex-grow:1}
|
|
50
53
|
[data-color-mode=dark] ._hg5mr3uz{--cm-border-color:#000}
|
|
51
54
|
[data-color-mode=dark] ._u8p61h4e{--border-l-factor:0.7}
|
|
52
55
|
@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}}
|
|
@@ -11,11 +11,8 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
11
11
|
import Tag from '@atlaskit/tag';
|
|
12
12
|
import { getStyleProps } from '../get-style-props';
|
|
13
13
|
import { MultiValueLabel } from './multi-value-label';
|
|
14
|
-
// Tag wrapper: Tag has built-in margin; cancel the inline margin so we control spacing
|
|
15
|
-
var tagMarginToken = "var(--ds-space-050, 4px)";
|
|
16
14
|
var multiValueTagWrapperStyles = {
|
|
17
|
-
root: "_1e0c1txw _1ul9ze3t
|
|
18
|
-
inner: "_195g8ily"
|
|
15
|
+
root: "_16jlidpf _1o9zkb7n _i0dl1wug _1mouze3t _195gze3t _4cvr1h6o _1e0c1txw _1ul9ze3t _zdxokb7n _v5ynkb7n _13lsf1ug _3pxh1h6o _d0dz1txw _1ouwze3t"
|
|
19
16
|
};
|
|
20
17
|
|
|
21
18
|
// Tag-like color styles
|
|
@@ -40,8 +37,8 @@ var tagLikeBorderFilterStyles = null;
|
|
|
40
37
|
// The container uses tag-like styling while Label/Remove sub-components are preserved
|
|
41
38
|
// so custom overrides (e.g. custom aria-labels, rendering objects as data) continue to work.
|
|
42
39
|
var multiValueTagLikeStyles = {
|
|
43
|
-
root: "_1reo15vq _18m915vq _2rko12b0 _11c8wadc
|
|
44
|
-
labelWrapper: "
|
|
40
|
+
root: "_1reo15vq _18m915vq _2rko12b0 _11c8wadc _1dqonqa1 _189ee4h9 _1mouze3t _195gze3t _1e0c116y _vchhusvi _kqswh2mm _4cvr1h6o _1wpz1h6o _1ul9ze3t _1o9zkb7n _p12ff6dh _4t3i1k92 _bfhksm61 _syazi7uo _80om73ad _3yq3glyw",
|
|
41
|
+
labelWrapper: "_16jlkb7n _1o9zkb7n _i0dlf1ug _1reo15vq _18m915vq _11c8wadc _1e0c1txw _4cvr1h6o _1ul9ze3t _1tkeidpf _2a9v1kw7",
|
|
45
42
|
disabled: "_syaz1gmx _bfhki8nm",
|
|
46
43
|
focused: "_syaz6x5g _bfhk1dpa _16qs1xv8 _1aewe4h9 _6up51j28 _1xdnnqa1"
|
|
47
44
|
};
|
|
@@ -85,6 +82,7 @@ var MultiValue = function MultiValue(props) {
|
|
|
85
82
|
removeCss = _getStyleProps3.css,
|
|
86
83
|
removeClassName = _getStyleProps3.className;
|
|
87
84
|
var hasCustomLabel = Label !== MultiValueLabel;
|
|
85
|
+
// Plain labels: use Tag with fillContainer so it truncates like tag-like structure.
|
|
88
86
|
if (ffTagUplifts && isPlainLabel && !hasCustomLabel) {
|
|
89
87
|
var _ref = data !== null && data !== void 0 ? data : {},
|
|
90
88
|
elemBefore = _ref.elemBefore,
|
|
@@ -92,9 +90,7 @@ var MultiValue = function MultiValue(props) {
|
|
|
92
90
|
return /*#__PURE__*/React.createElement("div", _extends({}, innerProps, {
|
|
93
91
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/local-cx-xcss, @compiled/local-cx-xcss
|
|
94
92
|
className: ax([multiValueTagWrapperStyles.root, cx(props.className, containerClassName, props.xcss, '-multiValue')])
|
|
95
|
-
}), /*#__PURE__*/React.createElement(
|
|
96
|
-
className: ax([multiValueTagWrapperStyles.inner])
|
|
97
|
-
}, /*#__PURE__*/React.createElement(Tag, {
|
|
93
|
+
}), /*#__PURE__*/React.createElement(Tag, {
|
|
98
94
|
text: labelText,
|
|
99
95
|
isRemovable: !isDisabled,
|
|
100
96
|
removeButtonLabel: "".concat(labelText, ", remove"),
|
|
@@ -104,12 +100,12 @@ var MultiValue = function MultiValue(props) {
|
|
|
104
100
|
return false;
|
|
105
101
|
},
|
|
106
102
|
color: tagColor !== null && tagColor !== void 0 ? tagColor : 'gray',
|
|
107
|
-
elemBefore: elemBefore
|
|
108
|
-
|
|
103
|
+
elemBefore: elemBefore,
|
|
104
|
+
hasMargin: false
|
|
105
|
+
}));
|
|
109
106
|
}
|
|
110
107
|
|
|
111
|
-
// FF on + custom content
|
|
112
|
-
// Label and Remove components so custom overrides continue to work.
|
|
108
|
+
// FF on + custom content → tag-like path
|
|
113
109
|
if (ffTagUplifts) {
|
|
114
110
|
var colorKey = data === null || data === void 0 ? void 0 : data.color;
|
|
115
111
|
return /*#__PURE__*/React.createElement("div", _extends({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/react-select",
|
|
3
|
-
"version": "3.15.
|
|
3
|
+
"version": "3.15.3",
|
|
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,13 +21,13 @@
|
|
|
21
21
|
"atlaskit:src": "src/index.tsx",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@atlaskit/ds-lib": "^7.0.0",
|
|
24
|
-
"@atlaskit/icon": "^34.
|
|
24
|
+
"@atlaskit/icon": "^34.2.0",
|
|
25
25
|
"@atlaskit/layering": "^3.6.0",
|
|
26
26
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
27
|
-
"@atlaskit/primitives": "^
|
|
27
|
+
"@atlaskit/primitives": "^19.0.0",
|
|
28
28
|
"@atlaskit/spinner": "^19.1.0",
|
|
29
|
-
"@atlaskit/tag": "^14.
|
|
30
|
-
"@atlaskit/tokens": "^
|
|
29
|
+
"@atlaskit/tag": "^14.10.0",
|
|
30
|
+
"@atlaskit/tokens": "^13.0.0",
|
|
31
31
|
"@babel/runtime": "^7.0.0",
|
|
32
32
|
"@compiled/react": "^0.20.0",
|
|
33
33
|
"@floating-ui/dom": "^1.0.1",
|