@atlaskit/smart-card 18.0.15 → 18.0.16

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 (83) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/cjs/extractors/common/context/extractProvider.js +14 -4
  3. package/dist/cjs/extractors/common/detail/extractCommentCount.js +3 -1
  4. package/dist/cjs/extractors/common/detail/extractProgrammingLanguage.js +3 -1
  5. package/dist/cjs/extractors/common/detail/extractSubscriberCount.js +3 -1
  6. package/dist/cjs/extractors/common/primitives/extractTitleTextColor.js +3 -1
  7. package/dist/cjs/version.json +1 -1
  8. package/dist/cjs/view/BlockCard/components/Frame.js +10 -7
  9. package/dist/cjs/view/BlockCard/components/Link.js +3 -1
  10. package/dist/cjs/view/BlockCard/components/Provider.js +3 -1
  11. package/dist/cjs/view/BlockCard/views/ErroredView.js +3 -1
  12. package/dist/cjs/view/BlockCard/views/ForbiddenView.js +3 -1
  13. package/dist/cjs/view/BlockCard/views/NotFoundView.js +3 -1
  14. package/dist/cjs/view/BlockCard/views/ResolvingView.js +4 -2
  15. package/dist/cjs/view/EmbedCard/components/styled.js +15 -13
  16. package/dist/cjs/view/EmbedCard/views/ErroredView.js +3 -1
  17. package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +8 -2
  18. package/dist/cjs/view/FlexibleCard/components/common/image-icon/index.js +3 -1
  19. package/dist/cjs/view/FlexibleCard/components/elements/link/index.js +1 -0
  20. package/dist/cjs/view/InlineCard/ErroredView/index.js +3 -1
  21. package/dist/cjs/view/InlineCard/ForbiddenView/index.js +4 -2
  22. package/dist/cjs/view/InlineCard/Frame/styled.js +16 -13
  23. package/dist/cjs/view/InlineCard/Icon.js +3 -1
  24. package/dist/cjs/view/InlineCard/UnauthorisedView/index.js +4 -2
  25. package/dist/cjs/view/InlineCard/styled.js +6 -4
  26. package/dist/cjs/view/common/Byline.js +3 -1
  27. package/dist/cjs/view/common/Metadata.js +3 -1
  28. package/dist/cjs/view/common/ModalHeader.js +4 -2
  29. package/dist/es2019/extractors/common/context/extractProvider.js +13 -4
  30. package/dist/es2019/extractors/common/detail/extractCommentCount.js +2 -1
  31. package/dist/es2019/extractors/common/detail/extractProgrammingLanguage.js +2 -1
  32. package/dist/es2019/extractors/common/detail/extractSubscriberCount.js +2 -1
  33. package/dist/es2019/extractors/common/primitives/extractTitleTextColor.js +2 -1
  34. package/dist/es2019/version.json +1 -1
  35. package/dist/es2019/view/BlockCard/components/Frame.js +9 -7
  36. package/dist/es2019/view/BlockCard/components/Link.js +2 -1
  37. package/dist/es2019/view/BlockCard/components/Provider.js +2 -1
  38. package/dist/es2019/view/BlockCard/views/ErroredView.js +2 -1
  39. package/dist/es2019/view/BlockCard/views/ForbiddenView.js +2 -1
  40. package/dist/es2019/view/BlockCard/views/NotFoundView.js +2 -1
  41. package/dist/es2019/view/BlockCard/views/ResolvingView.js +3 -2
  42. package/dist/es2019/view/EmbedCard/components/styled.js +15 -15
  43. package/dist/es2019/view/EmbedCard/views/ErroredView.js +2 -1
  44. package/dist/es2019/view/FlexibleCard/components/common/atlaskit-icon/index.js +8 -3
  45. package/dist/es2019/view/FlexibleCard/components/common/image-icon/index.js +7 -6
  46. package/dist/es2019/view/FlexibleCard/components/elements/link/index.js +1 -0
  47. package/dist/es2019/view/InlineCard/ErroredView/index.js +2 -1
  48. package/dist/es2019/view/InlineCard/ForbiddenView/index.js +3 -2
  49. package/dist/es2019/view/InlineCard/Frame/styled.js +15 -12
  50. package/dist/es2019/view/InlineCard/Icon.js +7 -6
  51. package/dist/es2019/view/InlineCard/UnauthorisedView/index.js +3 -2
  52. package/dist/es2019/view/InlineCard/styled.js +5 -4
  53. package/dist/es2019/view/common/Byline.js +2 -1
  54. package/dist/es2019/view/common/Metadata.js +2 -1
  55. package/dist/es2019/view/common/ModalHeader.js +3 -2
  56. package/dist/esm/extractors/common/context/extractProvider.js +13 -4
  57. package/dist/esm/extractors/common/detail/extractCommentCount.js +2 -1
  58. package/dist/esm/extractors/common/detail/extractProgrammingLanguage.js +2 -1
  59. package/dist/esm/extractors/common/detail/extractSubscriberCount.js +2 -1
  60. package/dist/esm/extractors/common/primitives/extractTitleTextColor.js +2 -1
  61. package/dist/esm/version.json +1 -1
  62. package/dist/esm/view/BlockCard/components/Frame.js +9 -7
  63. package/dist/esm/view/BlockCard/components/Link.js +2 -1
  64. package/dist/esm/view/BlockCard/components/Provider.js +2 -1
  65. package/dist/esm/view/BlockCard/views/ErroredView.js +2 -1
  66. package/dist/esm/view/BlockCard/views/ForbiddenView.js +2 -1
  67. package/dist/esm/view/BlockCard/views/NotFoundView.js +2 -1
  68. package/dist/esm/view/BlockCard/views/ResolvingView.js +3 -2
  69. package/dist/esm/view/EmbedCard/components/styled.js +14 -13
  70. package/dist/esm/view/EmbedCard/views/ErroredView.js +2 -1
  71. package/dist/esm/view/FlexibleCard/components/common/atlaskit-icon/index.js +8 -3
  72. package/dist/esm/view/FlexibleCard/components/common/image-icon/index.js +2 -1
  73. package/dist/esm/view/FlexibleCard/components/elements/link/index.js +1 -0
  74. package/dist/esm/view/InlineCard/ErroredView/index.js +2 -1
  75. package/dist/esm/view/InlineCard/ForbiddenView/index.js +3 -2
  76. package/dist/esm/view/InlineCard/Frame/styled.js +16 -13
  77. package/dist/esm/view/InlineCard/Icon.js +2 -1
  78. package/dist/esm/view/InlineCard/UnauthorisedView/index.js +3 -2
  79. package/dist/esm/view/InlineCard/styled.js +5 -4
  80. package/dist/esm/view/common/Byline.js +2 -1
  81. package/dist/esm/view/common/Metadata.js +2 -1
  82. package/dist/esm/view/common/ModalHeader.js +3 -2
  83. package/package.json +7 -2
