@atlaskit/user-picker 8.0.0 → 8.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/cjs/components/AddOptionAvatar.js +5 -3
- package/dist/cjs/components/AvatarItemOption.js +4 -2
- package/dist/cjs/components/EmailOption.js +4 -2
- package/dist/cjs/components/ExternalUserOption.js +5 -3
- package/dist/cjs/components/GroupOption.js +5 -3
- package/dist/cjs/components/PopupControl.js +4 -2
- package/dist/cjs/components/TeamOption.js +4 -2
- package/dist/cjs/components/UserOption.js +5 -3
- package/dist/cjs/components/assets/github.js +3 -1
- package/dist/cjs/components/assets/google.js +6 -4
- package/dist/cjs/components/assets/microsoft.js +7 -5
- package/dist/cjs/components/assets/slack.js +11 -9
- package/dist/cjs/components/styles.js +9 -7
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/AddOptionAvatar.js +3 -3
- package/dist/es2019/components/AvatarItemOption.js +3 -2
- package/dist/es2019/components/EmailOption.js +3 -2
- package/dist/es2019/components/ExternalUserOption.js +4 -3
- package/dist/es2019/components/GroupOption.js +4 -3
- package/dist/es2019/components/PopupControl.js +3 -2
- package/dist/es2019/components/TeamOption.js +3 -2
- package/dist/es2019/components/UserOption.js +4 -3
- package/dist/es2019/components/assets/github.js +2 -1
- package/dist/es2019/components/assets/google.js +5 -4
- package/dist/es2019/components/assets/microsoft.js +6 -5
- package/dist/es2019/components/assets/slack.js +10 -9
- package/dist/es2019/components/styles.js +8 -7
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/AddOptionAvatar.js +4 -3
- package/dist/esm/components/AvatarItemOption.js +3 -2
- package/dist/esm/components/EmailOption.js +3 -2
- package/dist/esm/components/ExternalUserOption.js +4 -3
- package/dist/esm/components/GroupOption.js +4 -3
- package/dist/esm/components/PopupControl.js +3 -2
- package/dist/esm/components/TeamOption.js +3 -2
- package/dist/esm/components/UserOption.js +4 -3
- package/dist/esm/components/assets/github.js +2 -1
- package/dist/esm/components/assets/google.js +5 -4
- package/dist/esm/components/assets/microsoft.js +6 -5
- package/dist/esm/components/assets/slack.js +10 -9
- package/dist/esm/components/styles.js +8 -7
- package/dist/esm/version.json +1 -1
- package/package.json +7 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import { B400, N800, N200 } from '@atlaskit/theme/colors';
|
|
4
|
+
import { token } from '@atlaskit/tokens';
|
|
4
5
|
import React from 'react';
|
|
5
6
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
7
|
import { AvatarItemOption, TextWrapper } from './AvatarItemOption';
|
|
@@ -20,7 +21,7 @@ export class TeamOption extends React.PureComponent {
|
|
|
20
21
|
} = this.props;
|
|
21
22
|
return [/*#__PURE__*/React.createElement(TextWrapper, {
|
|
22
23
|
key: "name",
|
|
23
|
-
color: this.props.isSelected ? B400 : N800
|
|
24
|
+
color: this.props.isSelected ? token('color.text.selected', B400) : token('color.text.highEmphasis', N800)
|
|
24
25
|
}, /*#__PURE__*/React.createElement(HighlightText, {
|
|
25
26
|
highlights: highlight && highlight.name
|
|
26
27
|
}, name))];
|
|
@@ -63,7 +64,7 @@ export class TeamOption extends React.PureComponent {
|
|
|
63
64
|
});
|
|
64
65
|
|
|
65
66
|
_defineProperty(this, "getBylineComponent", (isSelected, message) => /*#__PURE__*/React.createElement(TextWrapper, {
|
|
66
|
-
color: isSelected ? B400 : N200
|
|
67
|
+
color: isSelected ? token('color.text.selected', B400) : token('color.text.lowEmphasis', N200)
|
|
67
68
|
}, message));
|
|
68
69
|
|
|
69
70
|
_defineProperty(this, "renderAvatar", () => {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { B400, N800, N200 } from '@atlaskit/theme/colors';
|
|
3
|
+
import { token } from '@atlaskit/tokens';
|
|
3
4
|
import React from 'react';
|
|
4
5
|
import { AvatarItemOption, TextWrapper } from './AvatarItemOption';
|
|
5
6
|
import { HighlightText } from './HighlightText';
|
|
@@ -19,7 +20,7 @@ export class UserOption extends React.PureComponent {
|
|
|
19
20
|
} = this.props;
|
|
20
21
|
const result = [/*#__PURE__*/React.createElement(TextWrapper, {
|
|
21
22
|
key: "name",
|
|
22
|
-
color: this.props.isSelected ? B400 : N800
|
|
23
|
+
color: this.props.isSelected ? token('color.text.selected', B400) : token('color.text.highEmphasis', N800)
|
|
23
24
|
}, /*#__PURE__*/React.createElement(HighlightText, {
|
|
24
25
|
highlights: highlight && highlight.name
|
|
25
26
|
}, name))];
|
|
@@ -28,7 +29,7 @@ export class UserOption extends React.PureComponent {
|
|
|
28
29
|
result.push( /*#__PURE__*/React.createElement(React.Fragment, {
|
|
29
30
|
key: "publicName"
|
|
30
31
|
}, ' ', /*#__PURE__*/React.createElement(TextWrapper, {
|
|
31
|
-
color: this.props.isSelected ? B400 : N200
|
|
32
|
+
color: this.props.isSelected ? token('color.text.selected', B400) : token('color.text.lowEmphasis', N200)
|
|
32
33
|
}, "(", /*#__PURE__*/React.createElement(HighlightText, {
|
|
33
34
|
highlights: highlight && highlight.publicName
|
|
34
35
|
}, publicName), ")")));
|
|
@@ -38,7 +39,7 @@ export class UserOption extends React.PureComponent {
|
|
|
38
39
|
});
|
|
39
40
|
|
|
40
41
|
_defineProperty(this, "renderSecondaryText", () => this.props.user.byline ? /*#__PURE__*/React.createElement(TextWrapper, {
|
|
41
|
-
color: this.props.isSelected ? B400 : N200
|
|
42
|
+
color: this.props.isSelected ? token('color.text.selected', B400) : token('color.text.lowEmphasis', N200)
|
|
42
43
|
}, this.props.user.byline) : undefined);
|
|
43
44
|
|
|
44
45
|
_defineProperty(this, "renderAvatar", () => {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { token } from '@atlaskit/tokens';
|
|
3
4
|
export function GitHubIcon(props) {
|
|
4
5
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
5
6
|
width: "12",
|
|
@@ -11,6 +12,6 @@ export function GitHubIcon(props) {
|
|
|
11
12
|
fillRule: "evenodd",
|
|
12
13
|
clipRule: "evenodd",
|
|
13
14
|
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:
|
|
15
|
+
fill: token('color.text.onBold', 'white')
|
|
15
16
|
}));
|
|
16
17
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { token } from '@atlaskit/tokens';
|
|
3
4
|
export function GoogleIcon(props) {
|
|
4
5
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
5
6
|
width: "12",
|
|
@@ -11,21 +12,21 @@ export function GoogleIcon(props) {
|
|
|
11
12
|
fillRule: "evenodd",
|
|
12
13
|
clipRule: "evenodd",
|
|
13
14
|
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:
|
|
15
|
+
fill: token('color.text.onBold', 'white')
|
|
15
16
|
}), /*#__PURE__*/React.createElement("path", {
|
|
16
17
|
fillRule: "evenodd",
|
|
17
18
|
clipRule: "evenodd",
|
|
18
19
|
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:
|
|
20
|
+
fill: token('color.text.onBold', 'white')
|
|
20
21
|
}), /*#__PURE__*/React.createElement("path", {
|
|
21
22
|
fillRule: "evenodd",
|
|
22
23
|
clipRule: "evenodd",
|
|
23
24
|
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:
|
|
25
|
+
fill: token('color.text.onBold', 'white')
|
|
25
26
|
}), /*#__PURE__*/React.createElement("path", {
|
|
26
27
|
fillRule: "evenodd",
|
|
27
28
|
clipRule: "evenodd",
|
|
28
29
|
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:
|
|
30
|
+
fill: token('color.text.onBold', 'white')
|
|
30
31
|
}));
|
|
31
32
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { token } from '@atlaskit/tokens';
|
|
3
4
|
export function MicrosoftIcon(props) {
|
|
4
5
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
5
6
|
width: "12",
|
|
@@ -11,21 +12,21 @@ export function MicrosoftIcon(props) {
|
|
|
11
12
|
clipPath: "url(#clip0)"
|
|
12
13
|
}, /*#__PURE__*/React.createElement("path", {
|
|
13
14
|
d: "M0 0H5.70233V5.7023H0V0Z",
|
|
14
|
-
fill:
|
|
15
|
+
fill: token('color.text.onBold', 'white')
|
|
15
16
|
}), /*#__PURE__*/React.createElement("path", {
|
|
16
17
|
d: "M6.29785 0H12.0002V5.7023H6.29785V0Z",
|
|
17
|
-
fill:
|
|
18
|
+
fill: token('color.text.onBold', 'white')
|
|
18
19
|
}), /*#__PURE__*/React.createElement("path", {
|
|
19
20
|
d: "M0 6.29688H5.70233V11.9992H0V6.29688Z",
|
|
20
|
-
fill:
|
|
21
|
+
fill: token('color.text.onBold', 'white')
|
|
21
22
|
}), /*#__PURE__*/React.createElement("path", {
|
|
22
23
|
d: "M6.29785 6.29688H12.0002V11.9992H6.29785V6.29688Z",
|
|
23
|
-
fill:
|
|
24
|
+
fill: token('color.text.onBold', 'white')
|
|
24
25
|
})), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
25
26
|
id: "clip0"
|
|
26
27
|
}, /*#__PURE__*/React.createElement("rect", {
|
|
27
28
|
width: "12",
|
|
28
29
|
height: "11.9999",
|
|
29
|
-
fill:
|
|
30
|
+
fill: token('color.text.onBold', 'white')
|
|
30
31
|
}))));
|
|
31
32
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { token } from '@atlaskit/tokens';
|
|
3
4
|
export function SlackIcon(props) {
|
|
4
5
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
5
6
|
width: "12",
|
|
@@ -11,33 +12,33 @@ export function SlackIcon(props) {
|
|
|
11
12
|
clipPath: "url(#clip0)"
|
|
12
13
|
}, /*#__PURE__*/React.createElement("path", {
|
|
13
14
|
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:
|
|
15
|
+
fill: token('color.text.onBold', 'white')
|
|
15
16
|
}), /*#__PURE__*/React.createElement("path", {
|
|
16
17
|
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:
|
|
18
|
+
fill: token('color.text.onBold', 'white')
|
|
18
19
|
}), /*#__PURE__*/React.createElement("path", {
|
|
19
20
|
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:
|
|
21
|
+
fill: token('color.text.onBold', 'white')
|
|
21
22
|
}), /*#__PURE__*/React.createElement("path", {
|
|
22
23
|
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:
|
|
24
|
+
fill: token('color.text.onBold', 'white')
|
|
24
25
|
}), /*#__PURE__*/React.createElement("path", {
|
|
25
26
|
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:
|
|
27
|
+
fill: token('color.text.onBold', 'white')
|
|
27
28
|
}), /*#__PURE__*/React.createElement("path", {
|
|
28
29
|
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:
|
|
30
|
+
fill: token('color.text.onBold', 'white')
|
|
30
31
|
}), /*#__PURE__*/React.createElement("path", {
|
|
31
32
|
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:
|
|
33
|
+
fill: token('color.text.onBold', 'white')
|
|
33
34
|
}), /*#__PURE__*/React.createElement("path", {
|
|
34
35
|
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:
|
|
36
|
+
fill: token('color.text.onBold', 'white')
|
|
36
37
|
})), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
37
38
|
id: "clip0"
|
|
38
39
|
}, /*#__PURE__*/React.createElement("rect", {
|
|
39
40
|
width: "12",
|
|
40
41
|
height: "11.9999",
|
|
41
|
-
fill:
|
|
42
|
+
fill: token('color.text.onBold', 'white')
|
|
42
43
|
}))));
|
|
43
44
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AVATAR_SIZES, BORDER_WIDTH } from '@atlaskit/avatar';
|
|
2
2
|
import { B100, N0, N10, N20, N30, N40, N100, R50, R400 } from '@atlaskit/theme/colors';
|
|
3
|
+
import { token } from '@atlaskit/tokens';
|
|
3
4
|
import memoizeOne from 'memoize-one';
|
|
4
5
|
import { getAvatarSize } from './utils';
|
|
5
6
|
import { mergeStyles } from '@atlaskit/select';
|
|
@@ -19,14 +20,14 @@ export const getStyles = memoizeOne((width, isMulti, overrideStyles) => {
|
|
|
19
20
|
const isMulti = state.selectProps.isMulti;
|
|
20
21
|
return { ...css,
|
|
21
22
|
width,
|
|
22
|
-
borderColor: state.isFocused ? css.borderColor : state.selectProps.subtle || state.selectProps.noBorder ? 'transparent' : N40,
|
|
23
|
-
backgroundColor: state.isFocused ? css['backgroundColor'] : state.selectProps.subtle ? 'transparent' : state.selectProps.textFieldBackgroundColor ? N10 : N20,
|
|
23
|
+
borderColor: state.isFocused ? token('color.border.neutral', css.borderColor) : state.selectProps.subtle || state.selectProps.noBorder ? 'transparent' : token('color.border.neutral', N40),
|
|
24
|
+
backgroundColor: state.isFocused ? token('color.background.default', css['backgroundColor']) : state.selectProps.subtle ? 'transparent' : state.selectProps.textFieldBackgroundColor ? token('color.background.subtleBorderedNeutral.resting', N10) : token('color.background.subtleNeutral.resting', N20),
|
|
24
25
|
'&:hover .fabric-user-picker__clear-indicator': {
|
|
25
26
|
opacity: 1
|
|
26
27
|
},
|
|
27
28
|
':hover': { ...css[':hover'],
|
|
28
|
-
borderColor: state.isFocused ? css[':hover'] ? css[':hover'].borderColor : B100 : state.selectProps.subtle ? state.selectProps.hoveringClearIndicator ? R50 : N30 : N40,
|
|
29
|
-
backgroundColor: state.selectProps.subtle && state.selectProps.hoveringClearIndicator ? R50 : state.isFocused ? css[':hover'] ? css[':hover'].backgroundColor : N0 : state.isDisabled ? N10 : N30
|
|
29
|
+
borderColor: state.isFocused ? css[':hover'] ? token('color.border.focus', css[':hover'].borderColor) : token('color.border.focus', B100) : state.selectProps.subtle ? state.selectProps.hoveringClearIndicator ? token('color.iconBorder.danger', R50) : token('color.border.neutral', N30) : token('color.border.neutral', N40),
|
|
30
|
+
backgroundColor: state.selectProps.subtle && state.selectProps.hoveringClearIndicator ? token('color.background.subtleDanger.resting', R50) : state.isFocused ? css[':hover'] ? token('color.background.default', css[':hover'].backgroundColor) : token('color.background.default', N0) : state.isDisabled ? token('color.background.disabled', N10) : token('color.background.default', N30)
|
|
30
31
|
},
|
|
31
32
|
padding: 0,
|
|
32
33
|
minHeight: isCompact ? 'none' : 44,
|
|
@@ -49,7 +50,7 @@ export const getStyles = memoizeOne((width, isMulti, overrideStyles) => {
|
|
|
49
50
|
paddingTop: 0,
|
|
50
51
|
padding: 0,
|
|
51
52
|
':hover': {
|
|
52
|
-
color: R400
|
|
53
|
+
color: token('color.text.danger', R400)
|
|
53
54
|
}
|
|
54
55
|
}),
|
|
55
56
|
indicatorsContainer: css => ({ ...css,
|
|
@@ -135,14 +136,14 @@ export const getStyles = memoizeOne((width, isMulti, overrideStyles) => {
|
|
|
135
136
|
paddingLeft: isMulti ? 0 : AVATAR_PADDING,
|
|
136
137
|
'& input::placeholder': {
|
|
137
138
|
/* Chrome, Firefox, Opera, Safari 10.1+ */
|
|
138
|
-
color: N100,
|
|
139
|
+
color: token('color.text.lowEmphasis', N100),
|
|
139
140
|
opacity: 1
|
|
140
141
|
/* Firefox */
|
|
141
142
|
|
|
142
143
|
},
|
|
143
144
|
'& input:-ms-input-placeholder': {
|
|
144
145
|
/* Internet Explorer 10-11 */
|
|
145
|
-
color: N100
|
|
146
|
+
color: token('color.text.lowEmphasis', N100)
|
|
146
147
|
}
|
|
147
148
|
})
|
|
148
149
|
};
|
package/dist/es2019/version.json
CHANGED
|
@@ -4,11 +4,12 @@ var _templateObject;
|
|
|
4
4
|
|
|
5
5
|
import EmailIcon from '@atlaskit/icon/glyph/email';
|
|
6
6
|
import { N40, N500 } from '@atlaskit/theme/colors';
|
|
7
|
+
import { token } from '@atlaskit/tokens';
|
|
7
8
|
import React from 'react';
|
|
8
9
|
import styled from 'styled-components';
|
|
9
|
-
var EmailAvatarWrapper = styled.span(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n
|
|
10
|
+
var EmailAvatarWrapper = styled.span(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: ", "px;\n\n background-color: ", ";\n border-radius: 50%;\n display: flex;\n align-items: center;\n"])), function (props) {
|
|
10
11
|
return props.isLozenge ? 0 : 4;
|
|
11
|
-
}, N40);
|
|
12
|
+
}, token('color.background.subtleNeutral.resting', N40));
|
|
12
13
|
export var AddOptionAvatar = function AddOptionAvatar(_ref) {
|
|
13
14
|
var isLozenge = _ref.isLozenge,
|
|
14
15
|
label = _ref.label;
|
|
@@ -17,6 +18,6 @@ export var AddOptionAvatar = function AddOptionAvatar(_ref) {
|
|
|
17
18
|
}, /*#__PURE__*/React.createElement(EmailIcon, {
|
|
18
19
|
label: label,
|
|
19
20
|
size: isLozenge ? 'small' : 'medium',
|
|
20
|
-
primaryColor: N500
|
|
21
|
+
primaryColor: token('color.text.mediumEmphasis', N500)
|
|
21
22
|
}));
|
|
22
23
|
};
|
|
@@ -5,12 +5,13 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import styled from 'styled-components';
|
|
7
7
|
import { B400 } from '@atlaskit/theme/colors';
|
|
8
|
+
import { token } from '@atlaskit/tokens';
|
|
8
9
|
import Lozenge from '@atlaskit/lozenge';
|
|
9
10
|
import Tooltip from '@atlaskit/tooltip';
|
|
10
11
|
var Wrapper = styled.span(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n align-items: center;\n box-sizing: border-box;\n display: flex;\n line-height: 1;\n outline: none;\n margin: 0;\n width: 100%;\n cursor: pointer;\n"])));
|
|
11
|
-
var Text = styled.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin: 0;\n color: ", ";\n overflow-x: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n ", "\n"])), B400, function (_ref) {
|
|
12
|
+
var Text = styled.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin: 0;\n color: ", ";\n overflow-x: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n ", "\n"])), token('color.text.selected', B400), function (_ref) {
|
|
12
13
|
var secondary = _ref.secondary;
|
|
13
|
-
return secondary && "color: ".concat(B400, "; font-size: 0.85em;");
|
|
14
|
+
return secondary && "color: ".concat(token('color.text.selected', B400), "; font-size: 0.85em;");
|
|
14
15
|
});
|
|
15
16
|
var AdditionalInfo = styled.span(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n float: right;\n ", "\n"])), function (_ref2) {
|
|
16
17
|
var withTooltip = _ref2.withTooltip;
|
|
@@ -13,6 +13,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import { FormattedMessage } from 'react-intl-next';
|
|
15
15
|
import { B400, N200, N800 } from '@atlaskit/theme/colors';
|
|
16
|
+
import { token } from '@atlaskit/tokens';
|
|
16
17
|
import { AddOptionAvatar } from './AddOptionAvatar';
|
|
17
18
|
import { AvatarItemOption, TextWrapper } from './AvatarItemOption';
|
|
18
19
|
import { messages } from './i18n';
|
|
@@ -47,13 +48,13 @@ export var EmailOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
47
48
|
var id = _this.props.email.id;
|
|
48
49
|
return /*#__PURE__*/React.createElement(TextWrapper, {
|
|
49
50
|
key: "name",
|
|
50
|
-
color: _this.props.isSelected ? B400 : N800
|
|
51
|
+
color: _this.props.isSelected ? token('color.text.selected', B400) : token('color.text.highEmphasis', N800)
|
|
51
52
|
}, id);
|
|
52
53
|
});
|
|
53
54
|
|
|
54
55
|
_defineProperty(_assertThisInitialized(_this), "renderSecondaryText", function (label) {
|
|
55
56
|
return /*#__PURE__*/React.createElement(TextWrapper, {
|
|
56
|
-
color: _this.props.isSelected ? B400 : N200
|
|
57
|
+
color: _this.props.isSelected ? token('color.text.selected', B400) : token('color.text.lowEmphasis', N200)
|
|
57
58
|
}, label);
|
|
58
59
|
});
|
|
59
60
|
|
|
@@ -15,6 +15,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
15
15
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
16
16
|
|
|
17
17
|
import { B400, N200, N800 } from '@atlaskit/theme/colors';
|
|
18
|
+
import { token } from '@atlaskit/tokens';
|
|
18
19
|
import React from 'react';
|
|
19
20
|
import { AvatarItemOption, TextWrapper } from './AvatarItemOption';
|
|
20
21
|
import { SizeableAvatar } from './SizeableAvatar';
|
|
@@ -68,7 +69,7 @@ export var ExternalUserOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
68
69
|
var name = _this.props.user.name;
|
|
69
70
|
return /*#__PURE__*/React.createElement(TextWrapper, {
|
|
70
71
|
key: "name",
|
|
71
|
-
color: _this.props.isSelected ? B400 : N800
|
|
72
|
+
color: _this.props.isSelected ? token('color.text.selected', B400) : token('color.text.highEmphasis', N800)
|
|
72
73
|
}, name);
|
|
73
74
|
});
|
|
74
75
|
|
|
@@ -86,7 +87,7 @@ export var ExternalUserOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
86
87
|
|
|
87
88
|
var emailDomainWithAt = "@".concat(emailDomain);
|
|
88
89
|
return /*#__PURE__*/React.createElement(TextWrapper, {
|
|
89
|
-
color: _this.props.isSelected ? B400 : N200
|
|
90
|
+
color: _this.props.isSelected ? token('color.text.selected', B400) : token('color.text.lowEmphasis', N200)
|
|
90
91
|
}, emailUser, /*#__PURE__*/React.createElement(EmailDomainWrapper, null, emailDomainWithAt));
|
|
91
92
|
});
|
|
92
93
|
|
|
@@ -113,7 +114,7 @@ export var ExternalUserOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
113
114
|
}, /*#__PURE__*/React.createElement(EditorPanelIcon, {
|
|
114
115
|
label: "",
|
|
115
116
|
size: "large",
|
|
116
|
-
primaryColor: N200
|
|
117
|
+
primaryColor: token('color.text.lowEmphasis', N200)
|
|
117
118
|
})) : undefined;
|
|
118
119
|
});
|
|
119
120
|
|
|
@@ -17,11 +17,12 @@ import React from 'react';
|
|
|
17
17
|
import { FormattedMessage } from 'react-intl-next';
|
|
18
18
|
import styled from 'styled-components';
|
|
19
19
|
import { N20, B400, N800, N200 } from '@atlaskit/theme/colors';
|
|
20
|
+
import { token } from '@atlaskit/tokens';
|
|
20
21
|
import PeopleIcon from '@atlaskit/icon/glyph/people';
|
|
21
22
|
import { AvatarItemOption, TextWrapper } from './AvatarItemOption';
|
|
22
23
|
import { messages } from './i18n';
|
|
23
24
|
import { HighlightText } from './HighlightText';
|
|
24
|
-
export var GroupOptionIconWrapper = styled.span(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: 2px;\n\n > span {\n background-color: ", ";\n border-radius: 50%;\n padding: 4px;\n }\n"])), N20);
|
|
25
|
+
export var GroupOptionIconWrapper = styled.span(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: 2px;\n\n > span {\n background-color: ", ";\n border-radius: 50%;\n padding: 4px;\n }\n"])), token('color.background.subtleNeutral.resting', N20));
|
|
25
26
|
export var GroupOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
26
27
|
_inherits(GroupOption, _React$PureComponent);
|
|
27
28
|
|
|
@@ -46,7 +47,7 @@ export var GroupOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
46
47
|
highlight = _this$props$group.highlight;
|
|
47
48
|
return [/*#__PURE__*/React.createElement(TextWrapper, {
|
|
48
49
|
key: "name",
|
|
49
|
-
color: isSelected ? B400 : N800
|
|
50
|
+
color: isSelected ? token('color.text.selected', B400) : token('color.text.highEmphasis', N800)
|
|
50
51
|
}, /*#__PURE__*/React.createElement(HighlightText, {
|
|
51
52
|
highlights: highlight && highlight.name
|
|
52
53
|
}, name))];
|
|
@@ -62,7 +63,7 @@ export var GroupOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
62
63
|
_defineProperty(_assertThisInitialized(_this), "renderByline", function () {
|
|
63
64
|
var isSelected = _this.props.isSelected;
|
|
64
65
|
return /*#__PURE__*/React.createElement(TextWrapper, {
|
|
65
|
-
color: isSelected ? B400 : N200
|
|
66
|
+
color: isSelected ? token('color.text.selected', B400) : token('color.text.lowEmphasis', N200)
|
|
66
67
|
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.groupByline));
|
|
67
68
|
});
|
|
68
69
|
|
|
@@ -13,6 +13,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
13
13
|
|
|
14
14
|
import React from 'react';
|
|
15
15
|
import { themed } from '@atlaskit/theme/components';
|
|
16
|
+
import { token } from '@atlaskit/tokens';
|
|
16
17
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
17
18
|
import { components } from '@atlaskit/select';
|
|
18
19
|
import styled, { css } from 'styled-components';
|
|
@@ -24,8 +25,8 @@ var innerHeight = spacing * 2; // 16px
|
|
|
24
25
|
var lineHeight = innerHeight / fontSize;
|
|
25
26
|
var ControlWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n padding: 0px ", "px ", "px;\n"])), spacing, spacing);
|
|
26
27
|
var getColor = themed({
|
|
27
|
-
light: N200,
|
|
28
|
-
dark: DN90
|
|
28
|
+
light: token('color.text.lowEmphasis', N200),
|
|
29
|
+
dark: token('color.text.lowEmphasis', DN90)
|
|
29
30
|
});
|
|
30
31
|
|
|
31
32
|
var getPadding = function getPadding() {
|
|
@@ -12,6 +12,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
12
12
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
13
13
|
|
|
14
14
|
import { B400, N800, N200 } from '@atlaskit/theme/colors';
|
|
15
|
+
import { token } from '@atlaskit/tokens';
|
|
15
16
|
import React from 'react';
|
|
16
17
|
import { FormattedMessage } from 'react-intl-next';
|
|
17
18
|
import { AvatarItemOption, TextWrapper } from './AvatarItemOption';
|
|
@@ -40,7 +41,7 @@ export var TeamOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
40
41
|
highlight = _this$props$team.highlight;
|
|
41
42
|
return [/*#__PURE__*/React.createElement(TextWrapper, {
|
|
42
43
|
key: "name",
|
|
43
|
-
color: _this.props.isSelected ? B400 : N800
|
|
44
|
+
color: _this.props.isSelected ? token('color.text.selected', B400) : token('color.text.highEmphasis', N800)
|
|
44
45
|
}, /*#__PURE__*/React.createElement(HighlightText, {
|
|
45
46
|
highlights: highlight && highlight.name
|
|
46
47
|
}, name))];
|
|
@@ -82,7 +83,7 @@ export var TeamOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
82
83
|
|
|
83
84
|
_defineProperty(_assertThisInitialized(_this), "getBylineComponent", function (isSelected, message) {
|
|
84
85
|
return /*#__PURE__*/React.createElement(TextWrapper, {
|
|
85
|
-
color: isSelected ? B400 : N200
|
|
86
|
+
color: isSelected ? token('color.text.selected', B400) : token('color.text.lowEmphasis', N200)
|
|
86
87
|
}, message);
|
|
87
88
|
});
|
|
88
89
|
|
|
@@ -11,6 +11,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
11
11
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
12
12
|
|
|
13
13
|
import { B400, N800, N200 } from '@atlaskit/theme/colors';
|
|
14
|
+
import { token } from '@atlaskit/tokens';
|
|
14
15
|
import React from 'react';
|
|
15
16
|
import { AvatarItemOption, TextWrapper } from './AvatarItemOption';
|
|
16
17
|
import { HighlightText } from './HighlightText';
|
|
@@ -39,7 +40,7 @@ export var UserOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
39
40
|
highlight = _this$props$user.highlight;
|
|
40
41
|
var result = [/*#__PURE__*/React.createElement(TextWrapper, {
|
|
41
42
|
key: "name",
|
|
42
|
-
color: _this.props.isSelected ? B400 : N800
|
|
43
|
+
color: _this.props.isSelected ? token('color.text.selected', B400) : token('color.text.highEmphasis', N800)
|
|
43
44
|
}, /*#__PURE__*/React.createElement(HighlightText, {
|
|
44
45
|
highlights: highlight && highlight.name
|
|
45
46
|
}, name))];
|
|
@@ -48,7 +49,7 @@ export var UserOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
48
49
|
result.push( /*#__PURE__*/React.createElement(React.Fragment, {
|
|
49
50
|
key: "publicName"
|
|
50
51
|
}, ' ', /*#__PURE__*/React.createElement(TextWrapper, {
|
|
51
|
-
color: _this.props.isSelected ? B400 : N200
|
|
52
|
+
color: _this.props.isSelected ? token('color.text.selected', B400) : token('color.text.lowEmphasis', N200)
|
|
52
53
|
}, "(", /*#__PURE__*/React.createElement(HighlightText, {
|
|
53
54
|
highlights: highlight && highlight.publicName
|
|
54
55
|
}, publicName), ")")));
|
|
@@ -59,7 +60,7 @@ export var UserOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
59
60
|
|
|
60
61
|
_defineProperty(_assertThisInitialized(_this), "renderSecondaryText", function () {
|
|
61
62
|
return _this.props.user.byline ? /*#__PURE__*/React.createElement(TextWrapper, {
|
|
62
|
-
color: _this.props.isSelected ? B400 : N200
|
|
63
|
+
color: _this.props.isSelected ? token('color.text.selected', B400) : token('color.text.lowEmphasis', N200)
|
|
63
64
|
}, _this.props.user.byline) : undefined;
|
|
64
65
|
});
|
|
65
66
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { token } from '@atlaskit/tokens';
|
|
3
4
|
export function GitHubIcon(props) {
|
|
4
5
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
5
6
|
width: "12",
|
|
@@ -11,6 +12,6 @@ export function GitHubIcon(props) {
|
|
|
11
12
|
fillRule: "evenodd",
|
|
12
13
|
clipRule: "evenodd",
|
|
13
14
|
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:
|
|
15
|
+
fill: token('color.text.onBold', 'white')
|
|
15
16
|
}));
|
|
16
17
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { token } from '@atlaskit/tokens';
|
|
3
4
|
export function GoogleIcon(props) {
|
|
4
5
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
5
6
|
width: "12",
|
|
@@ -11,21 +12,21 @@ export function GoogleIcon(props) {
|
|
|
11
12
|
fillRule: "evenodd",
|
|
12
13
|
clipRule: "evenodd",
|
|
13
14
|
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:
|
|
15
|
+
fill: token('color.text.onBold', 'white')
|
|
15
16
|
}), /*#__PURE__*/React.createElement("path", {
|
|
16
17
|
fillRule: "evenodd",
|
|
17
18
|
clipRule: "evenodd",
|
|
18
19
|
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:
|
|
20
|
+
fill: token('color.text.onBold', 'white')
|
|
20
21
|
}), /*#__PURE__*/React.createElement("path", {
|
|
21
22
|
fillRule: "evenodd",
|
|
22
23
|
clipRule: "evenodd",
|
|
23
24
|
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:
|
|
25
|
+
fill: token('color.text.onBold', 'white')
|
|
25
26
|
}), /*#__PURE__*/React.createElement("path", {
|
|
26
27
|
fillRule: "evenodd",
|
|
27
28
|
clipRule: "evenodd",
|
|
28
29
|
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:
|
|
30
|
+
fill: token('color.text.onBold', 'white')
|
|
30
31
|
}));
|
|
31
32
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { token } from '@atlaskit/tokens';
|
|
3
4
|
export function MicrosoftIcon(props) {
|
|
4
5
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
5
6
|
width: "12",
|
|
@@ -11,21 +12,21 @@ export function MicrosoftIcon(props) {
|
|
|
11
12
|
clipPath: "url(#clip0)"
|
|
12
13
|
}, /*#__PURE__*/React.createElement("path", {
|
|
13
14
|
d: "M0 0H5.70233V5.7023H0V0Z",
|
|
14
|
-
fill:
|
|
15
|
+
fill: token('color.text.onBold', 'white')
|
|
15
16
|
}), /*#__PURE__*/React.createElement("path", {
|
|
16
17
|
d: "M6.29785 0H12.0002V5.7023H6.29785V0Z",
|
|
17
|
-
fill:
|
|
18
|
+
fill: token('color.text.onBold', 'white')
|
|
18
19
|
}), /*#__PURE__*/React.createElement("path", {
|
|
19
20
|
d: "M0 6.29688H5.70233V11.9992H0V6.29688Z",
|
|
20
|
-
fill:
|
|
21
|
+
fill: token('color.text.onBold', 'white')
|
|
21
22
|
}), /*#__PURE__*/React.createElement("path", {
|
|
22
23
|
d: "M6.29785 6.29688H12.0002V11.9992H6.29785V6.29688Z",
|
|
23
|
-
fill:
|
|
24
|
+
fill: token('color.text.onBold', 'white')
|
|
24
25
|
})), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
25
26
|
id: "clip0"
|
|
26
27
|
}, /*#__PURE__*/React.createElement("rect", {
|
|
27
28
|
width: "12",
|
|
28
29
|
height: "11.9999",
|
|
29
|
-
fill:
|
|
30
|
+
fill: token('color.text.onBold', 'white')
|
|
30
31
|
}))));
|
|
31
32
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { token } from '@atlaskit/tokens';
|
|
3
4
|
export function SlackIcon(props) {
|
|
4
5
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
5
6
|
width: "12",
|
|
@@ -11,33 +12,33 @@ export function SlackIcon(props) {
|
|
|
11
12
|
clipPath: "url(#clip0)"
|
|
12
13
|
}, /*#__PURE__*/React.createElement("path", {
|
|
13
14
|
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:
|
|
15
|
+
fill: token('color.text.onBold', 'white')
|
|
15
16
|
}), /*#__PURE__*/React.createElement("path", {
|
|
16
17
|
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:
|
|
18
|
+
fill: token('color.text.onBold', 'white')
|
|
18
19
|
}), /*#__PURE__*/React.createElement("path", {
|
|
19
20
|
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:
|
|
21
|
+
fill: token('color.text.onBold', 'white')
|
|
21
22
|
}), /*#__PURE__*/React.createElement("path", {
|
|
22
23
|
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:
|
|
24
|
+
fill: token('color.text.onBold', 'white')
|
|
24
25
|
}), /*#__PURE__*/React.createElement("path", {
|
|
25
26
|
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:
|
|
27
|
+
fill: token('color.text.onBold', 'white')
|
|
27
28
|
}), /*#__PURE__*/React.createElement("path", {
|
|
28
29
|
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:
|
|
30
|
+
fill: token('color.text.onBold', 'white')
|
|
30
31
|
}), /*#__PURE__*/React.createElement("path", {
|
|
31
32
|
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:
|
|
33
|
+
fill: token('color.text.onBold', 'white')
|
|
33
34
|
}), /*#__PURE__*/React.createElement("path", {
|
|
34
35
|
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:
|
|
36
|
+
fill: token('color.text.onBold', 'white')
|
|
36
37
|
})), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
37
38
|
id: "clip0"
|
|
38
39
|
}, /*#__PURE__*/React.createElement("rect", {
|
|
39
40
|
width: "12",
|
|
40
41
|
height: "11.9999",
|
|
41
|
-
fill:
|
|
42
|
+
fill: token('color.text.onBold', 'white')
|
|
42
43
|
}))));
|
|
43
44
|
}
|