@atlaskit/smart-card 36.13.2 → 36.14.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.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/common/ui/icons/angle-brackets-icon.js +2 -1
- package/dist/cjs/common/ui/icons/audio-icon.js +2 -1
- package/dist/cjs/common/ui/icons/chart-bar-icon.js +2 -1
- package/dist/cjs/common/ui/icons/file-icon.js +2 -1
- package/dist/cjs/common/ui/icons/folder-icon.js +2 -1
- package/dist/cjs/common/ui/icons/image-icon.js +2 -1
- package/dist/cjs/common/ui/icons/list-bullet-icon.js +2 -1
- package/dist/cjs/common/ui/icons/page-icon.js +2 -1
- package/dist/cjs/common/ui/icons/utils.js +3 -1
- package/dist/cjs/common/ui/icons/video-icon.js +2 -1
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolving/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +35 -315
- package/dist/cjs/view/FlexibleCard/components/elements/icon/index.compiled.css +3 -64
- package/dist/cjs/view/FlexibleCard/components/elements/icon/index.js +13 -26
- package/dist/cjs/view/FlexibleCard/components/utils.js +2 -25
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/common/ui/icons/angle-brackets-icon.js +3 -2
- package/dist/es2019/common/ui/icons/audio-icon.js +3 -2
- package/dist/es2019/common/ui/icons/chart-bar-icon.js +3 -2
- package/dist/es2019/common/ui/icons/file-icon.js +3 -2
- package/dist/es2019/common/ui/icons/folder-icon.js +3 -2
- package/dist/es2019/common/ui/icons/image-icon.js +3 -2
- package/dist/es2019/common/ui/icons/list-bullet-icon.js +3 -2
- package/dist/es2019/common/ui/icons/page-icon.js +3 -2
- package/dist/es2019/common/ui/icons/utils.js +3 -1
- package/dist/es2019/common/ui/icons/video-icon.js +3 -2
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolving/index.js +2 -2
- package/dist/es2019/view/FlexibleCard/components/common/atlaskit-icon/index.js +35 -131
- package/dist/es2019/view/FlexibleCard/components/elements/icon/index.compiled.css +3 -64
- package/dist/es2019/view/FlexibleCard/components/elements/icon/index.js +15 -28
- package/dist/es2019/view/FlexibleCard/components/utils.js +1 -24
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/common/ui/icons/angle-brackets-icon.js +3 -2
- package/dist/esm/common/ui/icons/audio-icon.js +3 -2
- package/dist/esm/common/ui/icons/chart-bar-icon.js +3 -2
- package/dist/esm/common/ui/icons/file-icon.js +3 -2
- package/dist/esm/common/ui/icons/folder-icon.js +3 -2
- package/dist/esm/common/ui/icons/image-icon.js +3 -2
- package/dist/esm/common/ui/icons/list-bullet-icon.js +3 -2
- package/dist/esm/common/ui/icons/page-icon.js +3 -2
- package/dist/esm/common/ui/icons/utils.js +3 -1
- package/dist/esm/common/ui/icons/video-icon.js +3 -2
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolving/index.js +2 -2
- package/dist/esm/view/FlexibleCard/components/common/atlaskit-icon/index.js +37 -192
- package/dist/esm/view/FlexibleCard/components/elements/icon/index.compiled.css +3 -64
- package/dist/esm/view/FlexibleCard/components/elements/icon/index.js +13 -26
- package/dist/esm/view/FlexibleCard/components/utils.js +1 -24
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/common/ui/icons/utils.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/utils.d.ts +0 -2
- package/dist/types-ts4.5/common/ui/icons/utils.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/utils.d.ts +0 -2
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 36.14.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#149950](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/149950)
|
|
8
|
+
[`09f007196931b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/09f007196931b) -
|
|
9
|
+
[ux] Cleaning up SL icon migration feature flag for size changes
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 36.13.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -6,8 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _ = _interopRequireDefault(require("@atlaskit/icon-file-type/glyph/source-code/16"));
|
|
9
|
+
var _2 = _interopRequireDefault(require("@atlaskit/icon-file-type/glyph/source-code/24"));
|
|
9
10
|
var _angleBrackets = _interopRequireDefault(require("@atlaskit/icon/core/angle-brackets"));
|
|
10
11
|
var _utils = require("./utils");
|
|
11
|
-
var AngleBracketsIconWithColor = (0, _utils.renderIconTile)(_angleBrackets.default, 'blueBold', _.default);
|
|
12
|
+
var AngleBracketsIconWithColor = (0, _utils.renderIconTile)(_angleBrackets.default, 'blueBold', (0, _utils.renderIconPerSize)(_.default, _2.default));
|
|
12
13
|
AngleBracketsIconWithColor.displayName = 'AngleBracketsIconWithColor';
|
|
13
14
|
var _default = exports.default = AngleBracketsIconWithColor;
|
|
@@ -6,8 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _ = _interopRequireDefault(require("@atlaskit/icon-file-type/glyph/audio/16"));
|
|
9
|
+
var _2 = _interopRequireDefault(require("@atlaskit/icon-file-type/glyph/audio/24"));
|
|
9
10
|
var _audio = _interopRequireDefault(require("@atlaskit/icon/core/audio"));
|
|
10
11
|
var _utils = require("./utils");
|
|
11
|
-
var AudioIconWithColor = (0, _utils.renderIconTile)(_audio.default, 'redBold', _.default);
|
|
12
|
+
var AudioIconWithColor = (0, _utils.renderIconTile)(_audio.default, 'redBold', (0, _utils.renderIconPerSize)(_.default, _2.default));
|
|
12
13
|
AudioIconWithColor.displayName = 'AudioIconWithColor';
|
|
13
14
|
var _default = exports.default = AudioIconWithColor;
|
|
@@ -6,8 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _ = _interopRequireDefault(require("@atlaskit/icon-file-type/glyph/presentation/16"));
|
|
9
|
+
var _2 = _interopRequireDefault(require("@atlaskit/icon-file-type/glyph/presentation/24"));
|
|
9
10
|
var _chartBar = _interopRequireDefault(require("@atlaskit/icon/core/chart-bar"));
|
|
10
11
|
var _utils = require("./utils");
|
|
11
|
-
var ChartBarIconWithColor = (0, _utils.renderIconTile)(_chartBar.default, 'purpleBold', _.default);
|
|
12
|
+
var ChartBarIconWithColor = (0, _utils.renderIconTile)(_chartBar.default, 'purpleBold', (0, _utils.renderIconPerSize)(_.default, _2.default));
|
|
12
13
|
ChartBarIconWithColor.displayName = 'ChartBarIconWithColor';
|
|
13
14
|
var _default = exports.default = ChartBarIconWithColor;
|
|
@@ -6,8 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _ = _interopRequireDefault(require("@atlaskit/icon-file-type/glyph/generic/16"));
|
|
9
|
+
var _2 = _interopRequireDefault(require("@atlaskit/icon-file-type/glyph/generic/24"));
|
|
9
10
|
var _file = _interopRequireDefault(require("@atlaskit/icon/core/file"));
|
|
10
11
|
var _utils = require("./utils");
|
|
11
|
-
var FileIconWithColor = (0, _utils.renderIconTile)(_file.default, 'grayBold', _.default);
|
|
12
|
+
var FileIconWithColor = (0, _utils.renderIconTile)(_file.default, 'grayBold', (0, _utils.renderIconPerSize)(_.default, _2.default));
|
|
12
13
|
FileIconWithColor.displayName = 'FileIconWithColor';
|
|
13
14
|
var _default = exports.default = FileIconWithColor;
|
|
@@ -6,8 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _ = _interopRequireDefault(require("@atlaskit/icon-file-type/glyph/folder/16"));
|
|
9
|
+
var _2 = _interopRequireDefault(require("@atlaskit/icon-file-type/glyph/folder/24"));
|
|
9
10
|
var _folderClosed = _interopRequireDefault(require("@atlaskit/icon/core/folder-closed"));
|
|
10
11
|
var _utils = require("./utils");
|
|
11
|
-
var FolderClosedIconWithColor = (0, _utils.renderIconTile)(_folderClosed.default, 'blueBold', _.default);
|
|
12
|
+
var FolderClosedIconWithColor = (0, _utils.renderIconTile)(_folderClosed.default, 'blueBold', (0, _utils.renderIconPerSize)(_.default, _2.default));
|
|
12
13
|
FolderClosedIconWithColor.displayName = 'FolderClosedIconWithColor';
|
|
13
14
|
var _default = exports.default = FolderClosedIconWithColor;
|
|
@@ -6,8 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _ = _interopRequireDefault(require("@atlaskit/icon-file-type/glyph/image/16"));
|
|
9
|
+
var _2 = _interopRequireDefault(require("@atlaskit/icon-file-type/glyph/image/24"));
|
|
9
10
|
var _image = _interopRequireDefault(require("@atlaskit/icon/core/image"));
|
|
10
11
|
var _utils = require("./utils");
|
|
11
|
-
var ImageIconWithColor = (0, _utils.renderIconTile)(_image.default, 'yellowBold', _.default);
|
|
12
|
+
var ImageIconWithColor = (0, _utils.renderIconTile)(_image.default, 'yellowBold', (0, _utils.renderIconPerSize)(_.default, _2.default));
|
|
12
13
|
ImageIconWithColor.displayName = 'ImageIconWithColor';
|
|
13
14
|
var _default = exports.default = ImageIconWithColor;
|
|
@@ -6,8 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _ = _interopRequireDefault(require("@atlaskit/icon-file-type/glyph/spreadsheet/16"));
|
|
9
|
+
var _2 = _interopRequireDefault(require("@atlaskit/icon-file-type/glyph/spreadsheet/24"));
|
|
9
10
|
var _listBulleted = _interopRequireDefault(require("@atlaskit/icon/core/list-bulleted"));
|
|
10
11
|
var _utils = require("./utils");
|
|
11
|
-
var ListBulletedIconWithColor = (0, _utils.renderIconTile)(_listBulleted.default, 'greenBold', _.default);
|
|
12
|
+
var ListBulletedIconWithColor = (0, _utils.renderIconTile)(_listBulleted.default, 'greenBold', (0, _utils.renderIconPerSize)(_.default, _2.default));
|
|
12
13
|
ListBulletedIconWithColor.displayName = 'ListBulletedIconWithColor';
|
|
13
14
|
var _default = exports.default = ListBulletedIconWithColor;
|
|
@@ -6,8 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _ = _interopRequireDefault(require("@atlaskit/icon-file-type/glyph/document/16"));
|
|
9
|
+
var _2 = _interopRequireDefault(require("@atlaskit/icon-file-type/glyph/document/24"));
|
|
9
10
|
var _page = _interopRequireDefault(require("@atlaskit/icon/core/page"));
|
|
10
11
|
var _utils = require("./utils");
|
|
11
|
-
var PageIconWithColor = (0, _utils.renderIconTile)(_page.default, 'blueBold', _.default);
|
|
12
|
+
var PageIconWithColor = (0, _utils.renderIconTile)(_page.default, 'blueBold', (0, _utils.renderIconPerSize)(_.default, _2.default));
|
|
12
13
|
PageIconWithColor.displayName = 'PageIconWithColor';
|
|
13
14
|
var _default = exports.default = PageIconWithColor;
|
|
@@ -41,7 +41,9 @@ var renderIconTile = exports.renderIconTile = function renderIconTile(Icon, appe
|
|
|
41
41
|
icon: Icon,
|
|
42
42
|
size: transformSmartLinkSizeToIconTileSize(size)
|
|
43
43
|
}, props, {
|
|
44
|
-
LEGACY_fallbackComponent: LegacyIcon && /*#__PURE__*/_react.default.createElement(LegacyIcon, props
|
|
44
|
+
LEGACY_fallbackComponent: LegacyIcon && /*#__PURE__*/_react.default.createElement(LegacyIcon, (0, _extends2.default)({}, props, {
|
|
45
|
+
size: size
|
|
46
|
+
}))
|
|
45
47
|
}));
|
|
46
48
|
};
|
|
47
49
|
};
|
|
@@ -6,8 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _ = _interopRequireDefault(require("@atlaskit/icon-file-type/glyph/video/16"));
|
|
9
|
+
var _2 = _interopRequireDefault(require("@atlaskit/icon-file-type/glyph/video/24"));
|
|
9
10
|
var _video = _interopRequireDefault(require("@atlaskit/icon/core/video"));
|
|
10
11
|
var _utils = require("./utils");
|
|
11
|
-
var VideoIconWithColor = (0, _utils.renderIconTile)(_video.default, 'redBold', _.default);
|
|
12
|
+
var VideoIconWithColor = (0, _utils.renderIconTile)(_video.default, 'redBold', (0, _utils.renderIconPerSize)(_.default, _2.default));
|
|
12
13
|
VideoIconWithColor.displayName = 'VideoIconWithColor';
|
|
13
14
|
var _default = exports.default = VideoIconWithColor;
|
|
@@ -11,7 +11,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
11
11
|
var context = exports.context = {
|
|
12
12
|
componentName: 'smart-cards',
|
|
13
13
|
packageName: "@atlaskit/smart-card",
|
|
14
|
-
packageVersion: "36.
|
|
14
|
+
packageVersion: "36.14.0"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -28,7 +28,7 @@ var TitleBlockResolvingView = function TitleBlockResolvingView(_ref) {
|
|
|
28
28
|
blockProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
29
29
|
var _blockProps$size = blockProps.size,
|
|
30
30
|
size = _blockProps$size === void 0 ? _constants.SmartLinkSize.Medium : _blockProps$size;
|
|
31
|
-
var iconWidth = (0, _utils.
|
|
31
|
+
var iconWidth = (0, _utils.getIconWidth)(size);
|
|
32
32
|
return /*#__PURE__*/_react.default.createElement(_block.default, (0, _extends2.default)({}, blockProps, {
|
|
33
33
|
testId: "".concat(testId, "-resolving-view")
|
|
34
34
|
}), !hideIcon && /*#__PURE__*/_react.default.createElement("span", {
|
|
@@ -5,289 +5,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
9
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
8
|
var _react = _interopRequireDefault(require("react"));
|
|
12
9
|
var _reactLoadable = _interopRequireDefault(require("react-loadable"));
|
|
13
|
-
var _ = _interopRequireDefault(require("@atlaskit/icon-file-type/glyph/document/16"));
|
|
14
|
-
var _2 = _interopRequireDefault(require("@atlaskit/icon-object/glyph/blog/16"));
|
|
15
10
|
var _logo = require("@atlaskit/logo");
|
|
16
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
17
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
18
11
|
var _blogIcon = _interopRequireDefault(require("../../../../../common/ui/icons/blog-icon"));
|
|
19
12
|
var _liveDocumentIcon = _interopRequireDefault(require("../../../../../common/ui/icons/live-document-icon"));
|
|
20
13
|
var _pageIcon = _interopRequireDefault(require("../../../../../common/ui/icons/page-icon"));
|
|
21
14
|
var _constants = require("../../../../../constants");
|
|
22
15
|
var _utils = require("../../../../../utils");
|
|
23
|
-
var _importIconMapperOld;
|
|
24
|
-
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); }
|
|
25
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != (0, _typeof2.default)(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; }
|
|
26
|
-
// prettier-ignore
|
|
27
|
-
var importIconMapperOld = (_importIconMapperOld = {}, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_importIconMapperOld, _constants.IconType.Archive, function () {
|
|
28
|
-
return Promise.resolve().then(function () {
|
|
29
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphArchive" */'@atlaskit/icon-file-type/glyph/archive/16'));
|
|
30
|
-
});
|
|
31
|
-
}), _constants.IconType.Audio, function () {
|
|
32
|
-
return Promise.resolve().then(function () {
|
|
33
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphAudio" */'@atlaskit/icon-file-type/glyph/audio/16'));
|
|
34
|
-
});
|
|
35
|
-
}), _constants.IconType.Code, function () {
|
|
36
|
-
return Promise.resolve().then(function () {
|
|
37
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphCode" */'@atlaskit/icon-file-type/glyph/source-code/16'));
|
|
38
|
-
});
|
|
39
|
-
}), _constants.IconType.Executable, function () {
|
|
40
|
-
return Promise.resolve().then(function () {
|
|
41
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphExecutable" */'@atlaskit/icon-file-type/glyph/executable/16'));
|
|
42
|
-
});
|
|
43
|
-
}), _constants.IconType.File, function () {
|
|
44
|
-
return Promise.resolve().then(function () {
|
|
45
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphFile" */'@atlaskit/icon-file-type/glyph/generic/16'));
|
|
46
|
-
});
|
|
47
|
-
}), _constants.IconType.Folder, function () {
|
|
48
|
-
return Promise.resolve().then(function () {
|
|
49
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphFolder" */'@atlaskit/icon-file-type/glyph/folder/16'));
|
|
50
|
-
});
|
|
51
|
-
}), _constants.IconType.Generic, function () {
|
|
52
|
-
return Promise.resolve().then(function () {
|
|
53
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphGeneric" */'@atlaskit/icon-file-type/glyph/generic/16'));
|
|
54
|
-
});
|
|
55
|
-
}), _constants.IconType.GIF, function () {
|
|
56
|
-
return Promise.resolve().then(function () {
|
|
57
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphGIF" */'@atlaskit/icon-file-type/glyph/gif/16'));
|
|
58
|
-
});
|
|
59
|
-
}), _constants.IconType.GoogleDocs, function () {
|
|
60
|
-
return Promise.resolve().then(function () {
|
|
61
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphGoogleDocs" */'@atlaskit/icon-file-type/glyph/google-doc/16'));
|
|
62
|
-
});
|
|
63
|
-
}), _constants.IconType.GoogleForms, function () {
|
|
64
|
-
return Promise.resolve().then(function () {
|
|
65
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphGoogleForms" */'@atlaskit/icon-file-type/glyph/google-form/16'));
|
|
66
|
-
});
|
|
67
|
-
}), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_importIconMapperOld, _constants.IconType.GoogleSheets, function () {
|
|
68
|
-
return Promise.resolve().then(function () {
|
|
69
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphGoogleSheets" */'@atlaskit/icon-file-type/glyph/google-sheet/16'));
|
|
70
|
-
});
|
|
71
|
-
}), _constants.IconType.GoogleSlides, function () {
|
|
72
|
-
return Promise.resolve().then(function () {
|
|
73
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphGoogleSlides" */'@atlaskit/icon-file-type/glyph/google-slide/16'));
|
|
74
|
-
});
|
|
75
|
-
}), _constants.IconType.Image, function () {
|
|
76
|
-
return Promise.resolve().then(function () {
|
|
77
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphImage" */'@atlaskit/icon-file-type/glyph/image/16'));
|
|
78
|
-
});
|
|
79
|
-
}), _constants.IconType.MSExcel, function () {
|
|
80
|
-
return Promise.resolve().then(function () {
|
|
81
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphMSExcel" */'@atlaskit/icon-file-type/glyph/excel-spreadsheet/16'));
|
|
82
|
-
});
|
|
83
|
-
}), _constants.IconType.MSPowerpoint, function () {
|
|
84
|
-
return Promise.resolve().then(function () {
|
|
85
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphMSPowerpoint" */'@atlaskit/icon-file-type/glyph/powerpoint-presentation/16'));
|
|
86
|
-
});
|
|
87
|
-
}), _constants.IconType.MSWord, function () {
|
|
88
|
-
return Promise.resolve().then(function () {
|
|
89
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphMSWord" */'@atlaskit/icon-file-type/glyph/word-document/16'));
|
|
90
|
-
});
|
|
91
|
-
}), _constants.IconType.PDF, function () {
|
|
92
|
-
return Promise.resolve().then(function () {
|
|
93
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphPDF" */'@atlaskit/icon-file-type/glyph/pdf-document/16'));
|
|
94
|
-
});
|
|
95
|
-
}), _constants.IconType.Presentation, function () {
|
|
96
|
-
return Promise.resolve().then(function () {
|
|
97
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphPresentation" */'@atlaskit/icon-file-type/glyph/presentation/16'));
|
|
98
|
-
});
|
|
99
|
-
}), _constants.IconType.Sketch, function () {
|
|
100
|
-
return Promise.resolve().then(function () {
|
|
101
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphSketch" */'@atlaskit/icon-file-type/glyph/sketch/16'));
|
|
102
|
-
});
|
|
103
|
-
}), _constants.IconType.Spreadsheet, function () {
|
|
104
|
-
return Promise.resolve().then(function () {
|
|
105
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphSpreadsheet" */'@atlaskit/icon-file-type/glyph/spreadsheet/16'));
|
|
106
|
-
});
|
|
107
|
-
}), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_importIconMapperOld, _constants.IconType.Template, function () {
|
|
108
|
-
return Promise.resolve().then(function () {
|
|
109
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphTemplate" */'@atlaskit/icon/glyph/document-filled'));
|
|
110
|
-
});
|
|
111
|
-
}), _constants.IconType.Video, function () {
|
|
112
|
-
return Promise.resolve().then(function () {
|
|
113
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphVideo" */'@atlaskit/icon-file-type/glyph/video/16'));
|
|
114
|
-
});
|
|
115
|
-
}), _constants.IconType.Branch, function () {
|
|
116
|
-
return Promise.resolve().then(function () {
|
|
117
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphBranch" */'@atlaskit/icon-object/glyph/branch/16'));
|
|
118
|
-
});
|
|
119
|
-
}), _constants.IconType.Commit, function () {
|
|
120
|
-
return Promise.resolve().then(function () {
|
|
121
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphCommit" */'@atlaskit/icon-object/glyph/commit/16'));
|
|
122
|
-
});
|
|
123
|
-
}), _constants.IconType.Project, function () {
|
|
124
|
-
return Promise.resolve().then(function () {
|
|
125
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphProject" */'@atlaskit/icon/glyph/people-group'));
|
|
126
|
-
});
|
|
127
|
-
}), _constants.IconType.PullRequest, function () {
|
|
128
|
-
return Promise.resolve().then(function () {
|
|
129
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphPullRequest" */'@atlaskit/icon-object/glyph/pull-request/16'));
|
|
130
|
-
});
|
|
131
|
-
}), _constants.IconType.Repo, function () {
|
|
132
|
-
return Promise.resolve().then(function () {
|
|
133
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphRepo" */'@atlaskit/icon-object/glyph/code/16'));
|
|
134
|
-
});
|
|
135
|
-
}), _constants.IconType.Bug, function () {
|
|
136
|
-
return Promise.resolve().then(function () {
|
|
137
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphBug" */'@atlaskit/icon-object/glyph/bug/16'));
|
|
138
|
-
});
|
|
139
|
-
}), _constants.IconType.Change, function () {
|
|
140
|
-
return Promise.resolve().then(function () {
|
|
141
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphChange" */'@atlaskit/icon-object/glyph/changes/16'));
|
|
142
|
-
});
|
|
143
|
-
}), _constants.IconType.Epic, function () {
|
|
144
|
-
return Promise.resolve().then(function () {
|
|
145
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphEpic" */'@atlaskit/icon-object/glyph/epic/16'));
|
|
146
|
-
});
|
|
147
|
-
}), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_importIconMapperOld, _constants.IconType.Incident, function () {
|
|
148
|
-
return Promise.resolve().then(function () {
|
|
149
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphIncident" */'@atlaskit/icon-object/glyph/incident/16'));
|
|
150
|
-
});
|
|
151
|
-
}), _constants.IconType.Problem, function () {
|
|
152
|
-
return Promise.resolve().then(function () {
|
|
153
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphProblem" */'@atlaskit/icon-object/glyph/problem/16'));
|
|
154
|
-
});
|
|
155
|
-
}), _constants.IconType.ServiceRequest, function () {
|
|
156
|
-
return Promise.resolve().then(function () {
|
|
157
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphServiceRequest" */'@atlaskit/icon-object/glyph/issue/16'));
|
|
158
|
-
});
|
|
159
|
-
}), _constants.IconType.Story, function () {
|
|
160
|
-
return Promise.resolve().then(function () {
|
|
161
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphStory" */'@atlaskit/icon-object/glyph/story/16'));
|
|
162
|
-
});
|
|
163
|
-
}), _constants.IconType.SubTask, function () {
|
|
164
|
-
return Promise.resolve().then(function () {
|
|
165
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphSubTask" */'@atlaskit/icon-object/glyph/subtask/16'));
|
|
166
|
-
});
|
|
167
|
-
}), _constants.IconType.Task, function () {
|
|
168
|
-
return Promise.resolve().then(function () {
|
|
169
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphTask" */'@atlaskit/icon-object/glyph/task/16'));
|
|
170
|
-
});
|
|
171
|
-
}), _constants.IconType.Confluence, function () {
|
|
172
|
-
return Promise.resolve().then(function () {
|
|
173
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphConfluence" */'@atlaskit/logo/confluence-icon'));
|
|
174
|
-
}).then(function (_ref) {
|
|
175
|
-
var ConfluenceIcon = _ref.ConfluenceIcon;
|
|
176
|
-
return {
|
|
177
|
-
default: ConfluenceIcon
|
|
178
|
-
};
|
|
179
|
-
});
|
|
180
|
-
}), _constants.IconType.Jira, function () {
|
|
181
|
-
return Promise.resolve().then(function () {
|
|
182
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphJira" */'@atlaskit/logo/jira-icon'));
|
|
183
|
-
}).then(function (_ref2) {
|
|
184
|
-
var JiraIcon = _ref2.JiraIcon;
|
|
185
|
-
return {
|
|
186
|
-
default: JiraIcon
|
|
187
|
-
};
|
|
188
|
-
});
|
|
189
|
-
}), _constants.IconType.Default, function () {
|
|
190
|
-
return Promise.resolve().then(function () {
|
|
191
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphDefault" */'@atlaskit/icon/glyph/link'));
|
|
192
|
-
});
|
|
193
|
-
}), _constants.IconType.Error, function () {
|
|
194
|
-
return Promise.resolve().then(function () {
|
|
195
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphError" */'@atlaskit/icon/glyph/error'));
|
|
196
|
-
});
|
|
197
|
-
}), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_importIconMapperOld, _constants.IconType.Forbidden, function () {
|
|
198
|
-
return Promise.resolve().then(function () {
|
|
199
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphForbidden" */'@atlaskit/icon/glyph/lock-filled'));
|
|
200
|
-
});
|
|
201
|
-
}), _constants.IconType.Attachment, function () {
|
|
202
|
-
return Promise.resolve().then(function () {
|
|
203
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphAttachment" */'@atlaskit/icon/glyph/attachment'));
|
|
204
|
-
});
|
|
205
|
-
}), _constants.IconType.CheckItem, function () {
|
|
206
|
-
return Promise.resolve().then(function () {
|
|
207
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphAttachment" */'@atlaskit/icon/glyph/task'));
|
|
208
|
-
});
|
|
209
|
-
}), _constants.IconType.Comment, function () {
|
|
210
|
-
return Promise.resolve().then(function () {
|
|
211
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphComment" */'@atlaskit/icon/glyph/comment'));
|
|
212
|
-
});
|
|
213
|
-
}), _constants.IconType.View, function () {
|
|
214
|
-
return Promise.resolve().then(function () {
|
|
215
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphComment" */'@atlaskit/icon/glyph/watch'));
|
|
216
|
-
});
|
|
217
|
-
}), _constants.IconType.React, function () {
|
|
218
|
-
return Promise.resolve().then(function () {
|
|
219
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphComment" */'@atlaskit/icon/glyph/like'));
|
|
220
|
-
});
|
|
221
|
-
}), _constants.IconType.Vote, function () {
|
|
222
|
-
return Promise.resolve().then(function () {
|
|
223
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphComment" */'@atlaskit/icon/glyph/arrow-up'));
|
|
224
|
-
});
|
|
225
|
-
}), _constants.IconType.PriorityBlocker, function () {
|
|
226
|
-
return Promise.resolve().then(function () {
|
|
227
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphBlocker" */'@atlaskit/icon-priority/glyph/priority-blocker'));
|
|
228
|
-
});
|
|
229
|
-
}), _constants.IconType.PriorityCritical, function () {
|
|
230
|
-
return Promise.resolve().then(function () {
|
|
231
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphCritical" */'@atlaskit/icon-priority/glyph/priority-critical'));
|
|
232
|
-
});
|
|
233
|
-
}), _constants.IconType.PriorityHigh, function () {
|
|
234
|
-
return Promise.resolve().then(function () {
|
|
235
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphHigh" */'@atlaskit/icon-priority/glyph/priority-high'));
|
|
236
|
-
});
|
|
237
|
-
}), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_importIconMapperOld, _constants.IconType.PriorityHighest, function () {
|
|
238
|
-
return Promise.resolve().then(function () {
|
|
239
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphHighest" */'@atlaskit/icon-priority/glyph/priority-highest'));
|
|
240
|
-
});
|
|
241
|
-
}), _constants.IconType.PriorityLow, function () {
|
|
242
|
-
return Promise.resolve().then(function () {
|
|
243
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphLow" */'@atlaskit/icon-priority/glyph/priority-low'));
|
|
244
|
-
});
|
|
245
|
-
}), _constants.IconType.PriorityLowest, function () {
|
|
246
|
-
return Promise.resolve().then(function () {
|
|
247
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphLowest" */'@atlaskit/icon-priority/glyph/priority-lowest'));
|
|
248
|
-
});
|
|
249
|
-
}), _constants.IconType.PriorityMajor, function () {
|
|
250
|
-
return Promise.resolve().then(function () {
|
|
251
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphMajor" */'@atlaskit/icon-priority/glyph/priority-major'));
|
|
252
|
-
});
|
|
253
|
-
}), _constants.IconType.PriorityMedium, function () {
|
|
254
|
-
return Promise.resolve().then(function () {
|
|
255
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphMedium" */'@atlaskit/icon-priority/glyph/priority-medium'));
|
|
256
|
-
});
|
|
257
|
-
}), _constants.IconType.PriorityMinor, function () {
|
|
258
|
-
return Promise.resolve().then(function () {
|
|
259
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphMinor" */'@atlaskit/icon-priority/glyph/priority-minor'));
|
|
260
|
-
});
|
|
261
|
-
}), _constants.IconType.PriorityTrivial, function () {
|
|
262
|
-
return Promise.resolve().then(function () {
|
|
263
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphTrivial" */'@atlaskit/icon-priority/glyph/priority-trivial'));
|
|
264
|
-
});
|
|
265
|
-
}), _constants.IconType.PriorityUndefined, function () {
|
|
266
|
-
return Promise.resolve().then(function () {
|
|
267
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphUndefined" */'@atlaskit/icon/glyph/question'));
|
|
268
|
-
});
|
|
269
|
-
}), _constants.IconType.ProgrammingLanguage, function () {
|
|
270
|
-
return Promise.resolve().then(function () {
|
|
271
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphProgrammingLanguage" */'@atlaskit/icon/glyph/code'));
|
|
272
|
-
});
|
|
273
|
-
}), _constants.IconType.Subscriber, function () {
|
|
274
|
-
return Promise.resolve().then(function () {
|
|
275
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphSubscriber" */'@atlaskit/icon/glyph/people'));
|
|
276
|
-
});
|
|
277
|
-
}), (0, _defineProperty2.default)(_importIconMapperOld, _constants.IconType.SubTasksProgress, function () {
|
|
278
|
-
return Promise.resolve().then(function () {
|
|
279
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "glyphSubtaskProgress" */'@atlaskit/icon/glyph/subtask'));
|
|
280
|
-
});
|
|
281
|
-
}));
|
|
282
16
|
var getIconImportFn = function getIconImportFn(icon, size) {
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
return item.large;
|
|
287
|
-
}
|
|
288
|
-
return item === null || item === void 0 ? void 0 : item.default;
|
|
17
|
+
var item = (0, _utils.getLazyIcons)()[icon];
|
|
18
|
+
if ((0, _utils.isIconSizeLarge)(size) && item !== null && item !== void 0 && item.large) {
|
|
19
|
+
return item.large;
|
|
289
20
|
}
|
|
290
|
-
return
|
|
21
|
+
return item === null || item === void 0 ? void 0 : item.default;
|
|
291
22
|
};
|
|
292
23
|
var importIcon = function importIcon(importFn) {
|
|
293
24
|
return (0, _reactLoadable.default)({
|
|
@@ -301,38 +32,32 @@ var importIcon = function importIcon(importFn) {
|
|
|
301
32
|
}
|
|
302
33
|
}); // Because we're using dynamic loading here, TS will not be able to infer the type.
|
|
303
34
|
};
|
|
304
|
-
var AtlaskitIcon = function AtlaskitIcon(
|
|
305
|
-
var icon =
|
|
306
|
-
label =
|
|
307
|
-
testId =
|
|
308
|
-
|
|
309
|
-
size =
|
|
310
|
-
var DocumentIcon = (0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration') ? _pageIcon.default : _.default;
|
|
311
|
-
var BlogIcon = (0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration') ? _blogIcon.default : _2.default;
|
|
312
|
-
|
|
35
|
+
var AtlaskitIcon = function AtlaskitIcon(_ref) {
|
|
36
|
+
var icon = _ref.icon,
|
|
37
|
+
label = _ref.label,
|
|
38
|
+
testId = _ref.testId,
|
|
39
|
+
_ref$size = _ref.size,
|
|
40
|
+
size = _ref$size === void 0 ? _constants.SmartLinkSize.Medium : _ref$size;
|
|
313
41
|
// Check for synchonously loaded icons first for SSR purposes
|
|
314
42
|
switch (icon) {
|
|
315
43
|
case _constants.IconType.Document:
|
|
316
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
44
|
+
return /*#__PURE__*/_react.default.createElement(_pageIcon.default, {
|
|
317
45
|
label: label !== null && label !== void 0 ? label : 'document',
|
|
318
|
-
testId: testId
|
|
319
|
-
}, (0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration') && {
|
|
46
|
+
testId: testId,
|
|
320
47
|
size: size
|
|
321
|
-
})
|
|
48
|
+
});
|
|
322
49
|
case _constants.IconType.Blog:
|
|
323
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
50
|
+
return /*#__PURE__*/_react.default.createElement(_blogIcon.default, {
|
|
324
51
|
label: label !== null && label !== void 0 ? label : 'blog',
|
|
325
|
-
testId: testId
|
|
326
|
-
}, (0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration') && {
|
|
52
|
+
testId: testId,
|
|
327
53
|
size: size
|
|
328
|
-
})
|
|
54
|
+
});
|
|
329
55
|
case _constants.IconType.LiveDocument:
|
|
330
|
-
return /*#__PURE__*/_react.default.createElement(_liveDocumentIcon.default,
|
|
56
|
+
return /*#__PURE__*/_react.default.createElement(_liveDocumentIcon.default, {
|
|
331
57
|
label: label !== null && label !== void 0 ? label : 'live-doc',
|
|
332
|
-
testId: testId
|
|
333
|
-
}, (0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration') && {
|
|
58
|
+
testId: testId,
|
|
334
59
|
size: size
|
|
335
|
-
})
|
|
60
|
+
});
|
|
336
61
|
}
|
|
337
62
|
var importFn = getIconImportFn(icon, size);
|
|
338
63
|
if (!importFn) {
|
|
@@ -341,37 +66,32 @@ var AtlaskitIcon = function AtlaskitIcon(_ref3) {
|
|
|
341
66
|
var ImportedIcon = importIcon(importFn);
|
|
342
67
|
switch (icon) {
|
|
343
68
|
case _constants.IconType.Confluence:
|
|
344
|
-
return /*#__PURE__*/_react.default.createElement(_logo.ConfluenceIcon,
|
|
69
|
+
return /*#__PURE__*/_react.default.createElement(_logo.ConfluenceIcon, {
|
|
345
70
|
appearance: "brand",
|
|
346
|
-
testId: testId
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
}));
|
|
71
|
+
testId: testId,
|
|
72
|
+
size: size === _constants.SmartLinkSize.Large || size === _constants.SmartLinkSize.XLarge ? 'small' : 'xsmall'
|
|
73
|
+
});
|
|
350
74
|
case _constants.IconType.Jira:
|
|
351
|
-
return /*#__PURE__*/_react.default.createElement(_logo.JiraIcon,
|
|
75
|
+
return /*#__PURE__*/_react.default.createElement(_logo.JiraIcon, {
|
|
352
76
|
appearance: "brand",
|
|
353
|
-
testId: testId
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
}));
|
|
77
|
+
testId: testId,
|
|
78
|
+
size: size === _constants.SmartLinkSize.Large || size === _constants.SmartLinkSize.XLarge ? 'small' : 'xsmall'
|
|
79
|
+
});
|
|
357
80
|
case _constants.IconType.Error:
|
|
358
81
|
case _constants.IconType.Forbidden:
|
|
359
|
-
return /*#__PURE__*/_react.default.createElement(ImportedIcon,
|
|
82
|
+
return /*#__PURE__*/_react.default.createElement(ImportedIcon, {
|
|
360
83
|
label: label,
|
|
361
|
-
testId: testId
|
|
362
|
-
|
|
363
|
-
size: size,
|
|
84
|
+
testId: testId,
|
|
85
|
+
LEGACY_size: size === _constants.SmartLinkSize.Large || size === _constants.SmartLinkSize.XLarge ? 'medium' : 'small',
|
|
364
86
|
color: "var(--ds-icon-danger, #C9372C)"
|
|
365
|
-
}
|
|
366
|
-
primaryColor: "var(--ds-icon-danger, ".concat(_colors.R400, ")")
|
|
367
|
-
}));
|
|
87
|
+
});
|
|
368
88
|
default:
|
|
369
|
-
return /*#__PURE__*/_react.default.createElement(ImportedIcon,
|
|
89
|
+
return /*#__PURE__*/_react.default.createElement(ImportedIcon, {
|
|
370
90
|
label: label,
|
|
371
|
-
testId: testId
|
|
372
|
-
|
|
91
|
+
testId: testId,
|
|
92
|
+
LEGACY_size: size === _constants.SmartLinkSize.Large || size === _constants.SmartLinkSize.XLarge ? 'medium' : 'small',
|
|
373
93
|
size: size
|
|
374
|
-
})
|
|
94
|
+
});
|
|
375
95
|
}
|
|
376
96
|
};
|
|
377
97
|
var _default = exports.default = AtlaskitIcon;
|