@atlaskit/smart-card 46.0.1 → 46.0.2
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 +10 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-bitbucket--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-confluence--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-error-view---linking-refresh-only--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-error-view-with-design-refresh-ff--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-resolved-icon-variations-resolvedclient-icontesturls---flexible-extractsmartlinkicon-path---default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-per-file-format-slice-1--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-per-file-format-slice-2--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-per-file-format-slice-3--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-per-file-format-slice-4--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-1--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-4--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-5--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-6--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--more-actions-hovered--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--title-hovered--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-composition--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-attachment--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-check-item--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-comment--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-undefined--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-programming-language--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-react--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-sub-tasks-progress--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-subscriber--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-view--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-vote--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-false-platform-sl-3p-preauth-better-hovercard-false.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-false-platform-sl-3p-preauth-better-hovercard-true.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-true-platform-sl-3p-preauth-better-hovercard-false.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-true-platform-sl-3p-preauth-better-hovercard-true.png +2 -2
- package/dist/cjs/common/ui/icons/angle-brackets-icon.js +3 -0
- package/dist/cjs/common/ui/icons/audio-icon.js +3 -0
- package/dist/cjs/common/ui/icons/chart-bar-icon.js +3 -0
- package/dist/cjs/common/ui/icons/file-icon.js +3 -0
- package/dist/cjs/common/ui/icons/folder-icon.js +3 -0
- package/dist/cjs/common/ui/icons/image-icon.js +3 -0
- package/dist/cjs/common/ui/icons/list-bullet-icon.js +3 -0
- package/dist/cjs/common/ui/icons/page-icon.js +3 -0
- package/dist/cjs/common/ui/icons/render-icon-tile.js +24 -1
- package/dist/cjs/common/ui/icons/video-icon.js +3 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +2 -0
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-bitbucket--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-confluence--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-error-view---linking-refresh-only--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-error-view-with-design-refresh-ff--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-resolved-icon-variations-resolvedclient-icontesturls---flexible-extractsmartlinkicon-path---default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-per-file-format-slice-1--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-per-file-format-slice-2--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-per-file-format-slice-3--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-per-file-format-slice-4--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-1--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-4--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-5--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-6--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--more-actions-hovered--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--title-hovered--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-composition--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-attachment--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-check-item--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-comment--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-undefined--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-programming-language--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-react--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-sub-tasks-progress--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-subscriber--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-view--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-vote--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-false-platform-sl-3p-preauth-better-hovercard-false.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-false-platform-sl-3p-preauth-better-hovercard-true.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-true-platform-sl-3p-preauth-better-hovercard-false.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-true-platform-sl-3p-preauth-better-hovercard-true.png +2 -2
- package/dist/es2019/common/ui/icons/angle-brackets-icon.js +3 -0
- package/dist/es2019/common/ui/icons/audio-icon.js +3 -0
- package/dist/es2019/common/ui/icons/chart-bar-icon.js +3 -0
- package/dist/es2019/common/ui/icons/file-icon.js +3 -0
- package/dist/es2019/common/ui/icons/folder-icon.js +3 -0
- package/dist/es2019/common/ui/icons/image-icon.js +3 -0
- package/dist/es2019/common/ui/icons/list-bullet-icon.js +3 -0
- package/dist/es2019/common/ui/icons/page-icon.js +3 -0
- package/dist/es2019/common/ui/icons/render-icon-tile.js +24 -1
- package/dist/es2019/common/ui/icons/video-icon.js +3 -0
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/common/atlaskit-icon/index.js +2 -0
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-bitbucket--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-confluence--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-error-view---linking-refresh-only--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-error-view-with-design-refresh-ff--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-resolved-icon-variations-resolvedclient-icontesturls---flexible-extractsmartlinkicon-path---default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-per-file-format-slice-1--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-per-file-format-slice-2--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-per-file-format-slice-3--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-per-file-format-slice-4--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-1--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-4--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-5--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-6--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--more-actions-hovered--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--title-hovered--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-composition--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-attachment--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-check-item--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-comment--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-undefined--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-programming-language--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-react--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-sub-tasks-progress--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-subscriber--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-view--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-vote--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-false-platform-sl-3p-preauth-better-hovercard-false.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-false-platform-sl-3p-preauth-better-hovercard-true.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-true-platform-sl-3p-preauth-better-hovercard-false.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-true-platform-sl-3p-preauth-better-hovercard-true.png +2 -2
- package/dist/esm/common/ui/icons/angle-brackets-icon.js +3 -0
- package/dist/esm/common/ui/icons/audio-icon.js +3 -0
- package/dist/esm/common/ui/icons/chart-bar-icon.js +3 -0
- package/dist/esm/common/ui/icons/file-icon.js +3 -0
- package/dist/esm/common/ui/icons/folder-icon.js +3 -0
- package/dist/esm/common/ui/icons/image-icon.js +3 -0
- package/dist/esm/common/ui/icons/list-bullet-icon.js +3 -0
- package/dist/esm/common/ui/icons/page-icon.js +3 -0
- package/dist/esm/common/ui/icons/render-icon-tile.js +24 -1
- package/dist/esm/common/ui/icons/video-icon.js +3 -0
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/FlexibleCard/components/common/atlaskit-icon/index.js +2 -0
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +7 -4
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:7639fcd0d6172c11f6cc852633309cc8052e4e1ebf64382fbb9dfb7fb6c94a64
|
|
3
|
+
size 871
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:2b89e12d6b86da5a5d0099a246bcc762a612a953ebb8ee9e7e10504e633250f5
|
|
3
|
+
size 1053
|
package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-view--default.png
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:a41865288b33b0faee2a64543ddd68125b7c1eddef3884e08d3101b1d465ed23
|
|
3
|
+
size 1090
|
package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-vote--default.png
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:c48a081fecfa5f3db2de84e18bef1218de0e79ce2ccdaf6d1d88190b622d204c
|
|
3
|
+
size 760
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:770b6c2274422fd95a5225501dd3b0b8369757ca05c3198c9949b71792c058fd
|
|
3
|
+
size 214980
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:770b6c2274422fd95a5225501dd3b0b8369757ca05c3198c9949b71792c058fd
|
|
3
|
+
size 214980
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:9b8ab79a9b5391741231930fa76390b4203aaf427aa7f30893db8febe959c419
|
|
3
|
+
size 215188
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:9b8ab79a9b5391741231930fa76390b4203aaf427aa7f30893db8febe959c419
|
|
3
|
+
size 215188
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import AngleBracketsIcon from '@atlaskit/icon/core/angle-brackets';
|
|
2
2
|
import { renderIconTile } from './render-icon-tile';
|
|
3
|
+
// `blueBold` is used while `platform_lp_non_bold_large_sl_icon` is off.
|
|
4
|
+
// Clean up in NAVX-5752: https://hello.jira.atlassian.cloud/browse/NAVX-5752
|
|
5
|
+
// When that gate is cleaned up, replace `blueBold` directly with `blue`.
|
|
3
6
|
const AngleBracketsIconWithColor = renderIconTile(AngleBracketsIcon, 'blueBold');
|
|
4
7
|
AngleBracketsIconWithColor.displayName = 'AngleBracketsIconWithColor';
|
|
5
8
|
export default AngleBracketsIconWithColor;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import AudioIcon from '@atlaskit/icon/core/audio';
|
|
2
2
|
import { renderIconTile } from './render-icon-tile';
|
|
3
|
+
// `redBold` is used while `platform_lp_non_bold_large_sl_icon` is off.
|
|
4
|
+
// Clean up in NAVX-5752: https://hello.jira.atlassian.cloud/browse/NAVX-5752
|
|
5
|
+
// When that gate is cleaned up, replace `redBold` directly with `red`.
|
|
3
6
|
const AudioIconWithColor = renderIconTile(AudioIcon, 'redBold');
|
|
4
7
|
AudioIconWithColor.displayName = 'AudioIconWithColor';
|
|
5
8
|
export default AudioIconWithColor;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import ChartBarIcon from '@atlaskit/icon/core/chart-bar';
|
|
2
2
|
import { renderIconTile } from './render-icon-tile';
|
|
3
|
+
// `purpleBold` is used while `platform_lp_non_bold_large_sl_icon` is off.
|
|
4
|
+
// Clean up in NAVX-5752: https://hello.jira.atlassian.cloud/browse/NAVX-5752
|
|
5
|
+
// When that gate is cleaned up, replace `purpleBold` directly with `purple`.
|
|
3
6
|
const ChartBarIconWithColor = renderIconTile(ChartBarIcon, 'purpleBold');
|
|
4
7
|
ChartBarIconWithColor.displayName = 'ChartBarIconWithColor';
|
|
5
8
|
export default ChartBarIconWithColor;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import FileIcon from '@atlaskit/icon/core/file';
|
|
2
2
|
import { renderIconTile } from './render-icon-tile';
|
|
3
|
+
// `grayBold` is used while `platform_lp_non_bold_large_sl_icon` is off.
|
|
4
|
+
// Clean up in NAVX-5752: https://hello.jira.atlassian.cloud/browse/NAVX-5752
|
|
5
|
+
// When that gate is cleaned up, replace `grayBold` directly with `gray`.
|
|
3
6
|
const FileIconWithColor = renderIconTile(FileIcon, 'grayBold');
|
|
4
7
|
FileIconWithColor.displayName = 'FileIconWithColor';
|
|
5
8
|
export default FileIconWithColor;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import FolderClosedIcon from '@atlaskit/icon/core/folder-closed';
|
|
2
2
|
import { renderIconTile } from './render-icon-tile';
|
|
3
|
+
// `blueBold` is used while `platform_lp_non_bold_large_sl_icon` is off.
|
|
4
|
+
// Clean up in NAVX-5752: https://hello.jira.atlassian.cloud/browse/NAVX-5752
|
|
5
|
+
// When that gate is cleaned up, replace `blueBold` directly with `blue`.
|
|
3
6
|
const FolderClosedIconWithColor = renderIconTile(FolderClosedIcon, 'blueBold');
|
|
4
7
|
FolderClosedIconWithColor.displayName = 'FolderClosedIconWithColor';
|
|
5
8
|
export default FolderClosedIconWithColor;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import ImageIcon from '@atlaskit/icon/core/image';
|
|
2
2
|
import { renderIconTile } from './render-icon-tile';
|
|
3
|
+
// `yellowBold` is used while `platform_lp_non_bold_large_sl_icon` is off.
|
|
4
|
+
// Clean up in NAVX-5752: https://hello.jira.atlassian.cloud/browse/NAVX-5752
|
|
5
|
+
// When that gate is cleaned up, replace `yellowBold` directly with `yellow`.
|
|
3
6
|
const ImageIconWithColor = renderIconTile(ImageIcon, 'yellowBold');
|
|
4
7
|
ImageIconWithColor.displayName = 'ImageIconWithColor';
|
|
5
8
|
export default ImageIconWithColor;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import ListBulletedIcon from '@atlaskit/icon/core/list-bulleted';
|
|
2
2
|
import { renderIconTile } from './render-icon-tile';
|
|
3
|
+
// `greenBold` is used while `platform_lp_non_bold_large_sl_icon` is off.
|
|
4
|
+
// Clean up in NAVX-5752: https://hello.jira.atlassian.cloud/browse/NAVX-5752
|
|
5
|
+
// When that gate is cleaned up, replace `greenBold` directly with `green`.
|
|
3
6
|
const ListBulletedIconWithColor = renderIconTile(ListBulletedIcon, 'greenBold');
|
|
4
7
|
ListBulletedIconWithColor.displayName = 'ListBulletedIconWithColor';
|
|
5
8
|
export default ListBulletedIconWithColor;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import PageIcon from '@atlaskit/icon/core/page';
|
|
2
2
|
import { renderIconTile } from './render-icon-tile';
|
|
3
|
+
// `blueBold` is used while `platform_lp_non_bold_large_sl_icon` is off.
|
|
4
|
+
// Clean up in NAVX-5752: https://hello.jira.atlassian.cloud/browse/NAVX-5752
|
|
5
|
+
// When that gate is cleaned up, replace `blueBold` directly with `blue`.
|
|
3
6
|
const PageIconWithColor = renderIconTile(PageIcon, 'blueBold');
|
|
4
7
|
PageIconWithColor.displayName = 'PageIconWithColor';
|
|
5
8
|
export default PageIconWithColor;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import IconTile from '@atlaskit/icon/icon-tile';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
5
|
import { transformSmartLinkSizeToIconTileSize } from './transform-smart-link-size-to-icon-tile-size';
|
|
5
6
|
/**
|
|
6
7
|
* Maps IconTile appearance to the icon glyph color token to use when rendering
|
|
7
8
|
* a standalone icon (without a tile background).
|
|
9
|
+
* When cleaning up `platform_lp_non_bold_large_sl_icon` in NAVX-5752, remove the `*Bold`
|
|
10
|
+
* entries. Nothing will pass a bold appearance into this map after that.
|
|
8
11
|
*/
|
|
9
12
|
const appearanceToStandaloneIconColor = {
|
|
10
13
|
blue: "var(--ds-icon-accent-blue, #357DE8)",
|
|
@@ -28,6 +31,24 @@ const appearanceToStandaloneIconColor = {
|
|
|
28
31
|
yellow: "var(--ds-icon-accent-yellow, #B38600)",
|
|
29
32
|
yellowBold: "var(--ds-icon-accent-yellow, #B38600)"
|
|
30
33
|
};
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Bold appearances are the gate-off values. Remove this map when cleaning up
|
|
37
|
+
* `platform_lp_non_bold_large_sl_icon` in NAVX-5752:
|
|
38
|
+
* https://hello.jira.atlassian.cloud/browse/NAVX-5752
|
|
39
|
+
*/
|
|
40
|
+
const boldToNonBoldAppearance = {
|
|
41
|
+
blueBold: 'blue',
|
|
42
|
+
grayBold: 'gray',
|
|
43
|
+
greenBold: 'green',
|
|
44
|
+
limeBold: 'lime',
|
|
45
|
+
magentaBold: 'magenta',
|
|
46
|
+
orangeBold: 'orange',
|
|
47
|
+
purpleBold: 'purple',
|
|
48
|
+
redBold: 'red',
|
|
49
|
+
tealBold: 'teal',
|
|
50
|
+
yellowBold: 'yellow'
|
|
51
|
+
};
|
|
31
52
|
export const renderIconTile = (Icon, appearance) => {
|
|
32
53
|
return ({
|
|
33
54
|
size,
|
|
@@ -52,8 +73,10 @@ export const renderIconTile = (Icon, appearance) => {
|
|
|
52
73
|
const {
|
|
53
74
|
...tileProps
|
|
54
75
|
} = props;
|
|
76
|
+
const nonBoldAppearance = boldToNonBoldAppearance[appearance];
|
|
77
|
+
const tileAppearance = nonBoldAppearance !== undefined && fg('platform_lp_non_bold_large_sl_icon') ? nonBoldAppearance : appearance;
|
|
55
78
|
return /*#__PURE__*/React.createElement(IconTile, _extends({
|
|
56
|
-
appearance:
|
|
79
|
+
appearance: tileAppearance,
|
|
57
80
|
icon: isTiledIcon ? iconProps => /*#__PURE__*/React.createElement(Icon, _extends({}, iconProps, {
|
|
58
81
|
spacing: "spacious"
|
|
59
82
|
})) : Icon,
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import VideoIcon from '@atlaskit/icon/core/video';
|
|
2
2
|
import { renderIconTile } from './render-icon-tile';
|
|
3
|
+
// `redBold` is used while `platform_lp_non_bold_large_sl_icon` is off.
|
|
4
|
+
// Clean up in NAVX-5752: https://hello.jira.atlassian.cloud/browse/NAVX-5752
|
|
5
|
+
// When that gate is cleaned up, replace `redBold` directly with `red`.
|
|
3
6
|
const VideoIconWithColor = renderIconTile(VideoIcon, 'redBold');
|
|
4
7
|
VideoIconWithColor.displayName = 'VideoIconWithColor';
|
|
5
8
|
export default VideoIconWithColor;
|
|
@@ -4,7 +4,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
4
4
|
export const context = {
|
|
5
5
|
componentName: 'smart-cards',
|
|
6
6
|
packageName: "@atlaskit/smart-card" || '',
|
|
7
|
-
packageVersion: "46.0.
|
|
7
|
+
packageVersion: "46.0.1" || ''
|
|
8
8
|
};
|
|
9
9
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -100,6 +100,8 @@ const AtlaskitIcon = ({
|
|
|
100
100
|
let appearance;
|
|
101
101
|
if (icon === IconType.Error || icon === IconType.Forbidden) {
|
|
102
102
|
appearance = 'redBold';
|
|
103
|
+
} else if (fg('platform_lp_non_bold_large_sl_icon')) {
|
|
104
|
+
appearance = 'gray';
|
|
103
105
|
} else {
|
|
104
106
|
appearance = 'grayBold';
|
|
105
107
|
}
|
|
@@ -9,7 +9,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
9
9
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
10
10
|
const PACKAGE_DATA = {
|
|
11
11
|
packageName: "@atlaskit/smart-card",
|
|
12
|
-
packageVersion: "46.0.
|
|
12
|
+
packageVersion: "46.0.1",
|
|
13
13
|
componentName: 'linkUrl'
|
|
14
14
|
};
|
|
15
15
|
const LinkUrl = ({
|
package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-bitbucket--default.png
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:b102a10d0afbd180d54b00e09e606688c438f29076e54e6a1dff12b4f75e3bef
|
|
3
|
+
size 112519
|
package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-confluence--default.png
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:63d9bf3edc3a0450b31d0f021c53642f6fcf53e43f8faa3ee1f5d563950f7ec6
|
|
3
|
+
size 35706
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:fd2f576df93f511acb43266e1eb81ea88ab0b5f0cc47c17d2e32e39eb09164c2
|
|
3
|
+
size 6985
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:fd2f576df93f511acb43266e1eb81ea88ab0b5f0cc47c17d2e32e39eb09164c2
|
|
3
|
+
size 6985
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:4d078659fb52eaa05f4883288c3920f17624829550399df0ac21e45f57107263
|
|
3
|
+
size 253912
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:4d6f196397992c354cfe5980915a2765820ba4c7ba95e86b376356ea7c573b84
|
|
3
|
+
size 88608
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:3b7802a95e3cd2de796049d9b6ac3e225798629728996195b6646c543e379501
|
|
3
|
+
size 89762
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:8f9b4fd343272ee5cdcc2507364a7aaeab2df95e09add1ef78fcc52430405805
|
|
3
|
+
size 85701
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:8edde849021dd349c5f815e62bc7eaff07c25f216ef83add019f1a197df67c3f
|
|
3
|
+
size 103378
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:e5b9a373b888b71f543e5d19a9b8daf97f961aac4f7424ab1f58b41e0c975d1f
|
|
3
|
+
size 88122
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:b9166af71c43a152478996ffb1410ed2d7293bda19c835b49ecd28123189ea73
|
|
3
|
+
size 91687
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:4f2e29f201327c6312916f2fb9150b40006366e357c94be06776aac81548b9ae
|
|
3
|
+
size 91226
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:c5ef34d21b1b1c14e941a379c1eda931970747061a6ca08e0df36769a92ed026
|
|
3
|
+
size 21452
|
package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--default.png
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:7447db3bd76d3979a9d5dcb3a181217ff0fc925b2682bccdd5b3bd79fbea329d
|
|
3
|
+
size 364946
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:e10f2c0145d40306eab1fb0809c8e0bbb850caba3d1ecaf5b2b51331345e7e69
|
|
3
|
+
size 366381
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:9597a86a9304d1690b8cc7db8243eb1ae92f61e6b725bcb467be3b9749f61042
|
|
3
|
+
size 402124
|
package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-composition--default.png
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:2264432bd5c6e500284ae75f5a3e63a5da02d58188a0746931d57d38966cc2fb
|
|
3
|
+
size 104346
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:427b423f2fe9e3746f3b5b411eb5b89eec82b763f54230cb1098c0803b2cfc52
|
|
3
|
+
size 1071
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:235bb8637effdc3205904d925338c7be779171207b34f8cf33f8641d17ffedf2
|
|
3
|
+
size 921
|
package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-comment--default.png
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:5c37250434f8466025efa99f8d697150aaf6a6dddb11541f9b936cb71204e482
|
|
3
|
+
size 878
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:323995001d16716ace1a6bd81068c45057a6af79a595b3c0e0fc1eae1e26ce66
|
|
3
|
+
size 1145
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:5f3bbd58b9c916ec15afe19b8423c5780e8791423ab6884c54f09f4992ad56fc
|
|
3
|
+
size 1015
|
package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-react--default.png
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:c6fe03212f7887130773fd28dad13015abecee4c2d85b01a9b1dc2fe4dc6effe
|
|
3
|
+
size 983
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:7639fcd0d6172c11f6cc852633309cc8052e4e1ebf64382fbb9dfb7fb6c94a64
|
|
3
|
+
size 871
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:2b89e12d6b86da5a5d0099a246bcc762a612a953ebb8ee9e7e10504e633250f5
|
|
3
|
+
size 1053
|
package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-view--default.png
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:a41865288b33b0faee2a64543ddd68125b7c1eddef3884e08d3101b1d465ed23
|
|
3
|
+
size 1090
|
package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-vote--default.png
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:c48a081fecfa5f3db2de84e18bef1218de0e79ce2ccdaf6d1d88190b622d204c
|
|
3
|
+
size 760
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:770b6c2274422fd95a5225501dd3b0b8369757ca05c3198c9949b71792c058fd
|
|
3
|
+
size 214980
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:770b6c2274422fd95a5225501dd3b0b8369757ca05c3198c9949b71792c058fd
|
|
3
|
+
size 214980
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:9b8ab79a9b5391741231930fa76390b4203aaf427aa7f30893db8febe959c419
|
|
3
|
+
size 215188
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:9b8ab79a9b5391741231930fa76390b4203aaf427aa7f30893db8febe959c419
|
|
3
|
+
size 215188
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import AngleBracketsIcon from '@atlaskit/icon/core/angle-brackets';
|
|
2
2
|
import { renderIconTile } from './render-icon-tile';
|
|
3
|
+
// `blueBold` is used while `platform_lp_non_bold_large_sl_icon` is off.
|
|
4
|
+
// Clean up in NAVX-5752: https://hello.jira.atlassian.cloud/browse/NAVX-5752
|
|
5
|
+
// When that gate is cleaned up, replace `blueBold` directly with `blue`.
|
|
3
6
|
var AngleBracketsIconWithColor = renderIconTile(AngleBracketsIcon, 'blueBold');
|
|
4
7
|
AngleBracketsIconWithColor.displayName = 'AngleBracketsIconWithColor';
|
|
5
8
|
export default AngleBracketsIconWithColor;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import AudioIcon from '@atlaskit/icon/core/audio';
|
|
2
2
|
import { renderIconTile } from './render-icon-tile';
|
|
3
|
+
// `redBold` is used while `platform_lp_non_bold_large_sl_icon` is off.
|
|
4
|
+
// Clean up in NAVX-5752: https://hello.jira.atlassian.cloud/browse/NAVX-5752
|
|
5
|
+
// When that gate is cleaned up, replace `redBold` directly with `red`.
|
|
3
6
|
var AudioIconWithColor = renderIconTile(AudioIcon, 'redBold');
|
|
4
7
|
AudioIconWithColor.displayName = 'AudioIconWithColor';
|
|
5
8
|
export default AudioIconWithColor;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import ChartBarIcon from '@atlaskit/icon/core/chart-bar';
|
|
2
2
|
import { renderIconTile } from './render-icon-tile';
|
|
3
|
+
// `purpleBold` is used while `platform_lp_non_bold_large_sl_icon` is off.
|
|
4
|
+
// Clean up in NAVX-5752: https://hello.jira.atlassian.cloud/browse/NAVX-5752
|
|
5
|
+
// When that gate is cleaned up, replace `purpleBold` directly with `purple`.
|
|
3
6
|
var ChartBarIconWithColor = renderIconTile(ChartBarIcon, 'purpleBold');
|
|
4
7
|
ChartBarIconWithColor.displayName = 'ChartBarIconWithColor';
|
|
5
8
|
export default ChartBarIconWithColor;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import FileIcon from '@atlaskit/icon/core/file';
|
|
2
2
|
import { renderIconTile } from './render-icon-tile';
|
|
3
|
+
// `grayBold` is used while `platform_lp_non_bold_large_sl_icon` is off.
|
|
4
|
+
// Clean up in NAVX-5752: https://hello.jira.atlassian.cloud/browse/NAVX-5752
|
|
5
|
+
// When that gate is cleaned up, replace `grayBold` directly with `gray`.
|
|
3
6
|
var FileIconWithColor = renderIconTile(FileIcon, 'grayBold');
|
|
4
7
|
FileIconWithColor.displayName = 'FileIconWithColor';
|
|
5
8
|
export default FileIconWithColor;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import FolderClosedIcon from '@atlaskit/icon/core/folder-closed';
|
|
2
2
|
import { renderIconTile } from './render-icon-tile';
|
|
3
|
+
// `blueBold` is used while `platform_lp_non_bold_large_sl_icon` is off.
|
|
4
|
+
// Clean up in NAVX-5752: https://hello.jira.atlassian.cloud/browse/NAVX-5752
|
|
5
|
+
// When that gate is cleaned up, replace `blueBold` directly with `blue`.
|
|
3
6
|
var FolderClosedIconWithColor = renderIconTile(FolderClosedIcon, 'blueBold');
|
|
4
7
|
FolderClosedIconWithColor.displayName = 'FolderClosedIconWithColor';
|
|
5
8
|
export default FolderClosedIconWithColor;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import ImageIcon from '@atlaskit/icon/core/image';
|
|
2
2
|
import { renderIconTile } from './render-icon-tile';
|
|
3
|
+
// `yellowBold` is used while `platform_lp_non_bold_large_sl_icon` is off.
|
|
4
|
+
// Clean up in NAVX-5752: https://hello.jira.atlassian.cloud/browse/NAVX-5752
|
|
5
|
+
// When that gate is cleaned up, replace `yellowBold` directly with `yellow`.
|
|
3
6
|
var ImageIconWithColor = renderIconTile(ImageIcon, 'yellowBold');
|
|
4
7
|
ImageIconWithColor.displayName = 'ImageIconWithColor';
|
|
5
8
|
export default ImageIconWithColor;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import ListBulletedIcon from '@atlaskit/icon/core/list-bulleted';
|
|
2
2
|
import { renderIconTile } from './render-icon-tile';
|
|
3
|
+
// `greenBold` is used while `platform_lp_non_bold_large_sl_icon` is off.
|
|
4
|
+
// Clean up in NAVX-5752: https://hello.jira.atlassian.cloud/browse/NAVX-5752
|
|
5
|
+
// When that gate is cleaned up, replace `greenBold` directly with `green`.
|
|
3
6
|
var ListBulletedIconWithColor = renderIconTile(ListBulletedIcon, 'greenBold');
|
|
4
7
|
ListBulletedIconWithColor.displayName = 'ListBulletedIconWithColor';
|
|
5
8
|
export default ListBulletedIconWithColor;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import PageIcon from '@atlaskit/icon/core/page';
|
|
2
2
|
import { renderIconTile } from './render-icon-tile';
|
|
3
|
+
// `blueBold` is used while `platform_lp_non_bold_large_sl_icon` is off.
|
|
4
|
+
// Clean up in NAVX-5752: https://hello.jira.atlassian.cloud/browse/NAVX-5752
|
|
5
|
+
// When that gate is cleaned up, replace `blueBold` directly with `blue`.
|
|
3
6
|
var PageIconWithColor = renderIconTile(PageIcon, 'blueBold');
|
|
4
7
|
PageIconWithColor.displayName = 'PageIconWithColor';
|
|
5
8
|
export default PageIconWithColor;
|
|
@@ -4,10 +4,13 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
4
4
|
var _excluded = ["size", "isTiledIcon"];
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import IconTile from '@atlaskit/icon/icon-tile';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
8
|
import { transformSmartLinkSizeToIconTileSize } from './transform-smart-link-size-to-icon-tile-size';
|
|
8
9
|
/**
|
|
9
10
|
* Maps IconTile appearance to the icon glyph color token to use when rendering
|
|
10
11
|
* a standalone icon (without a tile background).
|
|
12
|
+
* When cleaning up `platform_lp_non_bold_large_sl_icon` in NAVX-5752, remove the `*Bold`
|
|
13
|
+
* entries. Nothing will pass a bold appearance into this map after that.
|
|
11
14
|
*/
|
|
12
15
|
var appearanceToStandaloneIconColor = {
|
|
13
16
|
blue: "var(--ds-icon-accent-blue, #357DE8)",
|
|
@@ -31,6 +34,24 @@ var appearanceToStandaloneIconColor = {
|
|
|
31
34
|
yellow: "var(--ds-icon-accent-yellow, #B38600)",
|
|
32
35
|
yellowBold: "var(--ds-icon-accent-yellow, #B38600)"
|
|
33
36
|
};
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Bold appearances are the gate-off values. Remove this map when cleaning up
|
|
40
|
+
* `platform_lp_non_bold_large_sl_icon` in NAVX-5752:
|
|
41
|
+
* https://hello.jira.atlassian.cloud/browse/NAVX-5752
|
|
42
|
+
*/
|
|
43
|
+
var boldToNonBoldAppearance = {
|
|
44
|
+
blueBold: 'blue',
|
|
45
|
+
grayBold: 'gray',
|
|
46
|
+
greenBold: 'green',
|
|
47
|
+
limeBold: 'lime',
|
|
48
|
+
magentaBold: 'magenta',
|
|
49
|
+
orangeBold: 'orange',
|
|
50
|
+
purpleBold: 'purple',
|
|
51
|
+
redBold: 'red',
|
|
52
|
+
tealBold: 'teal',
|
|
53
|
+
yellowBold: 'yellow'
|
|
54
|
+
};
|
|
34
55
|
export var renderIconTile = function renderIconTile(Icon, appearance) {
|
|
35
56
|
return function (_ref) {
|
|
36
57
|
var size = _ref.size,
|
|
@@ -52,8 +73,10 @@ export var renderIconTile = function renderIconTile(Icon, appearance) {
|
|
|
52
73
|
}));
|
|
53
74
|
}
|
|
54
75
|
var tileProps = _extends({}, (_objectDestructuringEmpty(props), props));
|
|
76
|
+
var nonBoldAppearance = boldToNonBoldAppearance[appearance];
|
|
77
|
+
var tileAppearance = nonBoldAppearance !== undefined && fg('platform_lp_non_bold_large_sl_icon') ? nonBoldAppearance : appearance;
|
|
55
78
|
return /*#__PURE__*/React.createElement(IconTile, _extends({
|
|
56
|
-
appearance:
|
|
79
|
+
appearance: tileAppearance,
|
|
57
80
|
icon: isTiledIcon ? function (iconProps) {
|
|
58
81
|
return /*#__PURE__*/React.createElement(Icon, _extends({}, iconProps, {
|
|
59
82
|
spacing: "spacious"
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import VideoIcon from '@atlaskit/icon/core/video';
|
|
2
2
|
import { renderIconTile } from './render-icon-tile';
|
|
3
|
+
// `redBold` is used while `platform_lp_non_bold_large_sl_icon` is off.
|
|
4
|
+
// Clean up in NAVX-5752: https://hello.jira.atlassian.cloud/browse/NAVX-5752
|
|
5
|
+
// When that gate is cleaned up, replace `redBold` directly with `red`.
|
|
3
6
|
var VideoIconWithColor = renderIconTile(VideoIcon, 'redBold');
|
|
4
7
|
VideoIconWithColor.displayName = 'VideoIconWithColor';
|
|
5
8
|
export default VideoIconWithColor;
|