@atlaskit/help 7.5.0 → 7.5.2
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 +15 -0
- package/dist/cjs/analytics.js +1 -1
- package/dist/cjs/components/Article/ArticleLoadingFail/index.js +3 -3
- package/dist/cjs/components/Article/ArticleLoadingFail/styled.js +3 -2
- package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +3 -3
- package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +3 -3
- package/dist/cjs/components/Article/HelpArticle/WasHelpfulForm/index.js +22 -10
- 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 +4 -4
- 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/SearchExternalSite.js +2 -2
- package/dist/cjs/components/Search/SearchResults/SearchResultsEmpty.js +2 -2
- package/dist/cjs/components/Search/SearchResults/styled.js +10 -5
- package/dist/cjs/components/ShowMoreButton/index.js +3 -3
- 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/index.js +2 -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/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 +2 -2
- package/dist/es2019/components/Article/ArticleLoadingFail/styled.js +3 -2
- package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +2 -2
- package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +2 -2
- package/dist/es2019/components/Article/HelpArticle/WasHelpfulForm/index.js +22 -11
- 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 +2 -2
- 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/SearchExternalSite.js +1 -1
- package/dist/es2019/components/Search/SearchResults/SearchResultsEmpty.js +1 -1
- package/dist/es2019/components/Search/SearchResults/styled.js +10 -5
- package/dist/es2019/components/ShowMoreButton/index.js +1 -1
- 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/index.js +1 -1
- 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/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 +2 -2
- package/dist/esm/components/Article/ArticleLoadingFail/styled.js +3 -2
- package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulNoButton.js +2 -2
- package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/WasHelpfulYesButton.js +2 -2
- package/dist/esm/components/Article/HelpArticle/WasHelpfulForm/index.js +22 -11
- 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 +2 -2
- 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/SearchExternalSite.js +1 -1
- package/dist/esm/components/Search/SearchResults/SearchResultsEmpty.js +1 -1
- package/dist/esm/components/Search/SearchResults/styled.js +10 -5
- package/dist/esm/components/ShowMoreButton/index.js +1 -1
- 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/index.js +1 -1
- 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/styled.js +6 -3
- package/dist/esm/util/styled.js +30 -7
- package/package.json +98 -98
- package/report.api.md +288 -301
package/dist/cjs/util/styled.js
CHANGED
|
@@ -14,10 +14,13 @@ var colors = _interopRequireWildcard(require("@atlaskit/theme/colors"));
|
|
|
14
14
|
var _WhatsNew = require("../model/WhatsNew");
|
|
15
15
|
var _templateObject;
|
|
16
16
|
/** @jsx jsx */
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
17
19
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
18
20
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
19
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
20
22
|
var DividerLine = exports.DividerLine = _styled.default.div({
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
21
24
|
backgroundColor: "var(--ds-border, ".concat(colors.N30A, ")"),
|
|
22
25
|
height: '2px',
|
|
23
26
|
width: '100%',
|
|
@@ -39,14 +42,17 @@ var shimmer = (0, _react.keyframes)({
|
|
|
39
42
|
}
|
|
40
43
|
});
|
|
41
44
|
|
|
42
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
43
46
|
var LoadingRectangle = exports.LoadingRectangle = _styled.default.div(function (props) {
|
|
44
47
|
return {
|
|
45
48
|
display: 'inline-block',
|
|
46
49
|
verticalAlign: 'middle',
|
|
47
50
|
position: 'relative',
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
48
52
|
height: props.contentHeight ? props.contentHeight : '1rem',
|
|
53
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
49
54
|
marginTop: props.marginTop ? props.marginTop : (0, _constants.gridSize)() + 'px',
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
50
56
|
width: props.contentWidth ? props.contentWidth : '100%',
|
|
51
57
|
borderRadius: '2px',
|
|
52
58
|
animationDuration: '1.2s',
|
|
@@ -54,8 +60,15 @@ var LoadingRectangle = exports.LoadingRectangle = _styled.default.div(function (
|
|
|
54
60
|
animationIterationCount: 'infinite',
|
|
55
61
|
animationName: shimmer,
|
|
56
62
|
animationTimingFunction: 'linear',
|
|
63
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
57
64
|
backgroundColor: "var(--ds-background-neutral, ".concat(colors.N30, ")"),
|
|
58
|
-
backgroundImage: "linear-gradient( to right, ".concat("var(--ds-background-neutral-subtle, ".concat(
|
|
65
|
+
backgroundImage: "linear-gradient( to right, ".concat("var(--ds-background-neutral-subtle, ".concat(
|
|
66
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
67
|
+
colors.N30
|
|
68
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
69
|
+
, ")"), " 10%, ", "var(--ds-background-neutral, ".concat(colors.N40, ")"), " 20%, ", "var(--ds-background-neutral-subtle, ".concat(
|
|
70
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
71
|
+
colors.N30, ")"), " 30% )"),
|
|
59
72
|
backgroundRepeat: 'no-repeat'
|
|
60
73
|
};
|
|
61
74
|
});
|
|
@@ -64,14 +77,17 @@ var LoadingRectangle = exports.LoadingRectangle = _styled.default.div(function (
|
|
|
64
77
|
* Loading Circle
|
|
65
78
|
*/
|
|
66
79
|
|
|
67
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
80
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
68
81
|
var LoadingCircle = exports.LoadingCircle = _styled.default.div(function (props) {
|
|
69
82
|
return {
|
|
70
83
|
display: 'inline-block',
|
|
71
84
|
verticalAlign: 'middle',
|
|
72
85
|
position: 'relative',
|
|
86
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
73
87
|
height: props.radius ? props.radius : "".concat((0, _constants.gridSize)() * 4, "px"),
|
|
88
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
74
89
|
marginTop: props.marginTop ? props.marginTop : '',
|
|
90
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
75
91
|
width: props.radius ? props.radius : "".concat((0, _constants.gridSize)() * 4, "px"),
|
|
76
92
|
borderRadius: '50%',
|
|
77
93
|
animationDuration: '1.2s',
|
|
@@ -79,8 +95,15 @@ var LoadingCircle = exports.LoadingCircle = _styled.default.div(function (props)
|
|
|
79
95
|
animationIterationCount: 'infinite',
|
|
80
96
|
animationName: shimmer,
|
|
81
97
|
animationTimingFunction: 'linear',
|
|
98
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
82
99
|
backgroundColor: "var(--ds-background-neutral, ".concat(colors.N30, ")"),
|
|
83
|
-
backgroundImage: "linear-gradient( to right, ".concat("var(--ds-background-neutral-subtle, ".concat(
|
|
100
|
+
backgroundImage: "linear-gradient( to right, ".concat("var(--ds-background-neutral-subtle, ".concat(
|
|
101
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
102
|
+
colors.N30
|
|
103
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
104
|
+
, ")"), " 10%, ", "var(--ds-background-neutral, ".concat(colors.N40, ")"), " 20%, ", "var(--ds-background-neutral-subtle, ".concat(
|
|
105
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
106
|
+
colors.N30, ")"), " 30% )"),
|
|
84
107
|
backgroundRepeat: 'no-repeat'
|
|
85
108
|
};
|
|
86
109
|
});
|
|
@@ -89,8 +112,8 @@ var LoadingCircle = exports.LoadingCircle = _styled.default.div(function (props)
|
|
|
89
112
|
* What's new icon
|
|
90
113
|
*/
|
|
91
114
|
|
|
92
|
-
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled --
|
|
93
|
-
var WhatsNewTypeIcon = exports.WhatsNewTypeIcon = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n
|
|
115
|
+
// 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
|
|
116
|
+
var WhatsNewTypeIcon = exports.WhatsNewTypeIcon = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\tdisplay: inline-block;\n\tvertical-align: middle;\n\tposition: relative;\n\theight: ", ";\n\twidth: ", ";\n\tborder-radius: 2px;\n\tbackground-color: ", ";\n\n\t& > img {\n\t\twidth: calc(100% - ", "px);\n\t\theight: calc(100% - ", "px);\n\t\tposition: absolute;\n\t\tleft: 50%;\n\t\ttop: 50%;\n\t\ttransform: translate(-50%, -50%);\n\n\t\t& > svg {\n\t\t\theight: 100%;\n\t\t\twidth: 100%;\n\t\t}\n\t}\n"])), "var(--ds-space-200, 16px)", "var(--ds-space-200, 16px)", function (_ref) {
|
|
94
117
|
var type = _ref.type;
|
|
95
118
|
switch (type) {
|
|
96
119
|
case _WhatsNew.WHATS_NEW_ITEM_TYPES.IMPROVEMENT:
|
package/dist/es2019/analytics.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import Button from '@atlaskit/button
|
|
2
|
+
import Button from '@atlaskit/button';
|
|
3
3
|
import { injectIntl } from 'react-intl-next';
|
|
4
4
|
import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
|
|
5
5
|
import { messages } from '../../../messages';
|
|
@@ -8,7 +8,7 @@ import { LoadingErrorMessage, LoadingErrorButtonContainer } from './styled';
|
|
|
8
8
|
const ANALYTICS_CONTEXT_DATA = {
|
|
9
9
|
componentName: 'ArticleLoadingFail',
|
|
10
10
|
packageName: "@atlaskit/help",
|
|
11
|
-
packageVersion: "7.5.
|
|
11
|
+
packageVersion: "7.5.2"
|
|
12
12
|
};
|
|
13
13
|
export const ArticleLoadingFail = ({
|
|
14
14
|
onTryAgainButtonClick,
|
|
@@ -1,12 +1,13 @@
|
|
|
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
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
4
5
|
export const LoadingErrorMessage = styled.div({
|
|
5
6
|
paddingTop: "var(--ds-space-300, 24px)",
|
|
6
7
|
textAlign: 'center'
|
|
7
8
|
});
|
|
8
9
|
|
|
9
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
10
11
|
export const LoadingErrorButtonContainer = styled.div({
|
|
11
12
|
paddingTop: "var(--ds-space-300, 24px)",
|
|
12
13
|
textAlign: 'center'
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { injectIntl } from 'react-intl-next';
|
|
3
3
|
import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
|
|
4
|
-
import Button from '@atlaskit/button
|
|
4
|
+
import Button from '@atlaskit/button';
|
|
5
5
|
import { messages } from '../../../../messages';
|
|
6
6
|
const ANALYTICS_CONTEXT_DATA = {
|
|
7
7
|
componentName: 'ArticleWasHelpfulNoButton',
|
|
8
8
|
packageName: "@atlaskit/help",
|
|
9
|
-
packageVersion: "7.5.
|
|
9
|
+
packageVersion: "7.5.2"
|
|
10
10
|
};
|
|
11
11
|
export const ArticleWasHelpfulNoButton = ({
|
|
12
12
|
isSelected = false,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { injectIntl } from 'react-intl-next';
|
|
3
3
|
import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
|
|
4
|
-
import Button from '@atlaskit/button
|
|
4
|
+
import Button from '@atlaskit/button';
|
|
5
5
|
import { messages } from '../../../../messages';
|
|
6
6
|
const ANALYTICS_CONTEXT_DATA = {
|
|
7
7
|
componentName: 'ArticleWasHelpfulYesButton',
|
|
8
8
|
packageName: "@atlaskit/help",
|
|
9
|
-
packageVersion: "7.5.
|
|
9
|
+
packageVersion: "7.5.2"
|
|
10
10
|
};
|
|
11
11
|
export const ArticleWasHelpfulYesButton = ({
|
|
12
12
|
isSelected = false,
|
|
@@ -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.5.
|
|
29
|
+
packageVersion: "7.5.2"
|
|
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,
|
|
@@ -142,7 +150,7 @@ export const ArticleWasHelpfulForm = ({
|
|
|
142
150
|
}) => {
|
|
143
151
|
return jsx("form", _extends({}, formProps, {
|
|
144
152
|
name: "form-example"
|
|
145
|
-
}),
|
|
153
|
+
}), !wasHelpful && jsx(Field, {
|
|
146
154
|
name: "feedbackReason",
|
|
147
155
|
isRequired: true
|
|
148
156
|
}, ({
|
|
@@ -155,12 +163,20 @@ export const ArticleWasHelpfulForm = ({
|
|
|
155
163
|
defaultValue: ""
|
|
156
164
|
}, ({
|
|
157
165
|
fieldProps
|
|
158
|
-
}) => jsx(
|
|
166
|
+
}) => jsx(React.Fragment, null, jsx(ArticleFeedbackText, {
|
|
167
|
+
id: "articleFeedbackText"
|
|
168
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
169
|
+
,
|
|
170
|
+
style: {
|
|
171
|
+
top: "var(--ds-space-negative-100, -8px)"
|
|
172
|
+
}
|
|
173
|
+
}, formatMessage(messages.help_article_rating_form_title)), jsx(TextArea, _extends({}, fieldProps, {
|
|
159
174
|
minimumRows: 4,
|
|
175
|
+
"aria-labelledby": "articleFeedbackText",
|
|
160
176
|
maxLength: FEEDBACK_REASON_TEXT_MAX_LENGTH,
|
|
161
177
|
value: feedbackReasonText,
|
|
162
178
|
onChange: feedbackReasonTextOnChange
|
|
163
|
-
}))), jsx(CheckboxField, {
|
|
179
|
+
})))), jsx(CheckboxField, {
|
|
164
180
|
name: "contactMe"
|
|
165
181
|
}, ({
|
|
166
182
|
fieldProps
|
|
@@ -196,12 +212,7 @@ export const ArticleWasHelpfulForm = ({
|
|
|
196
212
|
}, jsx("p", null, formatMessage(messages.help_article_rating_form_failed)), jsx("p", null, jsx(Button, {
|
|
197
213
|
appearance: "link",
|
|
198
214
|
spacing: "compact",
|
|
199
|
-
css:
|
|
200
|
-
padding: '0',
|
|
201
|
-
'& span': {
|
|
202
|
-
margin: '0'
|
|
203
|
-
}
|
|
204
|
-
},
|
|
215
|
+
css: buttonStyles,
|
|
205
216
|
onClick: handleTryAgainOnClick
|
|
206
217
|
}, formatMessage(messages.help_article_rating_form_failed_try_again))))));
|
|
207
218
|
}
|
|
@@ -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.5.
|
|
62
|
+
packageVersion: "7.5.2"
|
|
63
63
|
};
|
|
64
64
|
if (onRelatedArticlesShowMoreClick) {
|
|
65
65
|
onRelatedArticlesShowMoreClick(event, analyticsEvent, isCollapsed);
|
|
@@ -4,7 +4,7 @@ import { BODY_FORMAT_TYPES } from '@atlaskit/help-article';
|
|
|
4
4
|
import HelpArticleContent from '@atlaskit/help-article';
|
|
5
5
|
import ShortcutIcon from '@atlaskit/icon/glyph/shortcut';
|
|
6
6
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
7
|
-
import Button from '@atlaskit/button
|
|
7
|
+
import Button from '@atlaskit/button';
|
|
8
8
|
import { messages } from '../../../messages';
|
|
9
9
|
import { getTypeIcon, getTypeTitle } from '../../../util';
|
|
10
10
|
import { WhatsNewTypeIcon, DividerLine } from '../../../util/styled';
|
|
@@ -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.5.
|
|
16
|
+
packageVersion: "7.5.2"
|
|
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.5.
|
|
11
|
+
packageVersion: "7.5.2"
|
|
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.5.
|
|
10
|
+
packageVersion: "7.5.2"
|
|
11
11
|
};
|
|
12
12
|
const HelpContentButton = ({
|
|
13
13
|
id = '',
|