@atlaskit/help 7.2.30 → 7.3.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.
Files changed (103) hide show
  1. package/CHANGELOG.md +735 -475
  2. package/dist/cjs/analytics.js +1 -1
  3. package/dist/cjs/components/Article/ArticleLoadingFail/index.js +1 -1
  4. package/dist/cjs/components/Article/ArticleLoadingFail/styled.js +9 -4
  5. package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +1 -1
  6. package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +1 -1
  7. package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/index.js +1 -1
  8. package/dist/cjs/components/Article/HelpArticle/index.js +1 -1
  9. package/dist/cjs/components/Article/WhatsNewArticle/index.js +1 -1
  10. package/dist/cjs/components/Article/styled.js +16 -3
  11. package/dist/cjs/components/ArticlesList/ArticlesListItem/index.js +1 -1
  12. package/dist/cjs/components/ArticlesList/styled.js +16 -5
  13. package/dist/cjs/components/HelpContentButton/index.js +1 -1
  14. package/dist/cjs/components/HelpContentButton/styled.js +9 -0
  15. package/dist/cjs/components/RelatedArticles/index.js +1 -1
  16. package/dist/cjs/components/RelatedArticles/styled.js +30 -8
  17. package/dist/cjs/components/Search/SearchInput/index.js +1 -1
  18. package/dist/cjs/components/Search/SearchInput/styled.js +32 -5
  19. package/dist/cjs/components/Search/SearchResults/index.js +11 -6
  20. package/dist/cjs/components/Search/SearchResults/styled.js +38 -8
  21. package/dist/cjs/components/WhatsNew/WhatsNewButton/index.js +1 -1
  22. package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +13 -5
  23. package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.js +13 -5
  24. package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
  25. package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.js +23 -6
  26. package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.js +27 -8
  27. package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/styled.js +15 -4
  28. package/dist/cjs/components/WhatsNew/WhatsNewResults/styled.js +24 -6
  29. package/dist/cjs/components/contexts/searchContext.js +4 -2
  30. package/dist/cjs/components/styled.js +33 -9
  31. package/dist/cjs/model/Help.js +0 -1
  32. package/dist/cjs/util/styled.js +57 -18
  33. package/dist/es2019/analytics.js +1 -1
  34. package/dist/es2019/components/Article/ArticleLoadingFail/index.js +1 -1
  35. package/dist/es2019/components/Article/ArticleLoadingFail/styled.js +8 -8
  36. package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +1 -1
  37. package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +1 -1
  38. package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/index.js +1 -1
  39. package/dist/es2019/components/Article/HelpArticle/index.js +1 -1
  40. package/dist/es2019/components/Article/WhatsNewArticle/index.js +1 -1
  41. package/dist/es2019/components/Article/styled.js +15 -15
  42. package/dist/es2019/components/ArticlesList/ArticlesListItem/index.js +1 -1
  43. package/dist/es2019/components/ArticlesList/styled.js +14 -14
  44. package/dist/es2019/components/HelpContentButton/index.js +1 -1
  45. package/dist/es2019/components/HelpContentButton/styled.js +9 -0
  46. package/dist/es2019/components/RelatedArticles/index.js +1 -1
  47. package/dist/es2019/components/RelatedArticles/styled.js +28 -29
  48. package/dist/es2019/components/Search/SearchInput/index.js +1 -1
  49. package/dist/es2019/components/Search/SearchInput/styled.js +29 -33
  50. package/dist/es2019/components/Search/SearchResults/index.js +11 -6
  51. package/dist/es2019/components/Search/SearchResults/styled.js +34 -38
  52. package/dist/es2019/components/WhatsNew/WhatsNewButton/index.js +1 -1
  53. package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +10 -13
  54. package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.js +10 -13
  55. package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
  56. package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.js +21 -21
  57. package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.js +24 -25
  58. package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/styled.js +14 -14
  59. package/dist/es2019/components/WhatsNew/WhatsNewResults/styled.js +23 -23
  60. package/dist/es2019/components/contexts/searchContext.js +4 -2
  61. package/dist/es2019/components/styled.js +30 -30
  62. package/dist/es2019/model/Help.js +0 -1
  63. package/dist/es2019/util/styled.js +51 -60
  64. package/dist/esm/analytics.js +1 -1
  65. package/dist/esm/components/Article/ArticleLoadingFail/index.js +1 -1
  66. package/dist/esm/components/Article/ArticleLoadingFail/styled.js +8 -4
  67. package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +1 -1
  68. package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +1 -1
  69. package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/index.js +1 -1
  70. package/dist/esm/components/Article/HelpArticle/index.js +1 -1
  71. package/dist/esm/components/Article/WhatsNewArticle/index.js +1 -1
  72. package/dist/esm/components/Article/styled.js +15 -3
  73. package/dist/esm/components/ArticlesList/ArticlesListItem/index.js +1 -1
  74. package/dist/esm/components/ArticlesList/styled.js +15 -5
  75. package/dist/esm/components/HelpContentButton/index.js +1 -1
  76. package/dist/esm/components/HelpContentButton/styled.js +9 -0
  77. package/dist/esm/components/RelatedArticles/index.js +1 -1
  78. package/dist/esm/components/RelatedArticles/styled.js +28 -7
  79. package/dist/esm/components/Search/SearchInput/index.js +1 -1
  80. package/dist/esm/components/Search/SearchInput/styled.js +31 -5
  81. package/dist/esm/components/Search/SearchResults/index.js +11 -6
  82. package/dist/esm/components/Search/SearchResults/styled.js +36 -7
  83. package/dist/esm/components/WhatsNew/WhatsNewButton/index.js +1 -1
  84. package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +11 -4
  85. package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.js +11 -4
  86. package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
  87. package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.js +21 -5
  88. package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.js +25 -7
  89. package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/styled.js +14 -4
  90. package/dist/esm/components/WhatsNew/WhatsNewResults/styled.js +23 -6
  91. package/dist/esm/components/contexts/searchContext.js +4 -2
  92. package/dist/esm/components/styled.js +32 -9
  93. package/dist/esm/model/Help.js +0 -1
  94. package/dist/esm/util/styled.js +57 -18
  95. package/dist/types/analytics.d.ts +2 -2
  96. package/dist/types/components/RelatedArticles/index.d.ts +0 -2
  97. package/dist/types/components/contexts/searchContext.d.ts +5 -4
  98. package/dist/types/model/Help.d.ts +6 -5
  99. package/dist/types-ts4.5/analytics.d.ts +2 -2
  100. package/dist/types-ts4.5/components/RelatedArticles/index.d.ts +0 -2
  101. package/dist/types-ts4.5/components/contexts/searchContext.d.ts +5 -4
  102. package/dist/types-ts4.5/model/Help.d.ts +6 -5
  103. package/package.json +13 -13
