@atlaskit/smart-card 26.50.4 → 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.
Files changed (75) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/utils/analytics/analytics.js +1 -1
  3. package/dist/cjs/view/BlockCard/components/ActionIcon.js +2 -0
  4. package/dist/cjs/view/BlockCard/components/ActionList.js +4 -1
  5. package/dist/cjs/view/BlockCard/components/Content.js +1 -0
  6. package/dist/cjs/view/BlockCard/components/ContentFooter.js +1 -0
  7. package/dist/cjs/view/BlockCard/components/Frame.js +1 -0
  8. package/dist/cjs/view/BlockCard/components/Name.js +1 -0
  9. package/dist/cjs/view/BlockCard/components/Provider.js +1 -0
  10. package/dist/cjs/view/BlockCard/views/ResolvingView.js +2 -1
  11. package/dist/cjs/view/EmbedCard/components/styled.js +4 -5
  12. package/dist/cjs/view/EmbedCard/views/ErroredView.js +2 -0
  13. package/dist/cjs/view/EmbedModal/components/link-info/styled.js +55 -8
  14. package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +7 -17
  15. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +38 -10
  16. package/dist/cjs/view/InlineCard/Icon.js +16 -4
  17. package/dist/cjs/view/LinkUrl/index.js +1 -1
  18. package/dist/cjs/view/common/Byline.js +1 -0
  19. package/dist/cjs/view/common/MetadataList.js +1 -0
  20. package/dist/cjs/view/common/ai-prism/ai-glowing-border/animated-svg-container.js +5 -5
  21. package/dist/cjs/view/common/ai-prism/constants.js +1 -2
  22. package/dist/cjs/view/common/ai-summary/index.js +5 -3
  23. package/dist/cjs/view/common/ai-summary/ulist.js +25 -0
  24. package/dist/cjs/view/common/utils.js +3 -0
  25. package/dist/es2019/utils/analytics/analytics.js +1 -1
  26. package/dist/es2019/view/BlockCard/components/ActionIcon.js +2 -0
  27. package/dist/es2019/view/BlockCard/components/ActionList.js +4 -1
  28. package/dist/es2019/view/BlockCard/components/Content.js +1 -0
  29. package/dist/es2019/view/BlockCard/components/ContentFooter.js +1 -0
  30. package/dist/es2019/view/BlockCard/components/Frame.js +1 -0
  31. package/dist/es2019/view/BlockCard/components/Name.js +1 -0
  32. package/dist/es2019/view/BlockCard/components/Provider.js +1 -0
  33. package/dist/es2019/view/BlockCard/views/ResolvingView.js +2 -1
  34. package/dist/es2019/view/EmbedCard/components/styled.js +4 -5
  35. package/dist/es2019/view/EmbedCard/views/ErroredView.js +2 -0
  36. package/dist/es2019/view/EmbedModal/components/link-info/styled.js +45 -57
  37. package/dist/es2019/view/FlexibleCard/components/common/atlaskit-icon/index.js +8 -18
  38. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +35 -45
  39. package/dist/es2019/view/InlineCard/Icon.js +16 -14
  40. package/dist/es2019/view/LinkUrl/index.js +1 -1
  41. package/dist/es2019/view/common/Byline.js +1 -0
  42. package/dist/es2019/view/common/MetadataList.js +1 -0
  43. package/dist/es2019/view/common/ai-prism/ai-glowing-border/animated-svg-container.js +6 -6
  44. package/dist/es2019/view/common/ai-prism/constants.js +0 -1
  45. package/dist/es2019/view/common/ai-summary/index.js +5 -3
  46. package/dist/es2019/view/common/ai-summary/ulist.js +15 -0
  47. package/dist/es2019/view/common/utils.js +4 -0
  48. package/dist/esm/utils/analytics/analytics.js +1 -1
  49. package/dist/esm/view/BlockCard/components/ActionIcon.js +2 -0
  50. package/dist/esm/view/BlockCard/components/ActionList.js +4 -1
  51. package/dist/esm/view/BlockCard/components/Content.js +1 -0
  52. package/dist/esm/view/BlockCard/components/ContentFooter.js +1 -0
  53. package/dist/esm/view/BlockCard/components/Frame.js +1 -0
  54. package/dist/esm/view/BlockCard/components/Name.js +1 -0
  55. package/dist/esm/view/BlockCard/components/Provider.js +1 -0
  56. package/dist/esm/view/BlockCard/views/ResolvingView.js +2 -1
  57. package/dist/esm/view/EmbedCard/components/styled.js +4 -5
  58. package/dist/esm/view/EmbedCard/views/ErroredView.js +2 -0
  59. package/dist/esm/view/EmbedModal/components/link-info/styled.js +55 -7
  60. package/dist/esm/view/FlexibleCard/components/common/atlaskit-icon/index.js +8 -18
  61. package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +38 -9
  62. package/dist/esm/view/InlineCard/Icon.js +16 -4
  63. package/dist/esm/view/LinkUrl/index.js +1 -1
  64. package/dist/esm/view/common/Byline.js +1 -0
  65. package/dist/esm/view/common/MetadataList.js +1 -0
  66. package/dist/esm/view/common/ai-prism/ai-glowing-border/animated-svg-container.js +6 -6
  67. package/dist/esm/view/common/ai-prism/constants.js +0 -1
  68. package/dist/esm/view/common/ai-summary/index.js +5 -3
  69. package/dist/esm/view/common/ai-summary/ulist.js +18 -0
  70. package/dist/esm/view/common/utils.js +4 -0
  71. package/dist/types/view/common/ai-prism/constants.d.ts +0 -1
  72. package/dist/types/view/common/ai-summary/ulist.d.ts +4 -0
  73. package/dist/types-ts4.5/view/common/ai-prism/constants.d.ts +0 -1
  74. package/dist/types-ts4.5/view/common/ai-summary/ulist.d.ts +4 -0
  75. package/package.json +3 -3
