@atlaskit/help 7.1.22 → 7.1.24

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.
Files changed (68) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/index.js +1 -3
  3. package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/styled.js +1 -3
  4. package/dist/cjs/components/Article/WhatsNewArticle/styled.js +3 -5
  5. package/dist/cjs/components/Article/styled.js +1 -3
  6. package/dist/cjs/components/ArticlesList/ArticlesList.js +1 -3
  7. package/dist/cjs/components/ArticlesList/ArticlesListItem/index.js +2 -4
  8. package/dist/cjs/components/ArticlesList/ArticlesListItem/styled.js +8 -10
  9. package/dist/cjs/components/HelpContentButton/styled.js +1 -3
  10. package/dist/cjs/components/RelatedArticles/styled.js +1 -3
  11. package/dist/cjs/components/Search/SearchInput/index.js +1 -0
  12. package/dist/cjs/components/Search/SearchResults/SearchExternalSite.js +2 -4
  13. package/dist/cjs/components/Search/SearchResults/SearchResultsEmpty.js +2 -4
  14. package/dist/cjs/components/Search/SearchResults/styled.js +3 -5
  15. package/dist/cjs/components/WhatsNew/WhatsNewButton/index.js +1 -3
  16. package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +1 -3
  17. package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.js +1 -3
  18. package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.js +6 -8
  19. package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultsList.js +1 -3
  20. package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.js +1 -3
  21. package/dist/cjs/components/WhatsNew/WhatsNewResults/styled.js +1 -3
  22. package/dist/cjs/util/styled.js +9 -11
  23. package/dist/cjs/version.json +1 -1
  24. package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/index.js +1 -2
  25. package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/styled.js +1 -2
  26. package/dist/es2019/components/Article/WhatsNewArticle/styled.js +3 -4
  27. package/dist/es2019/components/Article/styled.js +1 -2
  28. package/dist/es2019/components/ArticlesList/ArticlesList.js +1 -2
  29. package/dist/es2019/components/ArticlesList/ArticlesListItem/index.js +2 -3
  30. package/dist/es2019/components/ArticlesList/ArticlesListItem/styled.js +8 -9
  31. package/dist/es2019/components/HelpContentButton/styled.js +5 -6
  32. package/dist/es2019/components/RelatedArticles/styled.js +1 -2
  33. package/dist/es2019/components/Search/SearchInput/index.js +1 -0
  34. package/dist/es2019/components/Search/SearchResults/SearchExternalSite.js +2 -3
  35. package/dist/es2019/components/Search/SearchResults/SearchResultsEmpty.js +2 -3
  36. package/dist/es2019/components/Search/SearchResults/styled.js +3 -4
  37. package/dist/es2019/components/WhatsNew/WhatsNewButton/index.js +1 -2
  38. package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +1 -2
  39. package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.js +1 -2
  40. package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.js +6 -7
  41. package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultsList.js +1 -2
  42. package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.js +1 -2
  43. package/dist/es2019/components/WhatsNew/WhatsNewResults/styled.js +1 -2
  44. package/dist/es2019/util/styled.js +15 -16
  45. package/dist/es2019/version.json +1 -1
  46. package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/index.js +1 -2
  47. package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/styled.js +1 -2
  48. package/dist/esm/components/Article/WhatsNewArticle/styled.js +3 -4
  49. package/dist/esm/components/Article/styled.js +1 -2
  50. package/dist/esm/components/ArticlesList/ArticlesList.js +1 -2
  51. package/dist/esm/components/ArticlesList/ArticlesListItem/index.js +2 -3
  52. package/dist/esm/components/ArticlesList/ArticlesListItem/styled.js +8 -9
  53. package/dist/esm/components/HelpContentButton/styled.js +1 -2
  54. package/dist/esm/components/RelatedArticles/styled.js +1 -2
  55. package/dist/esm/components/Search/SearchInput/index.js +1 -0
  56. package/dist/esm/components/Search/SearchResults/SearchExternalSite.js +2 -3
  57. package/dist/esm/components/Search/SearchResults/SearchResultsEmpty.js +2 -3
  58. package/dist/esm/components/Search/SearchResults/styled.js +3 -4
  59. package/dist/esm/components/WhatsNew/WhatsNewButton/index.js +1 -2
  60. package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +1 -2
  61. package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.js +1 -2
  62. package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.js +6 -7
  63. package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultsList.js +1 -2
  64. package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.js +1 -2
  65. package/dist/esm/components/WhatsNew/WhatsNewResults/styled.js +1 -2
  66. package/dist/esm/util/styled.js +9 -10
  67. package/dist/esm/version.json +1 -1
  68. package/package.json +2 -2