@@ -1,43 +1,39 @@
1
1
  /** @jsx jsx */
2
2
  import styled from '@emotion/styled';
3
3
  import * as colors from '@atlaskit/theme/colors';
4
- export const SearchResultsContainer = styled.div`
5
- position: absolute;
6
- height: 100%;
7
- width: 100%;
8
- top: 0;
9
- background-color: ${"var(--ds-surface, #FFFFFF)"};
10
- flex: 1;
11
- flex-direction: column;
12
- box-sizing: border-box;
13
- overflow-x: hidden;
14
- overflow-y: auto;
15
- z-index: 10;
16
- padding: 0 ${"var(--ds-space-200, 16px)"};
17
- `;
18
- export const SearchResultsList = styled.div`
19
- padding-top: ${"var(--ds-space-300, 24px)"};
20
- position: relative;
21
- `;
22
- export const SearchResultEmptyMessageImage = styled.div`
23
- padding: ${"var(--ds-space-300, 24px)"} ${"var(--ds-space-300, 24px)"} 0
24
- ${"var(--ds-space-300, 24px)"};
25
- text-align: center;
26
- `;
27
- export const SearchResultEmptyMessageText = styled.div`
28
- padding: ${"var(--ds-space-300, 24px)"} ${"var(--ds-space-300, 24px)"} 0
29
- ${"var(--ds-space-300, 24px)"};
30
- text-align: center;
31
-
32
- p {
33
- color: ${`var(--ds-text-subtlest, ${colors.N200})`};
4
+ export const SearchResultsContainer = styled.div({
5
+ position: 'absolute',
6
+ height: '100%',
7
+ width: '100%',
8
+ top: 0,
9
+ backgroundColor: "var(--ds-surface, #FFFFFF)",
10
+ flex: 1,
11
+ flexDirection: 'column',
12
+ boxSizing: 'border-box',
13
+ overflowX: 'hidden',
14
+ overflowY: 'auto',
15
+ zIndex: 10,
16
+ padding: `0 ${"var(--ds-space-200, 16px)"}`
17
+ });
18
+ export const SearchResultsList = styled.div({
19
+ paddingTop: "var(--ds-space-300, 24px)",
20
+ position: 'relative'
21
+ });
22
+ export const SearchResultEmptyMessageImage = styled.div({
23
+ padding: `${"var(--ds-space-300, 24px)"} ${"var(--ds-space-300, 24px)"} 0 ${"var(--ds-space-300, 24px)"}`,
24
+ textAlign: 'center'
25
+ });
26
+ export const SearchResultEmptyMessageText = styled.div({
27
+ padding: `${"var(--ds-space-300, 24px)"} ${"var(--ds-space-300, 24px)"} 0 ${"var(--ds-space-300, 24px)"}`,
28
+ textAlign: 'center',
29
+ p: {
30
+ color: `var(--ds-text-subtlest, ${colors.N200})`
34
31
  }
35
- `;
36
- export const SearchResultSearchExternalSiteContainer = styled.div`
37
- padding: ${"var(--ds-space-300, 24px)"};
38
- text-align: center;
39
-
40
- p {
41
- color: ${`var(--ds-text-subtlest, ${colors.N200})`};
32
+ });
33
+ export const SearchResultSearchExternalSiteContainer = styled.div({
34
+ padding: "var(--ds-space-300, 24px)",
35
+ textAlign: 'center',
36
+ p: {
37
+ color: `var(--ds-text-subtlest, ${colors.N200})`
42
38
  }
43
- `;
39
+ });
@@ -11,7 +11,7 @@ import { ARTICLE_TYPE } from '../../../model/Help';
11
11
  const ANALYTICS_CONTEXT_DATA = {
12
12
  componentName: 'WhatsNewButton',
13
13
  packageName: "@atlaskit/help",
14
- packageVersion: "7.2.30"
14
+ packageVersion: "7.3.0"
15
15
  };
