@atlaskit/smart-card 26.50.5 → 26.50.6
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 +6 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/BlockCard/components/ActionIcon.js +2 -0
- package/dist/cjs/view/BlockCard/components/ActionList.js +4 -1
- package/dist/cjs/view/BlockCard/components/Content.js +1 -0
- package/dist/cjs/view/BlockCard/components/ContentFooter.js +1 -0
- package/dist/cjs/view/BlockCard/components/Frame.js +1 -0
- package/dist/cjs/view/BlockCard/components/Name.js +1 -0
- package/dist/cjs/view/BlockCard/components/Provider.js +1 -0
- package/dist/cjs/view/BlockCard/views/ResolvingView.js +2 -1
- package/dist/cjs/view/EmbedCard/components/styled.js +4 -5
- package/dist/cjs/view/EmbedCard/views/ErroredView.js +2 -0
- package/dist/cjs/view/EmbedModal/components/link-info/styled.js +55 -8
- package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +7 -17
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +38 -10
- package/dist/cjs/view/InlineCard/Icon.js +16 -4
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/common/Byline.js +1 -0
- package/dist/cjs/view/common/MetadataList.js +1 -0
- package/dist/cjs/view/common/ai-prism/ai-glowing-border/animated-svg-container.js +5 -5
- package/dist/cjs/view/common/ai-prism/constants.js +1 -2
- package/dist/cjs/view/common/utils.js +3 -0
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/BlockCard/components/ActionIcon.js +2 -0
- package/dist/es2019/view/BlockCard/components/ActionList.js +4 -1
- package/dist/es2019/view/BlockCard/components/Content.js +1 -0
- package/dist/es2019/view/BlockCard/components/ContentFooter.js +1 -0
- package/dist/es2019/view/BlockCard/components/Frame.js +1 -0
- package/dist/es2019/view/BlockCard/components/Name.js +1 -0
- package/dist/es2019/view/BlockCard/components/Provider.js +1 -0
- package/dist/es2019/view/BlockCard/views/ResolvingView.js +2 -1
- package/dist/es2019/view/EmbedCard/components/styled.js +4 -5
- package/dist/es2019/view/EmbedCard/views/ErroredView.js +2 -0
- package/dist/es2019/view/EmbedModal/components/link-info/styled.js +45 -57
- package/dist/es2019/view/FlexibleCard/components/common/atlaskit-icon/index.js +8 -18
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +35 -45
- package/dist/es2019/view/InlineCard/Icon.js +16 -14
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/common/Byline.js +1 -0
- package/dist/es2019/view/common/MetadataList.js +1 -0
- package/dist/es2019/view/common/ai-prism/ai-glowing-border/animated-svg-container.js +6 -6
- package/dist/es2019/view/common/ai-prism/constants.js +0 -1
- package/dist/es2019/view/common/utils.js +4 -0
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/BlockCard/components/ActionIcon.js +2 -0
- package/dist/esm/view/BlockCard/components/ActionList.js +4 -1
- package/dist/esm/view/BlockCard/components/Content.js +1 -0
- package/dist/esm/view/BlockCard/components/ContentFooter.js +1 -0
- package/dist/esm/view/BlockCard/components/Frame.js +1 -0
- package/dist/esm/view/BlockCard/components/Name.js +1 -0
- package/dist/esm/view/BlockCard/components/Provider.js +1 -0
- package/dist/esm/view/BlockCard/views/ResolvingView.js +2 -1
- package/dist/esm/view/EmbedCard/components/styled.js +4 -5
- package/dist/esm/view/EmbedCard/views/ErroredView.js +2 -0
- package/dist/esm/view/EmbedModal/components/link-info/styled.js +55 -7
- package/dist/esm/view/FlexibleCard/components/common/atlaskit-icon/index.js +8 -18
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +38 -9
- package/dist/esm/view/InlineCard/Icon.js +16 -4
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/common/Byline.js +1 -0
- package/dist/esm/view/common/MetadataList.js +1 -0
- package/dist/esm/view/common/ai-prism/ai-glowing-border/animated-svg-container.js +6 -6
- package/dist/esm/view/common/ai-prism/constants.js +0 -1
- package/dist/esm/view/common/utils.js +4 -0
- package/dist/types/view/common/ai-prism/constants.d.ts +0 -1
- package/dist/types-ts4.5/view/common/ai-prism/constants.d.ts +0 -1
- package/package.json +1 -1
|
@@ -1,14 +1,43 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
3
1
|
import { css } from '@emotion/react';
|
|
4
2
|
import { N800 } from '@atlaskit/theme/colors';
|
|
5
3
|
import { getTruncateStyles } from '../../../../utils';
|
|
6
|
-
export var dropdownItemGroupStyles = css(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
export var dropdownItemGroupStyles = css({
|
|
5
|
+
button: {
|
|
6
|
+
width: '220px',
|
|
7
|
+
'&:hover': {
|
|
8
|
+
backgroundColor: 'inherit',
|
|
9
|
+
cursor: 'default'
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
var sharedBlockStyles = css({
|
|
14
|
+
display: 'flex',
|
|
15
|
+
gap: '0.5rem',
|
|
16
|
+
lineHeight: '1rem',
|
|
17
|
+
minWidth: 0,
|
|
18
|
+
overflow: 'hidden',
|
|
19
|
+
flexDirection: 'row',
|
|
20
|
+
alignItems: 'center'
|
|
21
|
+
});
|
|
22
|
+
export var contentStyles = css(sharedBlockStyles, {
|
|
23
|
+
marginTop: "var(--ds-space-025, 2px)",
|
|
24
|
+
alignItems: 'flex-start',
|
|
25
|
+
'> span, > div': {
|
|
26
|
+
fontSize: '0.875rem',
|
|
27
|
+
lineHeight: '1.25rem',
|
|
28
|
+
color: "var(--ds-text, ".concat(N800, ")")
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export var linkStyles = css(sharedBlockStyles, {
|
|
32
|
+
cursor: 'pointer',
|
|
33
|
+
fontSize: '0.875rem',
|
|
34
|
+
marginTop: "var(--ds-space-100, 8px)",
|
|
35
|
+
marginLeft: "var(--ds-space-400, 32px)",
|
|
36
|
+
marginBottom: "var(--ds-space-025, 2px)"
|
|
37
|
+
});
|
|
12
38
|
export var textStyles = function textStyles(maxLines) {
|
|
13
|
-
return css(
|
|
39
|
+
return css({
|
|
40
|
+
lineHeight: '1rem',
|
|
41
|
+
whiteSpace: 'normal'
|
|
42
|
+
}, getTruncateStyles(maxLines));
|
|
14
43
|
};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2;
|
|
3
1
|
import styled from '@emotion/styled';
|
|
4
2
|
import { Skeleton } from '@atlaskit/linking-common';
|
|
5
3
|
import React from 'react';
|
|
@@ -9,17 +7,31 @@ import React from 'react';
|
|
|
9
7
|
// Current rationale: vertically positioned at the top of
|
|
10
8
|
// the smart card container (when set to 0). Offset this
|
|
11
9
|
// to position it with appropriate whitespace from the top.
|
|
12
|
-
export var Icon = styled.img(
|
|
10
|
+
export var Icon = styled.img({
|
|
11
|
+
height: '14px',
|
|
12
|
+
width: '14px',
|
|
13
|
+
marginRight: "var(--ds-space-050, 4px)",
|
|
14
|
+
borderRadius: '2px',
|
|
15
|
+
userSelect: 'none',
|
|
16
|
+
position: 'absolute',
|
|
17
|
+
top: '50%',
|
|
18
|
+
left: '50%',
|
|
19
|
+
transform: 'translate(-50%, -50%)'
|
|
20
|
+
});
|
|
13
21
|
|
|
14
22
|
// Used for 'untrue' icons which claim to be 16x16 but
|
|
15
23
|
// are less than that in height/width.
|
|
16
24
|
// TODO: Replace this override with proper AtlasKit solution.
|
|
17
|
-
export var AKIconWrapper = styled.span(
|
|
25
|
+
export var AKIconWrapper = styled.span({
|
|
26
|
+
marginRight: "var(--ds-space-negative-025, -2px)"
|
|
27
|
+
});
|
|
18
28
|
export var Shimmer = function Shimmer(_ref) {
|
|
19
29
|
var testId = _ref.testId;
|
|
20
30
|
var skeletonCustomStyles = {
|
|
21
31
|
position: 'absolute',
|
|
32
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
22
33
|
top: '50%',
|
|
34
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
23
35
|
left: '50%',
|
|
24
36
|
transform: 'translate(-50%, -50%)',
|
|
25
37
|
marginRight: "var(--ds-space-050, 4px)"
|
|
@@ -10,7 +10,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
|
|
|
10
10
|
import LinkWarningModal from './LinkWarningModal';
|
|
11
11
|
var PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/smart-card",
|
|
13
|
-
packageVersion: "26.50.
|
|
13
|
+
packageVersion: "26.50.6",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
var Link = withLinkClickedEvent('a');
|
|
@@ -13,6 +13,7 @@ export var Byline = function Byline(_ref) {
|
|
|
13
13
|
lineHeight: gs(2.5),
|
|
14
14
|
color: "".concat("var(--ds-text-subtlest, ".concat(N300, ")")),
|
|
15
15
|
fontWeight: 'normal',
|
|
16
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
16
17
|
marginTop: gs(0.5),
|
|
17
18
|
// Spec: only allow two lines MAX to be shown.
|
|
18
19
|
display: '-webkit-box',
|
|
@@ -10,6 +10,7 @@ export var MetadataList = function MetadataList(_ref) {
|
|
|
10
10
|
return jsx("div", {
|
|
11
11
|
css: {
|
|
12
12
|
display: 'flex',
|
|
13
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
13
14
|
marginTop: gs(0.5),
|
|
14
15
|
alignItems: 'center',
|
|
15
16
|
'&:last-child': {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { css, jsx } from '@emotion/react';
|
|
3
3
|
import React, { useEffect, useRef } from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { OUTER_BORDER_RADIUS } from '../constants';
|
|
5
5
|
var namespaceUUID = 0;
|
|
6
6
|
var svgStyles = css({
|
|
7
7
|
position: 'absolute',
|
|
8
8
|
borderRadius: OUTER_BORDER_RADIUS
|
|
9
9
|
});
|
|
10
10
|
var blurredStyles = css({
|
|
11
|
-
width: "calc(100% - ".concat(
|
|
12
|
-
height: "calc(100% - ".concat(
|
|
13
|
-
top:
|
|
14
|
-
left:
|
|
15
|
-
filter: "blur(".concat(
|
|
11
|
+
width: "calc(100% - ".concat("var(--ds-space-050, 4px)", ")"),
|
|
12
|
+
height: "calc(100% - ".concat("var(--ds-space-050, 4px)", ")"),
|
|
13
|
+
top: "var(--ds-space-050, 4px)",
|
|
14
|
+
left: "var(--ds-space-050, 4px)",
|
|
15
|
+
filter: "blur(".concat("var(--ds-space-100, 8px)", ")"),
|
|
16
16
|
// for safari... : https://stackoverflow.com/a/71353198
|
|
17
17
|
backfaceVisibility: 'hidden',
|
|
18
18
|
transform: 'translate3d(0, 0, 0)'
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import facepaint from 'facepaint';
|
|
2
|
+
|
|
3
|
+
// this function is used for spacing, fontsize and line height,
|
|
4
|
+
// once design tokens have been established for the all of these categories
|
|
5
|
+
// then this function can be replaced with the tokens
|
|
2
6
|
var gs = function gs(times) {
|
|
3
7
|
return "".concat(8 * times, "px");
|
|
4
8
|
};
|
|
@@ -4,7 +4,6 @@ import { AIThemeBorderPalette } from './types';
|
|
|
4
4
|
* https://bitbucket.org/atlassian/barrel/src/master/ui/platform/ui-kit/ai
|
|
5
5
|
* with modifications.
|
|
6
6
|
*/
|
|
7
|
-
export declare const GLOW_SIZE = 8;
|
|
8
7
|
export declare const INNER_BORDER_RADIUS = 8;
|
|
9
8
|
export declare const OUTER_BORDER_RADIUS = 10;
|
|
10
9
|
export declare const aiThemeTokens: {
|
|
@@ -4,7 +4,6 @@ import { AIThemeBorderPalette } from './types';
|
|
|
4
4
|
* https://bitbucket.org/atlassian/barrel/src/master/ui/platform/ui-kit/ai
|
|
5
5
|
* with modifications.
|
|
6
6
|
*/
|
|
7
|
-
export declare const GLOW_SIZE = 8;
|
|
8
7
|
export declare const INNER_BORDER_RADIUS = 8;
|
|
9
8
|
export declare const OUTER_BORDER_RADIUS = 10;
|
|
10
9
|
export declare const aiThemeTokens: {
|