@atlaskit/smart-card 18.0.15 → 18.0.16
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/extractors/common/context/extractProvider.js +14 -4
- package/dist/cjs/extractors/common/detail/extractCommentCount.js +3 -1
- package/dist/cjs/extractors/common/detail/extractProgrammingLanguage.js +3 -1
- package/dist/cjs/extractors/common/detail/extractSubscriberCount.js +3 -1
- package/dist/cjs/extractors/common/primitives/extractTitleTextColor.js +3 -1
- package/dist/cjs/version.json +1 -1
- package/dist/cjs/view/BlockCard/components/Frame.js +10 -7
- package/dist/cjs/view/BlockCard/components/Link.js +3 -1
- package/dist/cjs/view/BlockCard/components/Provider.js +3 -1
- package/dist/cjs/view/BlockCard/views/ErroredView.js +3 -1
- package/dist/cjs/view/BlockCard/views/ForbiddenView.js +3 -1
- package/dist/cjs/view/BlockCard/views/NotFoundView.js +3 -1
- package/dist/cjs/view/BlockCard/views/ResolvingView.js +4 -2
- package/dist/cjs/view/EmbedCard/components/styled.js +15 -13
- package/dist/cjs/view/EmbedCard/views/ErroredView.js +3 -1
- package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +8 -2
- package/dist/cjs/view/FlexibleCard/components/common/image-icon/index.js +3 -1
- package/dist/cjs/view/FlexibleCard/components/elements/link/index.js +1 -0
- package/dist/cjs/view/InlineCard/ErroredView/index.js +3 -1
- package/dist/cjs/view/InlineCard/ForbiddenView/index.js +4 -2
- package/dist/cjs/view/InlineCard/Frame/styled.js +16 -13
- package/dist/cjs/view/InlineCard/Icon.js +3 -1
- package/dist/cjs/view/InlineCard/UnauthorisedView/index.js +4 -2
- package/dist/cjs/view/InlineCard/styled.js +6 -4
- package/dist/cjs/view/common/Byline.js +3 -1
- package/dist/cjs/view/common/Metadata.js +3 -1
- package/dist/cjs/view/common/ModalHeader.js +4 -2
- package/dist/es2019/extractors/common/context/extractProvider.js +13 -4
- package/dist/es2019/extractors/common/detail/extractCommentCount.js +2 -1
- package/dist/es2019/extractors/common/detail/extractProgrammingLanguage.js +2 -1
- package/dist/es2019/extractors/common/detail/extractSubscriberCount.js +2 -1
- package/dist/es2019/extractors/common/primitives/extractTitleTextColor.js +2 -1
- package/dist/es2019/version.json +1 -1
- package/dist/es2019/view/BlockCard/components/Frame.js +9 -7
- package/dist/es2019/view/BlockCard/components/Link.js +2 -1
- package/dist/es2019/view/BlockCard/components/Provider.js +2 -1
- package/dist/es2019/view/BlockCard/views/ErroredView.js +2 -1
- package/dist/es2019/view/BlockCard/views/ForbiddenView.js +2 -1
- package/dist/es2019/view/BlockCard/views/NotFoundView.js +2 -1
- package/dist/es2019/view/BlockCard/views/ResolvingView.js +3 -2
- package/dist/es2019/view/EmbedCard/components/styled.js +15 -15
- package/dist/es2019/view/EmbedCard/views/ErroredView.js +2 -1
- package/dist/es2019/view/FlexibleCard/components/common/atlaskit-icon/index.js +8 -3
- package/dist/es2019/view/FlexibleCard/components/common/image-icon/index.js +7 -6
- package/dist/es2019/view/FlexibleCard/components/elements/link/index.js +1 -0
- package/dist/es2019/view/InlineCard/ErroredView/index.js +2 -1
- package/dist/es2019/view/InlineCard/ForbiddenView/index.js +3 -2
- package/dist/es2019/view/InlineCard/Frame/styled.js +15 -12
- package/dist/es2019/view/InlineCard/Icon.js +7 -6
- package/dist/es2019/view/InlineCard/UnauthorisedView/index.js +3 -2
- package/dist/es2019/view/InlineCard/styled.js +5 -4
- package/dist/es2019/view/common/Byline.js +2 -1
- package/dist/es2019/view/common/Metadata.js +2 -1
- package/dist/es2019/view/common/ModalHeader.js +3 -2
- package/dist/esm/extractors/common/context/extractProvider.js +13 -4
- package/dist/esm/extractors/common/detail/extractCommentCount.js +2 -1
- package/dist/esm/extractors/common/detail/extractProgrammingLanguage.js +2 -1
- package/dist/esm/extractors/common/detail/extractSubscriberCount.js +2 -1
- package/dist/esm/extractors/common/primitives/extractTitleTextColor.js +2 -1
- package/dist/esm/version.json +1 -1
- package/dist/esm/view/BlockCard/components/Frame.js +9 -7
- package/dist/esm/view/BlockCard/components/Link.js +2 -1
- package/dist/esm/view/BlockCard/components/Provider.js +2 -1
- package/dist/esm/view/BlockCard/views/ErroredView.js +2 -1
- package/dist/esm/view/BlockCard/views/ForbiddenView.js +2 -1
- package/dist/esm/view/BlockCard/views/NotFoundView.js +2 -1
- package/dist/esm/view/BlockCard/views/ResolvingView.js +3 -2
- package/dist/esm/view/EmbedCard/components/styled.js +14 -13
- package/dist/esm/view/EmbedCard/views/ErroredView.js +2 -1
- package/dist/esm/view/FlexibleCard/components/common/atlaskit-icon/index.js +8 -3
- package/dist/esm/view/FlexibleCard/components/common/image-icon/index.js +2 -1
- package/dist/esm/view/FlexibleCard/components/elements/link/index.js +1 -0
- package/dist/esm/view/InlineCard/ErroredView/index.js +2 -1
- package/dist/esm/view/InlineCard/ForbiddenView/index.js +3 -2
- package/dist/esm/view/InlineCard/Frame/styled.js +16 -13
- package/dist/esm/view/InlineCard/Icon.js +2 -1
- package/dist/esm/view/InlineCard/UnauthorisedView/index.js +3 -2
- package/dist/esm/view/InlineCard/styled.js +5 -4
- package/dist/esm/view/common/Byline.js +2 -1
- package/dist/esm/view/common/Metadata.js +2 -1
- package/dist/esm/view/common/ModalHeader.js +3 -2
- package/package.json +7 -2
|
@@ -2,6 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { R400, N500 } from '@atlaskit/theme/colors';
|
|
5
|
+
import { token } from '@atlaskit/tokens';
|
|
5
6
|
import LockIcon from '@atlaskit/icon/glyph/lock-filled';
|
|
6
7
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
7
8
|
import { Frame } from '../Frame';
|
|
@@ -13,7 +14,7 @@ import { IconStyledButton, LowercaseAppearance, LinkAppearance } from '../styled
|
|
|
13
14
|
const FallbackForbiddenIcon = /*#__PURE__*/React.createElement(AKIconWrapper, null, /*#__PURE__*/React.createElement(LockIcon, {
|
|
14
15
|
label: "error",
|
|
15
16
|
size: "small",
|
|
16
|
-
primaryColor: R400
|
|
17
|
+
primaryColor: token('color.icon.danger', R400)
|
|
17
18
|
}));
|
|
18
19
|
export class InlineCardForbiddenView extends React.Component {
|
|
19
20
|
constructor(...args) {
|
|
@@ -91,7 +92,7 @@ export class InlineCardForbiddenView extends React.Component {
|
|
|
91
92
|
}, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
|
|
92
93
|
icon: icon ? icon : FallbackForbiddenIcon,
|
|
93
94
|
title: this.renderMessage(),
|
|
94
|
-
titleColor: N500
|
|
95
|
+
titleColor: token('color.text.subtle', N500)
|
|
95
96
|
}));
|
|
96
97
|
}
|
|
97
98
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import styled from '@emotion/styled';
|
|
2
|
-
import { B100, B400, B50, N20 } from '@atlaskit/theme/colors';
|
|
2
|
+
import { B100, B400, B50, DN40A, DN50A, N20, N40A, N50A } from '@atlaskit/theme/colors';
|
|
3
3
|
import { borderRadius as akBorderRadius } from '@atlaskit/theme/constants';
|
|
4
|
-
import { e100 } from '@atlaskit/theme/elevation';
|
|
5
4
|
import { themed } from '@atlaskit/theme/components';
|
|
5
|
+
import { token } from '@atlaskit/tokens';
|
|
6
6
|
import { TitleWrapperClassName } from '../IconAndTitleLayout/styled';
|
|
7
7
|
const BACKGROUND_COLOR_DARK = '#262B31';
|
|
8
8
|
const selected = `
|
|
9
9
|
cursor: pointer;
|
|
10
|
-
box-shadow: 0 0 0 2px ${B100};
|
|
10
|
+
box-shadow: 0 0 0 2px ${token('color.border.selected', B100)};
|
|
11
11
|
outline: none;
|
|
12
12
|
user-select: none;
|
|
13
13
|
&, :hover, :focus, :active {
|
|
@@ -23,15 +23,15 @@ const isInteractive = ({
|
|
|
23
23
|
cursor: pointer;
|
|
24
24
|
:hover {
|
|
25
25
|
background-color: ${themed({
|
|
26
|
-
light: N20,
|
|
27
|
-
dark: BACKGROUND_COLOR_DARK
|
|
26
|
+
light: token('color.background.neutral.subtle.hovered', N20),
|
|
27
|
+
dark: token('color.background.neutral.subtle.hovered', BACKGROUND_COLOR_DARK)
|
|
28
28
|
})};
|
|
29
29
|
text-decoration: none;
|
|
30
30
|
}
|
|
31
31
|
:active {
|
|
32
32
|
background-color: ${themed({
|
|
33
|
-
light: B50,
|
|
34
|
-
dark: BACKGROUND_COLOR_DARK
|
|
33
|
+
light: token('color.background.selected', B50),
|
|
34
|
+
dark: token('color.background.selected', BACKGROUND_COLOR_DARK)
|
|
35
35
|
})};
|
|
36
36
|
text-decoration: none;
|
|
37
37
|
}
|
|
@@ -86,14 +86,17 @@ export const Wrapper = styled.a`
|
|
|
86
86
|
box-decoration-break: clone;
|
|
87
87
|
border-radius: ${akBorderRadius()}px;
|
|
88
88
|
color: ${themed({
|
|
89
|
-
light: B400,
|
|
90
|
-
dark: '#4794FF'
|
|
89
|
+
light: token('color.link', B400),
|
|
90
|
+
dark: token('color.link', '#4794FF')
|
|
91
91
|
})};
|
|
92
92
|
background-color: ${props => props.withoutBackground ? '' : themed({
|
|
93
|
-
light: 'white',
|
|
94
|
-
dark: BACKGROUND_COLOR_DARK
|
|
93
|
+
light: token('elevation.surface.raised', 'white'),
|
|
94
|
+
dark: token('elevation.surface.raised', 'BACKGROUND_COLOR_DARK')
|
|
95
95
|
})};
|
|
96
|
-
${props => props.withoutBackground ? '' :
|
|
96
|
+
${props => props.withoutBackground ? '' : themed({
|
|
97
|
+
light: `box-shadow: ${token('elevation.shadow.raised', `0 1px 1px ${N50A}, 0 0 1px 1px ${N40A}`)};`,
|
|
98
|
+
dark: `box-shadow: ${token('elevation.shadow.raised', `0 1px 1px ${DN50A}, 0 0 1px 1px ${DN40A}`)};`
|
|
99
|
+
})}
|
|
97
100
|
${props => isInteractive(props)}
|
|
98
101
|
${props => isSelected(props)};
|
|
99
102
|
${props => withoutHover(props)}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import styled from '@emotion/styled';
|
|
2
2
|
import { keyframes } from '@emotion/core';
|
|
3
|
+
import { token } from '@atlaskit/tokens';
|
|
3
4
|
const placeholderShimmer = keyframes`
|
|
4
5
|
0% {
|
|
5
6
|
background-position: -20px 0;
|
|
@@ -41,14 +42,14 @@ export const Shimmer = styled.span`
|
|
|
41
42
|
top: 50%;
|
|
42
43
|
left: 50%;
|
|
43
44
|
transform: translate(-50%, -50%);
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
background: ${token('color.skeleton.subtle', '#f6f7f8')};
|
|
46
|
+
// TODO: https://product-fabric.atlassian.net/browse/DSP-4236
|
|
46
47
|
background-image: linear-gradient(
|
|
47
48
|
to right,
|
|
48
|
-
#f6f7f8 0%,
|
|
49
|
-
#edeef1 20%,
|
|
50
|
-
#f6f7f8 40%,
|
|
51
|
-
#f6f7f8
|
|
49
|
+
${token('color.skeleton.subtle', '#f6f7f8')} 0%,
|
|
50
|
+
${token('color.skeleton', '#edeef1')} 20%,
|
|
51
|
+
${token('color.skeleton.subtle', '#f6f7f8')} 40%,
|
|
52
|
+
${token('color.skeleton.subtle', '#f6f7f8')}100%
|
|
52
53
|
);
|
|
53
54
|
background-repeat: no-repeat;
|
|
54
55
|
background-size: 40px 14px;
|
|
@@ -2,6 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
3
3
|
import LockIcon from '@atlaskit/icon/glyph/lock-filled';
|
|
4
4
|
import { N500, R400 } from '@atlaskit/theme/colors';
|
|
5
|
+
import { token } from '@atlaskit/tokens';
|
|
5
6
|
import React from 'react';
|
|
6
7
|
import { FormattedMessage } from 'react-intl-next';
|
|
7
8
|
import { messages } from '@atlaskit/media-ui/messages';
|
|
@@ -12,7 +13,7 @@ import { IconStyledButton, LinkAppearance } from '../styled';
|
|
|
12
13
|
const FallbackUnauthorizedIcon = /*#__PURE__*/React.createElement(AKIconWrapper, null, /*#__PURE__*/React.createElement(LockIcon, {
|
|
13
14
|
label: "error",
|
|
14
15
|
size: "small",
|
|
15
|
-
primaryColor: R400
|
|
16
|
+
primaryColor: token('color.icon.danger', R400)
|
|
16
17
|
}));
|
|
17
18
|
export class InlineCardUnauthorizedView extends React.Component {
|
|
18
19
|
constructor(...args) {
|
|
@@ -59,7 +60,7 @@ export class InlineCardUnauthorizedView extends React.Component {
|
|
|
59
60
|
}, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
|
|
60
61
|
icon: icon ? icon : FallbackUnauthorizedIcon,
|
|
61
62
|
title: this.renderMessage(),
|
|
62
|
-
titleColor: N500
|
|
63
|
+
titleColor: token('color.text.subtle', N500)
|
|
63
64
|
}));
|
|
64
65
|
}
|
|
65
66
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import styled from '@emotion/styled';
|
|
2
2
|
import { B400, N200 } from '@atlaskit/theme/colors';
|
|
3
3
|
import { themed } from '@atlaskit/theme/components';
|
|
4
|
+
import { token } from '@atlaskit/tokens';
|
|
4
5
|
const LINK_COLOR_DARK = '#4794FF'; // By default buttons will hide overflow and ellipsis content instead of wrapping.
|
|
5
6
|
// This basically turns the button back into inline content
|
|
6
7
|
|
|
@@ -24,8 +25,8 @@ export const IconStyledButton = styled.span`
|
|
|
24
25
|
`;
|
|
25
26
|
export const NoLinkAppearance = styled.span`
|
|
26
27
|
color: ${themed({
|
|
27
|
-
light: N200,
|
|
28
|
-
dark: LINK_COLOR_DARK
|
|
28
|
+
light: token('color.text.subtlest', N200),
|
|
29
|
+
dark: token('color.text.subtlest', LINK_COLOR_DARK)
|
|
29
30
|
})};
|
|
30
31
|
`;
|
|
31
32
|
export const LowercaseAppearance = styled.span`
|
|
@@ -33,7 +34,7 @@ export const LowercaseAppearance = styled.span`
|
|
|
33
34
|
`;
|
|
34
35
|
export const LinkAppearance = styled.span`
|
|
35
36
|
color: ${themed({
|
|
36
|
-
light: B400,
|
|
37
|
-
dark: LINK_COLOR_DARK
|
|
37
|
+
light: token('color.link', B400),
|
|
38
|
+
dark: token('color.link', LINK_COLOR_DARK)
|
|
38
39
|
})};
|
|
39
40
|
`;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/core';
|
|
3
3
|
import { N300 } from '@atlaskit/theme/colors';
|
|
4
|
+
import { token } from '@atlaskit/tokens';
|
|
4
5
|
import { gs, mq } from './utils';
|
|
5
6
|
export const Byline = ({
|
|
6
7
|
text,
|
|
@@ -11,7 +12,7 @@ export const Byline = ({
|
|
|
11
12
|
css: mq({
|
|
12
13
|
fontSize: gs(1.5),
|
|
13
14
|
lineHeight: gs(2.5),
|
|
14
|
-
color: `${N300}`,
|
|
15
|
+
color: `${token('color.text.subtlest', N300)}`,
|
|
15
16
|
fontWeight: 'normal',
|
|
16
17
|
marginTop: gs(0.5),
|
|
17
18
|
// Spec: only allow two lines MAX to be shown.
|
|
@@ -3,6 +3,7 @@ import { jsx } from '@emotion/core';
|
|
|
3
3
|
import Tooltip from '@atlaskit/tooltip';
|
|
4
4
|
import { gs } from './utils';
|
|
5
5
|
import { N300 } from '@atlaskit/theme/colors';
|
|
6
|
+
import { token } from '@atlaskit/tokens';
|
|
6
7
|
export const Metadata = ({
|
|
7
8
|
text,
|
|
8
9
|
icon,
|
|
@@ -30,7 +31,7 @@ export const Metadata = ({
|
|
|
30
31
|
}, metadataIcon, jsx("span", {
|
|
31
32
|
css: {
|
|
32
33
|
fontSize: gs(1.5),
|
|
33
|
-
color: `${N300}`,
|
|
34
|
+
color: `${token('color.text.subtlest', N300)}`,
|
|
34
35
|
marginRight: gs(0.5),
|
|
35
36
|
marginLeft: '2px'
|
|
36
37
|
}
|
|
@@ -6,6 +6,7 @@ import EditorCloseIcon from '@atlaskit/icon/glyph/editor/close';
|
|
|
6
6
|
import ShortcutIcon from '@atlaskit/icon/glyph/shortcut';
|
|
7
7
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
8
8
|
import { N100, N30A } from '@atlaskit/theme/colors';
|
|
9
|
+
import { token } from '@atlaskit/tokens';
|
|
9
10
|
import { FormattedMessage } from 'react-intl-next';
|
|
10
11
|
import { gs } from './utils';
|
|
11
12
|
import { Icon } from './Icon';
|
|
@@ -41,7 +42,7 @@ export const Header = ({
|
|
|
41
42
|
display: 'flex',
|
|
42
43
|
justifyContent: 'space-between',
|
|
43
44
|
alignItems: 'baseline',
|
|
44
|
-
borderBottom: `1px solid ${N30A}`
|
|
45
|
+
borderBottom: `1px solid ${token('color.border', N30A)}`
|
|
45
46
|
}
|
|
46
47
|
}, jsx("div", {
|
|
47
48
|
css: {
|
|
@@ -58,7 +59,7 @@ export const Header = ({
|
|
|
58
59
|
}
|
|
59
60
|
}, jsx("h3", null, title), jsx("div", {
|
|
60
61
|
css: {
|
|
61
|
-
color: N100
|
|
62
|
+
color: token('color.text.subtlest', N100)
|
|
62
63
|
}
|
|
63
64
|
}, metadata.items.length && jsx(MetadataList, {
|
|
64
65
|
items: metadata.items
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { N700, B200, B400 } from '@atlaskit/theme/colors';
|
|
3
|
+
import { token } from '@atlaskit/tokens';
|
|
3
4
|
import { ConfluenceIcon } from '@atlaskit/logo/confluence-icon';
|
|
4
5
|
import { JiraIcon } from '@atlaskit/logo/jira-icon';
|
|
5
6
|
import { extractUrlFromIconJsonLd } from '../utils';
|
|
@@ -33,18 +34,26 @@ var extractProviderIcon = function extractProviderIcon(icon, id) {
|
|
|
33
34
|
if (id) {
|
|
34
35
|
if (id === CONFLUENCE_GENERATOR_ID) {
|
|
35
36
|
return /*#__PURE__*/React.createElement(ConfluenceIcon, {
|
|
36
|
-
textColor: N700
|
|
37
|
+
textColor: token('color.text.subtle', N700)
|
|
38
|
+
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
39
|
+
,
|
|
37
40
|
iconColor: B200,
|
|
38
41
|
iconGradientStart: B400,
|
|
39
|
-
iconGradientStop: B200
|
|
42
|
+
iconGradientStop: B200
|
|
43
|
+
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
44
|
+
,
|
|
40
45
|
size: "xsmall"
|
|
41
46
|
});
|
|
42
47
|
} else if (id === JIRA_GENERATOR_ID) {
|
|
43
48
|
return /*#__PURE__*/React.createElement(JiraIcon, {
|
|
44
|
-
textColor: N700
|
|
49
|
+
textColor: token('color.text.subtle', N700)
|
|
50
|
+
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
51
|
+
,
|
|
45
52
|
iconColor: B200,
|
|
46
53
|
iconGradientStart: B400,
|
|
47
|
-
iconGradientStop: B200
|
|
54
|
+
iconGradientStop: B200
|
|
55
|
+
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
56
|
+
,
|
|
48
57
|
size: "xsmall"
|
|
49
58
|
});
|
|
50
59
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { N600 } from '@atlaskit/theme/colors';
|
|
3
|
+
import { token } from '@atlaskit/tokens';
|
|
3
4
|
import ChatIcon from '@atlaskit/icon/glyph/comment';
|
|
4
5
|
export var extractCommentCount = function extractCommentCount(jsonLd) {
|
|
5
6
|
var commentCount = jsonLd['schema:commentCount'];
|
|
@@ -11,7 +12,7 @@ export var extractCommentCount = function extractCommentCount(jsonLd) {
|
|
|
11
12
|
label: "comment-count",
|
|
12
13
|
key: "comments-count-icon",
|
|
13
14
|
size: "small",
|
|
14
|
-
primaryColor: N600
|
|
15
|
+
primaryColor: token('color.icon.subtle', N600)
|
|
15
16
|
})
|
|
16
17
|
};
|
|
17
18
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { N600 } from '@atlaskit/theme/colors';
|
|
3
3
|
import CodeIcon from '@atlaskit/icon/glyph/code';
|
|
4
|
+
import { token } from '@atlaskit/tokens';
|
|
4
5
|
export var extractProgrammingLanguage = function extractProgrammingLanguage(jsonLd) {
|
|
5
6
|
var programmingLanguage = jsonLd['schema:programmingLanguage'];
|
|
6
7
|
|
|
@@ -10,7 +11,7 @@ export var extractProgrammingLanguage = function extractProgrammingLanguage(json
|
|
|
10
11
|
icon: /*#__PURE__*/React.createElement(CodeIcon, {
|
|
11
12
|
size: "small",
|
|
12
13
|
label: "code",
|
|
13
|
-
primaryColor: N600
|
|
14
|
+
primaryColor: token('color.icon.subtle', N600)
|
|
14
15
|
})
|
|
15
16
|
};
|
|
16
17
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { N600 } from '@atlaskit/theme/colors';
|
|
3
3
|
import PeopleIcon from '@atlaskit/icon/glyph/people';
|
|
4
|
+
import { token } from '@atlaskit/tokens';
|
|
4
5
|
export var extractSubscriberCount = function extractSubscriberCount(jsonLd) {
|
|
5
6
|
var subscriberCount = jsonLd['atlassian:subscriberCount'];
|
|
6
7
|
|
|
@@ -10,7 +11,7 @@ export var extractSubscriberCount = function extractSubscriberCount(jsonLd) {
|
|
|
10
11
|
icon: /*#__PURE__*/React.createElement(PeopleIcon, {
|
|
11
12
|
size: "small",
|
|
12
13
|
label: "subscribers",
|
|
13
|
-
primaryColor: N600
|
|
14
|
+
primaryColor: token('color.icon.subtle', N600)
|
|
14
15
|
})
|
|
15
16
|
};
|
|
16
17
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { extractorPriorityMap } from '../icon/priority';
|
|
2
2
|
import { R500 } from '@atlaskit/theme/colors';
|
|
3
|
+
import { token } from '@atlaskit/tokens';
|
|
3
4
|
export var extractTitleTextColor = function extractTitleTextColor(jsonLd) {
|
|
4
5
|
var type = jsonLd['@type'];
|
|
5
6
|
|
|
@@ -10,7 +11,7 @@ export var extractTitleTextColor = function extractTitleTextColor(jsonLd) {
|
|
|
10
11
|
|
|
11
12
|
switch (highestPriorityType) {
|
|
12
13
|
case 'atlassian:UndefinedLink':
|
|
13
|
-
return R500;
|
|
14
|
+
return token('color.text.danger', R500);
|
|
14
15
|
|
|
15
16
|
default:
|
|
16
17
|
return undefined;
|
package/dist/esm/version.json
CHANGED
|
@@ -8,6 +8,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
8
8
|
import { jsx } from '@emotion/core';
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { N20A, N30A, B200, N40A, N50A } from '@atlaskit/theme/colors';
|
|
11
|
+
import { token } from '@atlaskit/tokens';
|
|
11
12
|
import { gs, br, mq } from '../../common/utils';
|
|
12
13
|
export var Frame = function Frame() {
|
|
13
14
|
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
|
@@ -21,7 +22,7 @@ var sharedFrameStyles = {
|
|
|
21
22
|
maxWidth: gs(95),
|
|
22
23
|
width: '100%',
|
|
23
24
|
display: 'flex',
|
|
24
|
-
backgroundColor: 'white'
|
|
25
|
+
backgroundColor: token('elevation.surface', 'white')
|
|
25
26
|
};
|
|
26
27
|
export var ExpandedFrame = function ExpandedFrame(_ref) {
|
|
27
28
|
var children = _ref.children,
|
|
@@ -33,15 +34,16 @@ export var ExpandedFrame = function ExpandedFrame(_ref) {
|
|
|
33
34
|
return jsx("div", {
|
|
34
35
|
css: mq(_objectSpread(_objectSpread({}, sharedFrameStyles), {}, {
|
|
35
36
|
'&:hover': isHoverable ? {
|
|
36
|
-
|
|
37
|
+
// TODO: https://product-fabric.atlassian.net/browse/DSP-4064
|
|
38
|
+
backgroundColor: token('color.background.neutral.subtle.hovered', N20A),
|
|
37
39
|
cursor: 'pointer'
|
|
38
40
|
} : undefined,
|
|
39
41
|
minHeight: isFluidHeight ? 0 : [gs(21), gs(15)],
|
|
40
42
|
borderRadius: isSelected ? br() : br(0.5),
|
|
41
|
-
border: "2px solid ".concat(isSelected ? B200 : 'transparent'),
|
|
43
|
+
border: "2px solid ".concat(isSelected ? token('color.border.selected', B200) : 'transparent'),
|
|
42
44
|
justifyContent: 'space-between',
|
|
43
45
|
overflow: 'hidden',
|
|
44
|
-
boxShadow: "0 1px 1px ".concat(N50A, ", 0 0 1px 1px ").concat(N40A
|
|
46
|
+
boxShadow: token('elevation.shadow.raised', "0 1px 1px ".concat(N50A, ", 0 0 1px 1px ").concat(N40A))
|
|
45
47
|
})),
|
|
46
48
|
"data-testid": testId,
|
|
47
49
|
className: className,
|
|
@@ -58,14 +60,14 @@ export var CompactFrame = function CompactFrame(_ref2) {
|
|
|
58
60
|
return jsx("div", {
|
|
59
61
|
css: mq(_objectSpread(_objectSpread({}, sharedFrameStyles), {}, {
|
|
60
62
|
'&:hover': isHoverable ? {
|
|
61
|
-
backgroundColor: N30A
|
|
63
|
+
backgroundColor: token('color.background.neutral.hovered', N30A)
|
|
62
64
|
} : undefined,
|
|
63
65
|
borderRadius: isSelected ? br() : br(0.5),
|
|
64
|
-
border: isSelected ? "2px solid ".concat(B200) : '',
|
|
66
|
+
border: isSelected ? "2px solid ".concat(token('color.border.selected', B200)) : '',
|
|
65
67
|
justifyContent: 'center',
|
|
66
68
|
alignItems: 'center',
|
|
67
69
|
height: inheritDimensions ? '100%' : gs(5),
|
|
68
|
-
backgroundColor: N20A,
|
|
70
|
+
backgroundColor: token('color.background.neutral', N20A),
|
|
69
71
|
width: ['calc(100% - 16px)', '100%'],
|
|
70
72
|
padding: ["0px ".concat(gs(1)), '0']
|
|
71
73
|
})),
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/core';
|
|
3
3
|
import { B400 } from '@atlaskit/theme/colors';
|
|
4
|
+
import { token } from '@atlaskit/tokens';
|
|
4
5
|
export var Link = function Link(_ref) {
|
|
5
6
|
var url = _ref.url,
|
|
6
7
|
_ref$testId = _ref.testId,
|
|
@@ -10,7 +11,7 @@ export var Link = function Link(_ref) {
|
|
|
10
11
|
"data-testid": "".concat(testId, "-link"),
|
|
11
12
|
className: className,
|
|
12
13
|
css: {
|
|
13
|
-
color: B400,
|
|
14
|
+
color: token('color.link', B400),
|
|
14
15
|
wordBreak: 'break-all'
|
|
15
16
|
}
|
|
16
17
|
}, url);
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { jsx } from '@emotion/core';
|
|
3
3
|
import { N300 } from '@atlaskit/theme/colors';
|
|
4
4
|
import { gs } from '../../common/utils';
|
|
5
|
+
import { token } from '@atlaskit/tokens';
|
|
5
6
|
export var Provider = function Provider(_ref) {
|
|
6
7
|
var name = _ref.name,
|
|
7
8
|
icon = _ref.icon;
|
|
@@ -26,7 +27,7 @@ export var Provider = function Provider(_ref) {
|
|
|
26
27
|
}, iconToRender, jsx("span", {
|
|
27
28
|
css: {
|
|
28
29
|
fontSize: gs(1.5),
|
|
29
|
-
color: N300,
|
|
30
|
+
color: token('color.text.subtlest', N300),
|
|
30
31
|
margin: 0,
|
|
31
32
|
marginLeft: gs(0.5),
|
|
32
33
|
// EDM-713: fixes copy-paste from renderer to editor for Firefox
|
|
@@ -21,6 +21,7 @@ import { handleClickCommon } from '../utils/handlers';
|
|
|
21
21
|
import { Link } from '../components/Link';
|
|
22
22
|
import { UnresolvedText } from '../components/UnresolvedText';
|
|
23
23
|
import { RetryAction } from '../actions/RetryAction';
|
|
24
|
+
import { token } from '@atlaskit/tokens';
|
|
24
25
|
|
|
25
26
|
var textDescriptionProps = _objectSpread({}, messages.could_not_load_link);
|
|
26
27
|
|
|
@@ -63,7 +64,7 @@ export var ErroredView = function ErroredView(_ref) {
|
|
|
63
64
|
icon: jsx(WarningIcon, {
|
|
64
65
|
label: "errored-warning-icon",
|
|
65
66
|
size: "small",
|
|
66
|
-
primaryColor: R300,
|
|
67
|
+
primaryColor: token('color.icon.warning', R300),
|
|
67
68
|
testId: "".concat(testId, "-warning-icon")
|
|
68
69
|
}),
|
|
69
70
|
text: jsx(FormattedMessage, textDescriptionProps)
|
|
@@ -5,6 +5,7 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
|
5
5
|
import { jsx } from '@emotion/core';
|
|
6
6
|
import { FormattedMessage } from 'react-intl-next';
|
|
7
7
|
import { R300 } from '@atlaskit/theme/colors';
|
|
8
|
+
import { token } from '@atlaskit/tokens';
|
|
8
9
|
import LockIcon from '@atlaskit/icon/glyph/lock-filled';
|
|
9
10
|
import { Frame } from '../components/Frame';
|
|
10
11
|
import { Provider } from '../components/Provider';
|
|
@@ -65,7 +66,7 @@ export var ForbiddenView = function ForbiddenView(_ref) {
|
|
|
65
66
|
icon: jsx(LockIcon, {
|
|
66
67
|
label: "forbidden-lock-icon",
|
|
67
68
|
size: "small",
|
|
68
|
-
primaryColor: R300,
|
|
69
|
+
primaryColor: token('color.icon.danger', R300),
|
|
69
70
|
testId: "".concat(testId, "-lock-icon")
|
|
70
71
|
}),
|
|
71
72
|
text: jsx(FormattedMessage, _extends({}, messages[descriptiveMessageKey], {
|
|
@@ -20,6 +20,7 @@ import { ContentHeader } from '../components/ContentHeader';
|
|
|
20
20
|
import { Link } from '../components/Link';
|
|
21
21
|
import { UnresolvedText } from '../components/UnresolvedText';
|
|
22
22
|
import { handleClickCommon } from '../utils/handlers';
|
|
23
|
+
import { token } from '@atlaskit/tokens';
|
|
23
24
|
|
|
24
25
|
var textDescriptionProps = _objectSpread({}, messages.not_found_description);
|
|
25
26
|
|
|
@@ -59,7 +60,7 @@ export var NotFoundView = function NotFoundView(_ref) {
|
|
|
59
60
|
icon: jsx(WarningIcon, {
|
|
60
61
|
label: "not-found-warning-icon",
|
|
61
62
|
size: "small",
|
|
62
|
-
primaryColor: R300,
|
|
63
|
+
primaryColor: token('color.icon.warning', R300),
|
|
63
64
|
testId: "".concat(testId, "-warning-icon")
|
|
64
65
|
}),
|
|
65
66
|
text: jsx(FormattedMessage, textDescriptionProps)
|
|
@@ -3,6 +3,7 @@ import { jsx } from '@emotion/core';
|
|
|
3
3
|
import DocumentFilledIcon from '@atlaskit/icon/glyph/document-filled';
|
|
4
4
|
import { N50, N90 } from '@atlaskit/theme/colors';
|
|
5
5
|
import { fontSize } from '@atlaskit/theme/constants';
|
|
6
|
+
import { token } from '@atlaskit/tokens';
|
|
6
7
|
import { Frame } from '../components/Frame';
|
|
7
8
|
import { gs } from '../../common/utils';
|
|
8
9
|
import { FormattedMessage } from 'react-intl-next';
|
|
@@ -22,12 +23,12 @@ export var ResolvingView = function ResolvingView(_ref) {
|
|
|
22
23
|
className: blockCardResolvingViewClassName
|
|
23
24
|
}, jsx(DocumentFilledIcon, {
|
|
24
25
|
size: "small",
|
|
25
|
-
primaryColor: N50,
|
|
26
|
+
primaryColor: token('color.icon.subtle', N50),
|
|
26
27
|
label: "document-icon"
|
|
27
28
|
}), jsx("span", {
|
|
28
29
|
css: {
|
|
29
30
|
fontSize: "".concat(fontSize(), "px"),
|
|
30
|
-
color: N90,
|
|
31
|
+
color: token('color.text.subtlest', N90),
|
|
31
32
|
marginLeft: gs(0.5)
|
|
32
33
|
}
|
|
33
34
|
}, jsx(FormattedMessage, messages.loading)));
|
|
@@ -6,6 +6,7 @@ import styled from '@emotion/styled';
|
|
|
6
6
|
import { size as csssize, borderRadius, size, ellipsis } from '@atlaskit/media-ui';
|
|
7
7
|
import { fontFamily } from '@atlaskit/theme/constants';
|
|
8
8
|
import * as colors from '@atlaskit/theme/colors';
|
|
9
|
+
import { token } from '@atlaskit/tokens';
|
|
9
10
|
import { gs as gridSize } from '../../common/utils';
|
|
10
11
|
export var className = 'media-card-frame';
|
|
11
12
|
export var cardShadow = "";
|
|
@@ -34,13 +35,13 @@ function getinteractiveStyles(_ref3) {
|
|
|
34
35
|
var isInteractive = _ref3.isInteractive,
|
|
35
36
|
isFrameVisible = _ref3.isFrameVisible;
|
|
36
37
|
var visibleFrameStyles = isFrameVisible ? visibleStyles : '';
|
|
37
|
-
var interactiveFrameStyles = isInteractive ? "\n &:hover {\n ".concat(visibleStyles, "\n }\n &:active {\n background-color: ").concat(colors.B50, ";\n }\n") : '';
|
|
38
|
+
var interactiveFrameStyles = isInteractive ? "\n &:hover {\n ".concat(visibleStyles, "\n }\n &:active {\n background-color: ").concat(token('color.background.selected', colors.B50), ";\n }\n") : '';
|
|
38
39
|
return "".concat(visibleFrameStyles).concat(interactiveFrameStyles);
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
function selected(_ref4) {
|
|
42
43
|
var isSelected = _ref4.isSelected;
|
|
43
|
-
return isSelected ? "\n ".concat(visibleStyles, "\n &::after {\n cursor: pointer;\n box-shadow: 0 0 0 3px ").concat(colors.B100, ";\n content: '';\n outline: none;\n position: absolute;\n height: 100%;\n width: 100%;\n left: 0;\n ").concat(borderRadius, "\n }\n ") : '';
|
|
44
|
+
return isSelected ? "\n ".concat(visibleStyles, "\n &::after {\n cursor: pointer;\n box-shadow: 0 0 0 3px ").concat(token('color.border.selected', colors.B100), ";\n content: '';\n outline: none;\n position: absolute;\n height: 100%;\n width: 100%;\n left: 0;\n ").concat(borderRadius, "\n }\n ") : '';
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
var height = function height(_ref5) {
|
|
@@ -52,7 +53,7 @@ var wrapperStyles = function wrapperStyles(props) {
|
|
|
52
53
|
return "\n ".concat(borderRadius, "\n ").concat(minWidth(props), "\n ").concat(maxWidth(props), "\n ").concat(getinteractiveStyles(props), "\n ").concat(visible(props), "\n display: inline-flex;\n flex-direction: column;\n box-sizing: border-box;\n font-family: ").concat(fontFamily(), ";\n width: 100%;\n user-select: none;\n line-height: initial;\n transition: background 0.3s;\n position: relative;\n ").concat(height(props), ";\n ").concat(selected(props), "\n\n &:after {\n content: '';\n background: transparent;\n transition: background 0.3s, box-shadow 0.3s;\n position: absolute;\n width: calc(100% + ").concat(gridSize(2), ");\n height: calc(100% + ").concat(gridSize(1), ");\n left: -").concat(gridSize(1), ";\n ").concat(borderRadius, "\n }\n");
|
|
53
54
|
};
|
|
54
55
|
|
|
55
|
-
var visibleStyles = "\n background-color: ".concat(colors.N30, ";\n\n &:after {\n background: ").concat(colors.N30, " !important;\n }\n .embed-header {\n opacity: 1;\n }");
|
|
56
|
+
var visibleStyles = "\n background-color: ".concat(token('color.background.neutral.subtle', colors.N30), ";\n\n &:after {\n background: ").concat(token('color.background.neutral', colors.N30), " !important;\n }\n .embed-header {\n opacity: 1;\n }");
|
|
56
57
|
|
|
57
58
|
function visible(_ref6) {
|
|
58
59
|
var isVisible = _ref6.isVisible;
|
|
@@ -66,12 +67,12 @@ export var Wrapper = styled.div(_templateObject2 || (_templateObject2 = _taggedT
|
|
|
66
67
|
return wrapperStyles(props);
|
|
67
68
|
});
|
|
68
69
|
export var embedHeaderHeight = 32;
|
|
69
|
-
export var Header = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n height: ", "px;\n position: absolute;\n z-index: 1;\n width: 100%;\n display: flex;\n align-items: center;\n color: ", ";\n opacity: 0;\n transition: 300ms opacity cubic-bezier(0.15, 1, 0.3, 1);\n"])), embedHeaderHeight, colors.N300);
|
|
70
|
+
export var Header = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n height: ", "px;\n position: absolute;\n z-index: 1;\n width: 100%;\n display: flex;\n align-items: center;\n color: ", ";\n opacity: 0;\n transition: 300ms opacity cubic-bezier(0.15, 1, 0.3, 1);\n"])), embedHeaderHeight, token('color.icon', colors.N300));
|
|
70
71
|
export var IconWrapper = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n ", "\n ", "\n ", " margin-right: 4px;\n"])), borderRadius, size(16), function (_ref7) {
|
|
71
72
|
var isPlaceholder = _ref7.isPlaceholder;
|
|
72
73
|
|
|
73
74
|
if (isPlaceholder) {
|
|
74
|
-
return "\n background-color: ".concat(colors.N30, ";\n ");
|
|
75
|
+
return "\n background-color: ".concat(token('color.skeleton', colors.N30), ";\n ");
|
|
75
76
|
} else {
|
|
76
77
|
return '';
|
|
77
78
|
}
|
|
@@ -80,19 +81,19 @@ export var TextWrapper = styled.div(_templateObject5 || (_templateObject5 = _tag
|
|
|
80
81
|
var isPlaceholder = _ref8.isPlaceholder;
|
|
81
82
|
|
|
82
83
|
if (isPlaceholder) {
|
|
83
|
-
return "\n ".concat(borderRadius, "\n width: 125px;\n height: 12px;\n background-color: ").concat(colors.N30, ";\n ");
|
|
84
|
+
return "\n ".concat(borderRadius, "\n width: 125px;\n height: 12px;\n background-color: ").concat(token('color.skeleton', colors.N30), ";\n ");
|
|
84
85
|
} else {
|
|
85
86
|
return '';
|
|
86
87
|
}
|
|
87
|
-
}, colors.N300, ellipsis('none'));
|
|
88
|
+
}, token('color.text.subtlest', colors.N300), ellipsis('none'));
|
|
88
89
|
// NB: `overflow` is kept as `hidden` since
|
|
89
90
|
// the internal contents of the `iframe` should
|
|
90
91
|
// manage scrolling behaviour.
|
|
91
|
-
export var Content = styled.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n ", "\n ", "\n background-color:
|
|
92
|
+
export var Content = styled.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n ", "\n ", "\n background-color: ", ";\n position: absolute;\n z-index: 1;\n width: 100%;\n top: ", ";\n overflow: hidden;\n height: calc(100% - ", ");\n transition: box-shadow 0.3s;\n\n > .calc-height > div > div {\n left: unset !important;\n width: unset !important;\n height: unset !important;\n position: initial !important;\n padding-bottom: unset !important;\n }\n > .embed-preview > div {\n margin: 0 auto;\n }\n\n ", ";\n"])), borderRadius, cardShadow, token('elevation.surface', 'white'), gridSize(4), gridSize(4), function (_ref9) {
|
|
92
93
|
var isInteractive = _ref9.isInteractive;
|
|
93
94
|
|
|
94
95
|
if (isInteractive) {
|
|
95
|
-
return "\n .".concat(className, ":hover & {\n box-shadow: 0 4px 8px -2px rgba(23, 43, 77, 0.32)
|
|
96
|
+
return "\n .".concat(className, ":hover & {\n box-shadow: ").concat(token('elevation.shadow.overlay', '0 4px 8px -2px rgba(23, 43, 77, 0.32), 0 0 1px rgba(23, 43, 77, 0.25)'), ";\n }\n ");
|
|
96
97
|
} else {
|
|
97
98
|
return '';
|
|
98
99
|
}
|
|
@@ -103,11 +104,11 @@ export var Image = styled.img(_templateObject7 || (_templateObject7 = _taggedTem
|
|
|
103
104
|
}, borderRadius);
|
|
104
105
|
export var maxAvatarCount = 6;
|
|
105
106
|
export var ContentWrapper = styled.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n box-sizing: border-box;\n padding: 8px 12px 12px 12px;\n"])));
|
|
106
|
-
export var Title = styled.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n color: ", ";\n font-size: 16px;\n font-weight: 500;\n line-height: ", ";\n max-height: ", "px;\n overflow: hidden;\n"])), colors.N900, 20 / 16, 20 * 4);
|
|
107
|
-
export var Byline = styled.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n margin-top: 4px;\n color: ", ";\n font-size: 12px;\n font-weight: normal;\n line-height: ", ";\n ", ";\n"])), colors.N300, 16 / 12, ellipsis('100%'));
|
|
108
|
-
export var Description = styled.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n margin-top: 7px;\n color: ", ";\n font-size: 12px;\n font-weight: normal;\n line-height: ", ";\n max-height: ", "px;\n overflow: hidden;\n"])), colors.N800, 18 / 12, 18 * 3);
|
|
107
|
+
export var Title = styled.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n color: ", ";\n font-size: 16px;\n font-weight: 500;\n line-height: ", ";\n max-height: ", "px;\n overflow: hidden;\n"])), token('color.text', colors.N900), 20 / 16, 20 * 4);
|
|
108
|
+
export var Byline = styled.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n margin-top: 4px;\n color: ", ";\n font-size: 12px;\n font-weight: normal;\n line-height: ", ";\n ", ";\n"])), token('color.text.subtlest', colors.N300), 16 / 12, ellipsis('100%'));
|
|
109
|
+
export var Description = styled.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n margin-top: 7px;\n color: ", ";\n font-size: 12px;\n font-weight: normal;\n line-height: ", ";\n max-height: ", "px;\n overflow: hidden;\n"])), token('color.text', colors.N800), 18 / 12, 18 * 3);
|
|
109
110
|
export var ResolvedViewIconWrapper = styled.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n margin-top: 4px;\n"])));
|
|
110
|
-
export var Thumbnail = styled.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n ", "\n ", "\n float: right;\n margin: 4px 0 12px 12px;\n background-color: ", ";\n background-image: url(", ");\n background-size: cover;\n"])), borderRadius, size(48), colors.N30, function (_ref11) {
|
|
111
|
+
export var Thumbnail = styled.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n ", "\n ", "\n float: right;\n margin: 4px 0 12px 12px;\n background-color: ", ";\n background-image: url(", ");\n background-size: cover;\n"])), borderRadius, size(48), token('color.skeleton', colors.N30), function (_ref11) {
|
|
111
112
|
var src = _ref11.src;
|
|
112
113
|
return src;
|
|
113
114
|
});
|
|
@@ -4,6 +4,7 @@ import Button from '@atlaskit/button/custom-theme-button';
|
|
|
4
4
|
import ErrorIcon from '@atlaskit/icon/glyph/error';
|
|
5
5
|
import { fontSize } from '@atlaskit/theme/constants';
|
|
6
6
|
import { R300 } from '@atlaskit/theme/colors';
|
|
7
|
+
import { token } from '@atlaskit/tokens';
|
|
7
8
|
import { Frame } from '../../BlockCard/components/Frame';
|
|
8
9
|
import { FormattedMessage } from 'react-intl-next';
|
|
9
10
|
import { messages } from '@atlaskit/media-ui/messages';
|
|
@@ -22,7 +23,7 @@ export var EmbedCardErroredView = function EmbedCardErroredView(_ref) {
|
|
|
22
23
|
testId: testId
|
|
23
24
|
}, jsx(ErrorIcon, {
|
|
24
25
|
size: "small",
|
|
25
|
-
primaryColor: R300,
|
|
26
|
+
primaryColor: token('color.icon.danger', R300),
|
|
26
27
|
label: "error-icon"
|
|
27
28
|
}), jsx("span", {
|
|
28
29
|
css: {
|