16
16
  export const WhatsNewButton = ({
17
17
  productName,
@@ -1,17 +1,14 @@
1
1
  /** @jsx jsx */
2
2
  import styled from '@emotion/styled';
3
3
  import * as colors from '@atlaskit/theme/colors';
4
- export const WhatsNewResultsEmptyMessageImage = styled.div`
5
- padding: ${"var(--ds-space-300, 24px)"} ${"var(--ds-space-300, 24px)"} 0
6
- ${"var(--ds-space-300, 24px)"};
7
- text-align: center;
8
- `;
9
- export const WhatsNewResultsEmptyMessageText = styled.div`
10
- padding: ${"var(--ds-space-300, 24px)"} ${"var(--ds-space-300, 24px)"} 0
11
- ${"var(--ds-space-300, 24px)"};
12
- text-align: center;
13
-
14
- p {
15
- color: ${`var(--ds-text-subtlest, ${colors.N200})`};
4
+ export const WhatsNewResultsEmptyMessageImage = styled.div({
5
+ padding: `${"var(--ds-space-300, 24px)"} ${"var(--ds-space-300, 24px)"} 0 ${"var(--ds-space-300, 24px)"}`,
6
+ textAlign: 'center'
7
+ });
8
+ export const WhatsNewResultsEmptyMessageText = styled.div({
9
+ padding: `${"var(--ds-space-300, 24px)"} ${"var(--ds-space-300, 24px)"} 0 ${"var(--ds-space-300, 24px)"}`,
10
+ textAlign: 'center',
11
+ p: {
12
+ color: `var(--ds-text-subtlest, ${colors.N200})`
16
13
  }
17
- `;
14
+ });
@@ -1,17 +1,14 @@
1
1
  /** @jsx jsx */
2
2
  import styled from '@emotion/styled';
3
3
  import * as colors from '@atlaskit/theme/colors';
