@atlaskit/smart-card 34.2.1 → 34.3.0

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 (103) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/cjs/common/ui/icons/angle-brackets-icon.js +22 -0
  3. package/dist/cjs/common/ui/icons/audio-icon.js +22 -0
  4. package/dist/cjs/common/ui/icons/chart-bar-icon.js +22 -0
  5. package/dist/cjs/common/ui/icons/file-icon.js +22 -0
  6. package/dist/cjs/common/ui/icons/folder-icon.js +22 -0
  7. package/dist/cjs/common/ui/icons/image-icon.js +22 -0
  8. package/dist/cjs/common/ui/icons/list-bullet-icon.js +22 -0
  9. package/dist/cjs/common/ui/icons/page-icon.js +23 -0
  10. package/dist/cjs/common/ui/icons/video-icon.js +22 -0
  11. package/dist/cjs/utils/analytics/analytics.js +1 -1
  12. package/dist/cjs/utils/index.js +258 -2
  13. package/dist/cjs/view/FlexibleCard/components/actions/action/index.js +8 -13
  14. package/dist/cjs/view/FlexibleCard/components/actions/view-related-links-action/index.js +5 -8
  15. package/dist/cjs/view/FlexibleCard/components/blocks/block/index.compiled.css +34 -0
  16. package/dist/cjs/view/FlexibleCard/components/blocks/block/index.js +33 -18
  17. package/dist/cjs/view/FlexibleCard/components/blocks/block/indexOld.js +56 -0
  18. package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/index.js +12 -8
  19. package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/indexOld.js +37 -0
  20. package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/resolved/index.compiled.css +15 -0
  21. package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +18 -52
  22. package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/resolved/indexOld.js +104 -0
  23. package/dist/cjs/view/FlexibleCard/components/common/image-icon/index.js +4 -9
  24. package/dist/cjs/view/LinkUrl/index.js +1 -1
  25. package/dist/es2019/common/ui/icons/angle-brackets-icon.js +15 -0
  26. package/dist/es2019/common/ui/icons/audio-icon.js +15 -0
  27. package/dist/es2019/common/ui/icons/chart-bar-icon.js +15 -0
  28. package/dist/es2019/common/ui/icons/file-icon.js +15 -0
  29. package/dist/es2019/common/ui/icons/folder-icon.js +15 -0
  30. package/dist/es2019/common/ui/icons/image-icon.js +15 -0
  31. package/dist/es2019/common/ui/icons/list-bullet-icon.js +15 -0
  32. package/dist/es2019/common/ui/icons/page-icon.js +16 -0
  33. package/dist/es2019/common/ui/icons/video-icon.js +15 -0
  34. package/dist/es2019/utils/analytics/analytics.js +1 -1
  35. package/dist/es2019/utils/index.js +56 -2
  36. package/dist/es2019/view/FlexibleCard/components/actions/action/index.js +1 -3
  37. package/dist/es2019/view/FlexibleCard/components/actions/view-related-links-action/index.js +1 -4
  38. package/dist/es2019/view/FlexibleCard/components/blocks/block/index.compiled.css +34 -0
  39. package/dist/es2019/view/FlexibleCard/components/blocks/block/index.js +32 -35
  40. package/dist/es2019/view/FlexibleCard/components/blocks/block/indexOld.js +62 -0
  41. package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/index.js +12 -8
  42. package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/indexOld.js +28 -0
  43. package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/resolved/index.compiled.css +15 -0
  44. package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +14 -62
  45. package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/resolved/indexOld.js +106 -0
  46. package/dist/es2019/view/FlexibleCard/components/common/image-icon/index.js +1 -3
  47. package/dist/es2019/view/LinkUrl/index.js +1 -1
  48. package/dist/esm/common/ui/icons/angle-brackets-icon.js +15 -0
  49. package/dist/esm/common/ui/icons/audio-icon.js +15 -0
  50. package/dist/esm/common/ui/icons/chart-bar-icon.js +15 -0
  51. package/dist/esm/common/ui/icons/file-icon.js +15 -0
  52. package/dist/esm/common/ui/icons/folder-icon.js +15 -0
  53. package/dist/esm/common/ui/icons/image-icon.js +15 -0
  54. package/dist/esm/common/ui/icons/list-bullet-icon.js +15 -0
  55. package/dist/esm/common/ui/icons/page-icon.js +16 -0
  56. package/dist/esm/common/ui/icons/video-icon.js +15 -0
  57. package/dist/esm/utils/analytics/analytics.js +1 -1
  58. package/dist/esm/utils/index.js +158 -2
  59. package/dist/esm/view/FlexibleCard/components/actions/action/index.js +1 -3
  60. package/dist/esm/view/FlexibleCard/components/actions/view-related-links-action/index.js +1 -4
  61. package/dist/esm/view/FlexibleCard/components/blocks/block/index.compiled.css +34 -0
  62. package/dist/esm/view/FlexibleCard/components/blocks/block/index.js +31 -20
  63. package/dist/esm/view/FlexibleCard/components/blocks/block/indexOld.js +50 -0
  64. package/dist/esm/view/FlexibleCard/components/blocks/preview-block/index.js +12 -8
  65. package/dist/esm/view/FlexibleCard/components/blocks/preview-block/indexOld.js +30 -0
  66. package/dist/esm/view/FlexibleCard/components/blocks/preview-block/resolved/index.compiled.css +15 -0
  67. package/dist/esm/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +15 -53
  68. package/dist/esm/view/FlexibleCard/components/blocks/preview-block/resolved/indexOld.js +98 -0
  69. package/dist/esm/view/FlexibleCard/components/common/image-icon/index.js +1 -3
  70. package/dist/esm/view/LinkUrl/index.js +1 -1
  71. package/dist/types/common/ui/icons/angle-brackets-icon.d.ts +7 -0
  72. package/dist/types/common/ui/icons/audio-icon.d.ts +7 -0
  73. package/dist/types/common/ui/icons/chart-bar-icon.d.ts +7 -0
  74. package/dist/types/common/ui/icons/file-icon.d.ts +7 -0
  75. package/dist/types/common/ui/icons/folder-icon.d.ts +7 -0
  76. package/dist/types/common/ui/icons/image-icon.d.ts +7 -0
  77. package/dist/types/common/ui/icons/list-bullet-icon.d.ts +7 -0
  78. package/dist/types/common/ui/icons/page-icon.d.ts +7 -0
  79. package/dist/types/common/ui/icons/video-icon.d.ts +7 -0
  80. package/dist/types/view/FlexibleCard/components/blocks/block/index.d.ts +3 -10
  81. package/dist/types/view/FlexibleCard/components/blocks/block/indexOld.d.ts +11 -0
  82. package/dist/types/view/FlexibleCard/components/blocks/preview-block/index.d.ts +3 -13
  83. package/dist/types/view/FlexibleCard/components/blocks/preview-block/indexOld.d.ts +14 -0
  84. package/dist/types/view/FlexibleCard/components/blocks/preview-block/resolved/index.d.ts +2 -2
  85. package/dist/types/view/FlexibleCard/components/blocks/preview-block/resolved/indexOld.d.ts +10 -0
  86. package/dist/types/view/FlexibleCard/components/blocks/types.d.ts +1 -0
  87. package/dist/types-ts4.5/common/ui/icons/angle-brackets-icon.d.ts +7 -0
  88. package/dist/types-ts4.5/common/ui/icons/audio-icon.d.ts +7 -0
  89. package/dist/types-ts4.5/common/ui/icons/chart-bar-icon.d.ts +7 -0
  90. package/dist/types-ts4.5/common/ui/icons/file-icon.d.ts +7 -0
  91. package/dist/types-ts4.5/common/ui/icons/folder-icon.d.ts +7 -0
  92. package/dist/types-ts4.5/common/ui/icons/image-icon.d.ts +7 -0
  93. package/dist/types-ts4.5/common/ui/icons/list-bullet-icon.d.ts +7 -0
  94. package/dist/types-ts4.5/common/ui/icons/page-icon.d.ts +7 -0
  95. package/dist/types-ts4.5/common/ui/icons/video-icon.d.ts +7 -0
  96. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/block/index.d.ts +3 -10
  97. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/block/indexOld.d.ts +11 -0
  98. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/preview-block/index.d.ts +3 -13
  99. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/preview-block/indexOld.d.ts +14 -0
  100. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/preview-block/resolved/index.d.ts +2 -2
  101. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/preview-block/resolved/indexOld.d.ts +10 -0
  102. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/types.d.ts +1 -0
  103. package/package.json +8 -3
