@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.
- package/CHANGELOG.md +735 -475
- package/dist/cjs/analytics.js +1 -1
- package/dist/cjs/components/Article/ArticleLoadingFail/index.js +1 -1
- package/dist/cjs/components/Article/ArticleLoadingFail/styled.js +9 -4
- package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +1 -1
- package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +1 -1
- package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/index.js +1 -1
- package/dist/cjs/components/Article/HelpArticle/index.js +1 -1
- package/dist/cjs/components/Article/WhatsNewArticle/index.js +1 -1
- package/dist/cjs/components/Article/styled.js +16 -3
- package/dist/cjs/components/ArticlesList/ArticlesListItem/index.js +1 -1
- package/dist/cjs/components/ArticlesList/styled.js +16 -5
- package/dist/cjs/components/HelpContentButton/index.js +1 -1
- package/dist/cjs/components/HelpContentButton/styled.js +9 -0
- package/dist/cjs/components/RelatedArticles/index.js +1 -1
- package/dist/cjs/components/RelatedArticles/styled.js +30 -8
- package/dist/cjs/components/Search/SearchInput/index.js +1 -1
- package/dist/cjs/components/Search/SearchInput/styled.js +32 -5
- package/dist/cjs/components/Search/SearchResults/index.js +11 -6
- package/dist/cjs/components/Search/SearchResults/styled.js +38 -8
- package/dist/cjs/components/WhatsNew/WhatsNewButton/index.js +1 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +13 -5
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.js +13 -5
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.js +23 -6
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.js +27 -8
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/styled.js +15 -4
- package/dist/cjs/components/WhatsNew/WhatsNewResults/styled.js +24 -6
- package/dist/cjs/components/contexts/searchContext.js +4 -2
- package/dist/cjs/components/styled.js +33 -9
- package/dist/cjs/model/Help.js +0 -1
- package/dist/cjs/util/styled.js +57 -18
- package/dist/es2019/analytics.js +1 -1
- package/dist/es2019/components/Article/ArticleLoadingFail/index.js +1 -1
- package/dist/es2019/components/Article/ArticleLoadingFail/styled.js +8 -8
- package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +1 -1
- package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +1 -1
- package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/index.js +1 -1
- package/dist/es2019/components/Article/HelpArticle/index.js +1 -1
- package/dist/es2019/components/Article/WhatsNewArticle/index.js +1 -1
- package/dist/es2019/components/Article/styled.js +15 -15
- package/dist/es2019/components/ArticlesList/ArticlesListItem/index.js +1 -1
- package/dist/es2019/components/ArticlesList/styled.js +14 -14
- package/dist/es2019/components/HelpContentButton/index.js +1 -1
- package/dist/es2019/components/HelpContentButton/styled.js +9 -0
- package/dist/es2019/components/RelatedArticles/index.js +1 -1
- package/dist/es2019/components/RelatedArticles/styled.js +28 -29
- package/dist/es2019/components/Search/SearchInput/index.js +1 -1
- package/dist/es2019/components/Search/SearchInput/styled.js +29 -33
- package/dist/es2019/components/Search/SearchResults/index.js +11 -6
- package/dist/es2019/components/Search/SearchResults/styled.js +34 -38
- package/dist/es2019/components/WhatsNew/WhatsNewButton/index.js +1 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +10 -13
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.js +10 -13
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.js +21 -21
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.js +24 -25
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/styled.js +14 -14
- package/dist/es2019/components/WhatsNew/WhatsNewResults/styled.js +23 -23
- package/dist/es2019/components/contexts/searchContext.js +4 -2
- package/dist/es2019/components/styled.js +30 -30
- package/dist/es2019/model/Help.js +0 -1
- package/dist/es2019/util/styled.js +51 -60
- package/dist/esm/analytics.js +1 -1
- package/dist/esm/components/Article/ArticleLoadingFail/index.js +1 -1
- package/dist/esm/components/Article/ArticleLoadingFail/styled.js +8 -4
- package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +1 -1
- package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +1 -1
- package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/index.js +1 -1
- package/dist/esm/components/Article/HelpArticle/index.js +1 -1
- package/dist/esm/components/Article/WhatsNewArticle/index.js +1 -1
- package/dist/esm/components/Article/styled.js +15 -3
- package/dist/esm/components/ArticlesList/ArticlesListItem/index.js +1 -1
- package/dist/esm/components/ArticlesList/styled.js +15 -5
- package/dist/esm/components/HelpContentButton/index.js +1 -1
- package/dist/esm/components/HelpContentButton/styled.js +9 -0
- package/dist/esm/components/RelatedArticles/index.js +1 -1
- package/dist/esm/components/RelatedArticles/styled.js +28 -7
- package/dist/esm/components/Search/SearchInput/index.js +1 -1
- package/dist/esm/components/Search/SearchInput/styled.js +31 -5
- package/dist/esm/components/Search/SearchResults/index.js +11 -6
- package/dist/esm/components/Search/SearchResults/styled.js +36 -7
- package/dist/esm/components/WhatsNew/WhatsNewButton/index.js +1 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +11 -4
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.js +11 -4
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.js +21 -5
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.js +25 -7
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/styled.js +14 -4
- package/dist/esm/components/WhatsNew/WhatsNewResults/styled.js +23 -6
- package/dist/esm/components/contexts/searchContext.js +4 -2
- package/dist/esm/components/styled.js +32 -9
- package/dist/esm/model/Help.js +0 -1
- package/dist/esm/util/styled.js +57 -18
- package/dist/types/analytics.d.ts +2 -2
- package/dist/types/components/RelatedArticles/index.d.ts +0 -2
- package/dist/types/components/contexts/searchContext.d.ts +5 -4
- package/dist/types/model/Help.d.ts +6 -5
- package/dist/types-ts4.5/analytics.d.ts +2 -2
- package/dist/types-ts4.5/components/RelatedArticles/index.d.ts +0 -2
- package/dist/types-ts4.5/components/contexts/searchContext.d.ts +5 -4
- package/dist/types-ts4.5/model/Help.d.ts +6 -5
- 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
|
-
|
|
10
|
-
flex: 1
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
padding: 0 ${"var(--ds-space-200, 16px)"}
|
|
17
|
-
|
|
18
|
-
export const SearchResultsList = styled.div
|
|
19
|
-
|
|
20
|
-
position: relative
|
|
21
|
-
|
|
22
|
-
export const SearchResultEmptyMessageImage = styled.div
|
|
23
|
-
padding:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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.
|
|
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:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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.
|
|
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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
export const WhatsNewResultListItemTitleText = styled.span
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
display: inline-block
|
|
39
|
-
|
|
40
|
-
margin: 0
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
export const WhatsNewResultListItemDescription = styled.p
|
|
46
|
-
display: block
|
|
47
|
-
|
|
48
|
-
color:
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
width:
|
|
12
|
-
|
|
13
|
-
export const WhatsNewResultsListContainer = styled.div
|
|
14
|
-
position: relative
|
|
15
|
-
|
|
16
|
-
export const WhatsNewResultsListGroupWrapper = styled.div
|
|
17
|
-
padding:
|
|
18
|
-
|
|
19
|
-
export const WhatsNewResultsListGroupTitle = styled.div
|
|
20
|
-
color:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
padding: 0 ${"var(--ds-space-100, 8px)"} ${"var(--ds-space-100, 8px)"}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export const LoadignWhatsNewResultsListItem = styled.li
|
|
14
|
-
display: block
|
|
15
|
-
width: 100
|
|
16
|
-
padding:
|
|
17
|
-
margin: 0
|
|
18
|
-
|
|
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
|
-
|
|
10
|
-
flex: 1
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
padding:
|
|
17
|
-
|
|
18
|
-
export const SelectContainer = styled.div
|
|
19
|
-
width:
|
|
20
|
-
|
|
21
|
-
export const WhatsNewResultsListContainer = styled.div
|
|
22
|
-
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
position: relative
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
display: flex
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export const HelpBody = styled.div
|
|
18
|
-
width: 100
|
|
19
|
-
|
|
20
|
-
order: 0
|
|
21
|
-
flex: 1 1 auto
|
|
22
|
-
|
|
23
|
-
position: relative
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
export const Home = styled.div
|
|
28
|
-
display:
|
|
29
|
-
height: 100
|
|
30
|
-
overflow:
|
|
31
|
-
padding:
|
|
32
|
-
|
|
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
|
+
}));
|
|
@@ -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
|
-
|
|
10
|
-
height: 2px
|
|
11
|
-
width: 100
|
|
12
|
-
padding: 0 ${"var(--ds-space-200, 16px)"}
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
export const LoadingRectangle = styled.div
|
|
30
|
-
display: inline-block
|
|
31
|
-
|
|
32
|
-
position: relative
|
|
33
|
-
height:
|
|
34
|
-
|
|
35
|
-
width:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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
|
-
|
|
59
|
-
position: relative
|
|
60
|
-
height:
|
|
61
|
-
|
|
62
|
-
width:
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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;
|
package/dist/esm/analytics.js
CHANGED
|
@@ -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.
|
|
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(
|
|
6
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
29
|
+
packageVersion: "7.3.0"
|
|
30
30
|
};
|
|
31
31
|
export var ArticleWasHelpfulForm = function ArticleWasHelpfulForm(_ref) {
|
|
32
32
|
var onWasHelpfulSubmit = _ref.onWasHelpfulSubmit,
|