@@ -6,7 +6,6 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
6
6
  import styled from '@emotion/styled';
7
7
  import { fontSize, gridSize } from '@atlaskit/theme/constants';
8
8
  import * as colors from '@atlaskit/theme/colors';
9
- import { token } from '@atlaskit/tokens';
10
9
  export var ArticlesListItemWrapper = styled.a({
11
10
  position: "relative",
12
11
  boxSizing: "border-box",
@@ -14,28 +13,28 @@ export var ArticlesListItemWrapper = styled.a({
14
13
  display: "block",
15
14
  textDecoration: "none",
16
15
  cursor: "pointer",
17
- color: "".concat(token('color.text.subtlest', colors.N200)),
16
+ color: "".concat("var(--ds-text-subtlest, ".concat(colors.N200, ")")),
18
17
  borderRadius: "3px",
19
- backgroundColor: "".concat(token('color.background.neutral.subtle', 'transparent')),
18
+ backgroundColor: "var(--ds-background-neutral-subtle, transparent)",
20
19
  '&:hover, &:focus, &:visited, &:active': {
21
20
  textDecoration: "none",
22
21
  outline: "none",
23
22
  outlineOffset: "none"
24
23
  },
25
24
  '&:focus': {
26
- boxShadow: "".concat(token('color.border.focused', colors.B100), " 0px 0px 0px 2px inset")
25
+ boxShadow: "".concat("var(--ds-border-focused, ".concat(colors.B100, ")"), " 0px 0px 0px 2px inset")
27
26
  },
28
27
  '&:hover': {
29
- backgroundColor: "".concat(token('color.background.neutral.subtle.hovered', colors.N30))
28
+ backgroundColor: "".concat("var(--ds-background-neutral-subtle-hovered, ".concat(colors.N30, ")"))
30
29
  },
31
30
  '&:active': {
32
- backgroundColor: "".concat(token('color.background.neutral.subtle.pressed', colors.B50))
31
+ backgroundColor: "".concat("var(--ds-background-neutral-subtle-pressed, ".concat(colors.B50, ")"))
33
32
  }
34
33
  }, function (props) {
35
34
  return props.styles;
36
35
  });
37
36
  export var ArticlesListItemContainer = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n white-space: nowrap;\n"])));
38
- export var ArticlesListItemTypeTitle = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n font-weight: bold;\n font-size: 11px;\n line-height: ", "px;\n color: ", ";\n padding-bottom: ", "px;\n"])), gridSize() * 2, token('color.text.subtlest', colors.N200), gridSize() / 2);
37
+ export var ArticlesListItemTypeTitle = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n font-weight: bold;\n font-size: 11px;\n line-height: ", "px;\n color: ", ";\n padding-bottom: ", "px;\n"])), gridSize() * 2, "var(--ds-text-subtlest, ".concat(colors.N200, ")"), gridSize() / 2);
39
38
  export var ArticlesListItemLinkIcon = styled.span(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n align-self: auto;\n padding-inline-start: 5px;\n vertical-align: middle;\n"])));
40
- export var ArticlesListItemTitleText = styled.span(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n text-decoration: none;\n color: ", ";\n font-size: ", "px;\n font-weight: 600;\n display: inline-block;\n line-height: ", "px;\n white-space: normal;\n overflow-x: hidden;\n margin-bottom: ", "px;\n"])), token('color.text', colors.N800), fontSize(), gridSize() * 2.5, gridSize());
41
- export var ArticlesListItemDescription = styled.p(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: block;\n line-height: ", "px;\n color: ", ";\n margin: 0;\n"])), gridSize() * 2.5, token('color.text.subtle', colors.N400));
39
+ export var ArticlesListItemTitleText = styled.span(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n text-decoration: none;\n color: ", ";\n font-size: ", "px;\n font-weight: 600;\n display: inline-block;\n line-height: ", "px;\n white-space: normal;\n overflow-x: hidden;\n margin-bottom: ", "px;\n"])), "var(--ds-text, ".concat(colors.N800, ")"), fontSize(), gridSize() * 2.5, gridSize());
40
+ export var ArticlesListItemDescription = styled.p(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: block;\n line-height: ", "px;\n color: ", ";\n margin: 0;\n"])), gridSize() * 2.5, "var(--ds-text-subtle, ".concat(colors.N400, ")"));
@@ -6,8 +6,7 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
6
6
  import styled from 'styled-components';
7
7
  import * as colors from '@atlaskit/theme/colors';
8
8
  import { gridSize } from '@atlaskit/theme/constants';
9
- import { token } from '@atlaskit/tokens';
10
- export var HelpContentButtonContainer = styled.a(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: block;\n cursor: pointer;\n width: calc(100% - ", "px);\n color: ", ";\n padding: ", "px;\n border-radius: 3px;\n\n &:hover,\n &:focus,\n &:visited,\n &:active {\n text-decoration: none;\n outline: none;\n outline-offset: none;\n color: ", ";\n }\n\n &:focus {\n box-shadow: ", " 0 0 0 2px inset;\n }\n\n &:hover {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n }\n"])), gridSize() * 2, token('color.text.subtle', colors.N600), gridSize, token('color.text.subtle', colors.N600), token('color.border.focused', colors.B100), token('color.background.neutral.subtle.hovered', colors.N30), token('color.background.neutral.subtle.pressed', colors.B50));
9
+ export var HelpContentButtonContainer = styled.a(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: block;\n cursor: pointer;\n width: calc(100% - ", "px);\n color: ", ";\n padding: ", "px;\n border-radius: 3px;\n\n &:hover,\n &:focus,\n &:visited,\n &:active {\n text-decoration: none;\n outline: none;\n outline-offset: none;\n color: ", ";\n }\n\n &:focus {\n box-shadow: ", " 0 0 0 2px inset;\n }\n\n &:hover {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n }\n"])), gridSize() * 2, "var(--ds-text-subtle, ".concat(colors.N600, ")"), gridSize, "var(--ds-text-subtle, ".concat(colors.N600, ")"), "var(--ds-border-focused, ".concat(colors.B100, ")"), "var(--ds-background-neutral-subtle-hovered, ".concat(colors.N30, ")"), "var(--ds-background-neutral-subtle-pressed, ".concat(colors.B50, ")"));
11
10
  export var HelpContentButtonIcon = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: inline-block;\n vertical-align: middle;\n width: 20px;\n height: 20px;\n border-radius: 4px;\n position: relative;\n\n & span {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n"])));
12
11
  export var HelpContentButtonText = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: calc(100% - 20px);\n display: inline-block;\n vertical-align: middle;\n padding: 0 ", "px;\n box-sizing: border-box;\n"])), gridSize);
13
12
  export var HelpContentButtonExternalLinkIcon = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: inline-block;\n vertical-align: middle;\n padding-left: ", "px;\n"])), gridSize() / 2);
@@ -7,7 +7,6 @@ import { css } from '@emotion/core';
7
7
  import styled from '@emotion/styled';
8
8
  import * as colors from '@atlaskit/theme/colors';
9
9
  import { gridSize, fontSize } from '@atlaskit/theme/constants';
10
- import { token } from '@atlaskit/tokens';
11
10
 
12
11
  var baseHeading = function baseHeading(size, lineHeight) {
13
12
  return "\n font-size: ".concat(size / fontSize(), "em;\n font-style: inherit;\n line-height: ").concat(lineHeight / size, ";\n");
@@ -17,7 +16,7 @@ export var truncate = function truncate() {
17
16
  var width = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '100%';
18
17
  return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n overflow-x: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n width: ", ";\n"])), width);
19
18
  };
20
- export var RelatedArticlesTitle = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "\n color: ", ";\n font-weight: 600;\n letter-spacing: -0.006em;\n padding: ", "px 0;\n"])), baseHeading(16, 20), token('color.text', colors.N800), gridSize() * 2);
19
+ export var RelatedArticlesTitle = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "\n color: ", ";\n font-weight: 600;\n letter-spacing: -0.006em;\n padding: ", "px 0;\n"])), baseHeading(16, 20), "var(--ds-text, ".concat(colors.N800, ")"), gridSize() * 2);
21
20
  /**
22
21
  * Loading styled-components
23
22
  */
@@ -76,6 +76,7 @@ export var SearchInput = function SearchInput(_ref) {
76
76
  }
77
77
 
78
78
  return /*#__PURE__*/React.createElement(SearchInputContainer, null, /*#__PURE__*/React.createElement(Textfield, {
79
+ title: "Help articles search input",
79
80
  autoComplete: "off",
80
81
  ref: inputRef,
81
82
  name: "help-search-input",
@@ -6,7 +6,6 @@ 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';
10
9
  export var SearchExternalSite = function SearchExternalSite(_ref) {
11
10
  var searchExternalUrl = _ref.searchExternalUrl,
12
11
  onSearchExternalUrlClick = _ref.onSearchExternalUrlClick,
@@ -34,8 +33,8 @@ export var SearchExternalSite = function SearchExternalSite(_ref) {
34
33
  iconAfter: /*#__PURE__*/React.createElement(ShortcutIcon, {
35
34
  size: "small",
36
35
  label: "",
37
- primaryColor: token('color.icon.subtle', colors.N90),
38
- secondaryColor: token('color.icon.subtle', colors.N90)
36
+ primaryColor: "var(--ds-icon-subtle, ".concat(colors.N90, ")"),
37
+ secondaryColor: "var(--ds-icon-subtle, ".concat(colors.N90, ")")
39
38
  }),
40
39
  spacing: "compact",
41
40
  href: searchExternalUrl,
@@ -3,7 +3,6 @@ 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';
7
6
  import { injectIntl } from 'react-intl-next';
8
7
  import NotFoundImage from '../../../assets/NotFoundImage';
9
8
  import { messages } from '../../../messages';
@@ -35,8 +34,8 @@ export var SearchResultsEmpty = function SearchResultsEmpty(_ref) {
35
34
  iconAfter: /*#__PURE__*/React.createElement(ShortcutIcon, {
36
35
  size: "small",
37
36
  label: "",
38
- primaryColor: token('color.icon.subtle', colors.N90),
39
- secondaryColor: token('color.icon.subtle', colors.N90)
37
+ primaryColor: "var(--ds-icon-subtle, ".concat(colors.N90, ")"),
38
+ secondaryColor: "var(--ds-icon-subtle, ".concat(colors.N90, ")")
40
39
  }),
41
40
  spacing: "compact",
42
41
  href: searchExternalUrl,
@@ -6,9 +6,8 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
6
6
  import styled from '@emotion/styled';
7
7
  import { gridSize } from '@atlaskit/theme/constants';
8
8
  import * as colors from '@atlaskit/theme/colors';
9
- import { token } from '@atlaskit/tokens';
10
- export var SearchResultsContainer = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n height: 100%;\n width: 100%;\n top: 0;\n background-color: ", ";\n flex: 1;\n flex-direction: column;\n box-sizing: border-box;\n overflow-x: hidden;\n overflow-y: auto;\n z-index: 10;\n padding: 0 ", "px;\n"])), token('elevation.surface', '#FFFFFF'), 2 * gridSize());
9
+ export var SearchResultsContainer = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n height: 100%;\n width: 100%;\n top: 0;\n background-color: ", ";\n flex: 1;\n flex-direction: column;\n box-sizing: border-box;\n overflow-x: hidden;\n overflow-y: auto;\n z-index: 10;\n padding: 0 ", "px;\n"])), "var(--ds-surface, #FFFFFF)", 2 * gridSize());
11
10
  export var SearchResultsList = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding-top: ", "px;\n position: relative;\n"])), 3 * gridSize());
12
11
  export var SearchResultEmptyMessageImage = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n padding: ", "px ", "px 0 ", "px;\n text-align: center;\n"])), 3 * gridSize(), 3 * gridSize(), 3 * gridSize());
13
- export var SearchResultEmptyMessageText = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n padding: ", "px ", "px 0 ", "px;\n text-align: center;\n\n p {\n color: ", ";\n }\n"])), 3 * gridSize(), 3 * gridSize(), 3 * gridSize(), token('color.text.subtlest', colors.N200));
14
- export var SearchResultSearchExternalSiteContainer = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n padding: ", "px;\n text-align: center;\n\n p {\n color: ", ";\n }\n"])), 3 * gridSize(), token('color.text.subtlest', colors.N200));
12
+ export var SearchResultEmptyMessageText = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n padding: ", "px ", "px 0 ", "px;\n text-align: center;\n\n p {\n color: ", ";\n }\n"])), 3 * gridSize(), 3 * gridSize(), 3 * gridSize(), "var(--ds-text-subtlest, ".concat(colors.N200, ")"));
13
+ export var SearchResultSearchExternalSiteContainer = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n padding: ", "px;\n text-align: center;\n\n p {\n color: ", ";\n }\n"])), 3 * gridSize(), "var(--ds-text-subtlest, ".concat(colors.N200, ")"));
@@ -2,7 +2,6 @@ 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';
6
5
  import { injectIntl } from 'react-intl-next';
7
6
  import { name as packageName, version as packageVersion } from '../../../version.json';
8
7
  import { useWhatsNewArticleContext } from '../../contexts/whatsNewArticleContext';
@@ -46,7 +45,7 @@ export var WhatsNewButton = function WhatsNewButton(_ref) {
46
45
  productName: productName
47
46
  }) : formatMessage(messages.help_whats_new_button_label_without_product_name),
48
47
  icon: /*#__PURE__*/React.createElement(LightbulbIcon, {
49
- primaryColor: token('color.icon.subtle', colors.N600),
48
+ primaryColor: "var(--ds-icon-subtle, ".concat(colors.N600, ")"),
50
49
  size: "medium",
51
50
  label: ""
52
51
  })
@@ -6,6 +6,5 @@ var _templateObject, _templateObject2;
6
6
  import styled from '@emotion/styled';
7
7
  import { gridSize } from '@atlaskit/theme/constants';
8
8
  import * as colors from '@atlaskit/theme/colors';
9
- import { token } from '@atlaskit/tokens';
10
9
  export var WhatsNewResultsEmptyMessageImage = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: ", "px ", "px 0 ", "px;\n text-align: center;\n"])), 3 * gridSize(), 3 * gridSize(), 3 * gridSize());
11
- export var WhatsNewResultsEmptyMessageText = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: ", "px ", "px 0 ", "px;\n text-align: center;\n\n p {\n color: ", ";\n }\n"])), 3 * gridSize(), 3 * gridSize(), 3 * gridSize(), token('color.text.subtlest', colors.N200));
10
+ export var WhatsNewResultsEmptyMessageText = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: ", "px ", "px 0 ", "px;\n text-align: center;\n\n p {\n color: ", ";\n }\n"])), 3 * gridSize(), 3 * gridSize(), 3 * gridSize(), "var(--ds-text-subtlest, ".concat(colors.N200, ")"));
@@ -6,6 +6,5 @@ var _templateObject, _templateObject2;
6
6
  import styled from '@emotion/styled';
7
7
  import { gridSize } from '@atlaskit/theme/constants';
8
8
  import * as colors from '@atlaskit/theme/colors';
9
- import { token } from '@atlaskit/tokens';
10
9
  export var SearchResultEmptyMessageImage = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: ", "px ", "px 0 ", "px;\n text-align: center;\n"])), 3 * gridSize(), 3 * gridSize(), 3 * gridSize());
11
- export var SearchResultEmptyMessageText = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: ", "px ", "px 0 ", "px;\n text-align: center;\n\n p {\n color: ", ";\n }\n"])), 3 * gridSize(), 3 * gridSize(), 3 * gridSize(), token('color.text.subtlest', colors.N200));
10
+ export var SearchResultEmptyMessageText = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: ", "px ", "px 0 ", "px;\n text-align: center;\n\n p {\n color: ", ";\n }\n"])), 3 * gridSize(), 3 * gridSize(), 3 * gridSize(), "var(--ds-text-subtlest, ".concat(colors.N200, ")"));
@@ -7,7 +7,6 @@ import styled from '@emotion/styled';
7
7
  import { gridSize } from '@atlaskit/theme/constants';
8
8
  import { fontSize, fontSizeSmall } from '@atlaskit/theme/constants';
9
9
  import * as colors from '@atlaskit/theme/colors';
10
- import { token } from '@atlaskit/tokens';
11
10
  export var WhatsNewResultListItemWrapper = styled.a({
12
11
  position: "relative",
13
12
  boxSizing: "border-box",
@@ -15,8 +14,8 @@ export var WhatsNewResultListItemWrapper = styled.a({
15
14
  display: "block",
16
15
  textDecoration: "none",
17
16
  cursor: "pointer",
18
- color: "".concat(token('color.text.subtlest', colors.N200)),
19
- backgroundColor: "".concat(token('color.background.neutral.subtle', colors.N0)),
17
+ color: "".concat("var(--ds-text-subtlest, ".concat(colors.N200, ")")),
18
+ backgroundColor: "".concat("var(--ds-background-neutral-subtle, ".concat(colors.N0, ")")),
20
19
  borderRadius: "3px",
21
20
  '&:hover, &:focus, &:visited, &:active': {
22
21
  textDecoration: "none",
@@ -24,17 +23,17 @@ export var WhatsNewResultListItemWrapper = styled.a({
24
23
  outlineOffset: "none"
25
24
  },
26
25
  '&:focus': {
27
- boxShadow: "".concat(token('color.border.focused', colors.B100), " 0px 0px 0px 2px inset")
26
+ boxShadow: "".concat("var(--ds-border-focused, ".concat(colors.B100, ")"), " 0px 0px 0px 2px inset")
28
27
  },
29
28
  '&:hover': {
30
- backgroundColor: "".concat(token('color.background.neutral.subtle.hovered', colors.N30))
29
+ backgroundColor: "".concat("var(--ds-background-neutral-subtle-hovered, ".concat(colors.N30, ")"))
31
30
  },
32
31
  '&:active': {
33
- backgroundColor: "".concat(token('color.background.neutral.subtle.pressed', colors.B50))
32
+ backgroundColor: "".concat("var(--ds-background-neutral-subtle-pressed, ".concat(colors.B50, ")"))
34
33
  }
35
34
  }, function (props) {
36
35
  return props.styles;
37
36
  });
38
37
  export var WhatsNewResultListItemTitleContainer = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n white-space: nowrap;\n margin-bottom: ", "px;\n"])), gridSize() / 2);
39
38
  export var WhatsNewResultListItemTitleText = styled.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n font-size: ", "px;\n line-height: ", "px;\n display: inline-block;\n vertical-align: middle;\n margin: 0;\n padding-left: ", "px;\n white-space: normal;\n overflow-x: hidden;\n"])), fontSizeSmall(), fontSize(), gridSize() / 2);
40
- export var WhatsNewResultListItemDescription = styled.p(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: block;\n line-height: ", "px;\n color: ", ";\n margin: 0;\n"])), gridSize() * 2.5, token('color.text', colors.N800));
39
+ export var WhatsNewResultListItemDescription = styled.p(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: block;\n line-height: ", "px;\n color: ", ";\n margin: 0;\n"])), gridSize() * 2.5, "var(--ds-text, ".concat(colors.N800, ")"));
@@ -2,7 +2,6 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import React, { useEffect, useState } from 'react';
3
3
  import { gridSize } from '@atlaskit/theme/constants';
4
4
  import * as colors from '@atlaskit/theme/colors';
5
- import { token } from '@atlaskit/tokens';
6
5
  import toDate from 'date-fns/toDate';
7
6
  import isYesterday from 'date-fns/isYesterday';
8
7
  import isToday from 'date-fns/isToday';
@@ -49,7 +48,7 @@ var WhatsNewResultsList = function WhatsNewResultsList(_ref) {
49
48
  }, /*#__PURE__*/React.createElement(WhatsNewResultsListGroupTitle, null, whatsNewArticlesGroupedByDate[key].title), whatsNewArticlesGroupedByDate[key].items.map(function (whatsNewArticle, i) {
50
49
  return /*#__PURE__*/React.createElement(WhatsNewResultItem, {
51
50
  styles: {
52
- border: style === 'secondary' ? "2px solid ".concat(token('color.border', colors.N30)) : 0,
51
+ border: style === 'secondary' ? "2px solid ".concat("var(--ds-border, ".concat(colors.N30, ")")) : 0,
53
52
  padding: style === 'secondary' ? "".concat(gridSize(), "px ").concat(gridSize() * 2, "px") : "".concat(gridSize(), "px"),
54
53
  marginBottom: style === 'secondary' ? "".concat(gridSize() * 1.5, "px") : 0
55
54
  },
@@ -6,7 +6,6 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
6
6
  import { css } from '@emotion/core';
7
7
  import styled from '@emotion/styled';
8
8
  import { fontSizeSmall, gridSize } from '@atlaskit/theme/constants';
9
- import { token } from '@atlaskit/tokens';
10
9
  import * as colors from '@atlaskit/theme/colors';
11
10
  export var truncate = function truncate() {
12
11
  var width = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '100%';
@@ -14,5 +13,5 @@ export var truncate = function truncate() {
14
13
  };
15
14
  export var WhatsNewResultsListContainer = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: relative;\n"])));
16
15
  export var WhatsNewResultsListGroupWrapper = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n padding: ", "px 0 ", "px 0;\n"])), gridSize(), gridSize());
17
- export var WhatsNewResultsListGroupTitle = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n color: ", ";\n font-size: ", "px;\n font-weight: bold;\n padding: 0 ", "px ", "px ", "px;\n text-transform: uppercase;\n"])), token('color.text.subtlest', colors.N200), fontSizeSmall(), gridSize(), gridSize(), gridSize());
16
+ export var WhatsNewResultsListGroupTitle = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n color: ", ";\n font-size: ", "px;\n font-weight: bold;\n padding: 0 ", "px ", "px ", "px;\n text-transform: uppercase;\n"])), "var(--ds-text-subtlest, ".concat(colors.N200, ")"), fontSizeSmall(), gridSize(), gridSize(), gridSize());
18
17
  export var ToggleShowWhatsNewResultsContainer = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n padding: ", "px 0;\n span {\n margin: 0;\n }\n"])), gridSize());
@@ -5,8 +5,7 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
5
5
  /** @jsx jsx */
6
6
  import styled from '@emotion/styled';
7
7
  import { gridSize } from '@atlaskit/theme/constants';
8
- import { token } from '@atlaskit/tokens';
9
- export var WhatsNewResultsContainer = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n height: 100%;\n width: 100%;\n top: 0;\n background-color: ", ";\n flex: 1;\n flex-direction: column;\n box-sizing: border-box;\n overflow-x: hidden;\n overflow-y: auto;\n z-index: 1;\n padding: ", "px;\n"])), token('elevation.surface', '#FFFFFF'), 2 * gridSize());
8
+ export var WhatsNewResultsContainer = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n height: 100%;\n width: 100%;\n top: 0;\n background-color: ", ";\n flex: 1;\n flex-direction: column;\n box-sizing: border-box;\n overflow-x: hidden;\n overflow-y: auto;\n z-index: 1;\n padding: ", "px;\n"])), "var(--ds-surface, #FFFFFF)", 2 * gridSize());
10
9
  export var SelectContainer = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: ", "px;\n"])), 19 * gridSize());
11
10
  export var WhatsNewResultsListContainer = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n padding-top: ", "px;\n"])), gridSize());
12
11
  export var WhatsNewResultsListTitleContainer = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n padding: 0 ", "px;\n"])), gridSize());
@@ -6,10 +6,9 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
6
6
  import styled from '@emotion/styled';
7
7
  import { gridSize } from '@atlaskit/theme/constants';
8
8
  import * as colors from '@atlaskit/theme/colors';
9
- import { token } from '@atlaskit/tokens';
10
9
  import { keyframes } from '@emotion/core';
11
10
  import { WHATS_NEW_ITEM_TYPES } from '../model/WhatsNew';
12
- export var DividerLine = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background-color: ", ";\n height: 2px;\n width: 100%;\n padding: 0 ", "px;\n margin-top: ", "px;\n box-sizing: border-box;\n"])), token('color.border', colors.N30A), 2 * gridSize(), gridSize() * 2);
11
+ export var DividerLine = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background-color: ", ";\n height: 2px;\n width: 100%;\n padding: 0 ", "px;\n margin-top: ", "px;\n box-sizing: border-box;\n"])), "var(--ds-border, ".concat(colors.N30A, ")"), 2 * gridSize(), gridSize() * 2);
13
12
  /**
14
13
  * Loading container
15
14
  */
@@ -21,7 +20,7 @@ export var LoadingRectangle = styled.div(_templateObject3 || (_templateObject3 =
21
20
  return props.marginTop ? props.marginTop : gridSize() + 'px';
22
21
  }, function (props) {
23
22
  return props.contentWidth ? props.contentWidth : '100%';
24
- }, shimmer, token('color.background.neutral', colors.N30), token('color.background.neutral.subtle', colors.N30), token('color.background.neutral', colors.N40), token('color.background.neutral.subtle', colors.N30));
23
+ }, shimmer, "var(--ds-background-neutral, ".concat(colors.N30, ")"), "var(--ds-background-neutral-subtle, ".concat(colors.N30, ")"), "var(--ds-background-neutral, ".concat(colors.N40, ")"), "var(--ds-background-neutral-subtle, ".concat(colors.N30, ")"));
25
24
  /**
26
25
  * Loading Circle
27
26
  */
@@ -32,7 +31,7 @@ export var LoadingCircle = styled.div(_templateObject4 || (_templateObject4 = _t
32
31
  return props.marginTop ? props.marginTop : '';
33
32
  }, function (props) {
34
33
  return props.radius ? props.radius : "".concat(gridSize() * 4, "px");
35
- }, shimmer, token('color.background.neutral', colors.N30), token('color.background.neutral.subtle', colors.N30), token('color.background.neutral', colors.N40), token('color.background.neutral.subtle', colors.N30));
34
+ }, shimmer, "var(--ds-background-neutral, ".concat(colors.N30, ")"), "var(--ds-background-neutral-subtle, ".concat(colors.N30, ")"), "var(--ds-background-neutral, ".concat(colors.N40, ")"), "var(--ds-background-neutral-subtle, ".concat(colors.N30, ")"));
36
35
  /**
37
36
  * What's new icon
38
37
  */
@@ -42,21 +41,21 @@ export var WhatsNewTypeIcon = styled.div(_templateObject5 || (_templateObject5 =
42
41
 
43
42
  switch (type) {
44
43
  case WHATS_NEW_ITEM_TYPES.IMPROVEMENT:
45
- return token('color.icon.warning', colors.Y200);
44
+ return "var(--ds-icon-warning, ".concat(colors.Y200, ")");
46
45
 
47
46
  case WHATS_NEW_ITEM_TYPES.NEW_FEATURE:
48
- return token('color.icon.success', colors.G300);
47
+ return "var(--ds-icon-success, ".concat(colors.G300, ")");
49
48
 
50
49
  case WHATS_NEW_ITEM_TYPES.FIX:
51
- return token('color.icon.information', colors.B500);
50
+ return "var(--ds-icon-information, ".concat(colors.B500, ")");
52
51
 
53
52
  case WHATS_NEW_ITEM_TYPES.EXPERIMENT:
54
- return token('color.icon.discovery', colors.P500);
53
+ return "var(--ds-icon-discovery, ".concat(colors.P500, ")");
55
54
 
56
55
  case WHATS_NEW_ITEM_TYPES.REMOVED:
57
- return token('color.icon.disabled', colors.N700);
56
+ return "var(--ds-icon-disabled, ".concat(colors.N700, ")");
58
57
 
59
58
  default:
60
- return token('color.icon', colors.N400);
59
+ return "var(--ds-icon, ".concat(colors.N400, ")");
61
60
  }
62
61
  }, gridSize() / 2, gridSize() / 2);
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/help",
3
- "version": "7.1.22",
3
+ "version": "7.1.24",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/help",
3
- "version": "7.1.22",
3
+ "version": "7.1.24",
4
4
  "description": "A cross-product help component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -38,7 +38,7 @@
38
38
  "@atlaskit/notification-log-client": "^6.0.0",
39
39
  "@atlaskit/radio": "^5.4.0",
40
40
  "@atlaskit/section-message": "^6.3.0",
41
- "@atlaskit/select": "^16.0.0",
41
+ "@atlaskit/select": "^16.1.0",
42
42
  "@atlaskit/spinner": "^15.3.0",
43
43
  "@atlaskit/textarea": "^4.5.0",
44
44
  "@atlaskit/textfield": "^5.3.0",