@atlaskit/help 7.0.2 → 7.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 +10 -0
- package/dist/cjs/assets/ErrorImage.js +1 -1
- package/dist/cjs/assets/NotFoundImage.js +1 -1
- package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/index.js +3 -1
- package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/styled.js +3 -1
- package/dist/cjs/components/Article/WhatsNewArticle/styled.js +5 -3
- package/dist/cjs/components/Article/styled.js +3 -1
- package/dist/cjs/components/ArticlesList/ArticlesList.js +4 -2
- package/dist/cjs/components/ArticlesList/ArticlesListItem/index.js +4 -2
- package/dist/cjs/components/ArticlesList/ArticlesListItem/styled.js +10 -7
- package/dist/cjs/components/HelpContentButton/styled.js +3 -1
- package/dist/cjs/components/RelatedArticles/styled.js +3 -1
- package/dist/cjs/components/Search/SearchResults/SearchExternalSite.js +4 -2
- package/dist/cjs/components/Search/SearchResults/SearchResultsEmpty.js +4 -2
- package/dist/cjs/components/Search/SearchResults/styled.js +5 -3
- package/dist/cjs/components/WhatsNew/WhatsNewButton/index.js +3 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +3 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.js +3 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.js +8 -5
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultsList.js +3 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.js +3 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/styled.js +3 -1
- package/dist/cjs/util/styled.js +11 -9
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/assets/ErrorImage.js +1 -1
- package/dist/es2019/assets/NotFoundImage.js +1 -1
- package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/index.js +2 -1
- package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/styled.js +2 -1
- package/dist/es2019/components/Article/WhatsNewArticle/styled.js +4 -3
- package/dist/es2019/components/Article/styled.js +2 -1
- package/dist/es2019/components/ArticlesList/ArticlesList.js +3 -2
- package/dist/es2019/components/ArticlesList/ArticlesListItem/index.js +3 -2
- package/dist/es2019/components/ArticlesList/ArticlesListItem/styled.js +9 -7
- package/dist/es2019/components/HelpContentButton/styled.js +6 -5
- package/dist/es2019/components/RelatedArticles/styled.js +2 -1
- package/dist/es2019/components/Search/SearchResults/SearchExternalSite.js +3 -2
- package/dist/es2019/components/Search/SearchResults/SearchResultsEmpty.js +3 -2
- package/dist/es2019/components/Search/SearchResults/styled.js +4 -3
- package/dist/es2019/components/WhatsNew/WhatsNewButton/index.js +2 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +2 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.js +2 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.js +7 -5
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultsList.js +2 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.js +2 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/styled.js +2 -1
- package/dist/es2019/util/styled.js +16 -15
- package/dist/es2019/version.json +1 -1
- package/dist/esm/assets/ErrorImage.js +1 -1
- package/dist/esm/assets/NotFoundImage.js +1 -1
- package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/index.js +2 -1
- package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/styled.js +2 -1
- package/dist/esm/components/Article/WhatsNewArticle/styled.js +4 -3
- package/dist/esm/components/Article/styled.js +2 -1
- package/dist/esm/components/ArticlesList/ArticlesList.js +3 -2
- package/dist/esm/components/ArticlesList/ArticlesListItem/index.js +3 -2
- package/dist/esm/components/ArticlesList/ArticlesListItem/styled.js +9 -7
- package/dist/esm/components/HelpContentButton/styled.js +2 -1
- package/dist/esm/components/RelatedArticles/styled.js +2 -1
- package/dist/esm/components/Search/SearchResults/SearchExternalSite.js +3 -2
- package/dist/esm/components/Search/SearchResults/SearchResultsEmpty.js +3 -2
- package/dist/esm/components/Search/SearchResults/styled.js +4 -3
- package/dist/esm/components/WhatsNew/WhatsNewButton/index.js +2 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +2 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.js +2 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.js +7 -5
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultsList.js +2 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.js +2 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/styled.js +2 -1
- package/dist/esm/util/styled.js +10 -9
- package/dist/esm/version.json +1 -1
- package/dist/types/assets/ErrorImage.d.ts +1 -1
- package/dist/types/assets/NotFoundImage.d.ts +1 -1
- package/dist/types/components/RelatedArticles/styled.d.ts +1 -1
- package/package.json +8 -2
package/dist/cjs/util/styled.js
CHANGED
|
@@ -17,6 +17,8 @@ var _constants = require("@atlaskit/theme/constants");
|
|
|
17
17
|
|
|
18
18
|
var colors = _interopRequireWildcard(require("@atlaskit/theme/colors"));
|
|
19
19
|
|
|
20
|
+
var _tokens = require("@atlaskit/tokens");
|
|
21
|
+
|
|
20
22
|
var _core = require("@emotion/core");
|
|
21
23
|
|
|
22
24
|
var _WhatsNew = require("../model/WhatsNew");
|
|
@@ -27,7 +29,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
27
29
|
|
|
28
30
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
31
|
|
|
30
|
-
var DividerLine = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n height: 2px;\n width: 100%;\n padding: 0 ", "px;\n margin-top: ", "px;\n box-sizing: border-box;\n"])), colors.N30A, 2 * (0, _constants.gridSize)(), (0, _constants.gridSize)() * 2);
|
|
32
|
+
var DividerLine = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n height: 2px;\n width: 100%;\n padding: 0 ", "px;\n margin-top: ", "px;\n box-sizing: border-box;\n"])), (0, _tokens.token)('color.border', colors.N30A), 2 * (0, _constants.gridSize)(), (0, _constants.gridSize)() * 2);
|
|
31
33
|
/**
|
|
32
34
|
* Loading container
|
|
33
35
|
*/
|
|
@@ -42,7 +44,7 @@ var LoadingRectangle = _styled.default.div(_templateObject3 || (_templateObject3
|
|
|
42
44
|
return props.marginTop ? props.marginTop : (0, _constants.gridSize)() + 'px';
|
|
43
45
|
}, function (props) {
|
|
44
46
|
return props.contentWidth ? props.contentWidth : '100%';
|
|
45
|
-
}, shimmer, colors.N30, colors.N30, colors.N40, colors.N30);
|
|
47
|
+
}, shimmer, (0, _tokens.token)('color.background.neutral', colors.N30), (0, _tokens.token)('color.background.neutral.subtle', colors.N30), (0, _tokens.token)('color.background.neutral', colors.N40), (0, _tokens.token)('color.background.neutral.subtle', colors.N30));
|
|
46
48
|
/**
|
|
47
49
|
* Loading Circle
|
|
48
50
|
*/
|
|
@@ -56,7 +58,7 @@ var LoadingCircle = _styled.default.div(_templateObject4 || (_templateObject4 =
|
|
|
56
58
|
return props.marginTop ? props.marginTop : '';
|
|
57
59
|
}, function (props) {
|
|
58
60
|
return props.radius ? props.radius : "".concat((0, _constants.gridSize)() * 4, "px");
|
|
59
|
-
}, shimmer, colors.N30, colors.N30, colors.N40, colors.N30);
|
|
61
|
+
}, shimmer, (0, _tokens.token)('color.background.neutral', colors.N30), (0, _tokens.token)('color.background.neutral.subtle', colors.N30), (0, _tokens.token)('color.background.neutral', colors.N40), (0, _tokens.token)('color.background.neutral.subtle', colors.N30));
|
|
60
62
|
/**
|
|
61
63
|
* What's new icon
|
|
62
64
|
*/
|
|
@@ -69,22 +71,22 @@ var WhatsNewTypeIcon = _styled.default.div(_templateObject5 || (_templateObject5
|
|
|
69
71
|
|
|
70
72
|
switch (type) {
|
|
71
73
|
case _WhatsNew.WHATS_NEW_ITEM_TYPES.IMPROVEMENT:
|
|
72
|
-
return colors.Y200;
|
|
74
|
+
return (0, _tokens.token)('color.icon.warning', colors.Y200);
|
|
73
75
|
|
|
74
76
|
case _WhatsNew.WHATS_NEW_ITEM_TYPES.NEW_FEATURE:
|
|
75
|
-
return colors.G300;
|
|
77
|
+
return (0, _tokens.token)('color.icon.success', colors.G300);
|
|
76
78
|
|
|
77
79
|
case _WhatsNew.WHATS_NEW_ITEM_TYPES.FIX:
|
|
78
|
-
return colors.B500;
|
|
80
|
+
return (0, _tokens.token)('color.icon.information', colors.B500);
|
|
79
81
|
|
|
80
82
|
case _WhatsNew.WHATS_NEW_ITEM_TYPES.EXPERIMENT:
|
|
81
|
-
return colors.P500;
|
|
83
|
+
return (0, _tokens.token)('color.icon.discovery', colors.P500);
|
|
82
84
|
|
|
83
85
|
case _WhatsNew.WHATS_NEW_ITEM_TYPES.REMOVED:
|
|
84
|
-
return colors.N700;
|
|
86
|
+
return (0, _tokens.token)('color.icon.disabled', colors.N700);
|
|
85
87
|
|
|
86
88
|
default:
|
|
87
|
-
return colors.N400;
|
|
89
|
+
return (0, _tokens.token)('color.icon', colors.N400);
|
|
88
90
|
}
|
|
89
91
|
}, (0, _constants.gridSize)() / 2, (0, _constants.gridSize)() / 2);
|
|
90
92
|
|
package/dist/cjs/version.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export const svg = `<?xml version="1.0" encoding="UTF-8"?>
|
|
3
3
|
<svg width="90" height="116" viewBox="0 0 90 116" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4
|
-
<path d="M0 0H89.2308V116H0V0Z"
|
|
4
|
+
<path d="M0 0H89.2308V116H0V0Z"/>
|
|
5
5
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M51.5691 40.9323L87.7184 103.605C89.1943 106.161 89.195 109.312 87.72 111.869C86.2451 114.426 83.519 116.001 80.5691 116H8.27039C5.3205 116.001 2.59431 114.426 1.11941 111.869C-0.355493 109.312 -0.354868 106.161 1.12105 103.605L37.2704 40.9323C38.7445 38.3748 41.47 36.7992 44.4197 36.7992C47.3695 36.7992 50.095 38.3748 51.5691 40.9323ZM47.4558 86.4337L49.0227 62.2806C49.113 60.9009 48.6284 59.5454 47.6841 58.5363C46.7399 57.5271 45.4202 56.9545 44.0389 56.9544C42.6575 56.9545 41.3379 57.5271 40.3936 58.5363C39.4493 59.5454 38.9647 60.9009 39.055 62.2806L40.622 86.4337C40.7395 88.2366 42.2338 89.6395 44.0389 89.6414C45.844 89.6395 47.3383 88.2366 47.4558 86.4337ZM40.5075 103.118C39.4304 102.124 38.8237 100.72 38.8374 99.2536C38.8071 96.3645 41.1146 93.994 44.0008 93.9492C46.8187 93.943 49.1423 96.158 49.2734 98.9756C49.4045 101.793 47.2968 104.215 44.4905 104.471C43.0314 104.603 41.5845 104.112 40.5075 103.118Z" fill="url(#paint0_linear)"/>
|
|
6
6
|
<g opacity="0.6">
|
|
7
7
|
<path d="M50.4387 15.3414L46.407 0.789686C46.3669 0.639179 46.2278 0.536726 46.0723 0.543265C45.9168 0.549803 45.7868 0.663577 45.7595 0.816916L43.224 14.4864L40.0683 13.8982C39.956 13.8774 39.8409 13.9157 39.7636 13.9998C39.6862 14.0839 39.6574 14.2018 39.6874 14.3121L43.7192 28.8639C43.7533 29.0153 43.8878 29.1229 44.0429 29.1229C44.198 29.1229 44.3324 29.0153 44.3666 28.8639L46.9021 15.1944L50.0578 15.7553C50.1701 15.7762 50.2852 15.7378 50.3625 15.6538C50.4399 15.5697 50.4687 15.4517 50.4387 15.3414Z" fill="#C1C7D0"/>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export const svg = `<?xml version="1.0" encoding="UTF-8"?>
|
|
3
3
|
<svg width="100" height="116" viewBox="0 0 100 116" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4
|
-
<path d="M0 0H100V116H0V0Z"
|
|
4
|
+
<path d="M0 0H100V116H0V0Z"/>
|
|
5
5
|
<g opacity="0.3">
|
|
6
6
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M14.4783 115.563H23.4169H23.4237C24.2045 115.563 24.8375 114.928 24.8375 114.144C24.8375 113.36 24.2045 112.725 23.4237 112.725H14.4783C13.6975 112.725 13.0645 113.36 13.0645 114.144C13.0645 114.928 13.6975 115.563 14.4783 115.563ZM40.6686 115.563H31.7301C30.9492 115.563 30.3162 114.928 30.3162 114.144C30.3162 113.36 30.9492 112.725 31.7301 112.725H40.6686C41.4495 112.725 42.0825 113.36 42.0825 114.144C42.0825 114.928 41.4495 115.563 40.6686 115.563ZM48.975 115.563H57.9204C58.7013 115.563 59.3343 114.928 59.3343 114.144C59.3343 113.36 58.7013 112.725 57.9204 112.725H48.975C48.1942 112.725 47.5612 113.36 47.5612 114.144C47.5612 114.928 48.1942 115.563 48.975 115.563ZM66.2268 115.563H75.1722C75.953 115.563 76.586 114.928 76.586 114.144C76.586 113.36 75.953 112.725 75.1722 112.725H66.2268C65.446 112.725 64.813 113.36 64.813 114.144C64.813 114.928 65.446 115.563 66.2268 115.563Z" fill="#B3BAC5"/>
|
|
7
7
|
<path d="M6.17203 115.563H1.41386C0.633005 115.563 0 114.928 0 114.144V109.368C0 108.584 0.633005 107.948 1.41386 107.948C2.19471 107.948 2.82771 108.584 2.82771 109.368V112.725H6.17203C6.95288 112.725 7.58588 113.36 7.58588 114.144C7.58588 114.928 6.95288 115.563 6.17203 115.563Z" fill="#B3BAC5"/>
|
|
@@ -10,6 +10,7 @@ import { RadioGroup } from '@atlaskit/radio';
|
|
|
10
10
|
import { Checkbox } from '@atlaskit/checkbox';
|
|
11
11
|
import TextArea from '@atlaskit/textarea';
|
|
12
12
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
13
|
+
import { token } from '@atlaskit/tokens';
|
|
13
14
|
import CheckCircleIcon from '@atlaskit/icon/glyph/check-circle'; // AFP-2532 TODO: Fix automatic suppressions below
|
|
14
15
|
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
15
16
|
|
|
@@ -192,7 +193,7 @@ export const ArticleWasHelpfulForm = ({
|
|
|
192
193
|
verticalAlign: 'middle'
|
|
193
194
|
}
|
|
194
195
|
}, /*#__PURE__*/React.createElement(CheckCircleIcon, {
|
|
195
|
-
primaryColor: colors.G400,
|
|
196
|
+
primaryColor: token('color.icon.success', colors.G400),
|
|
196
197
|
label: ""
|
|
197
198
|
})), /*#__PURE__*/React.createElement(ArticleFeedbackText, null, formatMessage(messages.help_article_rating_form_Success)));
|
|
198
199
|
}
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
4
4
|
import * as colors from '@atlaskit/theme/colors';
|
|
5
|
+
import { token } from '@atlaskit/tokens';
|
|
5
6
|
export const ArticleFeedbackContainer = styled.div`
|
|
6
7
|
position: relative;
|
|
7
8
|
`;
|
|
8
9
|
export const ArticleFeedbackText = styled.div`
|
|
9
10
|
font-size: 0.75rem;
|
|
10
11
|
font-weight: bold;
|
|
11
|
-
color: ${colors.N200};
|
|
12
|
+
color: ${token('color.text.subtlest', colors.N200)};
|
|
12
13
|
line-height: ${gridSize() * 4}px;
|
|
13
14
|
position: relative;
|
|
14
15
|
display: inline-block;
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import { fontSize, fontSizeSmall, gridSize } from '@atlaskit/theme/constants';
|
|
4
4
|
import * as colors from '@atlaskit/theme/colors';
|
|
5
|
+
import { token } from '@atlaskit/tokens';
|
|
5
6
|
export const WhatsNewTypeTitle = styled.span`
|
|
6
7
|
text-decoration: none;
|
|
7
|
-
color: ${colors.N300};
|
|
8
|
+
color: ${token('color.text.subtlest', colors.N300)};
|
|
8
9
|
font-size: ${fontSize()}px;
|
|
9
10
|
vertical-align: middle;
|
|
10
11
|
padding-left: ${gridSize() / 2}px;
|
|
@@ -18,7 +19,7 @@ export const WhatsNewIconContainer = styled.div`
|
|
|
18
19
|
`;
|
|
19
20
|
export const WhatsNewTitleText = styled.span`
|
|
20
21
|
text-decoration: none;
|
|
21
|
-
color: ${colors.N800};
|
|
22
|
+
color: ${token('color.text', colors.N800)};
|
|
22
23
|
font-size: ${fontSize()}px;
|
|
23
24
|
font-weight: 600;
|
|
24
25
|
white-space: normal;
|
|
@@ -28,7 +29,7 @@ export const WhatsNewTitleText = styled.span`
|
|
|
28
29
|
`;
|
|
29
30
|
export const WhatsNewRelatedLinksTitleText = styled.span`
|
|
30
31
|
text-decoration: none;
|
|
31
|
-
color: ${colors.N800};
|
|
32
|
+
color: ${token('color.text', colors.N800)};
|
|
32
33
|
font-size: ${fontSizeSmall()}px;
|
|
33
34
|
font-weight: 600;
|
|
34
35
|
white-space: normal;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
4
|
+
import { token } from '@atlaskit/tokens';
|
|
4
5
|
export const ArticleContainer = styled.div`
|
|
5
6
|
padding: ${gridSize() * 2}px ${gridSize() * 3}px;
|
|
6
7
|
position: absolute;
|
|
7
8
|
height: 100%;
|
|
8
9
|
width: 100%;
|
|
9
10
|
top: 0;
|
|
10
|
-
background-color: #
|
|
11
|
+
background-color: ${token('elevation.surface', '#FFFFFF')};
|
|
11
12
|
left: 100%;
|
|
12
13
|
flex: 1;
|
|
13
14
|
flex-direction: column;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
3
3
|
import * as colors from '@atlaskit/theme/colors';
|
|
4
|
+
import { token } from '@atlaskit/tokens';
|
|
4
5
|
import AnimateHeight from 'react-animate-height';
|
|
5
6
|
import ArticlesListItem from './ArticlesListItem';
|
|
6
7
|
import { MIN_ITEMS_TO_DISPLAY, ANIMATE_HEIGHT_TRANSITION_DURATION_MS } from './constants';
|
|
@@ -14,7 +15,7 @@ const articlesList = ({
|
|
|
14
15
|
}) => articles && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, articles.slice(0, minItemsToDisplay).map((article, i) => {
|
|
15
16
|
return /*#__PURE__*/React.createElement(ArticlesListItem, {
|
|
16
17
|
styles: {
|
|
17
|
-
border: style === 'secondary' ? `2px solid ${colors.N30}` : 0,
|
|
18
|
+
border: style === 'secondary' ? `2px solid ${token('color.border', colors.N30)}` : 0,
|
|
18
19
|
padding: style === 'secondary' ? `${gridSize()}px ${gridSize() * 2}px` : `${gridSize()}px`,
|
|
19
20
|
marginBottom: style === 'secondary' ? `${gridSize() * 1.5}px` : 0
|
|
20
21
|
},
|
|
@@ -35,7 +36,7 @@ const articlesList = ({
|
|
|
35
36
|
height: numberOfArticlesToDisplay > minItemsToDisplay ? 'auto' : 0
|
|
36
37
|
}, articles.slice(minItemsToDisplay, articles.length).map((article, i) => /*#__PURE__*/React.createElement(ArticlesListItem, {
|
|
37
38
|
styles: {
|
|
38
|
-
border: style === 'secondary' ? `2px solid ${colors.N30}` : 0,
|
|
39
|
+
border: style === 'secondary' ? `2px solid ${token('color.border', colors.N30)}` : 0,
|
|
39
40
|
padding: style === 'secondary' ? `${gridSize()}px ${gridSize() * 2}px` : `${gridSize()}px`,
|
|
40
41
|
marginBottom: style === 'secondary' ? `${gridSize() * 1.5}px` : 0
|
|
41
42
|
},
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import * as colors from '@atlaskit/theme/colors';
|
|
3
3
|
import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
|
|
4
4
|
import ShortcutIcon from '@atlaskit/icon/glyph/shortcut';
|
|
5
|
+
import { token } from '@atlaskit/tokens';
|
|
5
6
|
import { injectIntl } from 'react-intl-next';
|
|
6
7
|
import { name as packageName, version as packageVersion } from '../../../version.json';
|
|
7
8
|
// import { messages } from '../../../messages';
|
|
@@ -55,8 +56,8 @@ export const ArticlesListItem = ({
|
|
|
55
56
|
}, /*#__PURE__*/React.createElement(ArticlesListItemContainer, null, typeTitle && /*#__PURE__*/React.createElement(ArticlesListItemTypeTitle, null, formatMessage(typeTitle)), /*#__PURE__*/React.createElement(ArticlesListItemTitleText, null, title), href && /*#__PURE__*/React.createElement(ArticlesListItemLinkIcon, null, /*#__PURE__*/React.createElement(ShortcutIcon, {
|
|
56
57
|
size: "small",
|
|
57
58
|
label: "",
|
|
58
|
-
primaryColor: colors.N90,
|
|
59
|
-
secondaryColor: colors.N90
|
|
59
|
+
primaryColor: token('color.icon.subtle', colors.N90),
|
|
60
|
+
secondaryColor: token('color.icon.subtle', colors.N90)
|
|
60
61
|
}))), /*#__PURE__*/React.createElement(ArticlesListItemDescription, null, description));
|
|
61
62
|
};
|
|
62
63
|
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import { fontSize, gridSize } from '@atlaskit/theme/constants';
|
|
4
4
|
import * as colors from '@atlaskit/theme/colors';
|
|
5
|
+
import { token } from '@atlaskit/tokens';
|
|
5
6
|
export const ArticlesListItemWrapper = styled.a({
|
|
6
7
|
position: `relative`,
|
|
7
8
|
boxSizing: `border-box`,
|
|
@@ -9,21 +10,22 @@ export const ArticlesListItemWrapper = styled.a({
|
|
|
9
10
|
display: `block`,
|
|
10
11
|
textDecoration: `none`,
|
|
11
12
|
cursor: `pointer`,
|
|
12
|
-
color: `${colors.N200}`,
|
|
13
|
+
color: `${token('color.text.subtlest', colors.N200)}`,
|
|
13
14
|
borderRadius: `3px`,
|
|
15
|
+
backgroundColor: `${token('color.background.neutral.subtle', 'transparent')}`,
|
|
14
16
|
'&:hover, &:focus, &:visited, &:active': {
|
|
15
17
|
textDecoration: `none`,
|
|
16
18
|
outline: `none`,
|
|
17
19
|
outlineOffset: `none`
|
|
18
20
|
},
|
|
19
21
|
'&:focus': {
|
|
20
|
-
boxShadow: `${colors.B100} 0px 0px 0px 2px inset`
|
|
22
|
+
boxShadow: `${token('color.border.focused', colors.B100)} 0px 0px 0px 2px inset`
|
|
21
23
|
},
|
|
22
24
|
'&:hover': {
|
|
23
|
-
backgroundColor: `${colors.N30}`
|
|
25
|
+
backgroundColor: `${token('color.background.neutral.subtle.hovered', colors.N30)}`
|
|
24
26
|
},
|
|
25
27
|
'&:active': {
|
|
26
|
-
backgroundColor: `${colors.B50}`
|
|
28
|
+
backgroundColor: `${token('color.background.neutral.subtle.pressed', colors.B50)}`
|
|
27
29
|
}
|
|
28
30
|
}, props => props.styles);
|
|
29
31
|
export const ArticlesListItemContainer = styled.div`
|
|
@@ -34,7 +36,7 @@ export const ArticlesListItemTypeTitle = styled.div`
|
|
|
34
36
|
font-weight: bold;
|
|
35
37
|
font-size: 11px;
|
|
36
38
|
line-height: ${gridSize() * 2}px;
|
|
37
|
-
color: ${colors.N200};
|
|
39
|
+
color: ${token('color.text.subtlest', colors.N200)};
|
|
38
40
|
padding-bottom: ${gridSize() / 2}px;
|
|
39
41
|
`;
|
|
40
42
|
export const ArticlesListItemLinkIcon = styled.div`
|
|
@@ -42,7 +44,7 @@ export const ArticlesListItemLinkIcon = styled.div`
|
|
|
42
44
|
`;
|
|
43
45
|
export const ArticlesListItemTitleText = styled.span`
|
|
44
46
|
text-decoration: none;
|
|
45
|
-
color: ${colors.N800};
|
|
47
|
+
color: ${token('color.text', colors.N800)};
|
|
46
48
|
font-size: ${fontSize()}px;
|
|
47
49
|
font-weight: 600;
|
|
48
50
|
display: block;
|
|
@@ -54,6 +56,6 @@ export const ArticlesListItemTitleText = styled.span`
|
|
|
54
56
|
export const ArticlesListItemDescription = styled.p`
|
|
55
57
|
display: block;
|
|
56
58
|
line-height: ${gridSize() * 2.5}px;
|
|
57
|
-
color: ${colors.N400};
|
|
59
|
+
color: ${token('color.text.subtle', colors.N400)};
|
|
58
60
|
margin: 0;
|
|
59
61
|
`;
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
import * as colors from '@atlaskit/theme/colors';
|
|
4
4
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
5
|
+
import { token } from '@atlaskit/tokens';
|
|
5
6
|
export const HelpContentButtonContainer = styled.a`
|
|
6
7
|
display: block;
|
|
7
8
|
cursor: pointer;
|
|
8
9
|
width: calc(100% - ${gridSize() * 2}px);
|
|
9
|
-
color: ${colors.N600};
|
|
10
|
+
color: ${token('color.text.subtle', colors.N600)};
|
|
10
11
|
padding: ${gridSize}px;
|
|
11
12
|
border-radius: 3px;
|
|
12
13
|
|
|
@@ -17,19 +18,19 @@ export const HelpContentButtonContainer = styled.a`
|
|
|
17
18
|
text-decoration: none;
|
|
18
19
|
outline: none;
|
|
19
20
|
outline-offset: none;
|
|
20
|
-
color: ${colors.N600};
|
|
21
|
+
color: ${token('color.text.subtle', colors.N600)};
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
&:focus {
|
|
24
|
-
box-shadow: ${colors.B100} 0 0 0 2px inset;
|
|
25
|
+
box-shadow: ${token('color.border.focused', colors.B100)} 0 0 0 2px inset;
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
&:hover {
|
|
28
|
-
background-color: ${colors.N30};
|
|
29
|
+
background-color: ${token('color.background.neutral.subtle.hovered', colors.N30)};
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
&:active {
|
|
32
|
-
background-color: ${colors.B50};
|
|
33
|
+
background-color: ${token('color.background.neutral.subtle.pressed', colors.B50)};
|
|
33
34
|
}
|
|
34
35
|
`;
|
|
35
36
|
export const HelpContentButtonIcon = styled.div`
|
|
@@ -3,6 +3,7 @@ import { css } from '@emotion/core';
|
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
4
|
import * as colors from '@atlaskit/theme/colors';
|
|
5
5
|
import { gridSize, fontSize } from '@atlaskit/theme/constants';
|
|
6
|
+
import { token } from '@atlaskit/tokens';
|
|
6
7
|
|
|
7
8
|
const baseHeading = (size, lineHeight) => `
|
|
8
9
|
font-size: ${size / fontSize()}em;
|
|
@@ -18,7 +19,7 @@ export const truncate = (width = '100%') => css`
|
|
|
18
19
|
`;
|
|
19
20
|
export const RelatedArticlesTitle = styled.div`
|
|
20
21
|
${baseHeading(16, 20)}
|
|
21
|
-
color: ${colors.
|
|
22
|
+
color: ${token('color.text', colors.N800)};
|
|
22
23
|
font-weight: 600;
|
|
23
24
|
letter-spacing: -0.006em;
|
|
24
25
|
padding: ${gridSize() * 2}px 0;
|
|
@@ -6,6 +6,7 @@ import ShortcutIcon from '@atlaskit/icon/glyph/shortcut';
|
|
|
6
6
|
import { injectIntl } from 'react-intl-next';
|
|
7
7
|
import { messages } from '../../../messages';
|
|
8
8
|
import { SearchResultSearchExternalSiteContainer } from './styled';
|
|
9
|
+
import { token } from '@atlaskit/tokens';
|
|
9
10
|
export const SearchExternalSite = ({
|
|
10
11
|
searchExternalUrl,
|
|
11
12
|
onSearchExternalUrlClick,
|
|
@@ -35,8 +36,8 @@ export const SearchExternalSite = ({
|
|
|
35
36
|
iconAfter: /*#__PURE__*/React.createElement(ShortcutIcon, {
|
|
36
37
|
size: "small",
|
|
37
38
|
label: "",
|
|
38
|
-
primaryColor: colors.N90,
|
|
39
|
-
secondaryColor: colors.N90
|
|
39
|
+
primaryColor: token('color.icon.subtle', colors.N90),
|
|
40
|
+
secondaryColor: token('color.icon.subtle', colors.N90)
|
|
40
41
|
}),
|
|
41
42
|
spacing: "compact",
|
|
42
43
|
href: searchExternalUrl,
|
|
@@ -3,6 +3,7 @@ import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
|
|
|
3
3
|
import * as colors from '@atlaskit/theme/colors';
|
|
4
4
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
5
5
|
import ShortcutIcon from '@atlaskit/icon/glyph/shortcut';
|
|
6
|
+
import { token } from '@atlaskit/tokens';
|
|
6
7
|
import { injectIntl } from 'react-intl-next';
|
|
7
8
|
import NotFoundImage from '../../../assets/NotFoundImage';
|
|
8
9
|
import { messages } from '../../../messages';
|
|
@@ -36,8 +37,8 @@ export const SearchResultsEmpty = ({
|
|
|
36
37
|
iconAfter: /*#__PURE__*/React.createElement(ShortcutIcon, {
|
|
37
38
|
size: "small",
|
|
38
39
|
label: "",
|
|
39
|
-
primaryColor: colors.N90,
|
|
40
|
-
secondaryColor: colors.N90
|
|
40
|
+
primaryColor: token('color.icon.subtle', colors.N90),
|
|
41
|
+
secondaryColor: token('color.icon.subtle', colors.N90)
|
|
41
42
|
}),
|
|
42
43
|
spacing: "compact",
|
|
43
44
|
href: searchExternalUrl,
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
4
4
|
import * as colors from '@atlaskit/theme/colors';
|
|
5
|
+
import { token } from '@atlaskit/tokens';
|
|
5
6
|
export const SearchResultsContainer = styled.div`
|
|
6
7
|
position: absolute;
|
|
7
8
|
height: 100%;
|
|
8
9
|
width: 100%;
|
|
9
10
|
top: 0;
|
|
10
|
-
background-color: #
|
|
11
|
+
background-color: ${token('elevation.surface', '#FFFFFF')};
|
|
11
12
|
flex: 1;
|
|
12
13
|
flex-direction: column;
|
|
13
14
|
box-sizing: border-box;
|
|
@@ -29,7 +30,7 @@ export const SearchResultEmptyMessageText = styled.div`
|
|
|
29
30
|
text-align: center;
|
|
30
31
|
|
|
31
32
|
p {
|
|
32
|
-
color: ${colors.N200};
|
|
33
|
+
color: ${token('color.text.subtlest', colors.N200)};
|
|
33
34
|
}
|
|
34
35
|
`;
|
|
35
36
|
export const SearchResultSearchExternalSiteContainer = styled.div`
|
|
@@ -37,6 +38,6 @@ export const SearchResultSearchExternalSiteContainer = styled.div`
|
|
|
37
38
|
text-align: center;
|
|
38
39
|
|
|
39
40
|
p {
|
|
40
|
-
color: ${colors.N200};
|
|
41
|
+
color: ${token('color.text.subtlest', colors.N200)};
|
|
41
42
|
}
|
|
42
43
|
`;
|
|
@@ -2,6 +2,7 @@ import React, { useCallback } from 'react';
|
|
|
2
2
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
3
3
|
import * as colors from '@atlaskit/theme/colors';
|
|
4
4
|
import LightbulbIcon from '@atlaskit/icon/glyph/lightbulb';
|
|
5
|
+
import { token } from '@atlaskit/tokens';
|
|
5
6
|
import { injectIntl } from 'react-intl-next';
|
|
6
7
|
import { name as packageName, version as packageVersion } from '../../../version.json';
|
|
7
8
|
import { useWhatsNewArticleContext } from '../../contexts/whatsNewArticleContext';
|
|
@@ -47,7 +48,7 @@ export const WhatsNewButton = ({
|
|
|
47
48
|
productName
|
|
48
49
|
}) : formatMessage(messages.help_whats_new_button_label_without_product_name),
|
|
49
50
|
icon: /*#__PURE__*/React.createElement(LightbulbIcon, {
|
|
50
|
-
primaryColor: colors.N600,
|
|
51
|
+
primaryColor: token('color.icon.subtle', colors.N600),
|
|
51
52
|
size: "medium",
|
|
52
53
|
label: ""
|
|
53
54
|
})
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
4
4
|
import * as colors from '@atlaskit/theme/colors';
|
|
5
|
+
import { token } from '@atlaskit/tokens';
|
|
5
6
|
export const WhatsNewResultsEmptyMessageImage = styled.div`
|
|
6
7
|
padding: ${3 * gridSize()}px ${3 * gridSize()}px 0 ${3 * gridSize()}px;
|
|
7
8
|
text-align: center;
|
|
@@ -11,6 +12,6 @@ export const WhatsNewResultsEmptyMessageText = styled.div`
|
|
|
11
12
|
text-align: center;
|
|
12
13
|
|
|
13
14
|
p {
|
|
14
|
-
color: ${colors.N200};
|
|
15
|
+
color: ${token('color.text.subtlest', colors.N200)};
|
|
15
16
|
}
|
|
16
17
|
`;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
4
4
|
import * as colors from '@atlaskit/theme/colors';
|
|
5
|
+
import { token } from '@atlaskit/tokens';
|
|
5
6
|
export const SearchResultEmptyMessageImage = styled.div`
|
|
6
7
|
padding: ${3 * gridSize()}px ${3 * gridSize()}px 0 ${3 * gridSize()}px;
|
|
7
8
|
text-align: center;
|
|
@@ -11,6 +12,6 @@ export const SearchResultEmptyMessageText = styled.div`
|
|
|
11
12
|
text-align: center;
|
|
12
13
|
|
|
13
14
|
p {
|
|
14
|
-
color: ${colors.N200};
|
|
15
|
+
color: ${token('color.text.subtlest', colors.N200)};
|
|
15
16
|
}
|
|
16
17
|
`;
|
|
@@ -3,6 +3,7 @@ import styled from '@emotion/styled';
|
|
|
3
3
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
4
4
|
import { fontSize, fontSizeSmall } from '@atlaskit/theme/constants';
|
|
5
5
|
import * as colors from '@atlaskit/theme/colors';
|
|
6
|
+
import { token } from '@atlaskit/tokens';
|
|
6
7
|
export const WhatsNewResultListItemWrapper = styled.a({
|
|
7
8
|
position: `relative`,
|
|
8
9
|
boxSizing: `border-box`,
|
|
@@ -10,7 +11,8 @@ export const WhatsNewResultListItemWrapper = styled.a({
|
|
|
10
11
|
display: `block`,
|
|
11
12
|
textDecoration: `none`,
|
|
12
13
|
cursor: `pointer`,
|
|
13
|
-
color: `${colors.N200}`,
|
|
14
|
+
color: `${token('color.text.subtlest', colors.N200)}`,
|
|
15
|
+
backgroundColor: `${token('color.background.neutral.subtle', colors.N0)}`,
|
|
14
16
|
borderRadius: `3px`,
|
|
15
17
|
'&:hover, &:focus, &:visited, &:active': {
|
|
16
18
|
textDecoration: `none`,
|
|
@@ -18,13 +20,13 @@ export const WhatsNewResultListItemWrapper = styled.a({
|
|
|
18
20
|
outlineOffset: `none`
|
|
19
21
|
},
|
|
20
22
|
'&:focus': {
|
|
21
|
-
boxShadow: `${colors.B100} 0px 0px 0px 2px inset`
|
|
23
|
+
boxShadow: `${token('color.border.focused', colors.B100)} 0px 0px 0px 2px inset`
|
|
22
24
|
},
|
|
23
25
|
'&:hover': {
|
|
24
|
-
backgroundColor: `${colors.N30}`
|
|
26
|
+
backgroundColor: `${token('color.background.neutral.subtle.hovered', colors.N30)}`
|
|
25
27
|
},
|
|
26
28
|
'&:active': {
|
|
27
|
-
backgroundColor: `${colors.B50}`
|
|
29
|
+
backgroundColor: `${token('color.background.neutral.subtle.pressed', colors.B50)}`
|
|
28
30
|
}
|
|
29
31
|
}, props => props.styles);
|
|
30
32
|
export const WhatsNewResultListItemTitleContainer = styled.div`
|
|
@@ -45,6 +47,6 @@ export const WhatsNewResultListItemTitleText = styled.span`
|
|
|
45
47
|
export const WhatsNewResultListItemDescription = styled.p`
|
|
46
48
|
display: block;
|
|
47
49
|
line-height: ${gridSize() * 2.5}px;
|
|
48
|
-
color: ${colors.N800};
|
|
50
|
+
color: ${token('color.text', colors.N800)};
|
|
49
51
|
margin: 0;
|
|
50
52
|
`;
|
package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultsList.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
2
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
3
3
|
import * as colors from '@atlaskit/theme/colors';
|
|
4
|
+
import { token } from '@atlaskit/tokens';
|
|
4
5
|
import toDate from 'date-fns/toDate';
|
|
5
6
|
import isYesterday from 'date-fns/isYesterday';
|
|
6
7
|
import isToday from 'date-fns/isToday';
|
|
@@ -40,7 +41,7 @@ const WhatsNewResultsList = ({
|
|
|
40
41
|
key: key
|
|
41
42
|
}, /*#__PURE__*/React.createElement(WhatsNewResultsListGroupTitle, null, whatsNewArticlesGroupedByDate[key].title), whatsNewArticlesGroupedByDate[key].items.map((whatsNewArticle, i) => /*#__PURE__*/React.createElement(WhatsNewResultItem, {
|
|
42
43
|
styles: {
|
|
43
|
-
border: style === 'secondary' ? `2px solid ${colors.N30}` : 0,
|
|
44
|
+
border: style === 'secondary' ? `2px solid ${token('color.border', colors.N30)}` : 0,
|
|
44
45
|
padding: style === 'secondary' ? `${gridSize()}px ${gridSize() * 2}px` : `${gridSize()}px`,
|
|
45
46
|
marginBottom: style === 'secondary' ? `${gridSize() * 1.5}px` : 0
|
|
46
47
|
},
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { css } from '@emotion/core';
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
4
|
import { fontSizeSmall, gridSize } from '@atlaskit/theme/constants';
|
|
5
|
+
import { token } from '@atlaskit/tokens';
|
|
5
6
|
import * as colors from '@atlaskit/theme/colors';
|
|
6
7
|
export const truncate = (width = '100%') => css`
|
|
7
8
|
overflow-x: hidden;
|
|
@@ -16,7 +17,7 @@ export const WhatsNewResultsListGroupWrapper = styled.div`
|
|
|
16
17
|
padding: ${gridSize()}px 0 ${gridSize()}px 0;
|
|
17
18
|
`;
|
|
18
19
|
export const WhatsNewResultsListGroupTitle = styled.div`
|
|
19
|
-
color: ${colors.N200};
|
|
20
|
+
color: ${token('color.text.subtlest', colors.N200)};
|
|
20
21
|
font-size: ${fontSizeSmall()}px;
|
|
21
22
|
font-weight: bold;
|
|
22
23
|
padding: 0 ${gridSize()}px ${gridSize()}px ${gridSize()}px;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
4
|
+
import { token } from '@atlaskit/tokens';
|
|
4
5
|
export const WhatsNewResultsContainer = styled.div`
|
|
5
6
|
position: absolute;
|
|
6
7
|
height: 100%;
|
|
7
8
|
width: 100%;
|
|
8
9
|
top: 0;
|
|
9
|
-
background-color: #
|
|
10
|
+
background-color: ${token('elevation.surface', '#FFFFFF')};
|
|
10
11
|
flex: 1;
|
|
11
12
|
flex-direction: column;
|
|
12
13
|
box-sizing: border-box;
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
4
4
|
import * as colors from '@atlaskit/theme/colors';
|
|
5
|
+
import { token } from '@atlaskit/tokens';
|
|
5
6
|
import { keyframes } from '@emotion/core';
|
|
6
7
|
import { WHATS_NEW_ITEM_TYPES } from '../model/WhatsNew';
|
|
7
8
|
export const DividerLine = styled.div`
|
|
8
|
-
background-color: ${colors.N30A};
|
|
9
|
+
background-color: ${token('color.border', colors.N30A)};
|
|
9
10
|
height: 2px;
|
|
10
11
|
width: 100%;
|
|
11
12
|
padding: 0 ${2 * gridSize()}px;
|
|
@@ -37,12 +38,12 @@ export const LoadingRectangle = styled.div`
|
|
|
37
38
|
animation-iteration-count: infinite;
|
|
38
39
|
animation-name: ${shimmer};
|
|
39
40
|
animation-timing-function: linear;
|
|
40
|
-
background-color: ${colors.N30};
|
|
41
|
+
background-color: ${token('color.background.neutral', colors.N30)};
|
|
41
42
|
background-image: linear-gradient(
|
|
42
43
|
to right,
|
|
43
|
-
${colors.N30} 10%,
|
|
44
|
-
${colors.N40} 20%,
|
|
45
|
-
${colors.N30} 30%
|
|
44
|
+
${token('color.background.neutral.subtle', colors.N30)} 10%,
|
|
45
|
+
${token('color.background.neutral', colors.N40)} 20%,
|
|
46
|
+
${token('color.background.neutral.subtle', colors.N30)} 30%
|
|
46
47
|
);
|
|
47
48
|
background-repeat: no-repeat;
|
|
48
49
|
`;
|
|
@@ -63,12 +64,12 @@ export const LoadingCircle = styled.div`
|
|
|
63
64
|
animation-iteration-count: infinite;
|
|
64
65
|
animation-name: ${shimmer};
|
|
65
66
|
animation-timing-function: linear;
|
|
66
|
-
background-color: ${colors.N30};
|
|
67
|
+
background-color: ${token('color.background.neutral', colors.N30)};
|
|
67
68
|
background-image: linear-gradient(
|
|
68
69
|
to right,
|
|
69
|
-
${colors.N30} 10%,
|
|
70
|
-
${colors.N40} 20%,
|
|
71
|
-
${colors.N30} 30%
|
|
70
|
+
${token('color.background.neutral.subtle', colors.N30)} 10%,
|
|
71
|
+
${token('color.background.neutral', colors.N40)} 20%,
|
|
72
|
+
${token('color.background.neutral.subtle', colors.N30)} 30%
|
|
72
73
|
);
|
|
73
74
|
background-repeat: no-repeat;
|
|
74
75
|
`;
|
|
@@ -88,22 +89,22 @@ export const WhatsNewTypeIcon = styled.div`
|
|
|
88
89
|
}) => {
|
|
89
90
|
switch (type) {
|
|
90
91
|
case WHATS_NEW_ITEM_TYPES.IMPROVEMENT:
|
|
91
|
-
return colors.Y200;
|
|
92
|
+
return token('color.icon.warning', colors.Y200);
|
|
92
93
|
|
|
93
94
|
case WHATS_NEW_ITEM_TYPES.NEW_FEATURE:
|
|
94
|
-
return colors.G300;
|
|
95
|
+
return token('color.icon.success', colors.G300);
|
|
95
96
|
|
|
96
97
|
case WHATS_NEW_ITEM_TYPES.FIX:
|
|
97
|
-
return colors.B500;
|
|
98
|
+
return token('color.icon.information', colors.B500);
|
|
98
99
|
|
|
99
100
|
case WHATS_NEW_ITEM_TYPES.EXPERIMENT:
|
|
100
|
-
return colors.P500;
|
|
101
|
+
return token('color.icon.discovery', colors.P500);
|
|
101
102
|
|
|
102
103
|
case WHATS_NEW_ITEM_TYPES.REMOVED:
|
|
103
|
-
return colors.N700;
|
|
104
|
+
return token('color.icon.disabled', colors.N700);
|
|
104
105
|
|
|
105
106
|
default:
|
|
106
|
-
return colors.N400;
|
|
107
|
+
return token('color.icon', colors.N400);
|
|
107
108
|
}
|
|
108
109
|
}};
|
|
109
110
|
|
package/dist/es2019/version.json
CHANGED