@@ -143,9 +143,10 @@ export const LinkWrapper = styled.div`
143
143
  text-decoration: none;
144
144
  }
145
145
  `;
146
-
147
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
148
146
  export const Wrapper = styled.div(props => wrapperStyles(props), {
147
+ // We are keeping this margin as a hardcoded variable as it is not a standard token size and needs
148
+ // to be thoroughly checked with a designer so that we do not miss an unintended visual change
149
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
149
150
  marginTop: '10px'
150
151
  });
151
152
  export const embedHeaderHeight = 32;
@@ -268,10 +269,8 @@ export const Byline = styled.div({
268
269
  fontWeight: 'normal',
269
270
  lineHeight: 16 / 12
270
271
  }, ellipsis('100%'));
271
-
272
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
273
272
  export const Description = styled.div({
274
- marginTop: '7px',
273
+ marginTop: `calc(${"var(--ds-space-100, 8px)"} - 1px)`,
275
274
  color: `var(--ds-text, ${colors.N800})`,
276
275
  fontSize: '12px',
277
276
  fontWeight: 'normal',
@@ -25,7 +25,9 @@ export const EmbedCardErroredView = ({
25
25
  }), jsx("span", {
26
26
  css: {
27
27
  fontSize: `${fontSize()}px`,
28
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
28
29
  marginLeft: gs(0.5),
30
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
29
31
  marginRight: gs(0.5),
30
32
  display: '-webkit-box',
31
33
  overflow: 'hidden',
@@ -1,73 +1,61 @@
1
1
  import { css } from '@emotion/react';
2
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
3
- export const containerStyles = css`
4
- align-items: center;
5
- display: flex;
6
- gap: ${"var(--ds-space-100, 8px)"};
7
- justify-content: space-between;
2
+ export const containerStyles = css({
3
+ alignItems: 'center',
4
+ display: 'flex',
5
+ gap: "var(--ds-space-100, 8px)",
6
+ justifyContent: 'space-between',
8
7
  // AK ModalBody has 2px padding top and bottom.
9
8
  // Using 14px here to create 16px gap between
10
9
  // link info and iframe
11
- padding: ${"var(--ds-space-300, 24px)"} ${"var(--ds-space-300, 24px)"} 14px
12
- ${"var(--ds-space-300, 24px)"};
13
- `;
10
+ padding: `${"var(--ds-space-300, 24px)"} ${"var(--ds-space-300, 24px)"} 14px ${"var(--ds-space-300, 24px)"}`
11
+ });
14
12
  const iconSize = '24px';
15
13
  // EDM-7328: CSS Specificity
16
14
  // An embed modal icon css for img, span, svg has specificity weight of 0-1-1.
17
15
  // Specify flex ui icon selector to increase specificity weight to 0-2-1.
18
- export const iconCss = css`
19
- &,
20
- [data-smart-element-icon] img,
21
- [data-smart-element-icon] span,
22
- [data-smart-element-icon] svg,
23
- img,
24
- span,
25
- svg {
26
- height: ${iconSize};
27
- min-height: ${iconSize};
28
- max-height: ${iconSize};
29
- width: ${iconSize};
30
- min-width: ${iconSize};
31
- max-width: ${iconSize};
16
+ export const iconCss = css({
17
+ '&, [data-smart-element-icon] img, [data-smart-element-icon] span, [data-smart-element-icon] svg, img, span, svg': {
18
+ height: iconSize,
19
+ minHeight: iconSize,
20
+ maxHeight: iconSize,
21
+ width: iconSize,
22
+ minWidth: iconSize,
23
+ maxWidth: iconSize
32
24
  }
33
- `;
25
+ });
34
26
  const height = '20px';
35
- export const titleCss = css`
36
- flex: 1 1 auto;
37
-
38
- h3 {
39
- flex: 1 1 auto;
40
- font-size: 16px;
41
- font-weight: 400;
42
- line-height: ${height};
43
-
44
- display: -webkit-box;
45
- margin-bottom: 0;
46
- overflow: hidden;
47
- text-overflow: ellipsis;
48
- word-break: break-word;
49
- -webkit-line-clamp: 1;
50
- -webkit-box-orient: vertical;
51
- // Fallback options
52
- @supports not (-webkit-line-clamp: 1) {
53
- max-height: ${height};
27
+ export const titleCss = css({
28
+ flex: '1 1 auto',
29
+ h3: {
30
+ flex: '1 1 auto',
31
+ fontSize: '16px',
32
+ fontWeight: 400,
33
+ lineHeight: height,
34
+ display: '-webkit-box',
35
+ marginBottom: 0,
36
+ overflow: 'hidden',
37
+ textOverflow: 'ellipsis',
38
+ wordBreak: 'break-word',
39
+ WebkitLineClamp: 1,
40
+ WebkitBoxOrient: 'vertical',
41
+ '@supports not (-webkit-line-clamp: 1)': {
42
+ maxHeight: height
54
43
  }
55
44
  }
56
- `;
57
- export const actionCss = css`
58
- display: flex;
59
- flex: 0 0 auto;
60
- gap: ${"var(--ds-space-050, 4px)"};
61
- line-height: ${height};
62
- span {
63
- line-height: ${height};
64
- }
65
-
66
- @media only screen and (max-width: 980px) {
45
+ });
46
+ export const actionCss = css({
47
+ display: 'flex',
48
+ flex: '0 0 auto',
49
+ gap: "var(--ds-space-050, 4px)",
50
+ lineHeight: height,
51
+ span: {
52
+ lineHeight: height
53
+ },
54
+ '@media only screen and (max-width: 980px)': {
67
55
  // Hide resize button if the screen is smaller than the min width
68
56
  // or too small to have enough impact to matter.
69
- .smart-link-resize-button {
70
- display: none;
57
+ '.smart-link-resize-button': {
58
+ display: 'none'
71
59
  }
72
60
  }
73
- `;
61
+ });
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import Loadable from 'react-loadable';
3
- import { B200, B400, N700, R400 } from '@atlaskit/theme/colors';
3
+ import { R400 } from '@atlaskit/theme/colors';
4
+ import { ConfluenceIcon, JiraIcon } from '@atlaskit/logo';
4
5
  import DocumentIcon from '@atlaskit/icon-file-type/glyph/document/16';
