@atlaskit/smart-card 27.8.3 → 27.8.4
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 +8 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/BlockCard/views/flexible/styled.js +4 -4
- package/dist/cjs/view/EmbedModal/components/link-info/styled.js +4 -4
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +16 -12
- package/dist/cjs/view/FlexibleCard/components/actions/action/index.js +3 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-indicator-tooltip.js +7 -3
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +3 -3
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +3 -3
- package/dist/cjs/view/HoverCard/components/views/forbidden/styled.js +3 -3
- package/dist/cjs/view/HoverCard/components/views/resolved/styled.js +3 -3
- package/dist/cjs/view/HoverCard/components/views/resolving/styled.js +3 -3
- package/dist/cjs/view/HoverCard/components/views/unauthorised/styled.js +3 -3
- package/dist/cjs/view/HoverCard/styled.js +4 -4
- package/dist/cjs/view/LinkUrl/LinkWarningModal/styled.js +1 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/RelatedLinksModal/components/related-links-list/index.js +2 -2
- package/dist/cjs/view/common/ai-icon/index.js +24 -26
- package/dist/cjs/view/common/ai-prism/ai-glowing-border/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/BlockCard/views/flexible/styled.js +4 -4
- package/dist/es2019/view/EmbedModal/components/link-info/styled.js +4 -4
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +16 -12
- package/dist/es2019/view/FlexibleCard/components/actions/action/index.js +3 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-indicator-tooltip.js +4 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +3 -3
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +3 -3
- package/dist/es2019/view/HoverCard/components/views/forbidden/styled.js +3 -3
- package/dist/es2019/view/HoverCard/components/views/resolved/styled.js +3 -3
- package/dist/es2019/view/HoverCard/components/views/resolving/styled.js +3 -3
- package/dist/es2019/view/HoverCard/components/views/unauthorised/styled.js +3 -3
- package/dist/es2019/view/HoverCard/styled.js +4 -4
- package/dist/es2019/view/LinkUrl/LinkWarningModal/styled.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/RelatedLinksModal/components/related-links-list/index.js +2 -2
- package/dist/es2019/view/common/ai-icon/index.js +100 -104
- package/dist/es2019/view/common/ai-prism/ai-glowing-border/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/BlockCard/views/flexible/styled.js +4 -4
- package/dist/esm/view/EmbedModal/components/link-info/styled.js +4 -4
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +16 -12
- package/dist/esm/view/FlexibleCard/components/actions/action/index.js +3 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-indicator-tooltip.js +7 -3
- package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +3 -3
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +3 -3
- package/dist/esm/view/HoverCard/components/views/forbidden/styled.js +3 -3
- package/dist/esm/view/HoverCard/components/views/resolved/styled.js +3 -3
- package/dist/esm/view/HoverCard/components/views/resolving/styled.js +3 -3
- package/dist/esm/view/HoverCard/components/views/unauthorised/styled.js +3 -3
- package/dist/esm/view/HoverCard/styled.js +4 -4
- package/dist/esm/view/LinkUrl/LinkWarningModal/styled.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/RelatedLinksModal/components/related-links-list/index.js +2 -2
- package/dist/esm/view/common/ai-icon/index.js +25 -27
- package/dist/esm/view/common/ai-prism/ai-glowing-border/index.js +1 -1
- package/package.json +5 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
4
4
|
export const containerStyles = css({
|
|
5
5
|
alignItems: 'center',
|
|
6
6
|
display: 'flex',
|
|
@@ -15,7 +15,7 @@ const iconSize = '24px';
|
|
|
15
15
|
// EDM-7328: CSS Specificity
|
|
16
16
|
// An embed modal icon css for img, span, svg has specificity weight of 0-1-1.
|
|
17
17
|
// Specify flex ui icon selector to increase specificity weight to 0-2-1.
|
|
18
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
19
19
|
export const iconCss = css({
|
|
20
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
21
21
|
'&, [data-smart-element-icon] img, [data-smart-element-icon] span, [data-smart-element-icon] svg, img, span, svg': {
|
|
@@ -28,7 +28,7 @@ export const iconCss = css({
|
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
const height = '20px';
|
|
31
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
32
32
|
export const titleCss = css({
|
|
33
33
|
flex: '1 1 auto',
|
|
34
34
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
@@ -50,7 +50,7 @@ export const titleCss = css({
|
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
|
|
53
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
53
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
54
54
|
export const actionCss = css({
|
|
55
55
|
display: 'flex',
|
|
56
56
|
flex: '0 0 auto',
|
package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js
CHANGED
|
@@ -50,17 +50,21 @@ const ActionButton = ({
|
|
|
50
50
|
}),
|
|
51
51
|
size: size
|
|
52
52
|
}) : iconOption;
|
|
53
|
-
return
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
53
|
+
return (
|
|
54
|
+
/*#__PURE__*/
|
|
55
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
56
|
+
React.createElement(Pressable, _extends({
|
|
57
|
+
xcss: [buttonStyles, xcss]
|
|
58
|
+
}, tooltipProps, {
|
|
59
|
+
onClick: onClick,
|
|
60
|
+
testId: testId
|
|
61
|
+
}), /*#__PURE__*/React.createElement(Inline, {
|
|
62
|
+
alignBlock: "center",
|
|
63
|
+
grow: "fill",
|
|
64
|
+
space: space
|
|
65
|
+
}, icon, /*#__PURE__*/React.createElement(Box, {
|
|
66
|
+
xcss: contentStyles
|
|
67
|
+
}, content)))
|
|
68
|
+
);
|
|
65
69
|
};
|
|
66
70
|
export default ActionButton;
|
|
@@ -60,7 +60,9 @@ const Action = ({
|
|
|
60
60
|
onClick: onClick,
|
|
61
61
|
size: size,
|
|
62
62
|
testId: testId,
|
|
63
|
-
tooltipMessage: tooltipMessage || content
|
|
63
|
+
tooltipMessage: tooltipMessage || content
|
|
64
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
65
|
+
,
|
|
64
66
|
xcss: xcss,
|
|
65
67
|
tooltipOnHide: tooltipOnHide,
|
|
66
68
|
hideTooltipOnMouseDown: hideTooltipOnMouseDown,
|
|
@@ -70,7 +70,7 @@ const ActionBlock = ({
|
|
|
70
70
|
onError: onError,
|
|
71
71
|
onLoadingChange: onLoadingChange,
|
|
72
72
|
size: size
|
|
73
|
-
// 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
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
74
74
|
,
|
|
75
75
|
xcss: xcss({
|
|
76
76
|
paddingInline: padding
|
|
@@ -25,7 +25,10 @@ const AIIndicatorTooltip = ({
|
|
|
25
25
|
component: AIIndicatorTooltipPrimitive,
|
|
26
26
|
content: content,
|
|
27
27
|
tag: "span"
|
|
28
|
-
}, tooltipProps =>
|
|
28
|
+
}, tooltipProps =>
|
|
29
|
+
/*#__PURE__*/
|
|
30
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
31
|
+
React.createElement(Box, _extends({
|
|
29
32
|
xcss: [triggerStyles, overrideXcss]
|
|
30
33
|
}, tooltipProps), trigger));
|
|
31
34
|
};
|
|
@@ -22,7 +22,7 @@ const RelatedUrlList = ({
|
|
|
22
22
|
const intl = useIntl();
|
|
23
23
|
return resolvedResults.length > 0 ?
|
|
24
24
|
/*#__PURE__*/
|
|
25
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
26
26
|
React.createElement(Stack, {
|
|
27
27
|
testId: testId,
|
|
28
28
|
xcss: xcss({
|
|
@@ -21,7 +21,7 @@ const ResolvedResultsStack = ({
|
|
|
21
21
|
space: "space.050",
|
|
22
22
|
testId: `${testId}-items-wrapper`,
|
|
23
23
|
as: "ul"
|
|
24
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
25
25
|
,
|
|
26
26
|
xcss: xcss({
|
|
27
27
|
paddingLeft: 'space.0',
|
|
@@ -104,7 +104,7 @@ getDirectionStyles(direction), {
|
|
|
104
104
|
}
|
|
105
105
|
});
|
|
106
106
|
|
|
107
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles
|
|
107
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
108
108
|
export const highlightRemoveStyles = css`
|
|
109
109
|
outline: none !important;
|
|
110
110
|
outline-color: inherit;
|
|
@@ -3,7 +3,7 @@ import { css } from '@emotion/react';
|
|
|
3
3
|
import { N800 } from '@atlaskit/theme/colors';
|
|
4
4
|
import { getTruncateStyles } from '../../../../utils';
|
|
5
5
|
|
|
6
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
7
7
|
export const dropdownItemGroupStyles = css({
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
9
9
|
button: {
|
|
@@ -24,7 +24,7 @@ const sharedBlockStyles = css({
|
|
|
24
24
|
alignItems: 'center'
|
|
25
25
|
});
|
|
26
26
|
|
|
27
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
28
28
|
export const contentStyles = css(sharedBlockStyles, {
|
|
29
29
|
marginTop: "var(--ds-space-025, 2px)",
|
|
30
30
|
alignItems: 'flex-start',
|
|
@@ -36,7 +36,7 @@ export const contentStyles = css(sharedBlockStyles, {
|
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
|
|
39
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
40
40
|
export const linkStyles = css(sharedBlockStyles, {
|
|
41
41
|
cursor: 'pointer',
|
|
42
42
|
fontSize: '0.875rem',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
4
4
|
export const triggerButtonStyles = css({
|
|
5
5
|
all: 'unset',
|
|
6
6
|
backgroundColor: 'transparent',
|
|
@@ -24,7 +24,7 @@ export const triggerButtonStyles = css({
|
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
|
|
27
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-exported-styles
|
|
27
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
28
28
|
export const triggerLozengeStyles = css({
|
|
29
29
|
alignItems: 'center',
|
|
30
30
|
display: 'flex',
|
|
@@ -34,7 +34,7 @@ export const triggerLozengeStyles = css({
|
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
38
38
|
export const dropdownItemGroupStyles = css({
|
|
39
39
|
maxHeight: '300px',
|
|
40
40
|
overflowY: 'auto',
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
const titleFontWeight = '600';
|
|
4
4
|
|
|
5
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
6
6
|
export const titleBlockStyles = css({
|
|
7
7
|
justifyContent: 'center',
|
|
8
8
|
fontWeight: titleFontWeight,
|
|
9
9
|
marginTop: "var(--ds-space-100, 8px)"
|
|
10
10
|
});
|
|
11
11
|
|
|
12
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
13
13
|
export const mainTextStyles = css({
|
|
14
14
|
display: 'inline',
|
|
15
15
|
justifyContent: 'center',
|
|
@@ -18,7 +18,7 @@ export const mainTextStyles = css({
|
|
|
18
18
|
textAlign: 'center'
|
|
19
19
|
});
|
|
20
20
|
|
|
21
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
22
22
|
export const connectButtonStyles = css({
|
|
23
23
|
justifyContent: 'center',
|
|
24
24
|
marginTop: "var(--ds-space-100, 8px)"
|
|
@@ -3,7 +3,7 @@ import { css } from '@emotion/react';
|
|
|
3
3
|
import { separatorCss } from '../../../styled';
|
|
4
4
|
const elementGap = '0.5rem';
|
|
5
5
|
|
|
6
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles
|
|
6
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
7
7
|
export const metadataBlockCss = css`
|
|
8
8
|
gap: 0px;
|
|
9
9
|
/* primary element group */
|
|
@@ -32,12 +32,12 @@ export const metadataBlockCss = css`
|
|
|
32
32
|
}
|
|
33
33
|
`;
|
|
34
34
|
|
|
35
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
36
36
|
export const footerBlockCss = css({
|
|
37
37
|
height: '1.5rem'
|
|
38
38
|
});
|
|
39
39
|
|
|
40
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
41
41
|
export const hiddenSnippetStyles = css({
|
|
42
42
|
visibility: 'hidden',
|
|
43
43
|
position: 'absolute'
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
|
|
4
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
5
|
export const loadingViewContainer = css({
|
|
6
6
|
display: 'flex',
|
|
7
7
|
flexDirection: 'column',
|
|
8
8
|
padding: "var(--ds-space-200, 1rem)"
|
|
9
9
|
});
|
|
10
10
|
|
|
11
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
12
12
|
export const skeletonContainer = css({
|
|
13
13
|
display: 'flex',
|
|
14
14
|
flexDirection: 'column',
|
|
@@ -28,7 +28,7 @@ export const getTitleStyles = height => {
|
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
32
32
|
export const titleBlockStyles = css({
|
|
33
33
|
width: '100%',
|
|
34
34
|
gap: "var(--ds-space-100, 0.5rem)"
|
|
@@ -4,13 +4,13 @@ const blockGap = '0.5rem';
|
|
|
4
4
|
const iconGap = '0.5rem';
|
|
5
5
|
const titleFontWeight = '500';
|
|
6
6
|
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
8
8
|
export const connectButtonStyles = css({
|
|
9
9
|
justifyContent: 'flex-end',
|
|
10
10
|
marginTop: blockGap
|
|
11
11
|
});
|
|
12
12
|
|
|
13
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
14
14
|
export const titleBlockStyles = css({
|
|
15
15
|
gap: `${blockGap} ${iconGap}`,
|
|
16
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
@@ -19,7 +19,7 @@ export const titleBlockStyles = css({
|
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
23
23
|
export const mainTextStyles = css({
|
|
24
24
|
marginTop: blockGap,
|
|
25
25
|
fontSize: '0.75rem'
|
|
@@ -21,7 +21,7 @@ export const CARD_GAP_PX = 10;
|
|
|
21
21
|
const blockGap = '0.5rem';
|
|
22
22
|
const elementGap = '0.5rem';
|
|
23
23
|
|
|
24
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
25
25
|
export const separatorCss = css({
|
|
26
26
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
27
27
|
'[data-separator] + [data-separator]:before': {
|
|
@@ -29,7 +29,7 @@ export const separatorCss = css({
|
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
|
|
32
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles
|
|
32
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
33
33
|
export const HoverCardContainer = css`
|
|
34
34
|
background: none;
|
|
35
35
|
border-width: 0;
|
|
@@ -41,7 +41,7 @@ export const HoverCardContainer = css`
|
|
|
41
41
|
}
|
|
42
42
|
`;
|
|
43
43
|
|
|
44
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles
|
|
44
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
45
45
|
export const titleBlockCss = css`
|
|
46
46
|
gap: ${blockGap};
|
|
47
47
|
|
|
@@ -70,7 +70,7 @@ export const getTransitionStyles = snippetHeight => css({
|
|
|
70
70
|
height: `${snippetHeight}px`
|
|
71
71
|
});
|
|
72
72
|
|
|
73
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
73
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
74
74
|
export const popupContainerStyles = css({
|
|
75
75
|
borderRadius: "var(--ds-border-radius-200, 8px)",
|
|
76
76
|
backgroundColor: "var(--ds-surface-overlay, white)",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
|
|
4
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
5
|
export const breakWordsCss = css({
|
|
6
6
|
whiteSpace: 'pre-line',
|
|
7
7
|
wordBreak: 'break-all'
|
|
@@ -7,7 +7,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
|
|
|
7
7
|
import LinkWarningModal from './LinkWarningModal';
|
|
8
8
|
const PACKAGE_DATA = {
|
|
9
9
|
packageName: "@atlaskit/smart-card",
|
|
10
|
-
packageVersion: "27.8.
|
|
10
|
+
packageVersion: "27.8.4",
|
|
11
11
|
componentName: 'linkUrl'
|
|
12
12
|
};
|
|
13
13
|
const Link = withLinkClickedEvent('a');
|
|
@@ -15,7 +15,7 @@ const RelatedLinksList = ({
|
|
|
15
15
|
testId: testId
|
|
16
16
|
}, jsx(Box, {
|
|
17
17
|
paddingBlockStart: "space.050"
|
|
18
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
19
19
|
,
|
|
20
20
|
xcss: xcss({
|
|
21
21
|
font: "var(--ds-font-heading-xxsmall, normal 600 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
@@ -27,7 +27,7 @@ const RelatedLinksList = ({
|
|
|
27
27
|
url: url,
|
|
28
28
|
testId: `${testId}-item-${idx}`
|
|
29
29
|
})))), urls.length === 0 &&
|
|
30
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
31
31
|
jsx(Box, {
|
|
32
32
|
paddingBlock: "space.100",
|
|
33
33
|
xcss: xcss({
|
|
@@ -1,113 +1,109 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import SVG from '@atlaskit/icon/svg';
|
|
3
|
-
import {
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
4
|
import { B200, B400 } from '@atlaskit/theme/colors';
|
|
5
5
|
/**
|
|
6
6
|
* The bulk of this file is originally from
|
|
7
7
|
* https://bitbucket.org/atlassian/barrel/src/master/ui/platform/ui-kit/ai
|
|
8
8
|
* with modifications
|
|
9
9
|
*/
|
|
10
|
-
const AiIcon = props => {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
d: "M9.70711 14.2929C10.0976 14.6834 10.0976 15.3166 9.70711 15.7071L5.70711 19.7071C5.31658 20.0976 4.68342 20.0976 4.29289 19.7071C3.90237 19.3166 3.90237 18.6834 4.29289 18.2929L8.29289 14.2929C8.68342 13.9024 9.31658 13.9024 9.70711 14.2929Z",
|
|
110
|
-
fill: iconColor
|
|
111
|
-
})));
|
|
112
|
-
};
|
|
10
|
+
const AiIcon = props => /*#__PURE__*/React.createElement(SVG, props, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
|
11
|
+
id: "ai_icon_lg0",
|
|
12
|
+
x1: "21",
|
|
13
|
+
y1: "12",
|
|
14
|
+
x2: "17.5",
|
|
15
|
+
y2: "12",
|
|
16
|
+
gradientUnits: "userSpaceOnUse"
|
|
17
|
+
}, /*#__PURE__*/React.createElement("stop", {
|
|
18
|
+
offset: "0.270833",
|
|
19
|
+
stopColor: `var(--ds-icon-accent-blue, ${B200})`,
|
|
20
|
+
color: `var(--ds-icon-accent-blue, ${B200})`
|
|
21
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
22
|
+
offset: "1",
|
|
23
|
+
stopColor: `var(--ds-text-accent-blue, ${B400})`,
|
|
24
|
+
color: `var(--ds-text-accent-blue, ${B400})`
|
|
25
|
+
})), /*#__PURE__*/React.createElement("linearGradient", {
|
|
26
|
+
id: "ai_icon_lg1",
|
|
27
|
+
x1: "12.5",
|
|
28
|
+
y1: "3",
|
|
29
|
+
x2: "12.5",
|
|
30
|
+
y2: "6.5",
|
|
31
|
+
gradientUnits: "userSpaceOnUse"
|
|
32
|
+
}, /*#__PURE__*/React.createElement("stop", {
|
|
33
|
+
offset: "0.1875",
|
|
34
|
+
stopColor: `var(--ds-icon-accent-blue, ${B200})`,
|
|
35
|
+
color: `var(--ds-icon-accent-blue, ${B200})`
|
|
36
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
37
|
+
offset: "1",
|
|
38
|
+
stopColor: `var(--ds-text-accent-blue, ${B400})`,
|
|
39
|
+
color: `var(--ds-text-accent-blue, ${B400})`
|
|
40
|
+
})), /*#__PURE__*/React.createElement("linearGradient", {
|
|
41
|
+
id: "ai_icon_lg2",
|
|
42
|
+
x1: "6.82996",
|
|
43
|
+
y1: "12",
|
|
44
|
+
x2: "3.32996",
|
|
45
|
+
y2: "12",
|
|
46
|
+
gradientUnits: "userSpaceOnUse"
|
|
47
|
+
}, /*#__PURE__*/React.createElement("stop", {
|
|
48
|
+
stopColor: `var(--ds-text-accent-blue, ${B400})`,
|
|
49
|
+
color: `var(--ds-text-accent-blue, ${B400})`
|
|
50
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
51
|
+
offset: "0.791667",
|
|
52
|
+
stopColor: `var(--ds-icon-accent-blue, ${B200})`,
|
|
53
|
+
color: `var(--ds-icon-accent-blue, ${B200})`
|
|
54
|
+
})), /*#__PURE__*/React.createElement("linearGradient", {
|
|
55
|
+
id: "ai_icon_lg3",
|
|
56
|
+
x1: "12.5",
|
|
57
|
+
y1: "17",
|
|
58
|
+
x2: "12.5",
|
|
59
|
+
y2: "21",
|
|
60
|
+
gradientUnits: "userSpaceOnUse"
|
|
61
|
+
}, /*#__PURE__*/React.createElement("stop", {
|
|
62
|
+
stopColor: `var(--ds-text-accent-blue, ${B400})`,
|
|
63
|
+
color: `var(--ds-text-accent-blue, ${B400})`
|
|
64
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
65
|
+
offset: "0.802083",
|
|
66
|
+
stopColor: `var(--ds-icon-accent-blue, ${B200})`,
|
|
67
|
+
color: `var(--ds-icon-accent-blue, ${B200})`
|
|
68
|
+
}))), /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
|
|
69
|
+
fillRule: "evenodd",
|
|
70
|
+
clipRule: "evenodd",
|
|
71
|
+
d: "M17.17 12C17.17 11.4477 17.6177 11 18.17 11H20C20.5523 11 21 11.4477 21 12C21 12.5523 20.5523 13 20 13H18.17C17.6177 13 17.17 12.5523 17.17 12Z",
|
|
72
|
+
fill: fg('platform.linking-platform.smart-card.hover-card-action-redesign') ? "var(--ds-icon, #44546F)" : 'url(#ai_icon_lg0)'
|
|
73
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
74
|
+
fillRule: "evenodd",
|
|
75
|
+
clipRule: "evenodd",
|
|
76
|
+
d: "M12 3C12.5523 3 13 3.44772 13 4V5.83C13 6.38228 12.5523 6.83 12 6.83C11.4477 6.83 11 6.38228 11 5.83V4C11 3.44772 11.4477 3 12 3Z",
|
|
77
|
+
fill: fg('platform.linking-platform.smart-card.hover-card-action-redesign') ? "var(--ds-icon, #44546F)" : 'url(#ai_icon_lg1)'
|
|
78
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
79
|
+
fillRule: "evenodd",
|
|
80
|
+
clipRule: "evenodd",
|
|
81
|
+
d: "M3 12C3 11.4477 3.44772 11 4 11H5.83C6.38228 11 6.83 11.4477 6.83 12C6.83 12.5523 6.38228 13 5.83 13H4C3.44772 13 3 12.5523 3 12Z",
|
|
82
|
+
fill: fg('platform.linking-platform.smart-card.hover-card-action-redesign') ? "var(--ds-icon, #44546F)" : 'url(#ai_icon_lg2)'
|
|
83
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
84
|
+
fillRule: "evenodd",
|
|
85
|
+
clipRule: "evenodd",
|
|
86
|
+
d: "M12 17.17C12.5523 17.17 13 17.6177 13 18.17V20C13 20.5523 12.5523 21 12 21C11.4477 21 11 20.5523 11 20V18.17C11 17.6177 11.4477 17.17 12 17.17Z",
|
|
87
|
+
fill: fg('platform.linking-platform.smart-card.hover-card-action-redesign') ? "var(--ds-icon, #44546F)" : 'url(#ai_icon_lg3)'
|
|
88
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
89
|
+
fillRule: "evenodd",
|
|
90
|
+
clipRule: "evenodd",
|
|
91
|
+
d: "M14.2929 14.2929C14.6835 13.9024 15.3166 13.9024 15.7071 14.2929L19.7071 18.2929C20.0977 18.6834 20.0977 19.3166 19.7071 19.7071C19.3166 20.0976 18.6835 20.0976 18.2929 19.7071L14.2929 15.7071C13.9024 15.3166 13.9024 14.6834 14.2929 14.2929Z",
|
|
92
|
+
fill: fg('platform.linking-platform.smart-card.hover-card-action-redesign') ? "var(--ds-icon, #44546F)" : `var(--ds-icon-accent-blue, ${B200})`
|
|
93
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
94
|
+
fillRule: "evenodd",
|
|
95
|
+
clipRule: "evenodd",
|
|
96
|
+
d: "M19.7071 4.29289C20.0977 4.68342 20.0977 5.31658 19.7071 5.70711L15.7071 9.70711C15.3166 10.0976 14.6835 10.0976 14.2929 9.70711C13.9024 9.31658 13.9024 8.68342 14.2929 8.29289L18.2929 4.29289C18.6835 3.90237 19.3166 3.90237 19.7071 4.29289Z",
|
|
97
|
+
fill: fg('platform.linking-platform.smart-card.hover-card-action-redesign') ? "var(--ds-icon, #44546F)" : `var(--ds-icon-accent-blue, ${B200})`
|
|
98
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
99
|
+
fillRule: "evenodd",
|
|
100
|
+
clipRule: "evenodd",
|
|
101
|
+
d: "M4.29289 4.29289C4.68342 3.90237 5.31658 3.90237 5.70711 4.29289L9.70711 8.29289C10.0976 8.68342 10.0976 9.31658 9.70711 9.70711C9.31658 10.0976 8.68342 10.0976 8.29289 9.70711L4.29289 5.70711C3.90237 5.31658 3.90237 4.68342 4.29289 4.29289Z",
|
|
102
|
+
fill: fg('platform.linking-platform.smart-card.hover-card-action-redesign') ? "var(--ds-icon, #44546F)" : `var(--ds-icon-accent-blue, ${B200})`
|
|
103
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
104
|
+
fillRule: "evenodd",
|
|
105
|
+
clipRule: "evenodd",
|
|
106
|
+
d: "M9.70711 14.2929C10.0976 14.6834 10.0976 15.3166 9.70711 15.7071L5.70711 19.7071C5.31658 20.0976 4.68342 20.0976 4.29289 19.7071C3.90237 19.3166 3.90237 18.6834 4.29289 18.2929L8.29289 14.2929C8.68342 13.9024 9.31658 13.9024 9.70711 14.2929Z",
|
|
107
|
+
fill: fg('platform.linking-platform.smart-card.hover-card-action-redesign') ? "var(--ds-icon, #44546F)" : `var(--ds-icon-accent-blue, ${B200})`
|
|
108
|
+
})));
|
|
113
109
|
export default AiIcon;
|
|
@@ -11,7 +11,7 @@ const borderContainerStyles = css({
|
|
|
11
11
|
width: 'fit-content'
|
|
12
12
|
});
|
|
13
13
|
|
|
14
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
15
15
|
export const borderContentStyles = css({
|
|
16
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
17
17
|
borderRadius: INNER_BORDER_RADIUS,
|
|
@@ -15,7 +15,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
15
15
|
export var context = {
|
|
16
16
|
componentName: 'smart-cards',
|
|
17
17
|
packageName: "@atlaskit/smart-card",
|
|
18
|
-
packageVersion: "27.8.
|
|
18
|
+
packageVersion: "27.8.4"
|
|
19
19
|
};
|
|
20
20
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
21
21
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|