@@ -0,0 +1,34 @@
1
+
2
+ ._zulp1j6v{gap:1rem}
3
+ ._zulp1k92{gap:1.25rem}
4
+ ._zulp1kwk{gap:.5rem}
5
+ ._zulp6mu8{gap:.25rem}._12ji1kw7{outline-color:inherit}
6
+ ._12ji1snc{outline-color:currentColor!important}
7
+ ._12y310yn{outline-width:medium!important}
8
+ ._181uglyw{-webkit-user-select:none}
9
+ ._18m915vq{overflow-y:hidden}
10
+ ._18ql1j28{-webkit-tap-highlight-color:transparent}
11
+ ._1bah1y6m{justify-content:flex-start}
12
+ ._1e0c1txw{display:flex}
13
+ ._1ifmglyw{-webkit-touch-callout:none}
14
+ ._1ljq1j6v [data-separator]+[data-separator]:before{margin-right:1rem}
15
+ ._1ljq1k92 [data-separator]+[data-separator]:before{margin-right:1.25rem}
16
+ ._1ljq1kwk [data-separator]+[data-separator]:before{margin-right:.5rem}
17
+ ._1ljq6mu8 [data-separator]+[data-separator]:before{margin-right:.25rem}
18
+ ._1ouwidpf>*{min-width:0}
19
+ ._1qu2agmp{outline-style:none!important}
20
+ ._1reo15vq{overflow-x:hidden}
21
+ ._1rkwglyw{-moz-user-select:none}
22
+ ._1ul9idpf{min-width:0}
23
+ ._1uzp1mp2 [data-separator]+[data-separator]:before{content:"•"}
24
+ ._2lx21bp4{flex-direction:column}
25
+ ._2lx2vrvc{flex-direction:row}
26
+ ._4cvr1h6o{align-items:center}
27
+ ._4cvr1y6m{align-items:flex-start}
28
+ ._a7e8uxlv [data-smart-element=TargetBranch]+[data-smart-element=SourceBranch]:before{content:"←"}
29
+ ._f6ju1ns9>[data-fit-to-content]{min-width:-moz-fit-content;min-width:fit-content}
30
+ ._fiawglyw:empty{display:none}
31
+ ._syaz1kw7{color:inherit}
32
+ ._te17glyw{-ms-user-select:none}
33
+ ._uiztglyw{-webkit-user-select:none;-ms-user-select:none;user-select:none}
34
+ ._ytq1bjq5 [data-smart-element=SourceBranch]+[data-smart-element=TargetBranch]:before{content:"→"}
@@ -1,25 +1,33 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.35.0 */
1
2
  "use strict";
