@atlaskit/user-picker 11.25.4 → 11.25.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/afm-cc/tsconfig.json +0 -3
- package/dist/cjs/analytics.js +1 -1
- package/dist/cjs/components/AddOptionAvatar.js +2 -3
- package/dist/cjs/components/BaseUserPicker.js +5 -3
- package/dist/cjs/components/CustomOption/main.js +2 -3
- package/dist/cjs/components/EmailOption/main.js +2 -3
- package/dist/cjs/components/ExternalUserOption/ExternalAvatarItemOption.js +2 -3
- package/dist/cjs/components/ExternalUserOption/InfoIcon.js +10 -28
- package/dist/cjs/components/ExternalUserOption/main.js +2 -3
- package/dist/cjs/components/GroupOption/main.js +3 -4
- package/dist/cjs/components/PopupControl.js +2 -3
- package/dist/cjs/components/TeamOption/main.js +3 -4
- package/dist/cjs/components/UserOption.js +3 -4
- package/dist/cjs/components/assets/github.js +1 -1
- package/dist/cjs/components/assets/google.js +4 -4
- package/dist/cjs/components/assets/microsoft.js +5 -5
- package/dist/cjs/components/assets/slack.js +9 -9
- package/dist/cjs/components/styles.js +9 -10
- package/dist/es2019/analytics.js +1 -1
- package/dist/es2019/components/AddOptionAvatar.js +2 -3
- package/dist/es2019/components/BaseUserPicker.js +5 -3
- package/dist/es2019/components/CustomOption/main.js +3 -3
- package/dist/es2019/components/EmailOption/main.js +2 -3
- package/dist/es2019/components/ExternalUserOption/ExternalAvatarItemOption.js +2 -3
- package/dist/es2019/components/ExternalUserOption/InfoIcon.js +9 -19
- package/dist/es2019/components/ExternalUserOption/main.js +2 -3
- package/dist/es2019/components/GroupOption/main.js +3 -4
- package/dist/es2019/components/PopupControl.js +2 -3
- package/dist/es2019/components/TeamOption/main.js +4 -4
- package/dist/es2019/components/UserOption.js +3 -4
- package/dist/es2019/components/assets/github.js +1 -1
- package/dist/es2019/components/assets/google.js +4 -4
- package/dist/es2019/components/assets/microsoft.js +5 -5
- package/dist/es2019/components/assets/slack.js +9 -9
- package/dist/es2019/components/styles.js +9 -10
- package/dist/esm/analytics.js +1 -1
- package/dist/esm/components/AddOptionAvatar.js +2 -3
- package/dist/esm/components/BaseUserPicker.js +5 -3
- package/dist/esm/components/CustomOption/main.js +3 -3
- package/dist/esm/components/EmailOption/main.js +2 -3
- package/dist/esm/components/ExternalUserOption/ExternalAvatarItemOption.js +2 -3
- package/dist/esm/components/ExternalUserOption/InfoIcon.js +9 -27
- package/dist/esm/components/ExternalUserOption/main.js +2 -3
- package/dist/esm/components/GroupOption/main.js +3 -4
- package/dist/esm/components/PopupControl.js +2 -3
- package/dist/esm/components/TeamOption/main.js +4 -4
- package/dist/esm/components/UserOption.js +3 -4
- package/dist/esm/components/assets/github.js +1 -1
- package/dist/esm/components/assets/google.js +4 -4
- package/dist/esm/components/assets/microsoft.js +5 -5
- package/dist/esm/components/assets/slack.js +9 -9
- package/dist/esm/components/styles.js +9 -10
- package/dist/types/components/BaseUserPicker.d.ts +1 -1
- package/dist/types-ts4.5/components/BaseUserPicker.d.ts +1 -1
- package/package.json +6 -7
|
@@ -8,7 +8,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
8
8
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
|
-
import { B400 } from '@atlaskit/theme/colors';
|
|
12
11
|
var outerWrapper = function outerWrapper(isDisabled) {
|
|
13
12
|
return css({
|
|
14
13
|
alignItems: 'center',
|
|
@@ -41,14 +40,14 @@ var textSection = css({
|
|
|
41
40
|
});
|
|
42
41
|
var getTextStyle = function getTextStyle(isSecondary) {
|
|
43
42
|
var secondaryCssArgs = isSecondary ? {
|
|
44
|
-
color: "var(--ds-text-selected,
|
|
43
|
+
color: "var(--ds-text-selected, #1868DB)",
|
|
45
44
|
font: "var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
|
|
46
45
|
} : {};
|
|
47
46
|
return css(_objectSpread(_objectSpread({
|
|
48
47
|
display: 'flex',
|
|
49
48
|
maxWidth: '100%',
|
|
50
49
|
margin: 0,
|
|
51
|
-
color: "var(--ds-text-selected,
|
|
50
|
+
color: "var(--ds-text-selected, #1868DB)"
|
|
52
51
|
}, {
|
|
53
52
|
secondaryCssArgs: secondaryCssArgs
|
|
54
53
|
}), {}, {
|
|
@@ -1,39 +1,21 @@
|
|
|
1
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
1
|
/**
|
|
3
2
|
* @jsxRuntime classic
|
|
4
3
|
* @jsx jsx
|
|
5
4
|
*/
|
|
6
|
-
import
|
|
5
|
+
import EditorPanelIcon from '@atlaskit/icon/core/status-information';
|
|
7
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
8
7
|
import { css, jsx } from '@emotion/react';
|
|
9
|
-
import EditorPanelIcon from '@atlaskit/icon/core/status-information';
|
|
10
|
-
import { N50, N200 } from '@atlaskit/theme/colors';
|
|
11
8
|
var wrapper = css({
|
|
12
9
|
display: 'flex',
|
|
13
10
|
marginRight: "var(--ds-space-050, 4px)"
|
|
14
11
|
});
|
|
15
12
|
export default (function () {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return setHoverState(false);
|
|
25
|
-
}, [setHoverState]);
|
|
26
|
-
return (
|
|
27
|
-
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
28
|
-
jsx("div", {
|
|
29
|
-
css: wrapper,
|
|
30
|
-
onMouseEnter: onMouseEnter,
|
|
31
|
-
onMouseLeave: onMouseLeave
|
|
32
|
-
}, jsx(EditorPanelIcon, {
|
|
33
|
-
testId: "source-icon",
|
|
34
|
-
label: "",
|
|
35
|
-
spacing: "spacious",
|
|
36
|
-
color: "var(--ds-text-subtlest, ".concat(isMouseHovered ? N200 : N50, ")")
|
|
37
|
-
}))
|
|
38
|
-
);
|
|
13
|
+
return jsx("div", {
|
|
14
|
+
css: wrapper
|
|
15
|
+
}, jsx(EditorPanelIcon, {
|
|
16
|
+
testId: "source-icon",
|
|
17
|
+
label: "",
|
|
18
|
+
spacing: "spacious",
|
|
19
|
+
color: "var(--ds-text-subtlest, #6B6E76)"
|
|
20
|
+
}));
|
|
39
21
|
});
|
|
@@ -14,7 +14,6 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
14
14
|
import React from 'react';
|
|
15
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
16
|
import { css, jsx } from '@emotion/react';
|
|
17
|
-
import { B400, N200, N800 } from '@atlaskit/theme/colors';
|
|
18
17
|
import Tooltip from '@atlaskit/tooltip';
|
|
19
18
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
20
19
|
import { createAndFireEventInElementsChannel, userInfoEvent } from '../../analytics';
|
|
@@ -56,7 +55,7 @@ var ExternalUserOptionImpl = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
56
55
|
key: "name"
|
|
57
56
|
// 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
57
|
,
|
|
59
|
-
css: textWrapper(_this.props.isSelected ? "var(--ds-text-selected,
|
|
58
|
+
css: textWrapper(_this.props.isSelected ? "var(--ds-text-selected, #1868DB)" : "var(--ds-text, #292A2E)")
|
|
60
59
|
}, name);
|
|
61
60
|
});
|
|
62
61
|
_defineProperty(_this, "renderSecondaryText", function () {
|
|
@@ -66,7 +65,7 @@ var ExternalUserOptionImpl = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
66
65
|
if (!byline && !email) {
|
|
67
66
|
return;
|
|
68
67
|
}
|
|
69
|
-
var textColor = _this.props.isSelected ? "var(--ds-text-selected,
|
|
68
|
+
var textColor = _this.props.isSelected ? "var(--ds-text-selected, #1868DB)" : "var(--ds-text-subtlest, #6B6E76)";
|
|
70
69
|
|
|
71
70
|
// Render byline if present
|
|
72
71
|
if (byline) {
|
|
@@ -15,7 +15,6 @@ import React from 'react';
|
|
|
15
15
|
import { FormattedMessage } from 'react-intl-next';
|
|
16
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
17
17
|
import { css, jsx } from '@emotion/react';
|
|
18
|
-
import { N20, B400, N800, N200 } from '@atlaskit/theme/colors';
|
|
19
18
|
import PeopleIcon from '@atlaskit/icon/core/people-group';
|
|
20
19
|
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
|
|
21
20
|
import { AvatarItemOption, textWrapper } from '../AvatarItemOption';
|
|
@@ -27,7 +26,7 @@ export var groupOptionIconWrapper = css({
|
|
|
27
26
|
padding: "var(--ds-space-025, 2px)",
|
|
28
27
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
29
28
|
'> span': {
|
|
30
|
-
backgroundColor: "var(--ds-background-neutral,
|
|
29
|
+
backgroundColor: "var(--ds-background-neutral, #0515240F)",
|
|
31
30
|
borderRadius: "var(--ds-radius-full, 9999px)",
|
|
32
31
|
padding: "var(--ds-space-050, 4px)"
|
|
33
32
|
}
|
|
@@ -50,7 +49,7 @@ export var GroupOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
50
49
|
key: "name"
|
|
51
50
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
52
51
|
,
|
|
53
|
-
css: textWrapper(isSelected ? "var(--ds-text-selected,
|
|
52
|
+
css: textWrapper(isSelected ? "var(--ds-text-selected, #1868DB)" : "var(--ds-text, #292A2E)")
|
|
54
53
|
}, jsx(HighlightText, {
|
|
55
54
|
highlights: highlight && highlight.name
|
|
56
55
|
}, name))];
|
|
@@ -89,7 +88,7 @@ export var GroupOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
89
88
|
};
|
|
90
89
|
return jsx("span", {
|
|
91
90
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
92
|
-
css: textWrapper(isSelected ? "var(--ds-text-selected,
|
|
91
|
+
css: textWrapper(isSelected ? "var(--ds-text-selected, #1868DB)" : "var(--ds-text-subtlest, #6B6E76)"),
|
|
93
92
|
"data-testid": "user-picker-group-secondary-text"
|
|
94
93
|
}, group.byline ? group.byline : getGroupByline());
|
|
95
94
|
});
|
|
@@ -12,7 +12,6 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
12
12
|
import React from 'react';
|
|
13
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
14
|
import { css, jsx } from '@emotion/react';
|
|
15
|
-
import { N200 } from '@atlaskit/theme/colors';
|
|
16
15
|
import Control from './Control';
|
|
17
16
|
var controlWrapper = css({
|
|
18
17
|
display: 'flex',
|
|
@@ -20,8 +19,8 @@ var controlWrapper = css({
|
|
|
20
19
|
padding: "0px ".concat("var(--ds-space-100, 8px)", " ", "var(--ds-space-100, 8px)")
|
|
21
20
|
});
|
|
22
21
|
var labelStyle = css({
|
|
23
|
-
color: "var(--ds-text-subtlest,
|
|
24
|
-
font: "var(--ds-font-body-
|
|
22
|
+
color: "var(--ds-text-subtlest, #6B6E76)",
|
|
23
|
+
font: "var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
25
24
|
fontWeight: "var(--ds-font-weight-semibold, 600)",
|
|
26
25
|
paddingBottom: "var(--ds-space-050, 4px)",
|
|
27
26
|
paddingLeft: "var(--ds-space-0, 0px)",
|
|
@@ -11,7 +11,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
11
11
|
* @jsxRuntime classic
|
|
12
12
|
* @jsx jsx
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
|
|
15
15
|
import { Inline } from '@atlaskit/primitives/compiled';
|
|
16
16
|
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
|
|
17
17
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -42,7 +42,7 @@ export var TeamOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
42
42
|
key: "name"
|
|
43
43
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
44
44
|
,
|
|
45
|
-
css: textWrapper(_this.props.isSelected ? "var(--ds-text-selected,
|
|
45
|
+
css: textWrapper(_this.props.isSelected ? "var(--ds-text-selected, #1868DB)" : "var(--ds-text, #292A2E)")
|
|
46
46
|
}, jsx(Inline, {
|
|
47
47
|
alignBlock: "center"
|
|
48
48
|
}, jsx(HighlightText, {
|
|
@@ -114,7 +114,7 @@ export var TeamOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
114
114
|
_defineProperty(_this, "getBylineComponent", function (isSelected, message) {
|
|
115
115
|
return jsx("span", {
|
|
116
116
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
117
|
-
css: textWrapper(isSelected ? "var(--ds-text-selected,
|
|
117
|
+
css: textWrapper(isSelected ? "var(--ds-text-selected, #1868DB)" : "var(--ds-text-subtlest, #6B6E76)"),
|
|
118
118
|
"data-testid": "user-picker-team-secondary-text"
|
|
119
119
|
}, message);
|
|
120
120
|
});
|
|
@@ -161,7 +161,7 @@ export var TeamOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
161
161
|
}
|
|
162
162
|
return jsx("span", {
|
|
163
163
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
164
|
-
css: textWrapper(_this.props.isSelected ? "var(--ds-text-selected,
|
|
164
|
+
css: textWrapper(_this.props.isSelected ? "var(--ds-text-selected, #1868DB)" : "var(--ds-text-subtlest, #6B6E76)")
|
|
165
165
|
}, _this.props.team.byline);
|
|
166
166
|
});
|
|
167
167
|
return _this;
|
|
@@ -11,7 +11,6 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
11
11
|
* @jsx jsx
|
|
12
12
|
*/
|
|
13
13
|
import { getAppearanceForAppType } from '@atlaskit/avatar';
|
|
14
|
-
import { B400, N800, N200 } from '@atlaskit/theme/colors';
|
|
15
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
15
|
import { css, jsx } from '@emotion/react';
|
|
17
16
|
import React from 'react';
|
|
@@ -48,12 +47,12 @@ export var UserOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
48
47
|
key: "name"
|
|
49
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
|
|
50
49
|
,
|
|
51
|
-
css: textWrapper(_this.props.isSelected ? "var(--ds-text-selected,
|
|
50
|
+
css: textWrapper(_this.props.isSelected ? "var(--ds-text-selected, #1868DB)" : "var(--ds-text, #292A2E)")
|
|
52
51
|
}, jsx(HighlightText, {
|
|
53
52
|
highlights: highlight && highlight.name
|
|
54
53
|
}, name))];
|
|
55
54
|
if (hasValue(publicName) && name.trim() !== publicName.trim()) {
|
|
56
|
-
var color = _this.props.isSelected ? "var(--ds-text-selected,
|
|
55
|
+
var color = _this.props.isSelected ? "var(--ds-text-selected, #1868DB)" : "var(--ds-text-subtlest, #6B6E76)";
|
|
57
56
|
result.push(jsx(React.Fragment, {
|
|
58
57
|
key: "publicName"
|
|
59
58
|
}, ' ', jsx("span", {
|
|
@@ -69,7 +68,7 @@ export var UserOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
69
68
|
_defineProperty(_this, "renderSecondaryText", function () {
|
|
70
69
|
return _this.props.user.byline ? jsx("span", {
|
|
71
70
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
72
|
-
css: textWrapper(_this.props.isSelected ? "var(--ds-text-selected,
|
|
71
|
+
css: textWrapper(_this.props.isSelected ? "var(--ds-text-selected, #1868DB)" : "var(--ds-text-subtlest, #6B6E76)")
|
|
73
72
|
}, _this.props.user.byline) : undefined;
|
|
74
73
|
});
|
|
75
74
|
_defineProperty(_this, "renderAvatar", function () {
|
|
@@ -11,6 +11,6 @@ export function GitHubIcon(props) {
|
|
|
11
11
|
fillRule: "evenodd",
|
|
12
12
|
clipRule: "evenodd",
|
|
13
13
|
d: "M11.9778 0C5.3635 0 0 5.45261 0 12.179C0 17.5601 3.432 22.1253 8.19114 23.7357C8.78975 23.8484 9.00952 23.4715 9.00952 23.1498C9.00952 22.8594 8.99841 21.9 8.99326 20.8823C5.66103 21.6191 4.95789 19.4454 4.95789 19.4454C4.41303 18.0376 3.62796 17.6633 3.62796 17.6633C2.54122 16.9074 3.70988 16.923 3.70988 16.923C4.91266 17.0089 5.54598 18.178 5.54598 18.178C6.61428 20.0399 8.34803 19.5016 9.03154 19.1904C9.13904 18.4033 9.44945 17.866 9.792 17.5619C7.13157 17.2539 4.33487 16.2096 4.33487 11.5429C4.33487 10.2133 4.80278 9.12682 5.56899 8.27391C5.44463 7.96716 5.03464 6.72844 5.68502 5.05087C5.68502 5.05087 6.69084 4.72354 8.97976 6.29927C9.9352 6.02942 10.9599 5.89409 11.9778 5.88945C12.9957 5.89409 14.0212 6.02942 14.9784 6.29927C17.2645 4.72354 18.269 5.05087 18.269 5.05087C18.9209 6.72844 18.5107 7.96716 18.3864 8.27391C19.1544 9.12682 19.6191 10.2133 19.6191 11.5429C19.6191 16.2207 16.8171 17.2507 14.1499 17.5522C14.5795 17.9301 14.9623 18.6713 14.9623 19.8076C14.9623 21.4371 14.9484 22.7487 14.9484 23.1498C14.9484 23.4739 15.164 23.8537 15.7712 23.7341C20.5277 22.1219 23.9554 17.5582 23.9554 12.179C23.9554 5.45261 18.5927 0 11.9778 0Z",
|
|
14
|
-
fill: "var(--ds-text-inverse,
|
|
14
|
+
fill: "var(--ds-text-inverse, #FFFFFF)"
|
|
15
15
|
}));
|
|
16
16
|
}
|
|
@@ -11,21 +11,21 @@ export function GoogleIcon(props) {
|
|
|
11
11
|
fillRule: "evenodd",
|
|
12
12
|
clipRule: "evenodd",
|
|
13
13
|
d: "M8.32062 3.21332L10.014 1.55999C8.97396 0.593331 7.62063 0 6.00062 0C3.65396 0 1.62729 1.34666 0.640625 3.30665L2.58062 4.81331C3.06729 3.36665 4.41396 2.31999 6.00062 2.31999C7.12729 2.31999 7.88729 2.80665 8.32062 3.21332Z",
|
|
14
|
-
fill: "var(--ds-text-inverse,
|
|
14
|
+
fill: "var(--ds-text-inverse, #FFFFFF)"
|
|
15
15
|
}), /*#__PURE__*/React.createElement("path", {
|
|
16
16
|
fillRule: "evenodd",
|
|
17
17
|
clipRule: "evenodd",
|
|
18
18
|
d: "M11.76 6.13291C11.76 5.63958 11.72 5.27958 11.6333 4.90625H6V7.13291H9.30667C9.24 7.68624 8.88 8.51957 8.08 9.07957L9.97333 10.5462C11.1067 9.49956 11.76 7.95957 11.76 6.13291V6.13291V6.13291Z",
|
|
19
|
-
fill: "var(--ds-text-inverse,
|
|
19
|
+
fill: "var(--ds-text-inverse, #FFFFFF)"
|
|
20
20
|
}), /*#__PURE__*/React.createElement("path", {
|
|
21
21
|
fillRule: "evenodd",
|
|
22
22
|
clipRule: "evenodd",
|
|
23
23
|
d: "M2.58667 7.18662C2.46 6.81329 2.38667 6.41329 2.38667 5.99996C2.38667 5.58663 2.46 5.18663 2.58 4.8133L0.64 3.30664C0.233333 4.11997 0 5.0333 0 5.99996C0 6.96662 0.233333 7.87995 0.64 8.69328L2.58667 7.18662V7.18662Z",
|
|
24
|
-
fill: "var(--ds-text-inverse,
|
|
24
|
+
fill: "var(--ds-text-inverse, #FFFFFF)"
|
|
25
25
|
}), /*#__PURE__*/React.createElement("path", {
|
|
26
26
|
fillRule: "evenodd",
|
|
27
27
|
clipRule: "evenodd",
|
|
28
28
|
d: "M6.00079 12.0008C7.62079 12.0008 8.98079 11.4675 9.97413 10.5475L8.08079 9.08083C7.57413 9.43416 6.89413 9.68082 6.00079 9.68082C4.41413 9.68082 3.06746 8.63416 2.58746 7.1875L0.647461 8.69416C1.63413 10.6542 3.65413 12.0008 6.00079 12.0008V12.0008V12.0008Z",
|
|
29
|
-
fill: "var(--ds-text-inverse,
|
|
29
|
+
fill: "var(--ds-text-inverse, #FFFFFF)"
|
|
30
30
|
}));
|
|
31
31
|
}
|
|
@@ -11,21 +11,21 @@ export function MicrosoftIcon(props) {
|
|
|
11
11
|
clipPath: "url(#clip0)"
|
|
12
12
|
}, /*#__PURE__*/React.createElement("path", {
|
|
13
13
|
d: "M0 0H5.70233V5.7023H0V0Z",
|
|
14
|
-
fill: "var(--ds-text-inverse,
|
|
14
|
+
fill: "var(--ds-text-inverse, #FFFFFF)"
|
|
15
15
|
}), /*#__PURE__*/React.createElement("path", {
|
|
16
16
|
d: "M6.29785 0H12.0002V5.7023H6.29785V0Z",
|
|
17
|
-
fill: "var(--ds-text-inverse,
|
|
17
|
+
fill: "var(--ds-text-inverse, #FFFFFF)"
|
|
18
18
|
}), /*#__PURE__*/React.createElement("path", {
|
|
19
19
|
d: "M0 6.29688H5.70233V11.9992H0V6.29688Z",
|
|
20
|
-
fill: "var(--ds-text-inverse,
|
|
20
|
+
fill: "var(--ds-text-inverse, #FFFFFF)"
|
|
21
21
|
}), /*#__PURE__*/React.createElement("path", {
|
|
22
22
|
d: "M6.29785 6.29688H12.0002V11.9992H6.29785V6.29688Z",
|
|
23
|
-
fill: "var(--ds-text-inverse,
|
|
23
|
+
fill: "var(--ds-text-inverse, #FFFFFF)"
|
|
24
24
|
})), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
25
25
|
id: "clip0"
|
|
26
26
|
}, /*#__PURE__*/React.createElement("rect", {
|
|
27
27
|
width: "12",
|
|
28
28
|
height: "11.9999",
|
|
29
|
-
fill: "var(--ds-text-inverse,
|
|
29
|
+
fill: "var(--ds-text-inverse, #FFFFFF)"
|
|
30
30
|
}))));
|
|
31
31
|
}
|
|
@@ -11,33 +11,33 @@ export function SlackIcon(props) {
|
|
|
11
11
|
clipPath: "url(#clip0)"
|
|
12
12
|
}, /*#__PURE__*/React.createElement("path", {
|
|
13
13
|
d: "M2.51653 7.5688C2.51653 8.26133 1.9508 8.82706 1.25826 8.82706C0.565731 8.82706 0 8.26133 0 7.5688C0 6.87627 0.565731 6.31055 1.25826 6.31055H2.51653V7.5688Z",
|
|
14
|
-
fill: "var(--ds-text-inverse,
|
|
14
|
+
fill: "var(--ds-text-inverse, #FFFFFF)"
|
|
15
15
|
}), /*#__PURE__*/React.createElement("path", {
|
|
16
16
|
d: "M3.15039 7.5688C3.15039 6.87627 3.71612 6.31055 4.40865 6.31055C5.10119 6.31055 5.66692 6.87627 5.66692 7.5688V10.7193C5.66692 11.4119 5.10119 11.9776 4.40865 11.9776C3.71612 11.9776 3.15039 11.4119 3.15039 10.7193V7.5688Z",
|
|
17
|
-
fill: "var(--ds-text-inverse,
|
|
17
|
+
fill: "var(--ds-text-inverse, #FFFFFF)"
|
|
18
18
|
}), /*#__PURE__*/React.createElement("path", {
|
|
19
19
|
d: "M4.40865 2.51651C3.71612 2.51651 3.15039 1.95079 3.15039 1.25826C3.15039 0.565728 3.71612 0 4.40865 0C5.10119 0 5.66692 0.565728 5.66692 1.25826V2.51651H4.40865Z",
|
|
20
|
-
fill: "var(--ds-text-inverse,
|
|
20
|
+
fill: "var(--ds-text-inverse, #FFFFFF)"
|
|
21
21
|
}), /*#__PURE__*/React.createElement("path", {
|
|
22
22
|
d: "M4.4088 3.15039C5.10133 3.15039 5.66706 3.71612 5.66706 4.40865C5.66706 5.10118 5.10133 5.6669 4.4088 5.6669H1.25826C0.565731 5.6669 0 5.10118 0 4.40865C0 3.71612 0.565731 3.15039 1.25826 3.15039H4.4088Z",
|
|
23
|
-
fill: "var(--ds-text-inverse,
|
|
23
|
+
fill: "var(--ds-text-inverse, #FFFFFF)"
|
|
24
24
|
}), /*#__PURE__*/React.createElement("path", {
|
|
25
25
|
d: "M9.46094 4.40865C9.46094 3.71612 10.0267 3.15039 10.7192 3.15039C11.4117 3.15039 11.9775 3.71612 11.9775 4.40865C11.9775 5.10118 11.4117 5.6669 10.7192 5.6669H9.46094V4.40865Z",
|
|
26
|
-
fill: "var(--ds-text-inverse,
|
|
26
|
+
fill: "var(--ds-text-inverse, #FFFFFF)"
|
|
27
27
|
}), /*#__PURE__*/React.createElement("path", {
|
|
28
28
|
d: "M8.8261 4.40878C8.8261 5.10131 8.26036 5.66704 7.56783 5.66704C6.8753 5.66704 6.30957 5.10131 6.30957 4.40878V1.25826C6.30957 0.565728 6.8753 0 7.56783 0C8.26036 0 8.8261 0.565728 8.8261 1.25826V4.40878Z",
|
|
29
|
-
fill: "var(--ds-text-inverse,
|
|
29
|
+
fill: "var(--ds-text-inverse, #FFFFFF)"
|
|
30
30
|
}), /*#__PURE__*/React.createElement("path", {
|
|
31
31
|
d: "M7.56881 9.46094C8.26134 9.46094 8.82707 10.0267 8.82707 10.7192C8.82707 11.4117 8.26134 11.9775 7.56881 11.9775C6.87628 11.9775 6.31055 11.4117 6.31055 10.7192V9.46094H7.56881Z",
|
|
32
|
-
fill: "var(--ds-text-inverse,
|
|
32
|
+
fill: "var(--ds-text-inverse, #FFFFFF)"
|
|
33
33
|
}), /*#__PURE__*/React.createElement("path", {
|
|
34
34
|
d: "M7.56881 8.82706C6.87628 8.82706 6.31055 8.26133 6.31055 7.5688C6.31055 6.87627 6.87628 6.31055 7.56881 6.31055H10.7193C11.4119 6.31055 11.9776 6.87627 11.9776 7.5688C11.9776 8.26133 11.4119 8.82706 10.7193 8.82706H7.56881Z",
|
|
35
|
-
fill: "var(--ds-text-inverse,
|
|
35
|
+
fill: "var(--ds-text-inverse, #FFFFFF)"
|
|
36
36
|
})), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
37
37
|
id: "clip0"
|
|
38
38
|
}, /*#__PURE__*/React.createElement("rect", {
|
|
39
39
|
width: "12",
|
|
40
40
|
height: "11.9999",
|
|
41
|
-
fill: "var(--ds-text-inverse,
|
|
41
|
+
fill: "var(--ds-text-inverse, #FFFFFF)"
|
|
42
42
|
}))));
|
|
43
43
|
}
|
|
@@ -4,10 +4,9 @@ var _excluded = ["_paddingTop", "_paddingBottom", "_paddingLeft", "_paddingRight
|
|
|
4
4
|
_excluded2 = ["_paddingTop", "_paddingBottom", "_position"];
|
|
5
5
|
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; }
|
|
6
6
|
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) { _defineProperty(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; }
|
|
7
|
-
import { B100, N0, N10, N20, N30, N100, R50, R400, N90 } from '@atlaskit/theme/colors';
|
|
8
|
-
import memoizeOne from 'memoize-one';
|
|
9
|
-
import { mergeStyles } from '@atlaskit/select';
|
|
10
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
+
import { mergeStyles } from '@atlaskit/select';
|
|
9
|
+
import memoizeOne from 'memoize-one';
|
|
11
10
|
export var BORDER_PADDING = "var(--ds-space-075, 6px)";
|
|
12
11
|
export var AVATAR_PADDING = 6;
|
|
13
12
|
export var INDICATOR_WIDTH = 39;
|
|
@@ -29,14 +28,14 @@ export var getStyles = memoizeOne(function (width, isMulti, isCompact, overrideS
|
|
|
29
28
|
var isMulti = state.selectProps.isMulti;
|
|
30
29
|
return _objectSpread(_objectSpread({}, css), {}, {
|
|
31
30
|
width: width,
|
|
32
|
-
borderColor: state.isFocused ? "var(--ds-border-focused,
|
|
33
|
-
backgroundColor: state.isFocused ? "var(--ds-background-input,
|
|
31
|
+
borderColor: state.isFocused ? "var(--ds-border-focused, #4688EC)" : state.isInvalid ? "var(--ds-border-danger, #E2483D)" : state.selectProps.subtle || state.selectProps.noBorder ? 'transparent' : "var(--ds-border-input, #8C8F97)",
|
|
32
|
+
backgroundColor: state.isFocused ? "var(--ds-background-input, #FFFFFF)" : state.selectProps.subtle ? 'transparent' : state.isDisabled && fg('platform-dst-lozenge-tag-badge-visual-uplifts') ? "var(--ds-background-disabled, #17171708)" : state.selectProps.textFieldBackgroundColor ? "var(--ds-background-input, #FFFFFF)" : "var(--ds-background-input, #FFFFFF)",
|
|
34
33
|
'&:hover .fabric-user-picker__clear-indicator': {
|
|
35
34
|
opacity: 1
|
|
36
35
|
},
|
|
37
36
|
':hover': _objectSpread(_objectSpread({}, css[':hover']), {}, {
|
|
38
|
-
borderColor: state.isFocused ? css[':hover'] ? "var(--ds-border-focused,
|
|
39
|
-
backgroundColor: state.selectProps.subtle && state.selectProps.hoveringClearIndicator ? "var(--ds-background-danger,
|
|
37
|
+
borderColor: state.isFocused ? css[':hover'] ? "var(--ds-border-focused, #4688EC)" : "var(--ds-border-focused, #4688EC)" : state.isInvalid ? "var(--ds-border-danger, #E2483D)" : state.selectProps.subtle ? 'transparent' : "var(--ds-border-input, #8C8F97)",
|
|
38
|
+
backgroundColor: state.selectProps.subtle && state.selectProps.hoveringClearIndicator ? "var(--ds-background-danger, #FFECEB)" : state.isFocused ? css[':hover'] ? "var(--ds-background-input, #FFFFFF)" : "var(--ds-background-input, #FFFFFF)" : state.isDisabled ? "var(--ds-background-disabled, #17171708)" : "var(--ds-background-input-hovered, #F8F8F8)"
|
|
40
39
|
}),
|
|
41
40
|
padding: 0,
|
|
42
41
|
minHeight: minHeight ? minHeight : height || isCompact ? 'none' : 44,
|
|
@@ -62,7 +61,7 @@ export var getStyles = memoizeOne(function (width, isMulti, isCompact, overrideS
|
|
|
62
61
|
paddingTop: 0,
|
|
63
62
|
padding: 0,
|
|
64
63
|
':hover': {
|
|
65
|
-
color: "var(--ds-icon-danger,
|
|
64
|
+
color: "var(--ds-icon-danger, #C9372C)"
|
|
66
65
|
}
|
|
67
66
|
});
|
|
68
67
|
},
|
|
@@ -151,12 +150,12 @@ export var getStyles = memoizeOne(function (width, isMulti, isCompact, overrideS
|
|
|
151
150
|
paddingLeft: state.selectProps.isMulti ? 0 : BORDER_PADDING,
|
|
152
151
|
'& input::placeholder': {
|
|
153
152
|
/* Chrome, Firefox, Opera, Safari 10.1+ */
|
|
154
|
-
color: "var(--ds-text-subtlest,
|
|
153
|
+
color: "var(--ds-text-subtlest, #6B6E76)",
|
|
155
154
|
opacity: 1 /* Firefox */
|
|
156
155
|
},
|
|
157
156
|
'& input:-ms-input-placeholder': {
|
|
158
157
|
/* Internet Explorer 10-11 */
|
|
159
|
-
color: "var(--ds-text-subtlest,
|
|
158
|
+
color: "var(--ds-text-subtlest, #6B6E76)"
|
|
160
159
|
}
|
|
161
160
|
});
|
|
162
161
|
},
|
|
@@ -85,6 +85,7 @@ export declare const BaseUserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
|
|
|
85
85
|
clearValueLabel?: string;
|
|
86
86
|
closeMenuOnScroll?: boolean | EventListener;
|
|
87
87
|
components?: SelectComponentsConfig<OptionData, boolean>;
|
|
88
|
+
customGroupLabels?: Partial<Record<NonNullable<OptionData['type']>, React.ReactNode>>;
|
|
88
89
|
defaultValue?: DefaultValue;
|
|
89
90
|
disableInput?: boolean;
|
|
90
91
|
emailLabel?: string;
|
|
@@ -92,7 +93,6 @@ export declare const BaseUserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
|
|
|
92
93
|
footer?: React.ReactNode;
|
|
93
94
|
forwardedRef?: React.ForwardedRef<UserPickerRef>;
|
|
94
95
|
groupByTypeOrder?: NonNullable<OptionData['type']>[];
|
|
95
|
-
customGroupLabels?: Partial<Record<NonNullable<OptionData['type']>, React.ReactNode>>;
|
|
96
96
|
header?: React.ReactNode;
|
|
97
97
|
height?: number | string;
|
|
98
98
|
includeTeamsUpdates?: boolean;
|
|
@@ -85,6 +85,7 @@ export declare const BaseUserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
|
|
|
85
85
|
clearValueLabel?: string;
|
|
86
86
|
closeMenuOnScroll?: boolean | EventListener;
|
|
87
87
|
components?: SelectComponentsConfig<OptionData, boolean>;
|
|
88
|
+
customGroupLabels?: Partial<Record<NonNullable<OptionData['type']>, React.ReactNode>>;
|
|
88
89
|
defaultValue?: DefaultValue;
|
|
89
90
|
disableInput?: boolean;
|
|
90
91
|
emailLabel?: string;
|
|
@@ -92,7 +93,6 @@ export declare const BaseUserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
|
|
|
92
93
|
footer?: React.ReactNode;
|
|
93
94
|
forwardedRef?: React.ForwardedRef<UserPickerRef>;
|
|
94
95
|
groupByTypeOrder?: NonNullable<OptionData['type']>[];
|
|
95
|
-
customGroupLabels?: Partial<Record<NonNullable<OptionData['type']>, React.ReactNode>>;
|
|
96
96
|
header?: React.ReactNode;
|
|
97
97
|
height?: number | string;
|
|
98
98
|
includeTeamsUpdates?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/user-picker",
|
|
3
|
-
"version": "11.25.
|
|
3
|
+
"version": "11.25.5",
|
|
4
4
|
"description": "Fabric component for display a dropdown to select a user from",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -43,22 +43,21 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@atlaskit/afm-i18n-platform-elements-user-picker": "2.7.0",
|
|
46
|
-
"@atlaskit/analytics-next": "^11.
|
|
46
|
+
"@atlaskit/analytics-next": "^11.2.0",
|
|
47
47
|
"@atlaskit/avatar": "^25.10.0",
|
|
48
48
|
"@atlaskit/feature-gate-js-client": "^5.5.0",
|
|
49
|
-
"@atlaskit/icon": "^33.
|
|
49
|
+
"@atlaskit/icon": "^33.1.0",
|
|
50
50
|
"@atlaskit/logo": "^19.10.0",
|
|
51
51
|
"@atlaskit/lozenge": "^13.5.0",
|
|
52
52
|
"@atlaskit/people-teams-ui-public": "^3.7.0",
|
|
53
53
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
54
54
|
"@atlaskit/popper": "^7.1.0",
|
|
55
|
-
"@atlaskit/primitives": "^18.
|
|
55
|
+
"@atlaskit/primitives": "^18.1.0",
|
|
56
56
|
"@atlaskit/select": "^21.8.0",
|
|
57
57
|
"@atlaskit/spinner": "^19.0.0",
|
|
58
|
-
"@atlaskit/tag": "^14.
|
|
58
|
+
"@atlaskit/tag": "^14.6.0",
|
|
59
59
|
"@atlaskit/teams-avatar": "^2.4.0",
|
|
60
|
-
"@atlaskit/
|
|
61
|
-
"@atlaskit/tokens": "^11.1.0",
|
|
60
|
+
"@atlaskit/tokens": "^11.3.0",
|
|
62
61
|
"@atlaskit/tooltip": "^21.0.0",
|
|
63
62
|
"@atlaskit/ufo": "^0.4.0",
|
|
64
63
|
"@babel/runtime": "^7.0.0",
|