@atlaskit/user-picker 10.21.0 → 10.21.2
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/afm-jira/tsconfig.json +63 -0
- package/dist/cjs/analytics.js +1 -1
- package/dist/cjs/components/AddOptionAvatar.js +13 -7
- package/dist/cjs/components/AvatarItemOption.js +18 -12
- package/dist/cjs/components/CustomOption/main.js +5 -2
- package/dist/cjs/components/EmailOption/main.js +5 -2
- package/dist/cjs/components/ExternalUserOption/ExternalAvatarItemOption.js +18 -12
- package/dist/cjs/components/ExternalUserOption/InfoIcon.js +2 -0
- package/dist/cjs/components/ExternalUserOption/SourcesTooltipContent.js +4 -0
- package/dist/cjs/components/ExternalUserOption/main.js +16 -7
- package/dist/cjs/components/GroupOption/main.js +7 -2
- package/dist/cjs/components/Menu.js +4 -2
- package/dist/cjs/components/MultiValue.js +1 -1
- package/dist/cjs/components/PopupControl.js +2 -1
- package/dist/cjs/components/SingleValue.js +4 -0
- package/dist/cjs/components/SingleValueContainer.js +5 -2
- package/dist/cjs/components/TeamOption/main.js +6 -2
- package/dist/cjs/components/UserOption.js +6 -2
- package/dist/cjs/components/UserPicker.js +3 -1
- package/dist/cjs/components/ValueContainerWrapper.js +4 -1
- package/dist/es2019/analytics.js +1 -1
- package/dist/es2019/components/AddOptionAvatar.js +12 -7
- package/dist/es2019/components/AvatarItemOption.js +19 -11
- package/dist/es2019/components/CustomOption/main.js +5 -1
- package/dist/es2019/components/EmailOption/main.js +5 -1
- package/dist/es2019/components/ExternalUserOption/ExternalAvatarItemOption.js +8 -1
- package/dist/es2019/components/ExternalUserOption/InfoIcon.js +1 -0
- package/dist/es2019/components/ExternalUserOption/SourcesTooltipContent.js +3 -0
- package/dist/es2019/components/ExternalUserOption/main.js +17 -6
- package/dist/es2019/components/GroupOption/main.js +8 -1
- package/dist/es2019/components/Menu.js +4 -1
- package/dist/es2019/components/MultiValue.js +1 -0
- package/dist/es2019/components/PopupControl.js +2 -0
- package/dist/es2019/components/SingleValue.js +4 -0
- package/dist/es2019/components/SingleValueContainer.js +5 -1
- package/dist/es2019/components/TeamOption/main.js +6 -1
- package/dist/es2019/components/UserOption.js +6 -1
- package/dist/es2019/components/UserPicker.js +3 -1
- package/dist/es2019/components/ValueContainerWrapper.js +4 -1
- package/dist/esm/analytics.js +1 -1
- package/dist/esm/components/AddOptionAvatar.js +12 -7
- package/dist/esm/components/AvatarItemOption.js +18 -11
- package/dist/esm/components/CustomOption/main.js +5 -1
- package/dist/esm/components/EmailOption/main.js +5 -1
- package/dist/esm/components/ExternalUserOption/ExternalAvatarItemOption.js +18 -11
- package/dist/esm/components/ExternalUserOption/InfoIcon.js +1 -0
- package/dist/esm/components/ExternalUserOption/SourcesTooltipContent.js +3 -0
- package/dist/esm/components/ExternalUserOption/main.js +17 -6
- package/dist/esm/components/GroupOption/main.js +8 -1
- package/dist/esm/components/Menu.js +4 -1
- package/dist/esm/components/MultiValue.js +1 -0
- package/dist/esm/components/PopupControl.js +2 -0
- package/dist/esm/components/SingleValue.js +4 -0
- package/dist/esm/components/SingleValueContainer.js +5 -1
- package/dist/esm/components/TeamOption/main.js +6 -1
- package/dist/esm/components/UserOption.js +6 -1
- package/dist/esm/components/UserPicker.js +3 -1
- package/dist/esm/components/ValueContainerWrapper.js +4 -1
- package/dist/types/components/styles.d.ts +1 -38
- package/dist/types-ts4.5/components/styles.d.ts +1 -38
- package/package.json +99 -99
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/user-picker
|
|
2
2
|
|
|
3
|
+
## 10.21.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#114764](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114764)
|
|
8
|
+
[`ae20dac6e31c4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ae20dac6e31c4) -
|
|
9
|
+
Bump packages to use react-beautiful-dnd@12.2.0
|
|
10
|
+
|
|
11
|
+
## 10.21.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 10.21.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.entry-points.jira.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"target": "es5",
|
|
6
|
+
"outDir": "../../../../../tsDist/@atlaskit__user-picker/app",
|
|
7
|
+
"composite": true,
|
|
8
|
+
"rootDir": "../"
|
|
9
|
+
},
|
|
10
|
+
"include": [
|
|
11
|
+
"../src/**/*.ts",
|
|
12
|
+
"../src/**/*.tsx"
|
|
13
|
+
],
|
|
14
|
+
"exclude": [
|
|
15
|
+
"../src/**/__tests__/*",
|
|
16
|
+
"../src/**/*.test.*",
|
|
17
|
+
"../src/**/test.*"
|
|
18
|
+
],
|
|
19
|
+
"references": [
|
|
20
|
+
{
|
|
21
|
+
"path": "../../../analytics/analytics-next/afm-jira/tsconfig.json"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"path": "../../../design-system/avatar/afm-jira/tsconfig.json"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"path": "../../../design-system/icon/afm-jira/tsconfig.json"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"path": "../../../design-system/logo/afm-jira/tsconfig.json"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"path": "../../../design-system/lozenge/afm-jira/tsconfig.json"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"path": "../../../design-system/popper/afm-jira/tsconfig.json"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"path": "../../../design-system/primitives/afm-jira/tsconfig.json"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"path": "../../../design-system/select/afm-jira/tsconfig.json"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"path": "../../../design-system/spinner/afm-jira/tsconfig.json"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"path": "../../../people-and-teams/teams-avatar/afm-jira/tsconfig.json"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"path": "../../../design-system/theme/afm-jira/tsconfig.json"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"path": "../../../design-system/tokens/afm-jira/tsconfig.json"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"path": "../../../design-system/tooltip/afm-jira/tsconfig.json"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"path": "../../../data/ufo-external/afm-jira/tsconfig.json"
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
}
|
package/dist/cjs/analytics.js
CHANGED
|
@@ -12,7 +12,7 @@ var _utils = require("./components/utils");
|
|
|
12
12
|
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; }
|
|
13
13
|
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; }
|
|
14
14
|
var packageName = "@atlaskit/user-picker";
|
|
15
|
-
var packageVersion = "10.21.
|
|
15
|
+
var packageVersion = "10.21.2";
|
|
16
16
|
var UUID_REGEXP_TEAMS_GROUPS = /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
|
|
17
17
|
var UUID_REGEXP_OLD_AAID = /^[a-fA-F0-9]{1,8}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
|
|
18
18
|
var UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
|
|
@@ -11,9 +11,12 @@ var _react = require("@emotion/react");
|
|
|
11
11
|
var _react2 = _interopRequireDefault(require("react"));
|
|
12
12
|
/** @jsx jsx */
|
|
13
13
|
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
|
+
|
|
14
16
|
var getEmailAvatarWrapperStyle = function getEmailAvatarWrapperStyle(isLozenge) {
|
|
15
17
|
var padding = isLozenge ? "var(--ds-space-0, 0px)" : "var(--ds-space-050, 4px)";
|
|
16
18
|
return (0, _react.css)({
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
17
20
|
padding: padding,
|
|
18
21
|
backgroundColor: "var(--ds-background-neutral, ".concat(_colors.N40, ")"),
|
|
19
22
|
borderRadius: '50%',
|
|
@@ -24,11 +27,14 @@ var getEmailAvatarWrapperStyle = function getEmailAvatarWrapperStyle(isLozenge)
|
|
|
24
27
|
var AddOptionAvatar = exports.AddOptionAvatar = function AddOptionAvatar(_ref) {
|
|
25
28
|
var isLozenge = _ref.isLozenge,
|
|
26
29
|
label = _ref.label;
|
|
27
|
-
return (
|
|
28
|
-
css
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
return (
|
|
31
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
32
|
+
(0, _react.jsx)("div", {
|
|
33
|
+
css: getEmailAvatarWrapperStyle(isLozenge)
|
|
34
|
+
}, (0, _react.jsx)(_email.default, {
|
|
35
|
+
label: label,
|
|
36
|
+
size: isLozenge ? 'small' : 'medium',
|
|
37
|
+
primaryColor: "var(--ds-text-subtle, ".concat(_colors.N500, ")")
|
|
38
|
+
}))
|
|
39
|
+
);
|
|
34
40
|
};
|
|
@@ -14,7 +14,7 @@ var _utils = require("./utils");
|
|
|
14
14
|
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; }
|
|
15
15
|
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; }
|
|
16
16
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
17
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != (0, _typeof2.default)(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } /** @jsx jsx */
|
|
17
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != (0, _typeof2.default)(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
18
|
var AsyncTooltip = /*#__PURE__*/_react.default.lazy(function () {
|
|
19
19
|
return Promise.resolve().then(function () {
|
|
20
20
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_@atlaskit/tooltip" */'@atlaskit/tooltip'));
|
|
@@ -33,7 +33,9 @@ var wrapper = function wrapper(isDisabled) {
|
|
|
33
33
|
outline: 'none',
|
|
34
34
|
margin: 0,
|
|
35
35
|
width: '100%',
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
36
37
|
cursor: isDisabled ? 'not-allowed' : 'pointer',
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
37
39
|
opacity: isDisabled ? "var(--ds-opacity-disabled, 0.4)" : undefined
|
|
38
40
|
});
|
|
39
41
|
};
|
|
@@ -63,6 +65,7 @@ var textWrapper = exports.textWrapper = function textWrapper(color) {
|
|
|
63
65
|
overflow: 'hidden',
|
|
64
66
|
textOverflow: 'ellipsis',
|
|
65
67
|
display: 'inline',
|
|
68
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
66
69
|
color: color
|
|
67
70
|
});
|
|
68
71
|
};
|
|
@@ -87,15 +90,18 @@ var AvatarItemOption = exports.AvatarItemOption = function AvatarItemOption(_ref
|
|
|
87
90
|
}
|
|
88
91
|
return lozenge;
|
|
89
92
|
};
|
|
90
|
-
return (
|
|
91
|
-
css
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
93
|
+
return (
|
|
94
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
95
|
+
(0, _react2.jsx)("span", {
|
|
96
|
+
css: wrapper(isDisabled)
|
|
97
|
+
}, avatar, (0, _react2.jsx)("div", {
|
|
98
|
+
css: optionWrapper
|
|
99
|
+
}, (0, _react2.jsx)("div", null, (0, _react2.jsx)("div", {
|
|
100
|
+
css: getTextStyle()
|
|
101
|
+
}, primaryText), secondaryText && (0, _react2.jsx)("div", {
|
|
102
|
+
css: getTextStyle(true)
|
|
103
|
+
}, secondaryText))), lozenge && (0, _react2.jsx)("div", {
|
|
104
|
+
css: additionalInfo
|
|
105
|
+
}, renderLozenge()))
|
|
106
|
+
);
|
|
101
107
|
};
|
|
@@ -19,7 +19,7 @@ var _AvatarItemOption = require("../AvatarItemOption");
|
|
|
19
19
|
var _HighlightText = require("../HighlightText");
|
|
20
20
|
var _SizeableAvatar = require("../SizeableAvatar");
|
|
21
21
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
22
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
|
|
22
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
23
23
|
var CustomOption = exports.CustomOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
24
24
|
(0, _inherits2.default)(CustomOption, _React$PureComponent);
|
|
25
25
|
var _super = _createSuper(CustomOption);
|
|
@@ -35,7 +35,9 @@ var CustomOption = exports.CustomOption = /*#__PURE__*/function (_React$PureComp
|
|
|
35
35
|
name = _this$props$data.name,
|
|
36
36
|
highlight = _this$props$data.highlight;
|
|
37
37
|
return [(0, _react.jsx)("span", {
|
|
38
|
-
key: "name"
|
|
38
|
+
key: "name"
|
|
39
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
40
|
+
,
|
|
39
41
|
css: (0, _AvatarItemOption.textWrapper)(_this.props.isSelected ? "var(--ds-text-selected, ".concat(_colors.B400, ")") : "var(--ds-text, ".concat(_colors.N800, ")"))
|
|
40
42
|
}, (0, _react.jsx)(_HighlightText.HighlightText, {
|
|
41
43
|
highlights: highlight && highlight.name
|
|
@@ -43,6 +45,7 @@ var CustomOption = exports.CustomOption = /*#__PURE__*/function (_React$PureComp
|
|
|
43
45
|
});
|
|
44
46
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "getBylineComponent", function (isSelected, message) {
|
|
45
47
|
return (0, _react.jsx)("span", {
|
|
48
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
46
49
|
css: (0, _AvatarItemOption.textWrapper)(isSelected ? "var(--ds-text-selected, ".concat(_colors.B400, ")") : "var(--ds-text-subtlest, ".concat(_colors.N200, ")")),
|
|
47
50
|
"data-testid": "user-picker-custom-secondary-text"
|
|
48
51
|
}, message);
|
|
@@ -20,7 +20,7 @@ var _AddOptionAvatar = require("../AddOptionAvatar");
|
|
|
20
20
|
var _AvatarItemOption = require("../AvatarItemOption");
|
|
21
21
|
var _i18n = require("../i18n");
|
|
22
22
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
23
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
|
|
23
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
24
24
|
var getAddEmailMessage = function getAddEmailMessage(validity) {
|
|
25
25
|
return validity === 'POTENTIAL' ? _i18n.messages.continueToAddEmail : _i18n.messages.selectToAddEmail;
|
|
26
26
|
};
|
|
@@ -42,12 +42,15 @@ var EmailOption = exports.EmailOption = /*#__PURE__*/function (_React$PureCompon
|
|
|
42
42
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "renderPrimaryText", function () {
|
|
43
43
|
var id = _this.props.email.id;
|
|
44
44
|
return (0, _react2.jsx)("span", {
|
|
45
|
-
key: "name"
|
|
45
|
+
key: "name"
|
|
46
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
47
|
+
,
|
|
46
48
|
css: (0, _AvatarItemOption.textWrapper)(_this.props.isSelected ? "var(--ds-text-selected, ".concat(_colors.B400, ")") : "var(--ds-text, ".concat(_colors.N800, ")"))
|
|
47
49
|
}, id);
|
|
48
50
|
});
|
|
49
51
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "renderSecondaryText", function (label) {
|
|
50
52
|
return (0, _react2.jsx)("span", {
|
|
53
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
51
54
|
css: (0, _AvatarItemOption.textWrapper)(_this.props.isSelected ? "var(--ds-text-selected, ".concat(_colors.B400, ")") : "var(--ds-text-subtlest, ".concat(_colors.N200, ")")),
|
|
52
55
|
"data-testid": "user-picker-email-secondary-text"
|
|
53
56
|
}, label);
|
|
@@ -9,7 +9,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _colors = require("@atlaskit/theme/colors");
|
|
11
11
|
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; }
|
|
12
|
-
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; } /** @jsx jsx */
|
|
12
|
+
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; } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
13
|
var outerWrapper = function outerWrapper(isDisabled) {
|
|
14
14
|
return (0, _react.css)({
|
|
15
15
|
alignItems: 'center',
|
|
@@ -19,7 +19,9 @@ var outerWrapper = function outerWrapper(isDisabled) {
|
|
|
19
19
|
outline: 'none',
|
|
20
20
|
margin: 0,
|
|
21
21
|
width: '100%',
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
22
23
|
cursor: isDisabled ? 'not-allowed' : 'pointer',
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
23
25
|
opacity: isDisabled ? "var(--ds-opacity-disabled, 0.4)" : undefined
|
|
24
26
|
});
|
|
25
27
|
};
|
|
@@ -50,6 +52,7 @@ var getTextStyle = function getTextStyle(isSecondary) {
|
|
|
50
52
|
secondaryCssArgs: secondaryCssArgs
|
|
51
53
|
}), {}, {
|
|
52
54
|
whiteSpace: 'nowrap',
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
53
56
|
'> span': {
|
|
54
57
|
maxWidth: 'inherit'
|
|
55
58
|
}
|
|
@@ -61,15 +64,18 @@ var ExternalAvatarItemOption = exports.ExternalAvatarItemOption = function Exter
|
|
|
61
64
|
primaryText = _ref.primaryText,
|
|
62
65
|
secondaryText = _ref.secondaryText,
|
|
63
66
|
sourcesInfoTooltip = _ref.sourcesInfoTooltip;
|
|
64
|
-
return (
|
|
65
|
-
css
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
67
|
+
return (
|
|
68
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
69
|
+
(0, _react.jsx)("div", {
|
|
70
|
+
css: outerWrapper(isDisabled)
|
|
71
|
+
}, avatar, (0, _react.jsx)("div", {
|
|
72
|
+
css: detailsWrapper
|
|
73
|
+
}, (0, _react.jsx)("div", {
|
|
74
|
+
css: textSection
|
|
75
|
+
}, (0, _react.jsx)("div", null, (0, _react.jsx)("div", {
|
|
76
|
+
css: getTextStyle()
|
|
77
|
+
}, primaryText)), secondaryText && (0, _react.jsx)("div", null, (0, _react.jsx)("div", {
|
|
78
|
+
css: getTextStyle(true)
|
|
79
|
+
}, secondaryText))), (0, _react.jsx)("div", null, sourcesInfoTooltip)))
|
|
80
|
+
);
|
|
75
81
|
};
|
|
@@ -12,6 +12,8 @@ var _panel = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/panel")
|
|
|
12
12
|
var _colors = require("@atlaskit/theme/colors");
|
|
13
13
|
/** @jsx jsx */
|
|
14
14
|
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
|
+
|
|
15
17
|
var wrapper = (0, _react2.css)({
|
|
16
18
|
display: 'flex'
|
|
17
19
|
});
|
|
@@ -18,10 +18,14 @@ var _i18n = require("../i18n");
|
|
|
18
18
|
var _main = require("./main");
|
|
19
19
|
/** @jsx jsx */
|
|
20
20
|
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
|
+
|
|
21
23
|
var sourcesTooltipContainer = (0, _primitives.xcss)({
|
|
22
24
|
paddingBottom: 'space.050',
|
|
23
25
|
paddingRight: 'space.050'
|
|
24
26
|
});
|
|
27
|
+
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
25
29
|
var sourceWrapper = exports.sourceWrapper = (0, _react2.css)({
|
|
26
30
|
paddingTop: "var(--ds-space-050, 4px)",
|
|
27
31
|
display: 'flex',
|
|
@@ -26,7 +26,8 @@ var _InfoIcon = _interopRequireDefault(require("./InfoIcon"));
|
|
|
26
26
|
var _ExternalAvatarItemOption = require("./ExternalAvatarItemOption");
|
|
27
27
|
var _SourcesTooltipContent = require("./SourcesTooltipContent");
|
|
28
28
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
29
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
|
|
29
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
30
31
|
var imageContainer = exports.imageContainer = (0, _react2.css)({
|
|
31
32
|
height: '16px',
|
|
32
33
|
width: '16px',
|
|
@@ -35,6 +36,8 @@ var imageContainer = exports.imageContainer = (0, _react2.css)({
|
|
|
35
36
|
alignItems: 'center',
|
|
36
37
|
justifyContent: 'center'
|
|
37
38
|
});
|
|
39
|
+
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
38
41
|
var emailDomainWrapper = exports.emailDomainWrapper = (0, _react2.css)({
|
|
39
42
|
fontWeight: 'bold'
|
|
40
43
|
});
|
|
@@ -51,7 +54,9 @@ var ExternalUserOptionImpl = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
51
54
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "getPrimaryText", function () {
|
|
52
55
|
var name = _this.props.user.name;
|
|
53
56
|
return (0, _react2.jsx)("span", {
|
|
54
|
-
key: "name"
|
|
57
|
+
key: "name"
|
|
58
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
59
|
+
,
|
|
55
60
|
css: (0, _AvatarItemOption.textWrapper)(_this.props.isSelected ? "var(--ds-text-selected, ".concat(_colors.B400, ")") : "var(--ds-text, ".concat(_colors.N800, ")"))
|
|
56
61
|
}, name);
|
|
57
62
|
});
|
|
@@ -66,6 +71,7 @@ var ExternalUserOptionImpl = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
66
71
|
|
|
67
72
|
// Render byline if present
|
|
68
73
|
if (byline) {
|
|
74
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
69
75
|
return (0, _react2.jsx)("span", {
|
|
70
76
|
css: (0, _AvatarItemOption.textWrapper)(textColor)
|
|
71
77
|
}, byline);
|
|
@@ -78,11 +84,14 @@ var ExternalUserOptionImpl = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
78
84
|
emailUser = _email$split2[0],
|
|
79
85
|
emailDomain = _email$split2[1];
|
|
80
86
|
var emailDomainWithAt = "@".concat(emailDomain);
|
|
81
|
-
return (
|
|
82
|
-
css
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
87
|
+
return (
|
|
88
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
89
|
+
(0, _react2.jsx)("span", {
|
|
90
|
+
css: (0, _AvatarItemOption.textWrapper)(textColor)
|
|
91
|
+
}, emailUser, (0, _react2.jsx)("span", {
|
|
92
|
+
css: emailDomainWrapper
|
|
93
|
+
}, emailDomainWithAt))
|
|
94
|
+
);
|
|
86
95
|
}
|
|
87
96
|
});
|
|
88
97
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "renderAvatar", function () {
|
|
@@ -21,9 +21,11 @@ var _AvatarItemOption = require("../AvatarItemOption");
|
|
|
21
21
|
var _i18n = require("../i18n");
|
|
22
22
|
var _HighlightText = require("../HighlightText");
|
|
23
23
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
24
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
|
|
24
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
25
26
|
var groupOptionIconWrapper = exports.groupOptionIconWrapper = (0, _react2.css)({
|
|
26
27
|
padding: "var(--ds-space-025, 2px)",
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
27
29
|
'> span': {
|
|
28
30
|
backgroundColor: "var(--ds-background-neutral, ".concat(_colors.N20, ")"),
|
|
29
31
|
borderRadius: '50%',
|
|
@@ -47,7 +49,9 @@ var GroupOption = exports.GroupOption = /*#__PURE__*/function (_React$PureCompon
|
|
|
47
49
|
name = _this$props$group.name,
|
|
48
50
|
highlight = _this$props$group.highlight;
|
|
49
51
|
return [(0, _react2.jsx)("span", {
|
|
50
|
-
key: "name"
|
|
52
|
+
key: "name"
|
|
53
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
54
|
+
,
|
|
51
55
|
css: (0, _AvatarItemOption.textWrapper)(isSelected ? "var(--ds-text-selected, ".concat(_colors.B400, ")") : "var(--ds-text, ".concat(_colors.N800, ")"))
|
|
52
56
|
}, (0, _react2.jsx)(_HighlightText.HighlightText, {
|
|
53
57
|
highlights: highlight && highlight.name
|
|
@@ -64,6 +68,7 @@ var GroupOption = exports.GroupOption = /*#__PURE__*/function (_React$PureCompon
|
|
|
64
68
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "renderByline", function () {
|
|
65
69
|
var isSelected = _this.props.isSelected;
|
|
66
70
|
return (0, _react2.jsx)("span", {
|
|
71
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
67
72
|
css: (0, _AvatarItemOption.textWrapper)(isSelected ? "var(--ds-text-selected, ".concat(_colors.B400, ")") : "var(--ds-text-subtlest, ".concat(_colors.N200, ")")),
|
|
68
73
|
"data-testid": "user-picker-group-secondary-text"
|
|
69
74
|
}, (0, _react2.jsx)(_reactIntlNext.FormattedMessage, _i18n.messages.groupByline));
|
|
@@ -14,7 +14,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
14
14
|
var _select = require("@atlaskit/select");
|
|
15
15
|
var _react2 = require("@emotion/react");
|
|
16
16
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
17
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
|
|
17
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
18
|
var getFooterStyle = function getFooterStyle() {
|
|
19
19
|
return (0, _react2.css)({
|
|
20
20
|
padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-200, 16px)")
|
|
@@ -30,7 +30,9 @@ var Menu = exports.Menu = /*#__PURE__*/function (_React$Component) {
|
|
|
30
30
|
(0, _createClass2.default)(Menu, [{
|
|
31
31
|
key: "render",
|
|
32
32
|
value: function render() {
|
|
33
|
-
return (0, _react2.jsx)(_select.components.Menu, this.props, this.props.selectProps.header, this.props.children, this.props.selectProps.footer &&
|
|
33
|
+
return (0, _react2.jsx)(_select.components.Menu, this.props, this.props.selectProps.header, this.props.children, this.props.selectProps.footer &&
|
|
34
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
35
|
+
(0, _react2.jsx)("div", {
|
|
34
36
|
css: getFooterStyle()
|
|
35
37
|
}, this.props.selectProps.footer));
|
|
36
38
|
}
|
|
@@ -26,7 +26,7 @@ var _utils = require("./utils");
|
|
|
26
26
|
var _people = _interopRequireDefault(require("@atlaskit/icon/glyph/people"));
|
|
27
27
|
var _excluded = ["children", "innerProps"];
|
|
28
28
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
29
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
|
|
29
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
30
30
|
var scrollToValue = exports.scrollToValue = function scrollToValue(valueContainer, control) {
|
|
31
31
|
var _valueContainer$getBo = valueContainer.getBoundingClientRect(),
|
|
32
32
|
top = _valueContainer$getBo.top,
|
|
@@ -15,7 +15,7 @@ var _select = require("@atlaskit/select");
|
|
|
15
15
|
var _react2 = require("@emotion/react");
|
|
16
16
|
var _colors = require("@atlaskit/theme/colors");
|
|
17
17
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
18
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
|
|
18
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
19
19
|
var spacing = 8;
|
|
20
20
|
var fontSize = 12;
|
|
21
21
|
var innerHeight = spacing * 2; // 16px
|
|
@@ -30,6 +30,7 @@ var getLabelStyle = function getLabelStyle() {
|
|
|
30
30
|
color: "var(--ds-text-subtlest, ".concat(_colors.N200, ")"),
|
|
31
31
|
fontSize: "".concat(fontSize, "px"),
|
|
32
32
|
fontWeight: 600,
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
33
34
|
lineHeight: "".concat(lineHeight),
|
|
34
35
|
paddingBottom: "var(--ds-space-050, 4px)",
|
|
35
36
|
paddingLeft: "var(--ds-space-0, 0px)",
|
|
@@ -14,12 +14,16 @@ var _SizeableAvatar = require("./SizeableAvatar");
|
|
|
14
14
|
var _utils = require("./utils");
|
|
15
15
|
var _excluded = ["ref"];
|
|
16
16
|
/** @jsx jsx */
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
17
18
|
var avatarItemComponent = (0, _react.css)({
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
18
20
|
border: 'none !important',
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
19
22
|
padding: "var(--ds-space-0, 0px)".concat(" !important"),
|
|
20
23
|
width: 'auto',
|
|
21
24
|
overflow: 'hidden',
|
|
22
25
|
minWidth: '100px',
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
23
27
|
'& > span': {
|
|
24
28
|
boxSizing: 'border-box'
|
|
25
29
|
},
|
|
@@ -21,8 +21,9 @@ var _styles = require("./styles");
|
|
|
21
21
|
var _ValueContainerWrapper = _interopRequireDefault(require("./ValueContainerWrapper"));
|
|
22
22
|
var _excluded = ["children"];
|
|
23
23
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
24
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
|
|
24
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
25
|
var placeholderIconContainer = (0, _react.css)({
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
26
27
|
paddingLeft: _styles.BORDER_PADDING,
|
|
27
28
|
lineHeight: 0,
|
|
28
29
|
gridArea: '1/1/2/2'
|
|
@@ -61,7 +62,9 @@ var SingleValueContainer = exports.SingleValueContainer = /*#__PURE__*/function
|
|
|
61
62
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onValueContainerClick", _this.props.selectProps.onValueContainerClick);
|
|
62
63
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "Wrapper", function (_ref) {
|
|
63
64
|
var children = _ref.children;
|
|
64
|
-
return _this.onValueContainerClick ?
|
|
65
|
+
return _this.onValueContainerClick ?
|
|
66
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
67
|
+
(0, _react.jsx)("div", {
|
|
65
68
|
css: (0, _react.css)({
|
|
66
69
|
flexGrow: 1
|
|
67
70
|
}),
|
|
@@ -22,7 +22,7 @@ var _HighlightText = require("../HighlightText");
|
|
|
22
22
|
var _i18n = require("../i18n");
|
|
23
23
|
var _SizeableAvatar = require("../SizeableAvatar");
|
|
24
24
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
25
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
|
|
25
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var TeamOption = exports.TeamOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
27
27
|
(0, _inherits2.default)(TeamOption, _React$PureComponent);
|
|
28
28
|
var _super = _createSuper(TeamOption);
|
|
@@ -38,7 +38,9 @@ var TeamOption = exports.TeamOption = /*#__PURE__*/function (_React$PureComponen
|
|
|
38
38
|
name = _this$props$team.name,
|
|
39
39
|
highlight = _this$props$team.highlight;
|
|
40
40
|
return [(0, _react.jsx)("span", {
|
|
41
|
-
key: "name"
|
|
41
|
+
key: "name"
|
|
42
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
43
|
+
,
|
|
42
44
|
css: (0, _AvatarItemOption.textWrapper)(_this.props.isSelected ? "var(--ds-text-selected, ".concat(_colors.B400, ")") : "var(--ds-text, ".concat(_colors.N800, ")"))
|
|
43
45
|
}, (0, _react.jsx)(_HighlightText.HighlightText, {
|
|
44
46
|
highlights: highlight && highlight.name
|
|
@@ -80,6 +82,7 @@ var TeamOption = exports.TeamOption = /*#__PURE__*/function (_React$PureComponen
|
|
|
80
82
|
});
|
|
81
83
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "getBylineComponent", function (isSelected, message) {
|
|
82
84
|
return (0, _react.jsx)("span", {
|
|
85
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
83
86
|
css: (0, _AvatarItemOption.textWrapper)(isSelected ? "var(--ds-text-selected, ".concat(_colors.B400, ")") : "var(--ds-text-subtlest, ".concat(_colors.N200, ")")),
|
|
84
87
|
"data-testid": "user-picker-team-secondary-text"
|
|
85
88
|
}, message);
|
|
@@ -103,6 +106,7 @@ var TeamOption = exports.TeamOption = /*#__PURE__*/function (_React$PureComponen
|
|
|
103
106
|
return undefined;
|
|
104
107
|
}
|
|
105
108
|
return (0, _react.jsx)("span", {
|
|
109
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
106
110
|
css: (0, _AvatarItemOption.textWrapper)(_this.props.isSelected ? "var(--ds-text-selected, ".concat(_colors.B400, ")") : "var(--ds-text-subtlest, ".concat(_colors.N200, ")"))
|
|
107
111
|
}, _this.props.team.byline);
|
|
108
112
|
});
|
|
@@ -20,7 +20,7 @@ var _HighlightText = require("./HighlightText");
|
|
|
20
20
|
var _SizeableAvatar = require("./SizeableAvatar");
|
|
21
21
|
var _utils = require("./utils");
|
|
22
22
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
23
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
|
|
23
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
24
24
|
var UserOption = exports.UserOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
25
25
|
(0, _inherits2.default)(UserOption, _React$PureComponent);
|
|
26
26
|
var _super = _createSuper(UserOption);
|
|
@@ -37,7 +37,9 @@ var UserOption = exports.UserOption = /*#__PURE__*/function (_React$PureComponen
|
|
|
37
37
|
publicName = _this$props$user.publicName,
|
|
38
38
|
highlight = _this$props$user.highlight;
|
|
39
39
|
var result = [(0, _react.jsx)("span", {
|
|
40
|
-
key: "name"
|
|
40
|
+
key: "name"
|
|
41
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
42
|
+
,
|
|
41
43
|
css: (0, _AvatarItemOption.textWrapper)(_this.props.isSelected ? "var(--ds-text-selected, ".concat(_colors.B400, ")") : "var(--ds-text, ".concat(_colors.N800, ")"))
|
|
42
44
|
}, (0, _react.jsx)(_HighlightText.HighlightText, {
|
|
43
45
|
highlights: highlight && highlight.name
|
|
@@ -46,6 +48,7 @@ var UserOption = exports.UserOption = /*#__PURE__*/function (_React$PureComponen
|
|
|
46
48
|
result.push((0, _react.jsx)(_react2.default.Fragment, {
|
|
47
49
|
key: "publicName"
|
|
48
50
|
}, ' ', (0, _react.jsx)("span", {
|
|
51
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
49
52
|
css: (0, _AvatarItemOption.textWrapper)(_this.props.isSelected ? "var(--ds-text-selected, ".concat(_colors.B400, ")") : "var(--ds-text-subtlest, ".concat(_colors.N200, ")"))
|
|
50
53
|
}, "(", (0, _react.jsx)(_HighlightText.HighlightText, {
|
|
51
54
|
highlights: highlight && highlight.publicName
|
|
@@ -55,6 +58,7 @@ var UserOption = exports.UserOption = /*#__PURE__*/function (_React$PureComponen
|
|
|
55
58
|
});
|
|
56
59
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "renderSecondaryText", function () {
|
|
57
60
|
return _this.props.user.byline ? (0, _react.jsx)("span", {
|
|
61
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
58
62
|
css: (0, _AvatarItemOption.textWrapper)(_this.props.isSelected ? "var(--ds-text-selected, ".concat(_colors.B400, ")") : "var(--ds-text-subtlest, ".concat(_colors.N200, ")"))
|
|
59
63
|
}, _this.props.user.byline) : undefined;
|
|
60
64
|
});
|
|
@@ -92,7 +92,9 @@ var UserPickerWithoutAnalytics = exports.UserPickerWithoutAnalytics = /*#__PURE_
|
|
|
92
92
|
fetchUserSource: loadUserSource
|
|
93
93
|
}, /*#__PURE__*/_react.default.createElement(_BaseUserPicker.BaseUserPickerWithoutAnalytics, (0, _extends2.default)({}, this.props, {
|
|
94
94
|
width: width,
|
|
95
|
-
SelectComponent: SelectComponent
|
|
95
|
+
SelectComponent: SelectComponent
|
|
96
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
97
|
+
,
|
|
96
98
|
styles: (0, _styles.getStyles)(width, isMulti, this.props.appearance === 'compact', this.props.styles),
|
|
97
99
|
components: (0, _components.getComponents)(isMulti, anchor),
|
|
98
100
|
pickerProps: pickerProps
|