2
3
 
3
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
4
6
  Object.defineProperty(exports, "__esModule", {
5
7
  value: true
6
8
  });
7
9
  exports.default = void 0;
8
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
- var _react = require("react");
10
- var _react2 = require("@emotion/react");
10
+ require("./index.compiled.css");
11
+ var _react = _interopRequireWildcard(require("react"));
12
+ var React = _react;
13
+ var _runtime = require("@compiled/react/runtime");
14
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
15
  var _constants = require("../../../../../constants");
12
16
  var _utils = require("../utils");
13
- var _templateObject;
14
- /**
15
- * @jsxRuntime classic
16
- * @jsx jsx
17
- */
18
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
19
- var getBlockStyles = function getBlockStyles(direction, size
20
- // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
21
- ) {
22
- return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t", "\n\t", "\n justify-content: flex-start;\n\t[data-separator] + [data-separator]:before {\n\t\tcontent: '\u2022';\n\t\tmargin-right: ", "rem;\n\t}\n\t// Pull request elements: source branch \u2192 target branch\n\t[data-smart-element='", "']\n\t\t+ [data-smart-element='", "']:before {\n\t\tcontent: '\u2192';\n\t}\n\t// Pull request elements: target branch \u2190 source branch\n\t[data-smart-element='", "']\n\t\t+ [data-smart-element='", "']:before {\n\t\tcontent: '\u2190';\n\t}\n"])), (0, _utils.getBaseStyles)(direction, size), _utils.highlightRemoveStyles, (0, _utils.getGapSize)(size), _constants.ElementName.SourceBranch, _constants.ElementName.TargetBranch, _constants.ElementName.TargetBranch, _constants.ElementName.SourceBranch);
17
+ var _indexOld = _interopRequireDefault(require("./indexOld"));
18
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
19
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
20
+ var BaseBlockStyles = null;
21
+ var highlightRemoveStyles = null;
22
+ var gapsStyles = {
23
+ xlarge: "_zulp1k92 _1ljq1k92",
24
+ large: "_zulp1j6v _1ljq1j6v",
25
+ medium: "_zulp1kwk _1ljq1kwk",
26
+ small: "_zulp6mu8 _1ljq6mu8"
27
+ };
28
+ var directionStyles = {
29
+ vertical: "_2lx21bp4 _4cvr1y6m",
30
+ horizontal: "_2lx2vrvc _4cvr1h6o"
23
31
  };
24
32
 
25
33
  /**
@@ -37,20 +45,27 @@ var Block = function Block(_ref) {
37
45
  size = _ref$size === void 0 ? _constants.SmartLinkSize.Medium : _ref$size,
38
46
  _ref$testId = _ref.testId,
39
47
  testId = _ref$testId === void 0 ? 'smart-block' : _ref$testId,
40
- overrideCss = _ref.overrideCss,
48
+ className = _ref.className,
41
49
  blockRef = _ref.blockRef,
42
50
  onRender = _ref.onRender,
43
51
  onTransitionEnd = _ref.onTransitionEnd;
44
52
  (0, _react.useEffect)(function () {
45
53
  onRender && onRender();
46
54
  }, [onRender]);
47
- return (0, _react2.jsx)("div", {
48
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
49
- css: [getBlockStyles(direction, size), overrideCss],
55
+ return /*#__PURE__*/React.createElement("div", {
56
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
57
+ className: (0, _runtime.ax)(["_1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _1ul9idpf _1bah1y6m _fiawglyw _1ouwidpf _f6ju1ns9 _1uzp1mp2 _ytq1bjq5 _a7e8uxlv", "_12ji1snc _1qu2agmp _12y310yn _12ji1kw7 _syaz1kw7 _18ql1j28 _1ifmglyw _181uglyw _1rkwglyw _te17glyw _uiztglyw", directionStyles[direction], gapsStyles[size], className]),
50
58
  "data-smart-block": true,
51
59
  "data-testid": testId,
52
60
  onTransitionEnd: onTransitionEnd,
53
61
  ref: blockRef
54
62
  }, (0, _utils.renderChildren)(children, size));
55
63
  };
