@atlaskit/help 7.4.2 → 7.5.1
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 +14 -0
- 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 +3 -2
- 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 +11 -7
- package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/styled.js +7 -3
- 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/WhatsNewArticle/styled.js +11 -6
- package/dist/cjs/components/Article/styled.js +3 -1
- package/dist/cjs/components/ArticlesList/ArticlesListItem/index.js +1 -1
- package/dist/cjs/components/ArticlesList/ArticlesListItem/styled.js +37 -7
- package/dist/cjs/components/ArticlesList/styled.js +8 -2
- package/dist/cjs/components/HelpContentButton/index.js +1 -1
- package/dist/cjs/components/HelpContentButton/styled.js +11 -10
- package/dist/cjs/components/RelatedArticles/index.js +11 -7
- package/dist/cjs/components/RelatedArticles/styled.js +10 -4
- package/dist/cjs/components/Search/SearchInput/index.js +10 -5
- package/dist/cjs/components/Search/SearchInput/styled.js +7 -3
- package/dist/cjs/components/Search/SearchResults/styled.js +10 -5
- package/dist/cjs/components/WhatsNew/WhatsNewButton/index.js +1 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +5 -2
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.js +5 -2
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.js +14 -4
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultsList.js +2 -1
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.js +11 -4
- package/dist/cjs/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/styled.js +3 -2
- package/dist/cjs/components/WhatsNew/WhatsNewResults/styled.js +6 -4
- package/dist/cjs/components/contexts/searchContext.js +3 -2
- package/dist/cjs/components/styled.js +7 -3
- package/dist/cjs/util/styled.js +30 -7
- 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 +3 -2
- 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 +11 -8
- package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/styled.js +6 -3
- 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/WhatsNewArticle/styled.js +11 -6
- package/dist/es2019/components/Article/styled.js +2 -1
- package/dist/es2019/components/ArticlesList/ArticlesListItem/index.js +1 -1
- package/dist/es2019/components/ArticlesList/ArticlesListItem/styled.js +37 -7
- package/dist/es2019/components/ArticlesList/styled.js +6 -2
- package/dist/es2019/components/HelpContentButton/index.js +1 -1
- package/dist/es2019/components/HelpContentButton/styled.js +54 -53
- package/dist/es2019/components/RelatedArticles/index.js +12 -8
- package/dist/es2019/components/RelatedArticles/styled.js +8 -4
- package/dist/es2019/components/Search/SearchInput/index.js +10 -6
- package/dist/es2019/components/Search/SearchInput/styled.js +7 -3
- package/dist/es2019/components/Search/SearchResults/styled.js +10 -5
- package/dist/es2019/components/WhatsNew/WhatsNewButton/index.js +1 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +5 -2
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.js +5 -2
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.js +14 -4
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultsList.js +3 -1
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.js +9 -4
- package/dist/es2019/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/styled.js +3 -2
- package/dist/es2019/components/WhatsNew/WhatsNewResults/styled.js +6 -4
- package/dist/es2019/components/contexts/searchContext.js +3 -2
- package/dist/es2019/components/styled.js +6 -3
- package/dist/es2019/util/styled.js +48 -25
- 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 +3 -2
- 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 +11 -8
- package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/styled.js +6 -3
- 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/WhatsNewArticle/styled.js +11 -6
- package/dist/esm/components/Article/styled.js +2 -1
- package/dist/esm/components/ArticlesList/ArticlesListItem/index.js +1 -1
- package/dist/esm/components/ArticlesList/ArticlesListItem/styled.js +37 -7
- package/dist/esm/components/ArticlesList/styled.js +6 -2
- package/dist/esm/components/HelpContentButton/index.js +1 -1
- package/dist/esm/components/HelpContentButton/styled.js +11 -10
- package/dist/esm/components/RelatedArticles/index.js +12 -8
- package/dist/esm/components/RelatedArticles/styled.js +8 -4
- package/dist/esm/components/Search/SearchInput/index.js +10 -6
- package/dist/esm/components/Search/SearchInput/styled.js +7 -3
- package/dist/esm/components/Search/SearchResults/styled.js +10 -5
- package/dist/esm/components/WhatsNew/WhatsNewButton/index.js +1 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsEmpty/styled.js +5 -2
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsError/styled.js +5 -2
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/index.js +1 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultItem/styled.js +14 -4
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/WhatsNewResultsList.js +2 -1
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsList/styled.js +9 -4
- package/dist/esm/components/WhatsNew/WhatsNewResults/WhatsNewResultsLoading/styled.js +3 -2
- package/dist/esm/components/WhatsNew/WhatsNewResults/styled.js +6 -4
- package/dist/esm/components/contexts/searchContext.js +3 -2
- package/dist/esm/components/styled.js +6 -3
- package/dist/esm/util/styled.js +30 -7
- package/dist/types/components/contexts/searchContext.d.ts +2 -1
- package/dist/types/model/Help.d.ts +1 -0
- package/dist/types-ts4.5/components/contexts/searchContext.d.ts +2 -1
- package/dist/types-ts4.5/model/Help.d.ts +1 -0
- package/package.json +98 -98
- package/report.api.md +288 -301
|
@@ -16,7 +16,8 @@ import CheckCircleIcon from '@atlaskit/icon/glyph/check-circle';
|
|
|
16
16
|
// AFP-2532 TODO: Fix automatic suppressions below
|
|
17
17
|
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
18
18
|
import { colors } from '@atlaskit/theme';
|
|
19
|
-
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
20
|
+
import { css, jsx } from '@emotion/react';
|
|
20
21
|
import { messages } from '../../../../messages';
|
|
21
22
|
import ArticleWasHelpfulYesButton from './WasHelpfulYesButton';
|
|
22
23
|
import ArticleWasHelpfulNoButton from './WasHelpfulNoButton';
|
|
@@ -25,8 +26,15 @@ const FEEDBACK_REASON_TEXT_MAX_LENGTH = '16000';
|
|
|
25
26
|
const ANALYTICS_CONTEXT_DATA = {
|
|
26
27
|
componentName: 'ArticleWasHelpfulForm',
|
|
27
28
|
packageName: "@atlaskit/help",
|
|
28
|
-
packageVersion: "7.
|
|
29
|
+
packageVersion: "7.5.1"
|
|
29
30
|
};
|
|
31
|
+
const buttonStyles = css({
|
|
32
|
+
padding: '0',
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
34
|
+
'& span': {
|
|
35
|
+
margin: '0'
|
|
36
|
+
}
|
|
37
|
+
});
|
|
30
38
|
export const ArticleWasHelpfulForm = ({
|
|
31
39
|
onWasHelpfulSubmit,
|
|
32
40
|
onWasHelpfulYesButtonClick,
|
|
@@ -196,12 +204,7 @@ export const ArticleWasHelpfulForm = ({
|
|
|
196
204
|
}, jsx("p", null, formatMessage(messages.help_article_rating_form_failed)), jsx("p", null, jsx(Button, {
|
|
197
205
|
appearance: "link",
|
|
198
206
|
spacing: "compact",
|
|
199
|
-
css:
|
|
200
|
-
padding: '0',
|
|
201
|
-
'& span': {
|
|
202
|
-
margin: '0'
|
|
203
|
-
}
|
|
204
|
-
},
|
|
207
|
+
css: buttonStyles,
|
|
205
208
|
onClick: handleTryAgainOnClick
|
|
206
209
|
}, formatMessage(messages.help_article_rating_form_failed_try_again))))));
|
|
207
210
|
}
|
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import styled from '@emotion/styled';
|
|
4
5
|
import * as colors from '@atlaskit/theme/colors';
|
|
5
6
|
import { fontFallback } from '@atlaskit/theme/typography';
|
|
6
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
7
8
|
export const ArticleFeedbackContainer = styled.div({
|
|
8
9
|
position: 'relative'
|
|
9
10
|
});
|
|
10
11
|
|
|
11
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
12
13
|
export const ArticleFeedbackText = styled.div({
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
13
15
|
font: `var(--ds-font-heading-xxsmall, ${fontFallback.heading.xxsmall})`,
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
14
17
|
color: `var(--ds-text-subtlest, ${colors.N200})`,
|
|
15
18
|
position: 'relative',
|
|
16
19
|
display: 'inline-block'
|
|
17
20
|
});
|
|
18
21
|
|
|
19
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
20
23
|
export const ArticleFeedbackAnswerWrapper = styled.div({
|
|
21
24
|
paddingTop: "var(--ds-space-200, 16px)"
|
|
22
25
|
});
|
|
@@ -59,7 +59,7 @@ export const HelpArticle = ({
|
|
|
59
59
|
analyticsEvent.payload.attributes = {
|
|
60
60
|
componentName: 'Article',
|
|
61
61
|
packageName: "@atlaskit/help",
|
|
62
|
-
packageVersion: "7.
|
|
62
|
+
packageVersion: "7.5.1"
|
|
63
63
|
};
|
|
64
64
|
if (onRelatedArticlesShowMoreClick) {
|
|
65
65
|
onRelatedArticlesShowMoreClick(event, analyticsEvent, isCollapsed);
|
|
@@ -13,7 +13,7 @@ import { WhatsNewTypeTitle, WhatsNewTitleText, WhatsNewIconContainer, RelatedLin
|
|
|
13
13
|
const analyticsContextData = {
|
|
14
14
|
componentName: 'ArticlesListItem',
|
|
15
15
|
packageName: "@atlaskit/help",
|
|
16
|
-
packageVersion: "7.
|
|
16
|
+
packageVersion: "7.5.1"
|
|
17
17
|
};
|
|
18
18
|
export const WhatsNewArticle = ({
|
|
19
19
|
intl: {
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import styled from '@emotion/styled';
|
|
3
4
|
import { fontSize, fontSizeSmall } from '@atlaskit/theme/constants';
|
|
4
5
|
import * as colors from '@atlaskit/theme/colors';
|
|
5
6
|
import { fontFallback } from '@atlaskit/theme/typography';
|
|
6
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
7
8
|
export const WhatsNewTypeTitle = styled.span({
|
|
8
9
|
textDecoration: 'none',
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
9
11
|
color: `var(--ds-text-subtlest, ${colors.N300})`,
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
10
13
|
font: `var(--ds-font-body, ${fontFallback.body.medium})`,
|
|
11
14
|
verticalAlign: 'middle',
|
|
12
15
|
paddingLeft: "var(--ds-space-050, 4px)",
|
|
@@ -14,15 +17,16 @@ export const WhatsNewTypeTitle = styled.span({
|
|
|
14
17
|
overflowX: 'hidden'
|
|
15
18
|
});
|
|
16
19
|
|
|
17
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
18
21
|
export const WhatsNewIconContainer = styled.div({
|
|
19
22
|
display: 'block',
|
|
20
23
|
paddingBottom: "var(--ds-space-100, 8px)"
|
|
21
24
|
});
|
|
22
25
|
|
|
23
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
24
27
|
export const WhatsNewTitleText = styled.span({
|
|
25
28
|
textDecoration: 'none',
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
26
30
|
color: `var(--ds-text, ${colors.N800})`,
|
|
27
31
|
fontSize: `${fontSize()}px`,
|
|
28
32
|
fontWeight: 600,
|
|
@@ -32,9 +36,10 @@ export const WhatsNewTitleText = styled.span({
|
|
|
32
36
|
display: 'block'
|
|
33
37
|
});
|
|
34
38
|
|
|
35
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
36
40
|
export const WhatsNewRelatedLinksTitleText = styled.span({
|
|
37
41
|
textDecoration: 'none',
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
38
43
|
color: `var(--ds-text, ${colors.N800})`,
|
|
39
44
|
fontSize: `${fontSizeSmall()}px`,
|
|
40
45
|
fontWeight: 600,
|
|
@@ -44,12 +49,12 @@ export const WhatsNewRelatedLinksTitleText = styled.span({
|
|
|
44
49
|
display: 'block'
|
|
45
50
|
});
|
|
46
51
|
|
|
47
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
48
53
|
export const RelatedLinkContainer = styled.div({
|
|
49
54
|
marginBottom: "var(--ds-space-100, 8px)"
|
|
50
55
|
});
|
|
51
56
|
|
|
52
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
57
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
53
58
|
export const ExternalLinkIconContainer = styled.div({
|
|
54
59
|
display: 'inline-block',
|
|
55
60
|
verticalAlign: 'middle',
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import styled from '@emotion/styled';
|
|
4
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
6
|
export const ArticleContainer = styled.div({
|
|
6
7
|
padding: `${"var(--ds-space-200, 16px)"} ${"var(--ds-space-300, 24px)"}`,
|
|
7
8
|
position: 'absolute',
|
|
@@ -8,7 +8,7 @@ import { ArticlesListItemWrapper, ArticlesListItemContainer, ArticlesListItemTit
|
|
|
8
8
|
const ANALYTICS_CONTEXT_DATA = {
|
|
9
9
|
componentName: 'ArticlesListItem',
|
|
10
10
|
packageName: "@atlaskit/help",
|
|
11
|
-
packageVersion: "7.
|
|
11
|
+
packageVersion: "7.5.1"
|
|
12
12
|
};
|
|
13
13
|
export const ArticlesListItem = ({
|
|
14
14
|
styles,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import styled from '@emotion/styled';
|
|
3
4
|
import * as colors from '@atlaskit/theme/colors';
|
|
4
5
|
import { fontFallback } from '@atlaskit/theme/typography';
|
|
5
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
6
7
|
export const ArticlesListItemWrapper = styled.a({
|
|
7
8
|
position: 'relative',
|
|
8
9
|
boxSizing: 'border-box',
|
|
@@ -10,6 +11,7 @@ export const ArticlesListItemWrapper = styled.a({
|
|
|
10
11
|
display: 'block',
|
|
11
12
|
textDecoration: 'none',
|
|
12
13
|
cursor: 'pointer',
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
13
15
|
color: `var(--ds-text-subtlest, ${colors.N200})`,
|
|
14
16
|
borderRadius: '3px',
|
|
15
17
|
backgroundColor: "var(--ds-background-neutral-subtle, transparent)",
|
|
@@ -19,46 +21,57 @@ export const ArticlesListItemWrapper = styled.a({
|
|
|
19
21
|
outlineOffset: 'none'
|
|
20
22
|
},
|
|
21
23
|
'&:focus': {
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
22
25
|
boxShadow: `${`var(--ds-border-focused, ${colors.B100})`} 0px 0px 0px 2px inset`
|
|
23
26
|
},
|
|
24
27
|
'&:hover': {
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
25
29
|
backgroundColor: `var(--ds-background-neutral-subtle-hovered, ${colors.N30})`
|
|
26
30
|
},
|
|
27
31
|
'&:active': {
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
28
33
|
backgroundColor: `var(--ds-background-neutral-subtle-pressed, ${colors.B50})`
|
|
29
34
|
}
|
|
30
|
-
},
|
|
35
|
+
},
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
37
|
+
props => props.styles);
|
|
31
38
|
|
|
32
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
33
40
|
export const ArticlesListItemContainer = styled.div({
|
|
34
41
|
width: '100%',
|
|
35
42
|
whiteSpace: 'nowrap',
|
|
36
43
|
display: 'flex'
|
|
37
44
|
});
|
|
45
|
+
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-styled -- Ignored via go/DSP-18766
|
|
38
47
|
export const ArticlesListItemTitleSection = styled.div({
|
|
39
48
|
display: 'flex',
|
|
40
49
|
flexDirection: 'column',
|
|
41
50
|
flexGrow: 1
|
|
42
51
|
});
|
|
43
52
|
|
|
44
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
53
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
45
54
|
export const ArticlesListItemTypeTitle = styled.div({
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
46
56
|
font: `var(--ds-font-body-small, ${fontFallback.body.small})`,
|
|
47
57
|
fontWeight: "var(--ds-font-weight-bold, bold)",
|
|
58
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
48
59
|
color: `var(--ds-text-subtlest, ${colors.N200})`
|
|
49
60
|
});
|
|
50
61
|
|
|
51
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
62
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
52
63
|
export const ArticlesListItemLinkIcon = styled.span({
|
|
53
64
|
alignSelf: 'auto',
|
|
54
65
|
paddingInlineStart: "var(--ds-space-050, 4px)",
|
|
55
66
|
verticalAlign: 'middle'
|
|
56
67
|
});
|
|
57
68
|
|
|
58
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
69
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
59
70
|
export const ArticlesListItemTitleText = styled.p({
|
|
60
71
|
textDecoration: 'none',
|
|
72
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
61
73
|
color: `var(--ds-text, ${colors.N800})`,
|
|
74
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
62
75
|
font: `var(--ds-font-heading-xsmall, ${fontFallback.heading.xsmall})`,
|
|
63
76
|
display: 'inline-block',
|
|
64
77
|
whiteSpace: 'normal',
|
|
@@ -66,39 +79,56 @@ export const ArticlesListItemTitleText = styled.p({
|
|
|
66
79
|
marginBottom: "var(--ds-space-100, 4px)"
|
|
67
80
|
});
|
|
68
81
|
|
|
69
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
82
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
70
83
|
export const ArticlesListItemDescription = styled.p({
|
|
71
84
|
display: 'block',
|
|
72
85
|
lineHeight: '20px',
|
|
86
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
73
87
|
color: `var(--ds-text-subtle, ${colors.N400})`,
|
|
74
88
|
margin: 0,
|
|
75
89
|
paddingBottom: "var(--ds-space-025, 2px)"
|
|
76
90
|
});
|
|
91
|
+
|
|
92
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-styled -- Ignored via go/DSP-18766
|
|
77
93
|
export const ArticlesListItemSource = styled.div({
|
|
78
94
|
display: 'flex',
|
|
79
95
|
alignItems: 'center',
|
|
96
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
80
97
|
font: `var(--ds-font-heading-xxsmall, ${fontFallback.heading.xxsmall})`,
|
|
98
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
81
99
|
color: `var(--ds-text-subtlest, ${colors.N400A})`,
|
|
82
100
|
padding: `${"var(--ds-space-050, 4px)"} 0`,
|
|
83
101
|
fontWeight: "var(--ds-font-weight-bold, bold)",
|
|
84
102
|
textTransform: 'uppercase'
|
|
85
103
|
});
|
|
104
|
+
|
|
105
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-styled -- Ignored via go/DSP-18766
|
|
86
106
|
export const ArticlesListItemTrustFactor = styled.div({
|
|
87
107
|
display: 'flex',
|
|
88
108
|
alignItems: 'center',
|
|
109
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
89
110
|
font: `var(--ds-font-body-small, ${fontFallback.body.small})`,
|
|
111
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
90
112
|
color: `var(--ds-text-subtlest, ${colors.N400A})`,
|
|
91
113
|
paddingTop: "var(--ds-space-025, 2px)"
|
|
92
114
|
});
|
|
115
|
+
|
|
116
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-styled -- Ignored via go/DSP-18766
|
|
93
117
|
export const ArticlesListItemViewCount = styled.span({
|
|
94
118
|
paddingRight: "var(--ds-space-100, 8px)"
|
|
95
119
|
});
|
|
120
|
+
|
|
121
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-styled -- Ignored via go/DSP-18766
|
|
96
122
|
export const ArticlesListItemHelpfulCount = styled.span({
|
|
97
123
|
display: 'inline-flex',
|
|
98
124
|
paddingRight: "var(--ds-space-100, 8px)"
|
|
99
125
|
});
|
|
126
|
+
|
|
127
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-styled -- Ignored via go/DSP-18766
|
|
100
128
|
export const ArticlesListItemLastModified = styled.div({
|
|
129
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
101
130
|
font: `var(--ds-font-body-small, ${fontFallback.body.small})`,
|
|
131
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
102
132
|
color: `var(--ds-text-subtlest, ${colors.N400A})`,
|
|
103
133
|
padding: `${"var(--ds-space-050, 4px)"} 0`
|
|
104
134
|
});
|
|
@@ -1,22 +1,26 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { css } from '@emotion/react';
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
6
|
import styled from '@emotion/styled';
|
|
5
7
|
export const truncate = (width = '100%') => css({
|
|
6
8
|
overflowX: 'hidden',
|
|
7
9
|
textOverflow: 'ellipsis',
|
|
8
10
|
whiteSpace: 'nowrap',
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
9
12
|
width: width
|
|
10
13
|
});
|
|
11
14
|
|
|
12
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
13
16
|
export const ArticlesListContainer = styled.div({
|
|
14
17
|
position: 'relative'
|
|
15
18
|
});
|
|
16
19
|
|
|
17
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
18
21
|
export const ToggleShowMoreArticlesContainer = styled.div({
|
|
19
22
|
padding: `${"var(--ds-space-100, 8px)"} 0`,
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
20
24
|
span: {
|
|
21
25
|
margin: 0
|
|
22
26
|
}
|
|
@@ -7,7 +7,7 @@ import { HelpContentButtonContainer, HelpContentButtonIcon, HelpContentButtonTex
|
|
|
7
7
|
const analitycsContextData = {
|
|
8
8
|
componentName: 'HelpContentButton',
|
|
9
9
|
packageName: "@atlaskit/help",
|
|
10
|
-
packageVersion: "7.
|
|
10
|
+
packageVersion: "7.5.1"
|
|
11
11
|
};
|
|
12
12
|
const HelpContentButton = ({
|
|
13
13
|
id = '',
|
|
@@ -1,76 +1,77 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import styled from 'styled-components';
|
|
4
5
|
import * as colors from '@atlaskit/theme/colors';
|
|
5
|
-
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled --
|
|
6
|
+
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
6
7
|
export const HelpContentButtonContainer = styled.a`
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
display: block;
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
width: calc(100% - ${"var(--ds-space-200, 16px)"});
|
|
11
|
+
color: ${`var(--ds-text-subtle, ${colors.N600})`};
|
|
12
|
+
padding: ${"var(--ds-space-100, 8px)"};
|
|
13
|
+
border-radius: 3px;
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
&:hover,
|
|
16
|
+
&:focus,
|
|
17
|
+
&:visited,
|
|
18
|
+
&:active {
|
|
19
|
+
text-decoration: none;
|
|
20
|
+
outline: none;
|
|
21
|
+
outline-offset: none;
|
|
22
|
+
color: ${`var(--ds-text-subtle, ${colors.N600})`};
|
|
23
|
+
}
|
|
23
24
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
&:focus {
|
|
26
|
+
box-shadow: ${`var(--ds-border-focused, ${colors.B100})`} 0 0 0 2px inset;
|
|
27
|
+
}
|
|
27
28
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
&:hover {
|
|
30
|
+
background-color: ${`var(--ds-background-neutral-subtle-hovered, ${colors.N30})`};
|
|
31
|
+
}
|
|
31
32
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
&:active {
|
|
34
|
+
background-color: ${`var(--ds-background-neutral-subtle-pressed, ${colors.B50})`};
|
|
35
|
+
}
|
|
35
36
|
`;
|
|
36
37
|
|
|
37
|
-
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled --
|
|
38
|
+
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
38
39
|
export const HelpContentButtonIcon = styled.div`
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
display: inline-block;
|
|
41
|
+
vertical-align: middle;
|
|
42
|
+
width: 20px;
|
|
43
|
+
height: 20px;
|
|
44
|
+
border-radius: 4px;
|
|
45
|
+
position: relative;
|
|
45
46
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
& span {
|
|
48
|
+
position: absolute;
|
|
49
|
+
top: 50%;
|
|
50
|
+
left: 50%;
|
|
51
|
+
transform: translate(-50%, -50%);
|
|
52
|
+
}
|
|
52
53
|
`;
|
|
53
54
|
|
|
54
|
-
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled --
|
|
55
|
+
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
55
56
|
export const HelpContentButtonText = styled.div`
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
width: calc(100% - 20px);
|
|
58
|
+
display: inline-block;
|
|
59
|
+
vertical-align: middle;
|
|
60
|
+
padding: 0 ${"var(--ds-space-100, 8px)"};
|
|
61
|
+
box-sizing: border-box;
|
|
61
62
|
`;
|
|
62
63
|
|
|
63
|
-
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled --
|
|
64
|
+
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
64
65
|
export const HelpContentButtonExternalLinkIcon = styled.div`
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
display: inline-block;
|
|
67
|
+
vertical-align: middle;
|
|
68
|
+
padding-left: ${"var(--ds-space-050, 4px)"};
|
|
68
69
|
`;
|
|
69
70
|
|
|
70
|
-
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled --
|
|
71
|
+
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
71
72
|
export const HelpContentButtonExternalNotificationIcon = styled.div`
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
display: inline-block;
|
|
74
|
+
vertical-align: middle;
|
|
75
|
+
margin-top: ${"var(--ds-space-negative-050, -4px)"};
|
|
76
|
+
padding-left: ${"var(--ds-space-050, 4px)"};
|
|
76
77
|
`;
|
|
@@ -13,9 +13,18 @@ import { DividerLine } from '../../util/styled';
|
|
|
13
13
|
import { RelatedArticlesTitle } from './styled';
|
|
14
14
|
import useCancellablePromise from '../../util/hooks/cancellablePromise';
|
|
15
15
|
import { usePrevious } from '../../util/hooks/previous';
|
|
16
|
-
|
|
16
|
+
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
|
+
import { css, jsx } from '@emotion/react';
|
|
17
19
|
const packageName = "@atlaskit/help";
|
|
18
|
-
const packageVersion = "7.
|
|
20
|
+
const packageVersion = "7.5.1";
|
|
21
|
+
const buttonStyles = css({
|
|
22
|
+
padding: '0',
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
24
|
+
'& span': {
|
|
25
|
+
margin: '0'
|
|
26
|
+
}
|
|
27
|
+
});
|
|
19
28
|
export const RelatedArticles = ({
|
|
20
29
|
style = 'primary',
|
|
21
30
|
routeGroup,
|
|
@@ -71,12 +80,7 @@ export const RelatedArticles = ({
|
|
|
71
80
|
}, jsx("p", null, jsx("strong", null, formatMessage(messages.help_related_article_endpoint_error_title))), jsx("p", null, formatMessage(messages.help_related_article_endpoint_error_description)), jsx("p", null, jsx(Button, {
|
|
72
81
|
appearance: "link",
|
|
73
82
|
spacing: "compact",
|
|
74
|
-
css:
|
|
75
|
-
padding: '0',
|
|
76
|
-
'& span': {
|
|
77
|
-
margin: '0'
|
|
78
|
-
}
|
|
79
|
-
},
|
|
83
|
+
css: buttonStyles,
|
|
80
84
|
onClick: updateRelatedArticles
|
|
81
85
|
}, formatMessage(messages.help_related_article_endpoint_error_button_label))));
|
|
82
86
|
} else {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { css } from '@emotion/react';
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
6
|
import styled from '@emotion/styled';
|
|
5
7
|
import * as colors from '@atlaskit/theme/colors';
|
|
6
8
|
import { fontSize } from '@atlaskit/theme/constants';
|
|
@@ -13,11 +15,13 @@ export const truncate = (width = '100%') => css({
|
|
|
13
15
|
overflowX: 'hidden',
|
|
14
16
|
textOverflow: 'ellipsis',
|
|
15
17
|
whiteSpace: 'nowrap',
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
16
19
|
width: width
|
|
17
20
|
});
|
|
18
21
|
|
|
19
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
20
23
|
export const RelatedArticlesTitle = styled.div(baseHeading(16, 20), {
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
21
25
|
color: `var(--ds-text, ${colors.N800})`,
|
|
22
26
|
fontWeight: 600,
|
|
23
27
|
letterSpacing: '-0.006em',
|
|
@@ -27,12 +31,12 @@ export const RelatedArticlesTitle = styled.div(baseHeading(16, 20), {
|
|
|
27
31
|
/**
|
|
28
32
|
* Loading styled-components
|
|
29
33
|
*/
|
|
30
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
31
35
|
export const LoadignRelatedArticleSection = styled.div({
|
|
32
36
|
marginTop: "var(--ds-space-100, 8px)"
|
|
33
37
|
});
|
|
34
38
|
|
|
35
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
36
40
|
export const LoadignRelatedArticleList = styled.ul({
|
|
37
41
|
width: '100%',
|
|
38
42
|
margin: 0,
|
|
@@ -40,7 +44,7 @@ export const LoadignRelatedArticleList = styled.ul({
|
|
|
40
44
|
boxSizing: 'border-box'
|
|
41
45
|
});
|
|
42
46
|
|
|
43
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
44
48
|
export const LoadignRelatedArticleListItem = styled.li({
|
|
45
49
|
display: 'block',
|
|
46
50
|
width: '100%',
|
|
@@ -8,7 +8,8 @@ import { gridSize } from '@atlaskit/theme/constants';
|
|
|
8
8
|
import Spinner from '@atlaskit/spinner';
|
|
9
9
|
import SearchIcon from '@atlaskit/icon/glyph/search';
|
|
10
10
|
import EditorCloseIcon from '@atlaskit/icon/glyph/editor/close';
|
|
11
|
-
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
|
+
import { css, jsx } from '@emotion/react';
|
|
12
13
|
import { injectIntl } from 'react-intl-next';
|
|
13
14
|
import { REQUEST_STATE } from '../../../model/Requests';
|
|
14
15
|
import { useSearchContext } from '../../contexts/searchContext';
|
|
@@ -17,8 +18,14 @@ import { SearchInputContainer, SearchIconContainer, CloseButtonAndSpinnerContain
|
|
|
17
18
|
const ANALYTICS_CONTEXT_DATA = {
|
|
18
19
|
componentName: 'searchInput',
|
|
19
20
|
packageName: "@atlaskit/help",
|
|
20
|
-
packageVersion: "7.
|
|
21
|
+
packageVersion: "7.5.1"
|
|
21
22
|
};
|
|
23
|
+
const buttonStyles = css({
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
25
|
+
width: `${gridSize() * 3}px`,
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
27
|
+
height: `${gridSize() * 3}px`
|
|
28
|
+
});
|
|
22
29
|
export const SearchInput = ({
|
|
23
30
|
intl: {
|
|
24
31
|
formatMessage
|
|
@@ -83,10 +90,7 @@ export const SearchInput = ({
|
|
|
83
90
|
elemAfterInput: jsx(CloseButtonAndSpinnerContainer, null, searchState === REQUEST_STATE.loading && jsx(Spinner, {
|
|
84
91
|
size: "small"
|
|
85
92
|
}), searchValue !== '' && jsx(Button, {
|
|
86
|
-
css:
|
|
87
|
-
width: `${gridSize() * 3}px`,
|
|
88
|
-
height: `${gridSize() * 3}px`
|
|
89
|
-
},
|
|
93
|
+
css: buttonStyles,
|
|
90
94
|
appearance: "subtle",
|
|
91
95
|
onClick: handleOnClearButtonClick,
|
|
92
96
|
spacing: "none",
|