5
6
  import BlogIcon from '@atlaskit/icon-object/glyph/blog/16';
6
7
  import { IconType } from '../../../../../constants';
@@ -113,25 +114,14 @@ const AtlaskitIcon = ({
113
114
  const ImportedIcon = importIcon(importFn);
114
115
  switch (icon) {
115
116
  case IconType.Confluence:
116
- return /*#__PURE__*/React.createElement(ImportedIcon, {
117
- testId: testId,
118
- textColor: `var(--ds-text-subtle, ${N700})`
119
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */,
120
- iconColor: B200,
121
- iconGradientStart: B400,
122
- iconGradientStop: B200
123
- /* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
117
+ return /*#__PURE__*/React.createElement(ConfluenceIcon, {
118
+ appearance: "brand",
119
+ testId: testId
124
120
  });
125
121
  case IconType.Jira:
126
- // Logo component has a different prop set from other icon components
127
- return /*#__PURE__*/React.createElement(ImportedIcon, {
128
- testId: testId,
129
- textColor: `var(--ds-text-subtle, ${N700})`
130
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */,
131
- iconColor: B200,
132
- iconGradientStart: B400,
133
- iconGradientStop: B200
134
- /* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
122
+ return /*#__PURE__*/React.createElement(JiraIcon, {
123
+ appearance: "brand",
124
+ testId: testId
135
125
  });
136
126
  case IconType.Error:
137
127
  case IconType.Forbidden:
@@ -1,51 +1,41 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { N800 } from '@atlaskit/theme/colors';
3
3
  import { getTruncateStyles } from '../../../../utils';
4
- export const dropdownItemGroupStyles = css`
5
- button {
6
- width: 220px;
7
-
8
- &:hover {
9
- background-color: inherit;
10
- cursor: default;
4
+ export const dropdownItemGroupStyles = css({
5
+ button: {
6
+ width: '220px',
7
+ '&:hover': {
8
+ backgroundColor: 'inherit',
9
+ cursor: 'default'
11
10
  }
12
11
  }
13
- `;
14
- const sharedBlockStyles = css`
15
- display: flex;
16
- gap: 0.5rem;
17
- line-height: 1rem;
18
- min-width: 0;
19
- overflow: hidden;
20
- flex-direction: row;
21
- align-items: center;
22
- `;
23
- export const contentStyles = css`
24
- ${sharedBlockStyles};
25
-
26
- margin-top: ${"var(--ds-space-025, 2px)"};
27
- align-items: flex-start;
28
-
29
- > span,
30
- > div {
31
- font-size: 0.875rem;
32
- line-height: 1.25rem;
33
- color: ${`var(--ds-text, ${N800})`};
12
+ });
13
+ const 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 const 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, ${N800})`
34
29
  }
35
- `;
36
-
37
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
38
- export const linkStyles = css`
39
- ${sharedBlockStyles};
40
-
41
- cursor: pointer;
42
- font-size: 0.875rem;
43
- margin-top: 10px;
44
- margin-left: ${"var(--ds-space-400, 32px)"};
45
- margin-bottom: ${"var(--ds-space-025, 2px)"};
46
- `;
47
- export const textStyles = maxLines => css`
48
- line-height: 1rem;
49
- white-space: normal;
50
- ${getTruncateStyles(maxLines)};
51
- `;
30
+ });
31
+ export const 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
+ });
38
+ export const textStyles = maxLines => css({
39
+ lineHeight: '1rem',
40
+ whiteSpace: 'normal'
41
+ }, getTruncateStyles(maxLines));
@@ -7,30 +7,32 @@ import React from 'react';
7
7
  // Current rationale: vertically positioned at the top of
8
8
  // the smart card container (when set to 0). Offset this
9
9
  // to position it with appropriate whitespace from the top.
10
- export const Icon = styled.img`
11
- height: 14px;
12
- width: 14px;
13
- margin-right: ${"var(--ds-space-050, 4px)"};
14
- border-radius: 2px;
15
- user-select: none;
16
- position: absolute;
17
- top: 50%;
18
- left: 50%;
19
- transform: translate(-50%, -50%);
20
- `;
10
+ export const 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
+ });
21
21
 
22
22
  // Used for 'untrue' icons which claim to be 16x16 but
23
23
  // are less than that in height/width.
24
24
  // TODO: Replace this override with proper AtlasKit solution.
25
- export const AKIconWrapper = styled.span`
26
- margin-right: ${"var(--ds-space-negative-025, -2px)"};
27
- `;
25
+ export const AKIconWrapper = styled.span({
26
+ marginRight: "var(--ds-space-negative-025, -2px)"
27
+ });
28
28
  export const Shimmer = ({
29
29
  testId
30
30
  }) => {
31
31
  const skeletonCustomStyles = {
32
32
  position: 'absolute',
33
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
33
34
  top: '50%',
35
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
34
36
  left: '50%',
35
37
  transform: 'translate(-50%, -50%)',
36
38
  marginRight: "var(--ds-space-050, 4px)"
@@ -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: "26.50.4",
10
+ packageVersion: "26.50.6",
11
11
  componentName: 'linkUrl'
12
12
  };
13
13
  const Link = withLinkClickedEvent('a');
@@ -13,6 +13,7 @@ export const Byline = ({
13
13
  lineHeight: gs(2.5),
14
14
  color: `${`var(--ds-text-subtlest, ${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',
@@ -11,6 +11,7 @@ export const MetadataList = ({
11
11
  return jsx("div", {
12
12
  css: {
13
13
  display: 'flex',
14
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
14
15
  marginTop: gs(0.5),
15
16
  alignItems: 'center',
16
17
  '&: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 { GLOW_SIZE, OUTER_BORDER_RADIUS } from '../constants';
4
+ import { OUTER_BORDER_RADIUS } from '../constants';
5
5
  let namespaceUUID = 0;
6
6
  const svgStyles = css({
7
7
  position: 'absolute',
8
8
  borderRadius: OUTER_BORDER_RADIUS
9
9
  });
10
10
  const blurredStyles = css({
11
- width: `calc(100% - ${GLOW_SIZE / 2}px)`,
12
- height: `calc(100% - ${GLOW_SIZE / 2}px)`,
13
- top: GLOW_SIZE / 2,
14
- left: GLOW_SIZE / 2,
15
- filter: `blur(${GLOW_SIZE}px)`,
11
+ width: `calc(100% - ${"var(--ds-space-050, 4px)"})`,
12
+ height: `calc(100% - ${"var(--ds-space-050, 4px)"})`,
13
+ top: "var(--ds-space-050, 4px)",
14
+ left: "var(--ds-space-050, 4px)",
15
+ filter: `blur(${"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)'
@@ -4,7 +4,6 @@
4
4
  * with modifications.
5
5
  */
6
6
 
7
- export const GLOW_SIZE = 8;
8
7
  export const INNER_BORDER_RADIUS = 8;
9
8
  export const OUTER_BORDER_RADIUS = 10;
10
9
 
@@ -3,12 +3,13 @@ import React from 'react';
3
3
  import Markdown from 'markdown-to-jsx';
4
4
  import { css, jsx } from '@emotion/react';
5
5
  import AIStateIndicator from '../../FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator';
6
+ import UList from './ulist';
6
7
  const AITooltipIcon = () => jsx(AIStateIndicator, {
7
8
  appearance: "icon-only",
8
9
  state: "done",
9
10
  testId: "ai-tooltip"
10
11
  });
11
- const AISummaryCSS = css({
12
+ const AISummaryCSSStyles = css({
12
13
  fontSize: '0.75rem',
13
14
  lineHeight: '1rem',
14
15
  wordWrap: 'break-word',
@@ -33,12 +34,13 @@ const AISummary = ({
33
34
  }
34
35
  return jsx(Markdown, {
35
36
  "data-testid": testId,
36
- css: [AISummaryCSS, overrideCss],
37
+ css: [AISummaryCSSStyles, overrideCss],
37
38
  children: showIcon ? `${content}&nbsp;<Icon />` : content,
38
39
  options: {
39
40
  forceWrapper: true,
40
41
  overrides: {
41
- Icon: iconComponent !== null && iconComponent !== void 0 ? iconComponent : AITooltipIcon
42
+ Icon: iconComponent !== null && iconComponent !== void 0 ? iconComponent : AITooltipIcon,
43
+ ul: UList
42
44
  }
43
45
  },
44
46
  style: {
@@ -0,0 +1,15 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ /** @jsx jsx */
3
+ import React from 'react';
4
+ import { css, jsx } from '@emotion/react';
5
+ const listStyles = css({
6
+ paddingLeft: "var(--ds-space-250, 20px)",
7
+ paddingInlineStart: "var(--ds-space-250, 20px)"
8
+ });
9
+ const UList = ({
10
+ children,
11
+ ...props
12
+ }) => jsx("ul", _extends({
13
+ css: listStyles
14
+ }, props), children);
15
+ export default UList;
@@ -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
  const gs = times => `${8 * times}px`;
3
7
  const br = (times = 1) => `${3 * times}px`;
4
8
  const mq = facepaint(['@media(min-width: 576px)']);
@@ -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: "26.50.4"
18
+ packageVersion: "26.50.6"
19
19
  };
20
20
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
21
21
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -8,7 +8,9 @@ import CrossIcon from '@atlaskit/icon/glyph/cross';
8
8
  export var spinnerStyles = {
9
9
  display: 'flex',
10
10
  position: 'absolute',
11
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
11
12
  left: '50%',
13
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
12
14
  top: '50%',
13
15
  transform: 'translate(-50%, -50%)'
14
16
  };
@@ -17,13 +17,16 @@ export var ActionList = function ActionList(_ref) {
17
17
  return jsx("div", {
18
18
  css: mq({
19
19
  display: 'flex',
20
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
20
21
  marginTop: [gs(2), 0]
21
22
  })
22
23
  }, jsx(ButtonGroup, null, actionsToShow.map(function (action) {
23
24
  return jsx(Action, _extends({
24
25
  key: action.id
25
26
  }, action));
26
- })), actionsToList.length ? jsx("div", {
27
+ })), actionsToList.length ?
28
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
29
+ jsx("div", {
27
30
  css: {
28
31
  marginLeft: gs(0.5)
29
32
  }
@@ -14,6 +14,7 @@ export var Content = function Content(_ref) {
14
14
  isCompact = _ref$isCompact === void 0 ? false : _ref$isCompact;
15
15
  return jsx("div", {
16
16
  css: mq({
17
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
17
18
  padding: isCompact ? gs(1) : gs(2),
18
19
  display: 'flex',
19
20
  flexDirection: 'column',
@@ -13,6 +13,7 @@ export var ContentFooter = function ContentFooter(_ref) {
13
13
  flexGrow: [1, 'unset'],
14
14
  justifyContent: [hasSpaceBetween ? 'space-between' : 'flex-end', 'space-between'],
15
15
  alignItems: ['unset', 'center'],
16
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
16
17
  marginTop: [gs(1), gs(1.5)]
17
18
  }),
18
19
  className: contentFooterClassName
@@ -65,6 +65,7 @@ export var CompactFrame = function CompactFrame(_ref2) {
65
65
  height: inheritDimensions ? '100%' : gs(5),
66
66
  backgroundColor: "var(--ds-background-neutral, ".concat(N20A, ")"),
67
67
  width: ['calc(100% - 16px)', '100%'],
68
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
68
69
  padding: ["0px ".concat(gs(1)), '0']
69
70
  })),
70
71
  "data-testid": testId,
@@ -19,6 +19,7 @@ export var Name = function Name(_ref) {
19
19
  css: {
20
20
  fontSize: "".concat(fontSize(), "px"),
21
21
  fontWeight: 500,
22
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
22
23
  marginLeft: isLeftPadded ? gs(1) : '0',
23
24
  lineHeight: gs(2.5),
24
25
  // Spec: show max two lines.
@@ -27,6 +27,7 @@ export var Provider = function Provider(_ref) {
27
27
  css: {
28
28
  color: "var(--ds-text-subtlest, ".concat(N300, ")"),
29
29
  margin: 0,
30
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
30
31
  marginLeft: gs(0.5),
31
32
  // EDM-713: fixes copy-paste from renderer to editor for Firefox
32
33
  // due to HTML its unwrapping behaviour on paste.
@@ -4,9 +4,9 @@ import DocumentFilledIcon from '@atlaskit/icon/glyph/document-filled';
4
4
  import { N50, N90 } from '@atlaskit/theme/colors';
5
5
  import { fontSize } from '@atlaskit/theme/constants';
6
6
  import { Frame } from '../components/Frame';
7
- import { gs } from '../../common/utils';
8
7
  import { FormattedMessage } from 'react-intl-next';
9
8
  import { messages } from '../../../messages';
9
+ import { gs } from '../../common/utils';
10
10
  /**
11
11
  * Class name for selecting non-flexible resolving block card
12
12
  *
@@ -34,6 +34,7 @@ export var ResolvingView = function ResolvingView(_ref) {
34
34
  css: {
35
35
  fontSize: "".concat(fontSize(), "px"),
36
36
  color: "var(--ds-text-subtlest, ".concat(N90, ")"),
37
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
37
38
  marginLeft: gs(0.5)
38
39
  }
39
40
  }, jsx(FormattedMessage, messages.loading)));
@@ -71,11 +71,12 @@ function visible(_ref7) {
71
71
  export var LinkWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", " &:hover {\n text-decoration: none;\n }\n"])), function (props) {
72
72
  return wrapperStyles(props);
73
73
  });
74
-
75
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
76
74
  export var Wrapper = styled.div(function (props) {
77
75
  return wrapperStyles(props);
78
76
  }, {
77
+ // We are keeping this margin as a hardcoded variable as it is not a standard token size and needs
78
+ // to be thoroughly checked with a designer so that we do not miss an unintended visual change
79
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
79
80
  marginTop: '10px'
80
81
  });
81
82
  export var embedHeaderHeight = 32;
@@ -160,10 +161,8 @@ export var Byline = styled.div({
160
161
  fontWeight: 'normal',
161
162
  lineHeight: 16 / 12
162
163
  }, ellipsis('100%'));
163
-
164
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
165
164
  export var Description = styled.div({
166
- marginTop: '7px',
165
+ marginTop: "calc(".concat("var(--ds-space-100, 8px)", " - 1px)"),
167
166
  color: "var(--ds-text, ".concat(colors.N800, ")"),
168
167
  fontSize: '12px',
169
168
  fontWeight: 'normal',
@@ -27,7 +27,9 @@ export var EmbedCardErroredView = function EmbedCardErroredView(_ref) {
27
27
  }), jsx("span", {
28
28
  css: {
29
29
  fontSize: "".concat(fontSize(), "px"),
30
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
30
31
  marginLeft: gs(0.5),
32
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
31
33
  marginRight: gs(0.5),
32
34
  display: '-webkit-box',
33
35
  overflow: 'hidden',