4
- export const SearchResultEmptyMessageImage = styled.div`
5
- padding: ${"var(--ds-space-300, 24px)"} ${"var(--ds-space-300, 24px)"} 0
6
- ${"var(--ds-space-300, 24px)"};
7
- text-align: center;
8
- `;
9
- export const SearchResultEmptyMessageText = styled.div`
10
- padding: ${"var(--ds-space-300, 24px)"} ${"var(--ds-space-300, 24px)"} 0
11
- ${"var(--ds-space-300, 24px)"};
12
- text-align: center;
13
-
14
- p {
15
- color: ${`var(--ds-text-subtlest, ${colors.N200})`};
4
+ export const SearchResultEmptyMessageImage = styled.div({
5
+ padding: `${"var(--ds-space-300, 24px)"} ${"var(--ds-space-300, 24px)"} 0 ${"var(--ds-space-300, 24px)"}`,
6
+ textAlign: 'center'
7
+ });
8
+ export const SearchResultEmptyMessageText = styled.div({
9
+ padding: `${"var(--ds-space-300, 24px)"} ${"var(--ds-space-300, 24px)"} 0 ${"var(--ds-space-300, 24px)"}`,
10
+ textAlign: 'center',
11
+ p: {
12
+ color: `var(--ds-text-subtlest, ${colors.N200})`
16
13
  }
17
- `;
14
+ });
@@ -8,7 +8,7 @@ import { WhatsNewResultListItemWrapper, WhatsNewResultListItemTitleContainer, Wh
8
8
  const ANALYTICS_CONTEXT_DATA = {
9
9
  componentName: 'ArticlesListItem',
10
10
  packageName: "@atlaskit/help",
11
- packageVersion: "7.2.30"
11
+ packageVersion: "7.3.0"
12
12
  };
13
13
  export const WhatsNewResultListItem = ({
14
14
  intl: {
@@ -27,24 +27,24 @@ export const WhatsNewResultListItemWrapper = styled.a({
27
27
  backgroundColor: `${`var(--ds-background-neutral-subtle-pressed, ${colors.B50})`}`
28
28
  }
29
29
  }, props => props.styles);
30
- export const WhatsNewResultListItemTitleContainer = styled.div`
31
- width: 100%;
32
- white-space: nowrap;
33
- margin-bottom: ${"var(--ds-space-050, 4px)"};
34
- `;
35
- export const WhatsNewResultListItemTitleText = styled.span`
36
- font-size: ${fontSizeSmall()}px;
37
- line-height: ${fontSize()}px;
38
- display: inline-block;
39
- vertical-align: middle;
40
- margin: 0;
41
- padding-left: ${"var(--ds-space-050, 4px)"};
42
- white-space: normal;
43
- overflow-x: hidden;
44
- `;
45
- export const WhatsNewResultListItemDescription = styled.p`
46
- display: block;
47
- line-height: 20px;
48
- color: ${`var(--ds-text, ${colors.N800})`};
49
- margin: 0;
50
- `;
30
+ export const WhatsNewResultListItemTitleContainer = styled.div({
31
+ width: '100%',
32
+ whiteSpace: 'nowrap',
33
+ marginBottom: "var(--ds-space-050, 4px)"
34
+ });
35
+ export const WhatsNewResultListItemTitleText = styled.span({
36
+ fontSize: `${fontSizeSmall()}px`,
37
+ lineHeight: `${fontSize()}px`,
38
+ display: 'inline-block',
39
+ verticalAlign: 'middle',
40
+ margin: 0,
41
+ paddingLeft: "var(--ds-space-050, 4px)",
42
+ whiteSpace: 'normal',
43
+ overflowX: 'hidden'
44
+ });
45
+ export const WhatsNewResultListItemDescription = styled.p({
46
+ display: 'block',
47
+ lineHeight: '20px',
48
+ color: `var(--ds-text, ${colors.N800})`,
49
+ margin: 0
50
+ });
@@ -4,29 +4,28 @@ import { css } from '@emotion/react';
4
4
  import styled from '@emotion/styled';
5
5
  import { fontSizeSmall } from '@atlaskit/theme/constants';
6
6
  import * as colors from '@atlaskit/theme/colors';
7
- export const truncate = (width = '100%') => css`
8
- overflow-x: hidden;
9
- text-overflow: ellipsis;
10
- white-space: nowrap;
11
- width: ${width};
12
- `;
13
- export const WhatsNewResultsListContainer = styled.div`
14
- position: relative;
15
- `;
16
- export const WhatsNewResultsListGroupWrapper = styled.div`
17
- padding: ${"var(--ds-space-100, 8px)"} 0 ${"var(--ds-space-100, 8px)"} 0;
18
- `;
19
- export const WhatsNewResultsListGroupTitle = styled.div`
20
- color: ${`var(--ds-text-subtlest, ${colors.N200})`};
21
- font-size: ${fontSizeSmall()}px;
22
- font-weight: bold;
23
- padding: 0 ${"var(--ds-space-100, 8px)"} ${"var(--ds-space-100, 8px)"}
24
- ${"var(--ds-space-100, 8px)"};
25
- text-transform: uppercase;
26
- `;
27
- export const ToggleShowWhatsNewResultsContainer = styled.div`
28
- padding: ${"var(--ds-space-100, 8px)"} 0;
29
- span {
30
- margin: 0;
7
+ export const truncate = (width = '100%') => css({
8
+ overflowX: 'hidden',
9
+ textOverflow: 'ellipsis',
10
+ whiteSpace: 'nowrap',
11
+ width: width
12
+ });
13
+ export const WhatsNewResultsListContainer = styled.div({
14
+ position: 'relative'
15
+ });
16
+ export const WhatsNewResultsListGroupWrapper = styled.div({
17
+ padding: `${"var(--ds-space-100, 8px)"} 0 ${"var(--ds-space-100, 8px)"} 0`
18
+ });
19
+ export const WhatsNewResultsListGroupTitle = styled.div({
20
+ color: `var(--ds-text-subtlest, ${colors.N200})`,
21
+ fontSize: `${fontSizeSmall()}px`,
22
+ fontWeight: 'bold',
23
+ padding: `0 ${"var(--ds-space-100, 8px)"} ${"var(--ds-space-100, 8px)"} ${"var(--ds-space-100, 8px)"}`,
24
+ textTransform: 'uppercase'
25
+ });
26
+ export const ToggleShowWhatsNewResultsContainer = styled.div({
27
+ padding: `${"var(--ds-space-100, 8px)"} 0`,
28
+ span: {
29
+ margin: 0
31
30
  }
32
- `;
31
+ });
@@ -3,17 +3,17 @@ import styled from '@emotion/styled';
3
3
  /**
4
4
  * Loading styled-components
5
5
  */
6
- export const LoadignWhatsNewResultsList = styled.ul`
7
- width: 100%;
8
- margin: 0;
9
- padding: 0;
10
- box-sizing: border-box;
11
- margin-top: ${"var(--ds-space-200, 16px)"};
12
- `;
13
- export const LoadignWhatsNewResultsListItem = styled.li`
14
- display: block;
15
- width: 100%;
16
- padding: ${"var(--ds-space-100, 8px)"};
17
- margin: 0;
18
- box-sizing: border-box;
19
- `;
6
+ export const LoadignWhatsNewResultsList = styled.ul({
7
+ width: '100%',
8
+ margin: 0,
9
+ padding: 0,
10
+ boxSizing: 'border-box',
11
+ marginTop: "var(--ds-space-200, 16px)"
12
+ });
13
+ export const LoadignWhatsNewResultsListItem = styled.li({
14
+ display: 'block',
15
+ width: '100%',
16
+ padding: "var(--ds-space-100, 8px)",
17
+ margin: 0,
18
+ boxSizing: 'border-box'
19
+ });
@@ -1,26 +1,26 @@
1
1
  /** @jsx jsx */
2
2
  import styled from '@emotion/styled';
3
3
  import { gridSize } from '@atlaskit/theme/constants';
4
- export const WhatsNewResultsContainer = styled.div`
5
- position: absolute;
6
- height: 100%;
7
- width: 100%;
8
- top: 0;
9
- background-color: ${"var(--ds-surface, #FFFFFF)"};
10
- flex: 1;
11
- flex-direction: column;
12
- box-sizing: border-box;
13
- overflow-x: hidden;
14
- overflow-y: auto;
15
- z-index: 1;
16
- padding: ${"var(--ds-space-200, 16px)"};
17
- `;
18
- export const SelectContainer = styled.div`
19
- width: ${19 * gridSize()}px;
20
- `;
21
- export const WhatsNewResultsListContainer = styled.div`
22
- padding-top: ${"var(--ds-space-100, 8px)"};
23
- `;
24
- export const WhatsNewResultsListTitleContainer = styled.div`
25
- padding: 0 ${"var(--ds-space-100, 8px)"};
26
- `;
4
+ export const WhatsNewResultsContainer = styled.div({
5
+ position: 'absolute',
6
+ height: '100%',
7
+ width: '100%',
8
+ top: 0,
9
+ backgroundColor: "var(--ds-surface, #FFFFFF)",
10
+ flex: 1,
11
+ flexDirection: 'column',
12
+ boxSizing: 'border-box',
13
+ overflowX: 'hidden',
14
+ overflowY: 'auto',
15
+ zIndex: 1,
16
+ padding: "var(--ds-space-200, 16px)"
17
+ });
18
+ export const SelectContainer = styled.div({
19
+ width: `${19 * gridSize()}px`
20
+ });
21
+ export const WhatsNewResultsListContainer = styled.div({
22
+ paddingTop: "var(--ds-space-100, 8px)"
23
+ });
24
+ export const WhatsNewResultsListTitleContainer = styled.div({
25
+ padding: `0 ${"var(--ds-space-100, 8px)"}`
26
+ });
@@ -11,7 +11,8 @@ export const SearchContextProvider = ({
11
11
  onSearchResultItemClick,
12
12
  onSearchExternalUrlClick,
13
13
  searchExternalUrl,
14
- children
14
+ children,
15
+ openExternalSearchUrlInNewTab
15
16
  }) => {
16
17
  // Search
17
18
  const [searchValue, setSearchValue] = useState('');
@@ -74,7 +75,8 @@ export const SearchContextProvider = ({
74
75
  searchExternalUrl,
75
76
  searchResult,
76
77
  searchState,
77
- searchValue
78
+ searchValue,
79
+ openExternalSearchUrlInNewTab
78
80
  }
79
81
  }, children);
80
82
  };