56
- var _default = exports.default = Block;
64
+ var Exported = function Exported(props) {
65
+ if ((0, _platformFeatureFlags.fg)('bandicoots-compiled-migration-smartcard')) {
66
+ return /*#__PURE__*/React.createElement(Block, props);
67
+ } else {
68
+ return /*#__PURE__*/React.createElement(_indexOld.default, props);
69
+ }
70
+ };
71
+ var _default = exports.default = Exported;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = void 0;
8
+ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
+ var _react = require("react");
10
+ var _react2 = require("@emotion/react");
11
+ var _constants = require("../../../../../constants");
12
+ var _utils = require("../utils");
13
+ var _templateObject;
14
+ /**
15
+ * @jsxRuntime classic
16
+ * @jsx jsx
17
+ */
18
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
19
+ var getBlockStyles = function getBlockStyles(direction, size
20
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
21
+ ) {
22
+ return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t", "\n\t", "\n justify-content: flex-start;\n\t[data-separator] + [data-separator]:before {\n\t\tcontent: '\u2022';\n\t\tmargin-right: ", "rem;\n\t}\n\t// Pull request elements: source branch \u2192 target branch\n\t[data-smart-element='", "']\n\t\t+ [data-smart-element='", "']:before {\n\t\tcontent: '\u2192';\n\t}\n\t// Pull request elements: target branch \u2190 source branch\n\t[data-smart-element='", "']\n\t\t+ [data-smart-element='", "']:before {\n\t\tcontent: '\u2190';\n\t}\n"])), (0, _utils.getBaseStyles)(direction, size), _utils.highlightRemoveStyles, (0, _utils.getGapSize)(size), _constants.ElementName.SourceBranch, _constants.ElementName.TargetBranch, _constants.ElementName.TargetBranch, _constants.ElementName.SourceBranch);
23
+ };
24
+
25
+ /**
26
+ * A block represents a collection of elements and actions that are arranged
27
+ * in a row. All elements and actions should be contained within a Block.
28
+ * @internal
29
+ * @param {ActionGroupProps} ActionGroupProps
30
+ * @see Action
31
+ */
32
+ var Block = function Block(_ref) {
33
+ var children = _ref.children,
34
+ _ref$direction = _ref.direction,
35
+ direction = _ref$direction === void 0 ? _constants.SmartLinkDirection.Horizontal : _ref$direction,
36
+ _ref$size = _ref.size,
37
+ size = _ref$size === void 0 ? _constants.SmartLinkSize.Medium : _ref$size,
38
+ _ref$testId = _ref.testId,
39
+ testId = _ref$testId === void 0 ? 'smart-block' : _ref$testId,
40
+ overrideCss = _ref.overrideCss,
41
+ blockRef = _ref.blockRef,
42
+ onRender = _ref.onRender,
43
+ onTransitionEnd = _ref.onTransitionEnd;
44
+ (0, _react.useEffect)(function () {
45
+ onRender && onRender();
46
+ }, [onRender]);
47
+ return (0, _react2.jsx)("div", {
48
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
49
+ css: [getBlockStyles(direction, size), overrideCss],
50
+ "data-smart-block": true,
51
+ "data-testid": testId,
52
+ onTransitionEnd: onTransitionEnd,
53
+ ref: blockRef
54
+ }, (0, _utils.renderChildren)(children, size));
55
+ };
56
+ var _default = exports.default = Block;
@@ -7,15 +7,12 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
9
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
- var _react = require("@emotion/react");
10
+ var _react = _interopRequireDefault(require("react"));
11
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
12
  var _constants = require("../../../../../constants");
13
+ var _indexOld = _interopRequireDefault(require("./indexOld"));
12
14
  var _resolved = _interopRequireDefault(require("./resolved"));
13
15
  var _excluded = ["status", "testId", "overrideUrl"];
14
- /**
15
- * @jsxRuntime classic
16
- * @jsx jsx
17
- */
18
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
19
16
  /**
20
17
  * Represents a PreviewBlock, which typically contains media or other large format content.
21
18
  * @public
@@ -29,9 +26,16 @@ var PreviewBlock = function PreviewBlock(_ref) {
29
26
  testId = _ref$testId === void 0 ? 'smart-block-preview' : _ref$testId,
30
27
  overrideUrl = _ref.overrideUrl,
31
28
  blockProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
32
- return (0, _react.jsx)(_resolved.default, (0, _extends2.default)({}, blockProps, {
29
+ return /*#__PURE__*/_react.default.createElement(_resolved.default, (0, _extends2.default)({}, blockProps, {
33
30
  testId: testId,
34
31
  overrideUrl: overrideUrl
35
32
  }));
36
33
  };
