@atlaskit/user-picker 9.7.3 → 9.7.4
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 +6 -0
- package/dist/cjs/components/AddOptionAvatar.js +2 -4
- package/dist/cjs/components/AvatarItemOption.js +1 -3
- package/dist/cjs/components/CustomOption/main.js +2 -4
- package/dist/cjs/components/EmailOption/main.js +2 -4
- package/dist/cjs/components/ExternalUserOption/ExternalAvatarItemOption.js +3 -5
- package/dist/cjs/components/ExternalUserOption/InfoIcon.js +1 -3
- package/dist/cjs/components/ExternalUserOption/main.js +2 -4
- package/dist/cjs/components/GroupOption/main.js +3 -5
- package/dist/cjs/components/PopupControl.js +2 -4
- package/dist/cjs/components/TeamOption/main.js +3 -5
- package/dist/cjs/components/UserOption.js +3 -5
- package/dist/cjs/components/assets/github.js +1 -3
- package/dist/cjs/components/assets/google.js +4 -6
- package/dist/cjs/components/assets/microsoft.js +5 -7
- package/dist/cjs/components/assets/slack.js +9 -11
- package/dist/cjs/components/styles.js +7 -9
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/AddOptionAvatar.js +2 -3
- package/dist/es2019/components/AvatarItemOption.js +1 -2
- package/dist/es2019/components/CustomOption/main.js +2 -3
- package/dist/es2019/components/EmailOption/main.js +2 -3
- package/dist/es2019/components/ExternalUserOption/ExternalAvatarItemOption.js +3 -4
- package/dist/es2019/components/ExternalUserOption/InfoIcon.js +1 -2
- 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 +3 -4
- package/dist/es2019/components/UserOption.js +3 -4
- package/dist/es2019/components/assets/github.js +1 -2
- package/dist/es2019/components/assets/google.js +4 -5
- package/dist/es2019/components/assets/microsoft.js +5 -6
- package/dist/es2019/components/assets/slack.js +9 -10
- package/dist/es2019/components/styles.js +7 -8
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/AddOptionAvatar.js +2 -3
- package/dist/esm/components/AvatarItemOption.js +1 -2
- package/dist/esm/components/CustomOption/main.js +2 -3
- package/dist/esm/components/EmailOption/main.js +2 -3
- package/dist/esm/components/ExternalUserOption/ExternalAvatarItemOption.js +3 -4
- package/dist/esm/components/ExternalUserOption/InfoIcon.js +1 -2
- 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 +3 -4
- package/dist/esm/components/UserOption.js +3 -4
- package/dist/esm/components/assets/github.js +1 -2
- package/dist/esm/components/assets/google.js +4 -5
- package/dist/esm/components/assets/microsoft.js +5 -6
- package/dist/esm/components/assets/slack.js +9 -10
- package/dist/esm/components/styles.js +7 -8
- package/dist/esm/version.json +1 -1
- package/package.json +2 -2
|
@@ -4,7 +4,6 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
6
|
import { B400, N200, N800 } from '@atlaskit/theme/colors';
|
|
7
|
-
import { token } from '@atlaskit/tokens';
|
|
8
7
|
import { jsx } from '@emotion/react';
|
|
9
8
|
import { AddOptionAvatar } from '../AddOptionAvatar';
|
|
10
9
|
import { AvatarItemOption, textWrapper } from '../AvatarItemOption';
|
|
@@ -28,13 +27,13 @@ export class EmailOption extends React.PureComponent {
|
|
|
28
27
|
} = this.props;
|
|
29
28
|
return jsx("span", {
|
|
30
29
|
key: "name",
|
|
31
|
-
css: textWrapper(this.props.isSelected ?
|
|
30
|
+
css: textWrapper(this.props.isSelected ? `var(--ds-text-selected, ${B400})` : `var(--ds-text, ${N800})`)
|
|
32
31
|
}, id);
|
|
33
32
|
});
|
|
34
33
|
|
|
35
34
|
_defineProperty(this, "renderSecondaryText", label => {
|
|
36
35
|
return jsx("span", {
|
|
37
|
-
css: textWrapper(this.props.isSelected ?
|
|
36
|
+
css: textWrapper(this.props.isSelected ? `var(--ds-text-selected, ${B400})` : `var(--ds-text-subtlest, ${N200})`)
|
|
38
37
|
}, label);
|
|
39
38
|
});
|
|
40
39
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { css, jsx } from '@emotion/react';
|
|
3
3
|
import { B400 } from '@atlaskit/theme/colors';
|
|
4
|
-
import { token } from '@atlaskit/tokens';
|
|
5
4
|
|
|
6
5
|
const outerWrapper = isDisabled => css({
|
|
7
6
|
alignItems: 'center',
|
|
@@ -12,7 +11,7 @@ const outerWrapper = isDisabled => css({
|
|
|
12
11
|
margin: 0,
|
|
13
12
|
width: '100%',
|
|
14
13
|
cursor: isDisabled ? 'not-allowed' : 'pointer',
|
|
15
|
-
opacity: isDisabled ?
|
|
14
|
+
opacity: isDisabled ? "var(--ds-opacity-disabled, 0.4)" : undefined
|
|
16
15
|
});
|
|
17
16
|
|
|
18
17
|
const detailsWrapper = css({
|
|
@@ -31,14 +30,14 @@ const textSection = css({
|
|
|
31
30
|
|
|
32
31
|
const getTextStyle = isSecondary => {
|
|
33
32
|
const secondaryCssArgs = isSecondary ? {
|
|
34
|
-
color:
|
|
33
|
+
color: `var(--ds-text-selected, ${B400})`,
|
|
35
34
|
fontSize: '0.85em'
|
|
36
35
|
} : {};
|
|
37
36
|
return css({
|
|
38
37
|
display: 'flex',
|
|
39
38
|
maxWidth: '100%',
|
|
40
39
|
margin: 0,
|
|
41
|
-
color:
|
|
40
|
+
color: `var(--ds-text-selected, ${B400})`,
|
|
42
41
|
...{
|
|
43
42
|
secondaryCssArgs
|
|
44
43
|
},
|
|
@@ -3,7 +3,6 @@ import { useCallback, useState } from 'react';
|
|
|
3
3
|
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import EditorPanelIcon from '@atlaskit/icon/glyph/editor/panel';
|
|
5
5
|
import { N50, N200 } from '@atlaskit/theme/colors';
|
|
6
|
-
import { token } from '@atlaskit/tokens';
|
|
7
6
|
const wrapper = css({
|
|
8
7
|
display: 'flex'
|
|
9
8
|
});
|
|
@@ -19,6 +18,6 @@ export default (() => {
|
|
|
19
18
|
testId: "source-icon",
|
|
20
19
|
label: "",
|
|
21
20
|
size: "large",
|
|
22
|
-
primaryColor:
|
|
21
|
+
primaryColor: `var(--ds-text-subtlest, ${isMouseHovered ? N200 : N50})`
|
|
23
22
|
}));
|
|
24
23
|
});
|
|
@@ -4,7 +4,6 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { css, jsx } from '@emotion/react';
|
|
6
6
|
import { B400, N200, N800 } from '@atlaskit/theme/colors';
|
|
7
|
-
import { token } from '@atlaskit/tokens';
|
|
8
7
|
import Tooltip from '@atlaskit/tooltip';
|
|
9
8
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
10
9
|
import { createAndFireEventInElementsChannel, userInfoEvent } from '../../analytics';
|
|
@@ -38,7 +37,7 @@ class ExternalUserOptionImpl extends React.PureComponent {
|
|
|
38
37
|
} = this.props;
|
|
39
38
|
return jsx("span", {
|
|
40
39
|
key: "name",
|
|
41
|
-
css: textWrapper(this.props.isSelected ?
|
|
40
|
+
css: textWrapper(this.props.isSelected ? `var(--ds-text-selected, ${B400})` : `var(--ds-text, ${N800})`)
|
|
42
41
|
}, name);
|
|
43
42
|
});
|
|
44
43
|
|
|
@@ -54,7 +53,7 @@ class ExternalUserOptionImpl extends React.PureComponent {
|
|
|
54
53
|
const [emailUser, emailDomain] = email.split('@');
|
|
55
54
|
const emailDomainWithAt = `@${emailDomain}`;
|
|
56
55
|
return jsx("span", {
|
|
57
|
-
css: textWrapper(this.props.isSelected ?
|
|
56
|
+
css: textWrapper(this.props.isSelected ? `var(--ds-text-selected, ${B400})` : `var(--ds-text-subtlest, ${N200})`)
|
|
58
57
|
}, emailUser, jsx("span", {
|
|
59
58
|
css: emailDomainWrapper
|
|
60
59
|
}, emailDomainWithAt));
|
|
@@ -5,7 +5,6 @@ import React from 'react';
|
|
|
5
5
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
6
|
import { css, jsx } from '@emotion/react';
|
|
7
7
|
import { N20, B400, N800, N200 } from '@atlaskit/theme/colors';
|
|
8
|
-
import { token } from '@atlaskit/tokens';
|
|
9
8
|
import PeopleIcon from '@atlaskit/icon/glyph/people';
|
|
10
9
|
import { AvatarItemOption, textWrapper } from '../AvatarItemOption';
|
|
11
10
|
import { messages } from '../i18n';
|
|
@@ -13,7 +12,7 @@ import { HighlightText } from '../HighlightText';
|
|
|
13
12
|
export const groupOptionIconWrapper = css({
|
|
14
13
|
padding: '2px',
|
|
15
14
|
'> span': {
|
|
16
|
-
backgroundColor:
|
|
15
|
+
backgroundColor: `var(--ds-background-neutral, ${N20})`,
|
|
17
16
|
borderRadius: '50%',
|
|
18
17
|
padding: '4px'
|
|
19
18
|
}
|
|
@@ -32,7 +31,7 @@ export class GroupOption extends React.PureComponent {
|
|
|
32
31
|
} = this.props;
|
|
33
32
|
return [jsx("span", {
|
|
34
33
|
key: "name",
|
|
35
|
-
css: textWrapper(isSelected ?
|
|
34
|
+
css: textWrapper(isSelected ? `var(--ds-text-selected, ${B400})` : `var(--ds-text, ${N800})`)
|
|
36
35
|
}, jsx(HighlightText, {
|
|
37
36
|
highlights: highlight && highlight.name
|
|
38
37
|
}, name))];
|
|
@@ -50,7 +49,7 @@ export class GroupOption extends React.PureComponent {
|
|
|
50
49
|
isSelected
|
|
51
50
|
} = this.props;
|
|
52
51
|
return jsx("span", {
|
|
53
|
-
css: textWrapper(isSelected ?
|
|
52
|
+
css: textWrapper(isSelected ? `var(--ds-text-selected, ${B400})` : `var(--ds-text-subtlest, ${N200})`)
|
|
54
53
|
}, jsx(FormattedMessage, messages.groupByline));
|
|
55
54
|
});
|
|
56
55
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { themed } from '@atlaskit/theme/components';
|
|
4
|
-
import { token } from '@atlaskit/tokens';
|
|
5
4
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
6
5
|
import { components } from '@atlaskit/select';
|
|
7
6
|
import { css, jsx } from '@emotion/react';
|
|
@@ -17,8 +16,8 @@ const controlWrapper = css({
|
|
|
17
16
|
padding: `0px ${spacing}px ${spacing}px`
|
|
18
17
|
});
|
|
19
18
|
const getColor = themed({
|
|
20
|
-
light:
|
|
21
|
-
dark:
|
|
19
|
+
light: `var(--ds-text-subtlest, ${N200})`,
|
|
20
|
+
dark: `var(--ds-text-subtlest, ${DN90})`
|
|
22
21
|
});
|
|
23
22
|
|
|
24
23
|
const getLabelStyle = () => {
|
|
@@ -3,7 +3,6 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
|
|
4
4
|
/** @jsx jsx */
|
|
5
5
|
import { B400, N800, N200 } from '@atlaskit/theme/colors';
|
|
6
|
-
import { token } from '@atlaskit/tokens';
|
|
7
6
|
import { jsx } from '@emotion/react';
|
|
8
7
|
import React from 'react';
|
|
9
8
|
import { FormattedMessage } from 'react-intl-next';
|
|
@@ -24,7 +23,7 @@ export class TeamOption extends React.PureComponent {
|
|
|
24
23
|
} = this.props;
|
|
25
24
|
return [jsx("span", {
|
|
26
25
|
key: "name",
|
|
27
|
-
css: textWrapper(this.props.isSelected ?
|
|
26
|
+
css: textWrapper(this.props.isSelected ? `var(--ds-text-selected, ${B400})` : `var(--ds-text, ${N800})`)
|
|
28
27
|
}, jsx(HighlightText, {
|
|
29
28
|
highlights: highlight && highlight.name
|
|
30
29
|
}, name))];
|
|
@@ -67,7 +66,7 @@ export class TeamOption extends React.PureComponent {
|
|
|
67
66
|
});
|
|
68
67
|
|
|
69
68
|
_defineProperty(this, "getBylineComponent", (isSelected, message) => jsx("span", {
|
|
70
|
-
css: textWrapper(isSelected ?
|
|
69
|
+
css: textWrapper(isSelected ? `var(--ds-text-selected, ${B400})` : `var(--ds-text-subtlest, ${N200})`)
|
|
71
70
|
}, message));
|
|
72
71
|
|
|
73
72
|
_defineProperty(this, "renderAvatar", () => {
|
|
@@ -96,7 +95,7 @@ export class TeamOption extends React.PureComponent {
|
|
|
96
95
|
}
|
|
97
96
|
|
|
98
97
|
return jsx("span", {
|
|
99
|
-
css: textWrapper(this.props.isSelected ?
|
|
98
|
+
css: textWrapper(this.props.isSelected ? `var(--ds-text-selected, ${B400})` : `var(--ds-text-subtlest, ${N200})`)
|
|
100
99
|
}, this.props.team.byline);
|
|
101
100
|
});
|
|
102
101
|
}
|
|
@@ -2,7 +2,6 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { B400, N800, N200 } from '@atlaskit/theme/colors';
|
|
5
|
-
import { token } from '@atlaskit/tokens';
|
|
6
5
|
import { jsx } from '@emotion/react';
|
|
7
6
|
import React from 'react';
|
|
8
7
|
import { AvatarItemOption, textWrapper } from './AvatarItemOption';
|
|
@@ -23,7 +22,7 @@ export class UserOption extends React.PureComponent {
|
|
|
23
22
|
} = this.props;
|
|
24
23
|
const result = [jsx("span", {
|
|
25
24
|
key: "name",
|
|
26
|
-
css: textWrapper(this.props.isSelected ?
|
|
25
|
+
css: textWrapper(this.props.isSelected ? `var(--ds-text-selected, ${B400})` : `var(--ds-text, ${N800})`)
|
|
27
26
|
}, jsx(HighlightText, {
|
|
28
27
|
highlights: highlight && highlight.name
|
|
29
28
|
}, name))];
|
|
@@ -32,7 +31,7 @@ export class UserOption extends React.PureComponent {
|
|
|
32
31
|
result.push(jsx(React.Fragment, {
|
|
33
32
|
key: "publicName"
|
|
34
33
|
}, ' ', jsx("span", {
|
|
35
|
-
css: textWrapper(this.props.isSelected ?
|
|
34
|
+
css: textWrapper(this.props.isSelected ? `var(--ds-text-selected, ${B400})` : `var(--ds-text-subtlest, ${N200})`)
|
|
36
35
|
}, "(", jsx(HighlightText, {
|
|
37
36
|
highlights: highlight && highlight.publicName
|
|
38
37
|
}, publicName), ")")));
|
|
@@ -42,7 +41,7 @@ export class UserOption extends React.PureComponent {
|
|
|
42
41
|
});
|
|
43
42
|
|
|
44
43
|
_defineProperty(this, "renderSecondaryText", () => this.props.user.byline ? jsx("span", {
|
|
45
|
-
css: textWrapper(this.props.isSelected ?
|
|
44
|
+
css: textWrapper(this.props.isSelected ? `var(--ds-text-selected, ${B400})` : `var(--ds-text-subtlest, ${N200})`)
|
|
46
45
|
}, this.props.user.byline) : undefined);
|
|
47
46
|
|
|
48
47
|
_defineProperty(this, "renderAvatar", () => {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { token } from '@atlaskit/tokens';
|
|
4
3
|
export function GitHubIcon(props) {
|
|
5
4
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
6
5
|
width: "12",
|
|
@@ -12,6 +11,6 @@ export function GitHubIcon(props) {
|
|
|
12
11
|
fillRule: "evenodd",
|
|
13
12
|
clipRule: "evenodd",
|
|
14
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",
|
|
15
|
-
fill:
|
|
14
|
+
fill: "var(--ds-text-inverse, white)"
|
|
16
15
|
}));
|
|
17
16
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { token } from '@atlaskit/tokens';
|
|
4
3
|
export function GoogleIcon(props) {
|
|
5
4
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
6
5
|
width: "12",
|
|
@@ -12,21 +11,21 @@ export function GoogleIcon(props) {
|
|
|
12
11
|
fillRule: "evenodd",
|
|
13
12
|
clipRule: "evenodd",
|
|
14
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",
|
|
15
|
-
fill:
|
|
14
|
+
fill: "var(--ds-text-inverse, white)"
|
|
16
15
|
}), /*#__PURE__*/React.createElement("path", {
|
|
17
16
|
fillRule: "evenodd",
|
|
18
17
|
clipRule: "evenodd",
|
|
19
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",
|
|
20
|
-
fill:
|
|
19
|
+
fill: "var(--ds-text-inverse, white)"
|
|
21
20
|
}), /*#__PURE__*/React.createElement("path", {
|
|
22
21
|
fillRule: "evenodd",
|
|
23
22
|
clipRule: "evenodd",
|
|
24
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",
|
|
25
|
-
fill:
|
|
24
|
+
fill: "var(--ds-text-inverse, white)"
|
|
26
25
|
}), /*#__PURE__*/React.createElement("path", {
|
|
27
26
|
fillRule: "evenodd",
|
|
28
27
|
clipRule: "evenodd",
|
|
29
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",
|
|
30
|
-
fill:
|
|
29
|
+
fill: "var(--ds-text-inverse, white)"
|
|
31
30
|
}));
|
|
32
31
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { token } from '@atlaskit/tokens';
|
|
4
3
|
export function MicrosoftIcon(props) {
|
|
5
4
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
6
5
|
width: "12",
|
|
@@ -12,21 +11,21 @@ export function MicrosoftIcon(props) {
|
|
|
12
11
|
clipPath: "url(#clip0)"
|
|
13
12
|
}, /*#__PURE__*/React.createElement("path", {
|
|
14
13
|
d: "M0 0H5.70233V5.7023H0V0Z",
|
|
15
|
-
fill:
|
|
14
|
+
fill: "var(--ds-text-inverse, white)"
|
|
16
15
|
}), /*#__PURE__*/React.createElement("path", {
|
|
17
16
|
d: "M6.29785 0H12.0002V5.7023H6.29785V0Z",
|
|
18
|
-
fill:
|
|
17
|
+
fill: "var(--ds-text-inverse, white)"
|
|
19
18
|
}), /*#__PURE__*/React.createElement("path", {
|
|
20
19
|
d: "M0 6.29688H5.70233V11.9992H0V6.29688Z",
|
|
21
|
-
fill:
|
|
20
|
+
fill: "var(--ds-text-inverse, white)"
|
|
22
21
|
}), /*#__PURE__*/React.createElement("path", {
|
|
23
22
|
d: "M6.29785 6.29688H12.0002V11.9992H6.29785V6.29688Z",
|
|
24
|
-
fill:
|
|
23
|
+
fill: "var(--ds-text-inverse, white)"
|
|
25
24
|
})), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
26
25
|
id: "clip0"
|
|
27
26
|
}, /*#__PURE__*/React.createElement("rect", {
|
|
28
27
|
width: "12",
|
|
29
28
|
height: "11.9999",
|
|
30
|
-
fill:
|
|
29
|
+
fill: "var(--ds-text-inverse, white)"
|
|
31
30
|
}))));
|
|
32
31
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { token } from '@atlaskit/tokens';
|
|
4
3
|
export function SlackIcon(props) {
|
|
5
4
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
6
5
|
width: "12",
|
|
@@ -12,33 +11,33 @@ export function SlackIcon(props) {
|
|
|
12
11
|
clipPath: "url(#clip0)"
|
|
13
12
|
}, /*#__PURE__*/React.createElement("path", {
|
|
14
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",
|
|
15
|
-
fill:
|
|
14
|
+
fill: "var(--ds-text-inverse, white)"
|
|
16
15
|
}), /*#__PURE__*/React.createElement("path", {
|
|
17
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",
|
|
18
|
-
fill:
|
|
17
|
+
fill: "var(--ds-text-inverse, white)"
|
|
19
18
|
}), /*#__PURE__*/React.createElement("path", {
|
|
20
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",
|
|
21
|
-
fill:
|
|
20
|
+
fill: "var(--ds-text-inverse, white)"
|
|
22
21
|
}), /*#__PURE__*/React.createElement("path", {
|
|
23
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",
|
|
24
|
-
fill:
|
|
23
|
+
fill: "var(--ds-text-inverse, white)"
|
|
25
24
|
}), /*#__PURE__*/React.createElement("path", {
|
|
26
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",
|
|
27
|
-
fill:
|
|
26
|
+
fill: "var(--ds-text-inverse, white)"
|
|
28
27
|
}), /*#__PURE__*/React.createElement("path", {
|
|
29
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",
|
|
30
|
-
fill:
|
|
29
|
+
fill: "var(--ds-text-inverse, white)"
|
|
31
30
|
}), /*#__PURE__*/React.createElement("path", {
|
|
32
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",
|
|
33
|
-
fill:
|
|
32
|
+
fill: "var(--ds-text-inverse, white)"
|
|
34
33
|
}), /*#__PURE__*/React.createElement("path", {
|
|
35
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",
|
|
36
|
-
fill:
|
|
35
|
+
fill: "var(--ds-text-inverse, white)"
|
|
37
36
|
})), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
38
37
|
id: "clip0"
|
|
39
38
|
}, /*#__PURE__*/React.createElement("rect", {
|
|
40
39
|
width: "12",
|
|
41
40
|
height: "11.9999",
|
|
42
|
-
fill:
|
|
41
|
+
fill: "var(--ds-text-inverse, white)"
|
|
43
42
|
}))));
|
|
44
43
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { B100, N0, N10, N20, N30, N40, N100, R50, R400 } from '@atlaskit/theme/colors';
|
|
2
|
-
import { token } from '@atlaskit/tokens';
|
|
3
2
|
import memoizeOne from 'memoize-one';
|
|
4
3
|
import { mergeStyles } from '@atlaskit/select';
|
|
5
4
|
export const BORDER_PADDING = 6;
|
|
@@ -16,14 +15,14 @@ export const getStyles = memoizeOne((width, isMulti, isCompact, overrideStyles)
|
|
|
16
15
|
const isMulti = state.selectProps.isMulti;
|
|
17
16
|
return { ...css,
|
|
18
17
|
width,
|
|
19
|
-
borderColor: state.isFocused ?
|
|
20
|
-
backgroundColor: state.isFocused ?
|
|
18
|
+
borderColor: state.isFocused ? `var(--ds-border-focused, ${css.borderColor})` : state.selectProps.subtle || state.selectProps.noBorder ? 'transparent' : `var(--ds-border-input, ${N40})`,
|
|
19
|
+
backgroundColor: state.isFocused ? `var(--ds-background-input, ${css['backgroundColor']})` : state.selectProps.subtle ? 'transparent' : state.selectProps.textFieldBackgroundColor ? `var(--ds-background-input, ${N10})` : `var(--ds-background-input, ${N20})`,
|
|
21
20
|
'&:hover .fabric-user-picker__clear-indicator': {
|
|
22
21
|
opacity: 1
|
|
23
22
|
},
|
|
24
23
|
':hover': { ...css[':hover'],
|
|
25
|
-
borderColor: state.isFocused ? css[':hover'] ?
|
|
26
|
-
backgroundColor: state.selectProps.subtle && state.selectProps.hoveringClearIndicator ?
|
|
24
|
+
borderColor: state.isFocused ? css[':hover'] ? `var(--ds-border-focused, ${css[':hover'].borderColor})` : `var(--ds-border-focused, ${B100})` : state.selectProps.subtle ? 'transparent' : `var(--ds-border-input, ${N40})`,
|
|
25
|
+
backgroundColor: state.selectProps.subtle && state.selectProps.hoveringClearIndicator ? `var(--ds-background-danger, ${R50})` : state.isFocused ? css[':hover'] ? `var(--ds-background-input, ${css[':hover'].backgroundColor})` : `var(--ds-background-input, ${N0})` : state.isDisabled ? `var(--ds-background-disabled, ${N10})` : `var(--ds-background-input-hovered, ${N30})`
|
|
27
26
|
},
|
|
28
27
|
padding: 0,
|
|
29
28
|
minHeight: isCompact ? 'none' : 44,
|
|
@@ -50,7 +49,7 @@ export const getStyles = memoizeOne((width, isMulti, isCompact, overrideStyles)
|
|
|
50
49
|
paddingTop: 0,
|
|
51
50
|
padding: 0,
|
|
52
51
|
':hover': {
|
|
53
|
-
color:
|
|
52
|
+
color: `var(--ds-icon-danger, ${R400})`
|
|
54
53
|
}
|
|
55
54
|
}),
|
|
56
55
|
indicatorsContainer: css => ({ ...css,
|
|
@@ -126,14 +125,14 @@ export const getStyles = memoizeOne((width, isMulti, isCompact, overrideStyles)
|
|
|
126
125
|
paddingLeft: state.selectProps.isMulti ? 0 : `${BORDER_PADDING}px`,
|
|
127
126
|
'& input::placeholder': {
|
|
128
127
|
/* Chrome, Firefox, Opera, Safari 10.1+ */
|
|
129
|
-
color:
|
|
128
|
+
color: `var(--ds-text-subtlest, ${N100})`,
|
|
130
129
|
opacity: 1
|
|
131
130
|
/* Firefox */
|
|
132
131
|
|
|
133
132
|
},
|
|
134
133
|
'& input:-ms-input-placeholder': {
|
|
135
134
|
/* Internet Explorer 10-11 */
|
|
136
|
-
color:
|
|
135
|
+
color: `var(--ds-text-subtlest, ${N100})`
|
|
137
136
|
}
|
|
138
137
|
}),
|
|
139
138
|
singleValue: css => ({ ...css,
|
package/dist/es2019/version.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import EmailIcon from '@atlaskit/icon/glyph/email';
|
|
3
3
|
import { N40, N500 } from '@atlaskit/theme/colors';
|
|
4
|
-
import { token } from '@atlaskit/tokens';
|
|
5
4
|
import React from 'react';
|
|
6
5
|
import { css, jsx } from '@emotion/react';
|
|
7
6
|
|
|
@@ -9,7 +8,7 @@ var getEmailAvatarWrapperStyle = function getEmailAvatarWrapperStyle(isLozenge)
|
|
|
9
8
|
var padding = isLozenge ? 0 : 4;
|
|
10
9
|
return css({
|
|
11
10
|
padding: "".concat(padding, "px"),
|
|
12
|
-
backgroundColor:
|
|
11
|
+
backgroundColor: "var(--ds-background-neutral, ".concat(N40, ")"),
|
|
13
12
|
borderRadius: '50%',
|
|
14
13
|
display: 'flex',
|
|
15
14
|
alignItems: 'center'
|
|
@@ -24,6 +23,6 @@ export var AddOptionAvatar = function AddOptionAvatar(_ref) {
|
|
|
24
23
|
}, jsx(EmailIcon, {
|
|
25
24
|
label: label,
|
|
26
25
|
size: isLozenge ? 'small' : 'medium',
|
|
27
|
-
primaryColor:
|
|
26
|
+
primaryColor: "var(--ds-text-subtle, ".concat(N500, ")")
|
|
28
27
|
}));
|
|
29
28
|
};
|
|
@@ -9,7 +9,6 @@ import React from 'react';
|
|
|
9
9
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
11
|
import Lozenge from '@atlaskit/lozenge';
|
|
12
|
-
import { token } from '@atlaskit/tokens';
|
|
13
12
|
import { isLozengeText } from './utils';
|
|
14
13
|
var AsyncTooltip = /*#__PURE__*/React.lazy(function () {
|
|
15
14
|
return import(
|
|
@@ -31,7 +30,7 @@ var wrapper = function wrapper(isDisabled) {
|
|
|
31
30
|
margin: 0,
|
|
32
31
|
width: '100%',
|
|
33
32
|
cursor: isDisabled ? 'not-allowed' : 'pointer',
|
|
34
|
-
opacity: isDisabled ?
|
|
33
|
+
opacity: isDisabled ? "var(--ds-opacity-disabled, 0.4)" : undefined
|
|
35
34
|
});
|
|
36
35
|
};
|
|
37
36
|
|
|
@@ -12,7 +12,6 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
12
12
|
|
|
13
13
|
/** @jsx jsx */
|
|
14
14
|
import { B400, N800, N200 } from '@atlaskit/theme/colors';
|
|
15
|
-
import { token } from '@atlaskit/tokens';
|
|
16
15
|
import { jsx } from '@emotion/react';
|
|
17
16
|
import React from 'react';
|
|
18
17
|
import { AvatarItemOption, textWrapper } from '../AvatarItemOption';
|
|
@@ -40,7 +39,7 @@ export var CustomOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
40
39
|
highlight = _this$props$data.highlight;
|
|
41
40
|
return [jsx("span", {
|
|
42
41
|
key: "name",
|
|
43
|
-
css: textWrapper(_this.props.isSelected ?
|
|
42
|
+
css: textWrapper(_this.props.isSelected ? "var(--ds-text-selected, ".concat(B400, ")") : "var(--ds-text, ".concat(N800, ")"))
|
|
44
43
|
}, jsx(HighlightText, {
|
|
45
44
|
highlights: highlight && highlight.name
|
|
46
45
|
}, name))];
|
|
@@ -48,7 +47,7 @@ export var CustomOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
48
47
|
|
|
49
48
|
_defineProperty(_assertThisInitialized(_this), "getBylineComponent", function (isSelected, message) {
|
|
50
49
|
return jsx("span", {
|
|
51
|
-
css: textWrapper(isSelected ?
|
|
50
|
+
css: textWrapper(isSelected ? "var(--ds-text-selected, ".concat(B400, ")") : "var(--ds-text-subtlest, ".concat(N200, ")"))
|
|
52
51
|
}, message);
|
|
53
52
|
});
|
|
54
53
|
|
|
@@ -14,7 +14,6 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
14
14
|
import React from 'react';
|
|
15
15
|
import { FormattedMessage } from 'react-intl-next';
|
|
16
16
|
import { B400, N200, N800 } from '@atlaskit/theme/colors';
|
|
17
|
-
import { token } from '@atlaskit/tokens';
|
|
18
17
|
import { jsx } from '@emotion/react';
|
|
19
18
|
import { AddOptionAvatar } from '../AddOptionAvatar';
|
|
20
19
|
import { AvatarItemOption, textWrapper } from '../AvatarItemOption';
|
|
@@ -50,13 +49,13 @@ export var EmailOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
50
49
|
var id = _this.props.email.id;
|
|
51
50
|
return jsx("span", {
|
|
52
51
|
key: "name",
|
|
53
|
-
css: textWrapper(_this.props.isSelected ?
|
|
52
|
+
css: textWrapper(_this.props.isSelected ? "var(--ds-text-selected, ".concat(B400, ")") : "var(--ds-text, ".concat(N800, ")"))
|
|
54
53
|
}, id);
|
|
55
54
|
});
|
|
56
55
|
|
|
57
56
|
_defineProperty(_assertThisInitialized(_this), "renderSecondaryText", function (label) {
|
|
58
57
|
return jsx("span", {
|
|
59
|
-
css: textWrapper(_this.props.isSelected ?
|
|
58
|
+
css: textWrapper(_this.props.isSelected ? "var(--ds-text-selected, ".concat(B400, ")") : "var(--ds-text-subtlest, ".concat(N200, ")"))
|
|
60
59
|
}, label);
|
|
61
60
|
});
|
|
62
61
|
|
|
@@ -7,7 +7,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
7
7
|
/** @jsx jsx */
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { B400 } from '@atlaskit/theme/colors';
|
|
10
|
-
import { token } from '@atlaskit/tokens';
|
|
11
10
|
|
|
12
11
|
var outerWrapper = function outerWrapper(isDisabled) {
|
|
13
12
|
return css({
|
|
@@ -19,7 +18,7 @@ var outerWrapper = function outerWrapper(isDisabled) {
|
|
|
19
18
|
margin: 0,
|
|
20
19
|
width: '100%',
|
|
21
20
|
cursor: isDisabled ? 'not-allowed' : 'pointer',
|
|
22
|
-
opacity: isDisabled ?
|
|
21
|
+
opacity: isDisabled ? "var(--ds-opacity-disabled, 0.4)" : undefined
|
|
23
22
|
});
|
|
24
23
|
};
|
|
25
24
|
|
|
@@ -39,14 +38,14 @@ var textSection = css({
|
|
|
39
38
|
|
|
40
39
|
var getTextStyle = function getTextStyle(isSecondary) {
|
|
41
40
|
var secondaryCssArgs = isSecondary ? {
|
|
42
|
-
color:
|
|
41
|
+
color: "var(--ds-text-selected, ".concat(B400, ")"),
|
|
43
42
|
fontSize: '0.85em'
|
|
44
43
|
} : {};
|
|
45
44
|
return css(_objectSpread(_objectSpread({
|
|
46
45
|
display: 'flex',
|
|
47
46
|
maxWidth: '100%',
|
|
48
47
|
margin: 0,
|
|
49
|
-
color:
|
|
48
|
+
color: "var(--ds-text-selected, ".concat(B400, ")")
|
|
50
49
|
}, {
|
|
51
50
|
secondaryCssArgs: secondaryCssArgs
|
|
52
51
|
}), {}, {
|
|
@@ -5,7 +5,6 @@ import { useCallback, useState } from 'react';
|
|
|
5
5
|
import { css, jsx } from '@emotion/react';
|
|
6
6
|
import EditorPanelIcon from '@atlaskit/icon/glyph/editor/panel';
|
|
7
7
|
import { N50, N200 } from '@atlaskit/theme/colors';
|
|
8
|
-
import { token } from '@atlaskit/tokens';
|
|
9
8
|
var wrapper = css({
|
|
10
9
|
display: 'flex'
|
|
11
10
|
});
|
|
@@ -29,6 +28,6 @@ export default (function () {
|
|
|
29
28
|
testId: "source-icon",
|
|
30
29
|
label: "",
|
|
31
30
|
size: "large",
|
|
32
|
-
primaryColor:
|
|
31
|
+
primaryColor: "var(--ds-text-subtlest, ".concat(isMouseHovered ? N200 : N50, ")")
|
|
33
32
|
}));
|
|
34
33
|
});
|
|
@@ -15,7 +15,6 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
15
15
|
import React from 'react';
|
|
16
16
|
import { css, jsx } from '@emotion/react';
|
|
17
17
|
import { B400, N200, N800 } from '@atlaskit/theme/colors';
|
|
18
|
-
import { token } from '@atlaskit/tokens';
|
|
19
18
|
import Tooltip from '@atlaskit/tooltip';
|
|
20
19
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
21
20
|
import { createAndFireEventInElementsChannel, userInfoEvent } from '../../analytics';
|
|
@@ -57,7 +56,7 @@ var ExternalUserOptionImpl = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
57
56
|
var name = _this.props.user.name;
|
|
58
57
|
return jsx("span", {
|
|
59
58
|
key: "name",
|
|
60
|
-
css: textWrapper(_this.props.isSelected ?
|
|
59
|
+
css: textWrapper(_this.props.isSelected ? "var(--ds-text-selected, ".concat(B400, ")") : "var(--ds-text, ".concat(N800, ")"))
|
|
61
60
|
}, name);
|
|
62
61
|
});
|
|
63
62
|
|
|
@@ -75,7 +74,7 @@ var ExternalUserOptionImpl = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
75
74
|
|
|
76
75
|
var emailDomainWithAt = "@".concat(emailDomain);
|
|
77
76
|
return jsx("span", {
|
|
78
|
-
css: textWrapper(_this.props.isSelected ?
|
|
77
|
+
css: textWrapper(_this.props.isSelected ? "var(--ds-text-selected, ".concat(B400, ")") : "var(--ds-text-subtlest, ".concat(N200, ")"))
|
|
79
78
|
}, emailUser, jsx("span", {
|
|
80
79
|
css: emailDomainWrapper
|
|
81
80
|
}, emailDomainWithAt));
|