@@ -1,33 +1,33 @@
1
1
  /** @jsx jsx */
2
2
 
3
3
  import styled from '@emotion/styled';
4
- export const HelpBodyContainer = styled.div`
5
- flex-grow: 1;
6
- min-height: 0;
7
- position: relative;
8
- overflow-y: auto;
9
- overflow-x: hidden;
10
- display: flex;
11
- flex-direction: column;
12
- flex-wrap: nowrap;
13
- justify-content: flex-start;
14
- align-content: stretch;
15
- align-items: flex-start;
16
- `;
17
- export const HelpBody = styled.div`
18
- width: 100%;
19
- box-sizing: border-box;
20
- order: 0;
21
- flex: 1 1 auto;
22
- align-self: auto;
23
- position: relative;
24
- overflow-x: hidden;
25
- overflow-y: auto;
26
- `;
27
- export const Home = styled.div`
28
- display: ${props => props.isOverlayFullyVisible ? 'none' : 'block'};
29
- height: 100%;
30
- overflow: ${props => props.isOverlayVisible ? 'hidden' : 'auto'};
31
- padding: ${"var(--ds-space-200, 16px)"};
32
- box-sizing: border-box;
33
- `;
4
+ export const HelpBodyContainer = styled.div({
5
+ flexGrow: 1,
6
+ minHeight: 0,
7
+ position: 'relative',
8
+ overflowY: 'auto',
9
+ overflowX: 'hidden',
10
+ display: 'flex',
11
+ flexDirection: 'column',
12
+ flexWrap: 'nowrap',
13
+ justifyContent: 'flex-start',
14
+ alignContent: 'stretch',
15
+ alignItems: 'flex-start'
16
+ });
17
+ export const HelpBody = styled.div({
18
+ width: '100%',
19
+ boxSizing: 'border-box',
20
+ order: 0,
21
+ flex: '1 1 auto',
22
+ alignSelf: 'auto',
23
+ position: 'relative',
24
+ overflowX: 'hidden',
25
+ overflowY: 'auto'
26
+ });
27
+ export const Home = styled.div(props => ({
28
+ display: props.isOverlayFullyVisible ? 'none' : 'block',
29
+ height: '100%',
30
+ overflow: props.isOverlayVisible ? 'hidden' : 'auto',
31
+ padding: "var(--ds-space-200, 16px)",
32
+ boxSizing: 'border-box'
33
+ }));
@@ -1,4 +1,3 @@
1
- import { ArticleItem } from './Article';
2
1
  export let ARTICLE_TYPE = /*#__PURE__*/function (ARTICLE_TYPE) {
3
2
  ARTICLE_TYPE["HELP_ARTICLE"] = "HELP_ARTICLE";
4
3
  ARTICLE_TYPE["WHATS_NEW"] = "WHATS_NEW";
@@ -5,81 +5,72 @@ import styled from '@emotion/styled';
5
5
  import { gridSize } from '@atlaskit/theme/constants';
6
6
  import * as colors from '@atlaskit/theme/colors';
7
7
  import { WHATS_NEW_ITEM_TYPES } from '../model/WhatsNew';
8
- export const DividerLine = styled.div`
9
- background-color: ${`var(--ds-border, ${colors.N30A})`};
10
- height: 2px;
11
- width: 100%;
12
- padding: 0 ${"var(--ds-space-200, 16px)"};
13
- margin-top: ${"var(--ds-space-200, 16px)"};
14
- box-sizing: border-box;
15
- `;
8
+ export const DividerLine = styled.div({
9
+ backgroundColor: `var(--ds-border, ${colors.N30A})`,
10
+ height: '2px',
11
+ width: '100%',
12
+ padding: `0 ${"var(--ds-space-200, 16px)"}`,
13
+ marginTop: "var(--ds-space-200, 16px)",
14
+ boxSizing: 'border-box'
15
+ });
16
16
 
17
17
  /**
18
18
  * Loading container
19
19
  */
20
20
 
21
- const shimmer = keyframes`
22
- 0% {
23
- background-position: -300px 0;
24
- }
25
- 100% {
26
- background-position: 1000px 0;
27
- }
28
- `;
29
- export const LoadingRectangle = styled.div`
30
- display: inline-block;
31
- vertical-align: middle;
32
- position: relative;
33
- height: ${props => props.contentHeight ? props.contentHeight : '1rem'};
34
- margin-top: ${props => props.marginTop ? props.marginTop : gridSize() + 'px'};
35
- width: ${props => props.contentWidth ? props.contentWidth : '100%'};
36
- border-radius: 2px;
37
- animation-duration: 1.2s;
38
- animation-fill-mode: forwards;
39
- animation-iteration-count: infinite;
40
- animation-name: ${shimmer};
41
- animation-timing-function: linear;
42
- background-color: ${`var(--ds-background-neutral, ${colors.N30})`};
43
- background-image: linear-gradient(
44
- to right,
45
- ${`var(--ds-background-neutral-subtle, ${colors.N30})`} 10%,
46
- ${`var(--ds-background-neutral, ${colors.N40})`} 20%,
47
- ${`var(--ds-background-neutral-subtle, ${colors.N30})`} 30%
48
- );
49
- background-repeat: no-repeat;
50
- `;
21
+ const shimmer = keyframes({
22
+ '0%': {
23
+ backgroundPosition: '-300px 0'
24
+ },
25
+ '100%': {
26
+ backgroundPosition: '1000px 0'
27
+ }
28
+ });
29
+ export const LoadingRectangle = styled.div(props => ({
30
+ display: 'inline-block',
31
+ verticalAlign: 'middle',
32
+ position: 'relative',
33
+ height: props.contentHeight ? props.contentHeight : '1rem',
34
+ marginTop: props.marginTop ? props.marginTop : gridSize() + 'px',
35
+ width: props.contentWidth ? props.contentWidth : '100%',
36
+ borderRadius: '2px',
37
+ animationDuration: '1.2s',
38
+ animationFillMode: 'forwards',
39
+ animationIterationCount: 'infinite',
40
+ animationName: shimmer,
41
+ animationTimingFunction: 'linear',
42
+ backgroundColor: `var(--ds-background-neutral, ${colors.N30})`,
43
+ backgroundImage: `linear-gradient( to right, ${`var(--ds-background-neutral-subtle, ${colors.N30})`} 10%, ${`var(--ds-background-neutral, ${colors.N40})`} 20%, ${`var(--ds-background-neutral-subtle, ${colors.N30})`} 30% )`,
44
+ backgroundRepeat: 'no-repeat'
45
+ }));
51
46
 
52
47
  /**
53
48
  * Loading Circle
54
49
  */
55
50
 
56
- export const LoadingCircle = styled.div`
57
- display: inline-block;
58
- vertical-align: middle;
59
- position: relative;
60
- height: ${props => props.radius ? props.radius : `${gridSize() * 4}px`};
61
- margin-top: ${props => props.marginTop ? props.marginTop : ''};
62
- width: ${props => props.radius ? props.radius : `${gridSize() * 4}px`};
63
- border-radius: 50%;
64
- animation-duration: 1.2s;
65
- animation-fill-mode: forwards;
66
- animation-iteration-count: infinite;
67
- animation-name: ${shimmer};
68
- animation-timing-function: linear;
69
- background-color: ${`var(--ds-background-neutral, ${colors.N30})`};
70
- background-image: linear-gradient(
71
- to right,
72
- ${`var(--ds-background-neutral-subtle, ${colors.N30})`} 10%,
73
- ${`var(--ds-background-neutral, ${colors.N40})`} 20%,
74
- ${`var(--ds-background-neutral-subtle, ${colors.N30})`} 30%
75
- );
76
- background-repeat: no-repeat;
77
- `;
51
+ export const LoadingCircle = styled.div(props => ({
52
+ display: 'inline-block',
53
+ verticalAlign: 'middle',
54
+ position: 'relative',
55
+ height: props.radius ? props.radius : `${gridSize() * 4}px`,
56
+ marginTop: props.marginTop ? props.marginTop : '',
57
+ width: props.radius ? props.radius : `${gridSize() * 4}px`,
58
+ borderRadius: '50%',
59
+ animationDuration: '1.2s',
60
+ animationFillMode: 'forwards',
61
+ animationIterationCount: 'infinite',
62
+ animationName: shimmer,
63
+ animationTimingFunction: 'linear',
64
+ backgroundColor: `var(--ds-background-neutral, ${colors.N30})`,
65
+ backgroundImage: `linear-gradient( to right, ${`var(--ds-background-neutral-subtle, ${colors.N30})`} 10%, ${`var(--ds-background-neutral, ${colors.N40})`} 20%, ${`var(--ds-background-neutral-subtle, ${colors.N30})`} 30% )`,
66
+ backgroundRepeat: 'no-repeat'
67
+ }));
78
68
 
79
69
  /**
80
70
  * What's new icon
81
71
  */
82
72
 
73
+ // eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression -- needs manual remediation
83
74
  export const WhatsNewTypeIcon = styled.div`
84
75
  display: inline-block;
85
76
  vertical-align: middle;
@@ -5,5 +5,5 @@ export var createAndFire = x.createAndFireEvent('atlaskit');
5
5
  export var defaultAnalyticsAttributes = {
6
6
  componentName: 'help',
7
7
  packageName: "@atlaskit/help",
8
- packageVersion: "7.2.30"
8
+ packageVersion: "7.3.0"
9
9
  };
@@ -8,7 +8,7 @@ import { LoadingErrorMessage, LoadingErrorButtonContainer } from './styled';
8
8
  var ANALYTICS_CONTEXT_DATA = {
9
9
  componentName: 'ArticleLoadingFail',
10
10
  packageName: "@atlaskit/help",
11
- packageVersion: "7.2.30"
11
+ packageVersion: "7.3.0"
12
12
  };
13
13
  export var ArticleLoadingFail = function ArticleLoadingFail(_ref) {
14
14
  var onTryAgainButtonClick = _ref.onTryAgainButtonClick,
@@ -1,6 +1,10 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- var _templateObject, _templateObject2;
3
1
  /** @jsx jsx */
4
2
  import styled from '@emotion/styled';
5
- export var LoadingErrorMessage = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding-top: ", ";\n text-align: center;\n"])), "var(--ds-space-300, 24px)");
6
- export var LoadingErrorButtonContainer = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding-top: ", ";\n text-align: center;\n"])), "var(--ds-space-300, 24px)");
3
+ export var LoadingErrorMessage = styled.div({
4
+ paddingTop: "var(--ds-space-300, 24px)",
5
+ textAlign: 'center'
6
+ });
7
+ export var LoadingErrorButtonContainer = styled.div({
8
+ paddingTop: "var(--ds-space-300, 24px)",
9
+ textAlign: 'center'
10
+ });
@@ -6,7 +6,7 @@ import { messages } from '../../../../messages';
6
6
  var ANALYTICS_CONTEXT_DATA = {
7
7
  componentName: 'ArticleWasHelpfulNoButton',
8
8
  packageName: "@atlaskit/help",
9
- packageVersion: "7.2.30"
9
+ packageVersion: "7.3.0"
10
10
  };
11
11
  export var ArticleWasHelpfulNoButton = function ArticleWasHelpfulNoButton(_ref) {
12
12
  var _ref$isSelected = _ref.isSelected,
@@ -6,7 +6,7 @@ import { messages } from '../../../../messages';
6
6
  var ANALYTICS_CONTEXT_DATA = {
7
7
  componentName: 'ArticleWasHelpfulYesButton',
8
8
  packageName: "@atlaskit/help",
9
- packageVersion: "7.2.30"
9
+ packageVersion: "7.3.0"
10
10
  };
11
11
  export var ArticleWasHelpfulYesButton = function ArticleWasHelpfulYesButton(_ref) {
12
12
  var _ref$isSelected = _ref.isSelected,
@@ -26,7 +26,7 @@ var FEEDBACK_REASON_TEXT_MAX_LENGTH = '16000';
26
26
  var ANALYTICS_CONTEXT_DATA = {
27
27
  componentName: 'ArticleWasHelpfulForm',
28
28
  packageName: "@atlaskit/help",
29
- packageVersion: "7.2.30"
29
+ packageVersion: "7.3.0"
30
30
  };
31
31
  export var ArticleWasHelpfulForm = function ArticleWasHelpfulForm(_ref) {
32
32
  var onWasHelpfulSubmit = _ref.onWasHelpfulSubmit,