37
- var _default = exports.default = PreviewBlock;
34
+ var Exported = function Exported(props) {
35
+ if ((0, _platformFeatureFlags.fg)('bandicoots-compiled-migration-smartcard')) {
36
+ return /*#__PURE__*/_react.default.createElement(PreviewBlock, props);
37
+ } else {
38
+ return /*#__PURE__*/_react.default.createElement(_indexOld.default, props);
39
+ }
40
+ };
41
+ var _default = exports.default = Exported;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = void 0;
8
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
+ var _react = require("@emotion/react");
11
+ var _constants = require("../../../../../constants");
12
+ var _indexOld = _interopRequireDefault(require("./resolved/indexOld"));
13
+ var _excluded = ["status", "testId", "overrideUrl"];
14
+ /**
15
+ * @jsxRuntime classic
16
+ * @jsx jsx
17
+ */
18
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
19
+ /**
20
+ * Represents a PreviewBlock, which typically contains media or other large format content.
21
+ * @public
22
+ * @param {PreviewBlockProps} PreviewBlock
23
+ * @see Block
24
+ */
25
+ var PreviewBlock = function PreviewBlock(_ref) {
26
+ var _ref$status = _ref.status,
27
+ status = _ref$status === void 0 ? _constants.SmartLinkStatus.Fallback : _ref$status,
28
+ _ref$testId = _ref.testId,
29
+ testId = _ref$testId === void 0 ? 'smart-block-preview' : _ref$testId,
30
+ overrideUrl = _ref.overrideUrl,
31
+ blockProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
32
+ return (0, _react.jsx)(_indexOld.default, (0, _extends2.default)({}, blockProps, {
33
+ testId: testId,
34
+ overrideUrl: overrideUrl
35
+ }));
36
+ };
37
+ var _default = exports.default = PreviewBlock;
@@ -0,0 +1,15 @@
1
+ ._10aa1osq [data-smart-element-media=image]{width:100%}
2
+ ._154iidpf{top:0}
3
+ ._18u01ivi{margin-left:calc(var(--container-gap-left)*-1)}
4
+ ._1bsb795p{width:calc(var(--preview-block-width))}
5
+ ._1ltvidpf{left:0}
6
+ ._1t26n7od [data-smart-element-media=image]{aspect-ratio:unset}
7
+ ._1xi2idpf{right:0}
8
+ ._2hwxc10g{margin-right:calc(var(--container-gap-right)*-1)}
9
+ ._94n5idpf{bottom:0}
10
+ ._dmhj1ya9:last-of-type{margin-bottom:calc(var(--container-padding)*-1)}
11
+ ._e0oi1ya9:first-of-type{margin-top:calc(var(--container-padding)*-1)}
12
+ ._kqswstnw{position:absolute}
13
+ ._mr051dfr [data-smart-element-media=image]{object-fit:cover}
14
+ ._rjuj1osq [data-smart-element-media=image]{height:100%}
15
+ ._ze72n7od [data-smart-element-media=image]{padding-top:unset}
@@ -1,26 +1,23 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.35.0 */
1
2
  "use strict";
2
3
 
3
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
4
6
  Object.defineProperty(exports, "__esModule", {
5
7
  value: true
6
8
  });
7
9
  exports.default = void 0;
10
+ require("./index.compiled.css");
11
+ var _react = _interopRequireWildcard(require("react"));
12
+ var React = _react;
13
+ var _runtime = require("@compiled/react/runtime");
8
14
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
10
15
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
12
- var _react = require("react");
13
- var _react2 = require("@emotion/react");
14
- var _constants = require("../../../../../../constants");
15
16
  var _elements = require("../../../elements");
16
17
  var _block = _interopRequireDefault(require("../../block"));
17
- var _excluded = ["ignoreContainerPadding", "onError", "overrideCss", "placement", "testId", "overrideUrl"];
18
- var _templateObject;
19
- /**
20
- * @jsxRuntime classic
21
- * @jsx jsx
22
- */
23
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
18
+ var _excluded = ["ignoreContainerPadding", "onError", "className", "placement", "testId", "overrideUrl"];
19
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
20
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
24
21
  /**
25
22
  * Due to its placement on the left/right and ignoreContainerPadding prop
26
23
  * rely on its parent container styling, css variables are declared in
@@ -36,26 +33,10 @@ var _templateObject;
36
33
  * @param placement
37
34
  * @param ignoreContainerPadding
38
35
  */