@@ -6,7 +6,8 @@ import React from 'react';
6
6
  import Loadable from 'react-loadable';
7
7
  import { B200, B400, N700, R400 } from '@atlaskit/theme/colors';
8
8
  import { IconType } from '../../../../../constants';
9
- // prettier-ignore
9
+ import { token } from '@atlaskit/tokens'; // prettier-ignore
10
+
10
11
  var importIconMapper = (_importIconMapper = {}, _defineProperty(_importIconMapper, IconType.Archive, function () {
11
12
  return import(
12
13
  /* webpackChunkName: "glyphArchive" */
@@ -295,10 +296,14 @@ var AtlaskitIcon = function AtlaskitIcon(_ref3) {
295
296
  return /*#__PURE__*/React.createElement(ImportedIcon, {
296
297
  "data-testid": testId // Confluence and Jira imports don't have native testId prop
297
298
  ,
298
- textColor: N700,
299
+ textColor: token('color.text.subtle', N700)
300
+ /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
301
+ ,
299
302
  iconColor: B200,
300
303
  iconGradientStart: B400,
301
304
  iconGradientStop: B200
305
+ /* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
306
+
302
307
  });
303
308
 
304
309
  case IconType.Error:
@@ -306,7 +311,7 @@ var AtlaskitIcon = function AtlaskitIcon(_ref3) {
306
311
  return /*#__PURE__*/React.createElement(ImportedIcon, {
307
312
  label: label,
308
313
  testId: testId,
309
- primaryColor: R400
314
+ primaryColor: token('color.icon.danger', R400)
310
315
  });
311
316
 
312
317
  default:
@@ -6,8 +6,9 @@ var _templateObject, _templateObject2;
6
6
  import React from 'react';
7
7
  import { css, jsx, keyframes } from '@emotion/core';
8
8
  import ImageLoader from 'react-render-image';
9
+ import { token } from '@atlaskit/tokens';
9
10
  var placeholderShimmer = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% { background-position: -20px 0; }\n 100% { background-position: 20px 0; }\n"])));
10
- var shimmer = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n border-radius: 2px;\n user-select: none;\n\n background: #f6f7f8;\n background-image: linear-gradient(\n to right,\n #f6f7f8 0%,\n #edeef1 20%,\n #f6f7f8 40%,\n #f6f7f8 100%\n );\n background-repeat: no-repeat;\n background-size: 280% 100%;\n display: inline-block;\n\n animation-duration: 1s;\n animation-fill-mode: forwards;\n animation-iteration-count: infinite;\n animation-name: ", ";\n animation-timing-function: linear;\n"])), placeholderShimmer);
11
+ var shimmer = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n border-radius: 2px;\n user-select: none;\n background: ", ";\n // TODO: https://product-fabric.atlassian.net/browse/DSP-4236\n background-image: linear-gradient(\n to right,\n ", " 0%,\n ", " 20%,\n ", " 40%,\n ", "100%\n );\n background-repeat: no-repeat;\n background-size: 280% 100%;\n display: inline-block;\n\n animation-duration: 1s;\n animation-fill-mode: forwards;\n animation-iteration-count: infinite;\n animation-name: ", ";\n animation-timing-function: linear;\n"])), token('color.skeleton.subtle', '#f6f7f8'), token('color.skeleton.subtle', '#f6f7f8'), token('color.skeleton', '#edeef1'), token('color.skeleton.subtle', '#f6f7f8'), token('color.skeleton.subtle', '#f6f7f8'), placeholderShimmer);
11
12
 
12
13
  var ImageIcon = function ImageIcon(_ref) {
13
14
  var defaultIcon = _ref.defaultIcon,
@@ -16,6 +16,7 @@ var containerStyles = css(_templateObject || (_templateObject = _taggedTemplateL
16
16
 
17
17
  var getThemeStyles = function getThemeStyles(theme) {
18
18
  switch (theme) {
19
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
19
20
  case SmartLinkTheme.Black:
20
21
  return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n color: ", ";\n :active {\n color: ", ";\n }\n :hover {\n color: ", ";\n text-decoration: underline;\n }\n "])), tokens.blackLink, tokens.blackLinkPressed, tokens.blackLink);
21
22
 
@@ -12,6 +12,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
12
12
 
13
13
  import React from 'react';
14
14
  import { R300 } from '@atlaskit/theme/colors';
15
+ import { token } from '@atlaskit/tokens';
15
16
  import ErrorIcon from '@atlaskit/icon/glyph/error';
16
17
  import Button from '@atlaskit/button/custom-theme-button';
17
18
  import { Frame } from '../Frame';
@@ -85,7 +86,7 @@ export var InlineCardErroredView = /*#__PURE__*/function (_React$Component) {
85
86
  icon: icon || /*#__PURE__*/React.createElement(AKIconWrapper, null, /*#__PURE__*/React.createElement(ErrorIcon, {
86
87
  label: "error",
87
88
  size: "small",
88
- primaryColor: R300
89
+ primaryColor: token('color.icon.danger', R300)
89
90
  })),
90
91
  title: this.renderMessage()
91
92
  }));
@@ -13,6 +13,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
13
13
 
14
14
  import React from 'react';
15
15
  import { R400, N500 } from '@atlaskit/theme/colors';
16
+ import { token } from '@atlaskit/tokens';
16
17
  import LockIcon from '@atlaskit/icon/glyph/lock-filled';
17
18
  import Button from '@atlaskit/button/custom-theme-button';
18
19
  import { Frame } from '../Frame';
@@ -24,7 +25,7 @@ import { IconStyledButton, LowercaseAppearance, LinkAppearance } from '../styled
24
25
  var FallbackForbiddenIcon = /*#__PURE__*/React.createElement(AKIconWrapper, null, /*#__PURE__*/React.createElement(LockIcon, {
25
26
  label: "error",
26
27
  size: "small",
27
- primaryColor: R400
28
+ primaryColor: token('color.icon.danger', R400)
28
29
  }));
29
30
  export var InlineCardForbiddenView = /*#__PURE__*/function (_React$Component) {
30
31
  _inherits(InlineCardForbiddenView, _React$Component);
@@ -113,7 +114,7 @@ export var InlineCardForbiddenView = /*#__PURE__*/function (_React$Component) {
113
114
  }, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
114
115
  icon: icon ? icon : FallbackForbiddenIcon,
115
116
  title: this.renderMessage(),
116
- titleColor: N500
117
+ titleColor: token('color.text.subtle', N500)
117
118
  }));
118
119
  }
119
120
  }]);
@@ -3,24 +3,24 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
3
3
  var _templateObject;
4
4
 
5
5
  import styled from '@emotion/styled';
6
- import { B100, B400, B50, N20 } from '@atlaskit/theme/colors';
6
+ import { B100, B400, B50, DN40A, DN50A, N20, N40A, N50A } from '@atlaskit/theme/colors';
7
7
  import { borderRadius as akBorderRadius } from '@atlaskit/theme/constants';
8
- import { e100 } from '@atlaskit/theme/elevation';
9
8
  import { themed } from '@atlaskit/theme/components';
9
+ import { token } from '@atlaskit/tokens';
10
10
  import { TitleWrapperClassName } from '../IconAndTitleLayout/styled';
11
11
  var BACKGROUND_COLOR_DARK = '#262B31';
12
- var selected = "\n cursor: pointer;\n box-shadow: 0 0 0 2px ".concat(B100, ";\n outline: none;\n user-select: none;\n &, :hover, :focus, :active {\n text-decoration: none;\n }\n");
12
+ var selected = "\n cursor: pointer;\n box-shadow: 0 0 0 2px ".concat(token('color.border.selected', B100), ";\n outline: none;\n user-select: none;\n &, :hover, :focus, :active {\n text-decoration: none;\n }\n");
13
13
 
14
14
  var isInteractive = function isInteractive(_ref) {
15
15
  var isInteractive = _ref.isInteractive;
16
16
 
17
17
  if (isInteractive) {
18
18
  return "\n cursor: pointer;\n :hover {\n background-color: ".concat(themed({
19
- light: N20,
20
- dark: BACKGROUND_COLOR_DARK
19
+ light: token('color.background.neutral.subtle.hovered', N20),
20
+ dark: token('color.background.neutral.subtle.hovered', BACKGROUND_COLOR_DARK)
21
21
  }), ";\n text-decoration: none;\n }\n :active {\n background-color: ").concat(themed({
22
- light: B50,
23
- dark: BACKGROUND_COLOR_DARK
22
+ light: token('color.background.selected', B50),
23
+ dark: token('color.background.selected', BACKGROUND_COLOR_DARK)
24
24
  }), ";\n text-decoration: none;\n }\n :focus {\n ").concat(selected, "\n text-decoration: none;\n }\n ");
25
25
  } else {
26
26
  return '';
@@ -55,18 +55,21 @@ var withoutHover = function withoutHover(_ref3) {
55
55
  // NB: `box-decoration-break` required for retaining properties (border-radius) on wrap.
56
56
 
57
57
 
58
- export var Wrapper = styled.a(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n line-height: 16px;\n padding: 1px 0.24em 2px 0.24em;\n ", "\n display: inline;\n box-decoration-break: clone;\n border-radius: ", "px;\n color: ", ";\n background-color: ", ";\n ", ";\n ", "\n ", ";\n ", "\n transition: 0.1s all ease-in-out;\n -moz-user-select: none;\n\n &:hover span.", " {\n text-decoration: ", ";\n }\n"])), function (props) {
58
+ export var Wrapper = styled.a(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n line-height: 16px;\n padding: 1px 0.24em 2px 0.24em;\n ", "\n display: inline;\n box-decoration-break: clone;\n border-radius: ", "px;\n color: ", ";\n background-color: ", ";\n ", "\n ", "\n ", ";\n ", "\n transition: 0.1s all ease-in-out;\n -moz-user-select: none;\n\n &:hover span.", " {\n text-decoration: ", ";\n }\n"])), function (props) {
59
59
  return props.withoutBackground ? "padding-left: 0; margin-left:-2px;" : '';
60
60
  }, akBorderRadius(), themed({
61
- light: B400,
62
- dark: '#4794FF'
61
+ light: token('color.link', B400),
62
+ dark: token('color.link', '#4794FF')
63
63
  }), function (props) {
64
64
  return props.withoutBackground ? '' : themed({
65
- light: 'white',
66
- dark: BACKGROUND_COLOR_DARK
65
+ light: token('elevation.surface.raised', 'white'),
66
+ dark: token('elevation.surface.raised', 'BACKGROUND_COLOR_DARK')
67
67
  });
68
68
  }, function (props) {
69
- return props.withoutBackground ? '' : e100();
69
+ return props.withoutBackground ? '' : themed({
70
+ light: "box-shadow: ".concat(token('elevation.shadow.raised', "0 1px 1px ".concat(N50A, ", 0 0 1px 1px ").concat(N40A)), ";"),
71
+ dark: "box-shadow: ".concat(token('elevation.shadow.raised', "0 1px 1px ".concat(DN50A, ", 0 0 1px 1px ").concat(DN40A)), ";")
72
+ });
70
73
  }, function (props) {
71
74
  return isInteractive(props);
72
75
  }, function (props) {
@@ -4,6 +4,7 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
4
4
 
5
5
  import styled from '@emotion/styled';
6
6
  import { keyframes } from '@emotion/core';
7
+ import { token } from '@atlaskit/tokens';
7
8
  var placeholderShimmer = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% {\n background-position: -20px 0;\n }\n\n 100% {\n background-position: 20px 0;\n }\n"]))); // TODO: Figure out a more scalable/responsive solution
8
9
  // for vertical alignment.
9
10
  // Current rationale: vertically positioned at the top of
@@ -15,4 +16,4 @@ export var Icon = styled.img(_templateObject2 || (_templateObject2 = _taggedTemp
15
16
  // TODO: Replace this override with proper AtlasKit solution.
16
17
 
17
18
  export var AKIconWrapper = styled.span(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-right: -2px;\n"])));
18
- export var Shimmer = styled.span(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n height: 14px;\n width: 14px;\n margin-right: 4px;\n border-radius: 2px;\n user-select: none;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n\n background: #f6f7f8;\n background-image: linear-gradient(\n to right,\n #f6f7f8 0%,\n #edeef1 20%,\n #f6f7f8 40%,\n #f6f7f8 100%\n );\n background-repeat: no-repeat;\n background-size: 40px 14px;\n display: inline-block;\n\n animation-duration: 1s;\n animation-fill-mode: forwards;\n animation-iteration-count: infinite;\n animation-name: ", ";\n animation-timing-function: linear;\n"])), placeholderShimmer);
19
+ export var Shimmer = styled.span(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n height: 14px;\n width: 14px;\n margin-right: 4px;\n border-radius: 2px;\n user-select: none;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background: ", ";\n // TODO: https://product-fabric.atlassian.net/browse/DSP-4236\n background-image: linear-gradient(\n to right,\n ", " 0%,\n ", " 20%,\n ", " 40%,\n ", "100%\n );\n background-repeat: no-repeat;\n background-size: 40px 14px;\n display: inline-block;\n\n animation-duration: 1s;\n animation-fill-mode: forwards;\n animation-iteration-count: infinite;\n animation-name: ", ";\n animation-timing-function: linear;\n"])), token('color.skeleton.subtle', '#f6f7f8'), token('color.skeleton.subtle', '#f6f7f8'), token('color.skeleton', '#edeef1'), token('color.skeleton.subtle', '#f6f7f8'), token('color.skeleton.subtle', '#f6f7f8'), placeholderShimmer);
@@ -13,6 +13,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
13
13
  import Button from '@atlaskit/button/custom-theme-button';
14
14
  import LockIcon from '@atlaskit/icon/glyph/lock-filled';
15
15
  import { N500, R400 } from '@atlaskit/theme/colors';
16
+ import { token } from '@atlaskit/tokens';
16
17
  import React from 'react';
17
18
  import { FormattedMessage } from 'react-intl-next';
18
19
  import { messages } from '@atlaskit/media-ui/messages';
@@ -23,7 +24,7 @@ import { IconStyledButton, LinkAppearance } from '../styled';
23
24
  var FallbackUnauthorizedIcon = /*#__PURE__*/React.createElement(AKIconWrapper, null, /*#__PURE__*/React.createElement(LockIcon, {
24
25
  label: "error",
25
26
  size: "small",
26
- primaryColor: R400
27
+ primaryColor: token('color.icon.danger', R400)
27
28
  }));
28
29
  export var InlineCardUnauthorizedView = /*#__PURE__*/function (_React$Component) {
29
30
  _inherits(InlineCardUnauthorizedView, _React$Component);
@@ -83,7 +84,7 @@ export var InlineCardUnauthorizedView = /*#__PURE__*/function (_React$Component)
83
84
  }, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
84
85
  icon: icon ? icon : FallbackUnauthorizedIcon,
85
86
  title: this.renderMessage(),
86
- titleColor: N500
87
+ titleColor: token('color.text.subtle', N500)
87
88
  }));
88
89
  }
89
90
  }]);
@@ -5,16 +5,17 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
5
5
  import styled from '@emotion/styled';
6
6
  import { B400, N200 } from '@atlaskit/theme/colors';
7
7
  import { themed } from '@atlaskit/theme/components';
8
+ import { token } from '@atlaskit/tokens';
8
9
  var LINK_COLOR_DARK = '#4794FF'; // By default buttons will hide overflow and ellipsis content instead of wrapping.
9
10
  // This basically turns the button back into inline content
10
11
 
11
12
  export var IconStyledButton = styled.span(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n text-align: initial !important;\n display: inline !important;\n\n &:hover {\n /* Remove the text-decoration to match other inline card hover states */\n text-decoration: none !important;\n }\n\n > span {\n display: inline;\n > span {\n overflow: initial;\n text-overflow: initial;\n white-space: initial;\n }\n }\n"])));
12
13
  export var NoLinkAppearance = styled.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n color: ", ";\n"])), themed({
13
- light: N200,
14
- dark: LINK_COLOR_DARK
14
+ light: token('color.text.subtlest', N200),
15
+ dark: token('color.text.subtlest', LINK_COLOR_DARK)
15
16
  }));
16
17
  export var LowercaseAppearance = styled.span(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n text-transform: lowercase;\n"])));
17
18
  export var LinkAppearance = styled.span(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n color: ", ";\n"])), themed({
18
- light: B400,
19
- dark: LINK_COLOR_DARK
19
+ light: token('color.link', B400),
20
+ dark: token('color.link', LINK_COLOR_DARK)
20
21
  }));
@@ -1,6 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import { jsx } from '@emotion/core';
3
3
  import { N300 } from '@atlaskit/theme/colors';
4
+ import { token } from '@atlaskit/tokens';
4
5
  import { gs, mq } from './utils';
5
6
  export var Byline = function Byline(_ref) {
6
7
  var text = _ref.text,
@@ -11,7 +12,7 @@ export var Byline = function Byline(_ref) {
11
12
  css: mq({
12
13
  fontSize: gs(1.5),
13
14
  lineHeight: gs(2.5),
14
- color: "".concat(N300),
15
+ color: "".concat(token('color.text.subtlest', N300)),
15
16
  fontWeight: 'normal',
16
17
  marginTop: gs(0.5),
17
18
  // Spec: only allow two lines MAX to be shown.
@@ -3,6 +3,7 @@ import { jsx } from '@emotion/core';
3
3
  import Tooltip from '@atlaskit/tooltip';
4
4
  import { gs } from './utils';
5
5
  import { N300 } from '@atlaskit/theme/colors';
6
+ import { token } from '@atlaskit/tokens';
6
7
  export var Metadata = function Metadata(_ref) {
7
8
  var text = _ref.text,
8
9
  icon = _ref.icon,
@@ -29,7 +30,7 @@ export var Metadata = function Metadata(_ref) {
29
30
  }, metadataIcon, jsx("span", {
30
31
  css: {
31
32
  fontSize: gs(1.5),
32
- color: "".concat(N300),
33
+ color: "".concat(token('color.text.subtlest', N300)),
33
34
  marginRight: gs(0.5),
34
35
  marginLeft: '2px'
35
36
  }
@@ -6,6 +6,7 @@ import EditorCloseIcon from '@atlaskit/icon/glyph/editor/close';
6
6
  import ShortcutIcon from '@atlaskit/icon/glyph/shortcut';
7
7
  import Button from '@atlaskit/button/custom-theme-button';
8
8
  import { N100, N30A } from '@atlaskit/theme/colors';
9
+ import { token } from '@atlaskit/tokens';
9
10
  import { FormattedMessage } from 'react-intl-next';
10
11
  import { gs } from './utils';
11
12
  import { Icon } from './Icon';
@@ -42,7 +43,7 @@ export var Header = function Header(_ref) {
42
43
  display: 'flex',
43
44
  justifyContent: 'space-between',
44
45
  alignItems: 'baseline',
45
- borderBottom: "1px solid ".concat(N30A)
46
+ borderBottom: "1px solid ".concat(token('color.border', N30A))
46
47
  }
47
48
  }, jsx("div", {
48
49
  css: {
@@ -59,7 +60,7 @@ export var Header = function Header(_ref) {
59
60
  }
60
61
  }, jsx("h3", null, title), jsx("div", {
61
62
  css: {
62
- color: N100
63
+ color: token('color.text.subtlest', N100)
63
64
  }
64
65
  }, metadata.items.length && jsx(MetadataList, {
65
66
  items: metadata.items
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "18.0.15",
3
+ "version": "18.0.16",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -125,5 +125,10 @@
125
125
  "./hooks": "./src/hooks.ts",
126
126
  ".": "./src/index.ts"
127
127
  },
128
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
128
+ "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",
129
+ "techstack": {
130
+ "@repo/internal": {
131
+ "theming": "tokens"
132
+ }
133
+ }
129
134
  }