39
- var getPreviewBlockStyles = function getPreviewBlockStyles(placement, ignoreContainerPadding) {
40
- if (placement === _constants.MediaPlacement.Left || placement === _constants.MediaPlacement.Right) {
41
- var containerPadding = ignoreContainerPadding ? '0rem' : 'var(--container-padding)';
42
- // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
43
- return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t\t\tposition: absolute;\n\t\t\ttop: ", ";\n\t\t\tbottom: ", ";\n\t\t\twidth: calc(var(--preview-block-width) - ", ");\n\n\t\t\t", "\n\t\t\t", "\n\n [data-smart-element-media='image'] {\n\t\t\t\taspect-ratio: unset;\n\t\t\t\tpadding-top: unset;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tobject-fit: cover;\n\t\t\t}\n\t\t"])), containerPadding, containerPadding, containerPadding, placement === _constants.MediaPlacement.Left ? "left: ".concat(containerPadding, ";") : '', placement === _constants.MediaPlacement.Right ? "right: ".concat(containerPadding, ";") : '');
44
- }
45
- if (ignoreContainerPadding) {
46
- return (0, _react2.css)({
47
- marginLeft: 'calc(var(--container-gap-left) * -1)',
48
- marginRight: 'calc(var(--container-gap-right) * -1)',
49
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
50
- '&:first-of-type': {
51
- marginTop: 'calc(var(--container-padding) * -1)'
52
- },
53
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
54
- '&:last-of-type': {
55
- marginBottom: 'calc(var(--container-padding) * -1)'
56
- }
57
- });
58
- }
36
+ var previewBlockStyles = {
37
+ left: "_kqswstnw _154iidpf _94n5idpf _1bsb795p _1ltvidpf _1t26n7od _ze72n7od _10aa1osq _rjuj1osq _mr051dfr",
38
+ right: "_kqswstnw _154iidpf _94n5idpf _1bsb795p _1xi2idpf _1t26n7od _ze72n7od _10aa1osq _rjuj1osq _mr051dfr",
39
+ ignoreContainerPadding: "_18u01ivi _2hwxc10g _e0oi1ya9 _dmhj1ya9"
59
40
  };
60
41
 
61
42
  /**
@@ -68,36 +49,21 @@ var PreviewBlockResolvedView = function PreviewBlockResolvedView(_ref) {
68
49
  var _ref$ignoreContainerP = _ref.ignoreContainerPadding,
69
50
  ignoreContainerPadding = _ref$ignoreContainerP === void 0 ? false : _ref$ignoreContainerP,
70
51
  onError = _ref.onError,
71
- overrideCss = _ref.overrideCss,
52
+ className = _ref.className,
72
53
  placement = _ref.placement,
73
54
  testId = _ref.testId,
74
55
  overrideUrl = _ref.overrideUrl,
75
56
  blockProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
76
- var _useState = (0, _react.useState)(overrideCss),
77
- _useState2 = (0, _slicedToArray2.default)(_useState, 2),
78
- styles = _useState2[0],
79
- setStyles = _useState2[1];
80
- var updateStyles = (0, _react.useCallback)(function () {
81
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
82
- setStyles((0, _react2.css)(getPreviewBlockStyles(placement, ignoreContainerPadding), overrideCss));
83
- }, [ignoreContainerPadding, overrideCss, placement]);
84
- (0, _react.useEffect)(function () {
85
- updateStyles();
86
- }, [ignoreContainerPadding, overrideCss, placement, updateStyles]);
87
- var handleOnLoad = (0, _react.useCallback)(function () {
88
- updateStyles();
89
- }, [updateStyles]);
90
57
  var handleOnError = (0, _react.useCallback)(function () {
91
58
  if (onError) {
92
59
  onError();
93
60
  }
94
61
  }, [onError]);
95
- return (0, _react2.jsx)(_block.default, (0, _extends2.default)({}, blockProps, {
96
- overrideCss: styles,
97
- testId: "".concat(testId, "-resolved-view")
98
- }), (0, _react2.jsx)(_elements.Preview, {
62
+ return /*#__PURE__*/React.createElement(_block.default, (0, _extends2.default)({}, blockProps, {
63
+ testId: "".concat(testId, "-resolved-view"),
64
+ className: (0, _runtime.ax)([placement && previewBlockStyles[placement], !placement && ignoreContainerPadding && previewBlockStyles.ignoreContainerPadding])
65
+ }), /*#__PURE__*/React.createElement(_elements.Preview, {
99
66
  onError: handleOnError,
100
- onLoad: handleOnLoad,
101
67
  overrideUrl: overrideUrl
102
68
  }));
103
69
  };
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = void 0;
8
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
10
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
+ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
12
+ var _react = require("react");
13
+ var _react2 = require("@emotion/react");
14
+ var _constants = require("../../../../../../constants");
15
+ var _elements = require("../../../elements");
16
+ var _block = _interopRequireDefault(require("../../block"));
17
+ var _excluded = ["ignoreContainerPadding", "onError", "overrideCss", "placement", "testId", "overrideUrl"];
18
+ var _templateObject;
19
+ /**
20
+ * @jsxRuntime classic
21
+ * @jsx jsx
22
+ */
23
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
24
+ /**
25
+ * Due to its placement on the left/right and ignoreContainerPadding prop
26
+ * rely on its parent container styling, css variables are declared in
27
+ * <Container /> to preset the base values for the preview block styling.
28
+ *
29
+ * `--container-padding` is the padding of the Container. This value is based
30
+ * on size and hidePadding.
31
+ * `--container-gap-left` and `--container-gap-right` are the gap or padding of
32
+ * the Container depending on whether the container has other preview blocks
33
+ * with left/right positioning.
34
+ * `--preview-block-width` is the size of the preview image in relation to
35
+ * the Container width when the placement is left/right.
36
+ * @param placement
37
+ * @param ignoreContainerPadding
38
+ */
39
+ var getPreviewBlockStyles = function getPreviewBlockStyles(placement, ignoreContainerPadding) {
40
+ if (placement === _constants.MediaPlacement.Left || placement === _constants.MediaPlacement.Right) {
41
+ var containerPadding = ignoreContainerPadding ? '0rem' : 'var(--container-padding)';
42
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
43
+ return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t\t\tposition: absolute;\n\t\t\ttop: ", ";\n\t\t\tbottom: ", ";\n\t\t\twidth: calc(var(--preview-block-width) - ", ");\n\n\t\t\t", "\n\t\t\t", "\n\n [data-smart-element-media='image'] {\n\t\t\t\taspect-ratio: unset;\n\t\t\t\tpadding-top: unset;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tobject-fit: cover;\n\t\t\t}\n\t\t"])), containerPadding, containerPadding, containerPadding, placement === _constants.MediaPlacement.Left ? "left: ".concat(containerPadding, ";") : '', placement === _constants.MediaPlacement.Right ? "right: ".concat(containerPadding, ";") : '');
44
+ }
45
+ if (ignoreContainerPadding) {
46
+ return (0, _react2.css)({
47
+ marginLeft: 'calc(var(--container-gap-left) * -1)',
48
+ marginRight: 'calc(var(--container-gap-right) * -1)',
49
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
50
+ '&:first-of-type': {
51
+ marginTop: 'calc(var(--container-padding) * -1)'
52
+ },
53
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
54
+ '&:last-of-type': {
55
+ marginBottom: 'calc(var(--container-padding) * -1)'
56
+ }
57
+ });
58
+ }
59
+ };
60
+
61
+ /**
62
+ * Represents a resolved PreviewBlock, which typically contains media or other large format content.
63
+ * @public
64
+ * @param {PreviewBlock} PreviewBlock
65
+ * @see Block
66
+ */
67
+ var PreviewBlockResolvedView = function PreviewBlockResolvedView(_ref) {
68
+ var _ref$ignoreContainerP = _ref.ignoreContainerPadding,
69
+ ignoreContainerPadding = _ref$ignoreContainerP === void 0 ? false : _ref$ignoreContainerP,
70
+ onError = _ref.onError,
71
+ overrideCss = _ref.overrideCss,
72
+ placement = _ref.placement,
73
+ testId = _ref.testId,
74
+ overrideUrl = _ref.overrideUrl,
75
+ blockProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
76
+ var _useState = (0, _react.useState)(overrideCss),
77
+ _useState2 = (0, _slicedToArray2.default)(_useState, 2),
78
+ styles = _useState2[0],
79
+ setStyles = _useState2[1];
80
+ var updateStyles = (0, _react.useCallback)(function () {
81
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
82
+ setStyles((0, _react2.css)(getPreviewBlockStyles(placement, ignoreContainerPadding), overrideCss));
83
+ }, [ignoreContainerPadding, overrideCss, placement]);
84
+ (0, _react.useEffect)(function () {
85
+ updateStyles();
86
+ }, [ignoreContainerPadding, overrideCss, placement, updateStyles]);
87
+ var handleOnLoad = (0, _react.useCallback)(function () {
88
+ updateStyles();
89
+ }, [updateStyles]);
90
+ var handleOnError = (0, _react.useCallback)(function () {
91
+ if (onError) {
92
+ onError();
93
+ }
94
+ }, [onError]);
95
+ return (0, _react2.jsx)(_block.default, (0, _extends2.default)({}, blockProps, {
96
+ overrideCss: styles,
97
+ testId: "".concat(testId, "-resolved-view")
98
+ }), (0, _react2.jsx)(_elements.Preview, {
99
+ onError: handleOnError,
100
+ onLoad: handleOnLoad,
101
+ overrideUrl: overrideUrl
102
+ }));
103
+ };
104
+ var _default = exports.default = PreviewBlockResolvedView;
@@ -1,32 +1,27 @@
1
- /* index.tsx generated by @compiled/babel-plugin v0.35.0 */
2
1
  "use strict";
3
2
 
4
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
- var _typeof = require("@babel/runtime/helpers/typeof");
6
4
  Object.defineProperty(exports, "__esModule", {
7
5
  value: true
8
6
  });
9
7
  exports.default = void 0;
10
- var React = _interopRequireWildcard(require("react"));
11
- var _runtime = require("@compiled/react/runtime");
8
+ var _react = _interopRequireDefault(require("react"));
12
9
  var _reactRenderImage = _interopRequireDefault(require("react-render-image"));
13
10
  var _loadingSkeleton = _interopRequireDefault(require("../loading-skeleton"));
14
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
15
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
16
11
  var ImageIcon = function ImageIcon(_ref) {
17
12
  var defaultIcon = _ref.defaultIcon,
18
13
  testId = _ref.testId,
19
14
  url = _ref.url,
20
15
  onError = _ref.onError,
21
16
  onLoad = _ref.onLoad;
22
- return /*#__PURE__*/React.createElement(_reactRenderImage.default, {
17
+ return /*#__PURE__*/_react.default.createElement(_reactRenderImage.default, {
23
18
  src: url,
24
- loading: /*#__PURE__*/React.createElement(_loadingSkeleton.default, {
19
+ loading: /*#__PURE__*/_react.default.createElement(_loadingSkeleton.default, {
25
20
  testId: "".concat(testId, "-loading")
26
21
  })
27
22
  // eslint-disable-next-line jsx-a11y/alt-text
28
23
  ,
29
- loaded: /*#__PURE__*/React.createElement("img", {
24
+ loaded: /*#__PURE__*/_react.default.createElement("img", {
30
25
  src: url,
31
26
  "data-testid": "".concat(testId, "-image")
32
27
  }),
@@ -20,7 +20,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
20
20
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
21
21
  var PACKAGE_DATA = {
22
22
  packageName: "@atlaskit/smart-card",
23
- packageVersion: "34.2.1",
23
+ packageVersion: "34.3.0",
24
24
  componentName: 'linkUrl'
25
25
  };
26
26
  var Anchor = (0, _click.withLinkClickedEvent)('a');
@@ -0,0 +1,15 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import React from 'react';
3
+ import { IconTile } from '@atlaskit/icon';
4
+ import LegacyIcon from '@atlaskit/icon-file-type/glyph/source-code/16';
5
+ import AngleBracketsIcon from '@atlaskit/icon/core/angle-brackets';
6
+ const AngleBracketsIconWithColor = props => {
7
+ return /*#__PURE__*/React.createElement(IconTile, _extends({}, props, {
8
+ appearance: "blueBold",
9
+ icon: AngleBracketsIcon,
10
+ size: "16",
11
+ LEGACY_fallbackComponent: /*#__PURE__*/React.createElement(LegacyIcon, props)
12
+ }));
13
+ };
14
+ AngleBracketsIconWithColor.displayName = 'AngleBracketsIconWithColor';
15
+ export default AngleBracketsIconWithColor;
@@ -0,0 +1,15 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import React from 'react';
3
+ import { IconTile } from '@atlaskit/icon';
4
+ import LegacyIcon from '@atlaskit/icon-file-type/glyph/audio/16';
5
+ import AudioIcon from '@atlaskit/icon/core/audio';
6
+ const AudioIconWithColor = props => {
7
+ return /*#__PURE__*/React.createElement(IconTile, _extends({}, props, {
8
+ appearance: "redBold",
9
+ icon: AudioIcon,
10
+ size: "16",
11
+ LEGACY_fallbackComponent: /*#__PURE__*/React.createElement(LegacyIcon, props)
12
+ }));
13
+ };
14
+ AudioIconWithColor.displayName = 'AudioIconWithColor';
15
+ export default AudioIconWithColor;
@@ -0,0 +1,15 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import React from 'react';
3
+ import { IconTile } from '@atlaskit/icon';
4
+ import LegacyIcon from '@atlaskit/icon-file-type/glyph/presentation/16';
5
+ import ChartBarIcon from '@atlaskit/icon/core/chart-bar';
6
+ const ChartBarIconWithColor = props => {
7
+ return /*#__PURE__*/React.createElement(IconTile, _extends({}, props, {
8
+ appearance: "purpleBold",
9
+ icon: ChartBarIcon,
10
+ size: "16",
11
+ LEGACY_fallbackComponent: /*#__PURE__*/React.createElement(LegacyIcon, props)
12
+ }));
13
+ };
14
+ ChartBarIconWithColor.displayName = 'ChartBarIconWithColor';
15
+ export default ChartBarIconWithColor;
@@ -0,0 +1,15 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import React from 'react';
3
+ import { IconTile } from '@atlaskit/icon';
4
+ import LegacyIcon from '@atlaskit/icon-file-type/glyph/generic/16';
5
+ import FileIcon from '@atlaskit/icon/core/file';
6
+ const FileIconWithColor = props => {
7
+ return /*#__PURE__*/React.createElement(IconTile, _extends({}, props, {
8
+ appearance: "grayBold",
9
+ icon: FileIcon,
10
+ size: "16",
11
+ LEGACY_fallbackComponent: /*#__PURE__*/React.createElement(LegacyIcon, props)
12
+ }));
13
+ };
14
+ FileIconWithColor.displayName = 'FileIconWithColor';
15
+ export default FileIconWithColor;
@@ -0,0 +1,15 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import React from 'react';
3
+ import { IconTile } from '@atlaskit/icon';
4
+ import LegacyIcon from '@atlaskit/icon-file-type/glyph/folder/16';
5
+ import FolderClosedIcon from '@atlaskit/icon/core/folder-closed';
6
+ const FolderClosedIconWithColor = props => {
7
+ return /*#__PURE__*/React.createElement(IconTile, _extends({}, props, {
8
+ appearance: "blueBold",
9
+ icon: FolderClosedIcon,
10
+ size: "16",
11
+ LEGACY_fallbackComponent: /*#__PURE__*/React.createElement(LegacyIcon, props)
12
+ }));
13
+ };
14
+ FolderClosedIconWithColor.displayName = 'FolderClosedIconWithColor';
15
+ export default FolderClosedIconWithColor;
@@ -0,0 +1,15 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import React from 'react';
3
+ import { IconTile } from '@atlaskit/icon';
4
+ import LegacyIcon from '@atlaskit/icon-file-type/glyph/image/16';
5
+ import ImageIcon from '@atlaskit/icon/core/image';
6
+ const ImageIconWithColor = props => {
7
+ return /*#__PURE__*/React.createElement(IconTile, _extends({}, props, {
8
+ appearance: "yellowBold",
9
+ icon: ImageIcon,
10
+ size: "16",
11
+ LEGACY_fallbackComponent: /*#__PURE__*/React.createElement(LegacyIcon, props)
12
+ }));
13
+ };
14
+ ImageIconWithColor.displayName = 'ImageIconWithColor';
15
+ export default ImageIconWithColor;