@atlaskit/icon 28.2.1 → 28.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 (60) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/afm-cc/tsconfig.json +3 -0
  3. package/afm-dev-agents/tsconfig.json +3 -0
  4. package/afm-jira/tsconfig.json +3 -0
  5. package/afm-passionfruit/tsconfig.json +3 -0
  6. package/afm-post-office/tsconfig.json +3 -0
  7. package/afm-rovo-extension/tsconfig.json +3 -0
  8. package/afm-townsquare/tsconfig.json +3 -0
  9. package/build/index.tsx +1 -1
  10. package/dist/cjs/components/icon-new.js +1 -1
  11. package/dist/cjs/components/icon-tile/icon-tile-new.compiled.css +12 -0
  12. package/dist/cjs/components/icon-tile/icon-tile-new.js +103 -0
  13. package/dist/cjs/components/{icon-tile.compiled.css → icon-tile/icon-tile-old.compiled.css} +2 -0
  14. package/dist/cjs/components/{icon-tile.js → icon-tile/icon-tile-old.js} +27 -25
  15. package/dist/cjs/components/icon-tile/index.js +85 -0
  16. package/dist/cjs/components/icon.js +1 -1
  17. package/dist/cjs/components/skeleton.js +1 -1
  18. package/dist/cjs/components/svg.js +1 -1
  19. package/dist/cjs/metadata-core.js +14 -14
  20. package/dist/cjs/metadata.js +1 -1
  21. package/dist/es2019/components/icon-new.js +1 -1
  22. package/dist/es2019/components/icon-tile/icon-tile-new.compiled.css +12 -0
  23. package/dist/es2019/components/icon-tile/icon-tile-new.js +95 -0
  24. package/dist/{esm/components/icon-tile.compiled.css → es2019/components/icon-tile/icon-tile-old.compiled.css} +2 -0
  25. package/dist/es2019/components/{icon-tile.js → icon-tile/icon-tile-old.js} +27 -25
  26. package/dist/es2019/components/icon-tile/index.js +79 -0
  27. package/dist/es2019/components/icon.js +1 -1
  28. package/dist/es2019/components/skeleton.js +1 -1
  29. package/dist/es2019/components/svg.js +1 -1
  30. package/dist/es2019/metadata-core.js +14 -14
  31. package/dist/es2019/metadata.js +1 -1
  32. package/dist/esm/components/icon-new.js +1 -1
  33. package/dist/esm/components/icon-tile/icon-tile-new.compiled.css +12 -0
  34. package/dist/esm/components/icon-tile/icon-tile-new.js +94 -0
  35. package/dist/{es2019/components/icon-tile.compiled.css → esm/components/icon-tile/icon-tile-old.compiled.css} +2 -0
  36. package/dist/esm/components/{icon-tile.js → icon-tile/icon-tile-old.js} +27 -25
  37. package/dist/esm/components/icon-tile/index.js +78 -0
  38. package/dist/esm/components/icon.js +1 -1
  39. package/dist/esm/components/skeleton.js +1 -1
  40. package/dist/esm/components/svg.js +1 -1
  41. package/dist/esm/metadata-core.js +14 -14
  42. package/dist/esm/metadata.js +1 -1
  43. package/dist/types/components/icon-tile/icon-tile-new.d.ts +7 -0
  44. package/dist/types/components/icon-tile/icon-tile-old.d.ts +7 -0
  45. package/dist/types/components/icon-tile/index.d.ts +8 -0
  46. package/dist/types/entry-points/types.d.ts +1 -1
  47. package/dist/types/metadata-core.d.ts +1 -1
  48. package/dist/types/metadata.d.ts +2 -8
  49. package/dist/types/types.d.ts +26 -3
  50. package/dist/types-ts4.5/components/icon-tile/icon-tile-new.d.ts +7 -0
  51. package/dist/types-ts4.5/components/icon-tile/icon-tile-old.d.ts +7 -0
  52. package/dist/types-ts4.5/components/icon-tile/index.d.ts +8 -0
  53. package/dist/types-ts4.5/entry-points/types.d.ts +1 -1
  54. package/dist/types-ts4.5/metadata-core.d.ts +1 -1
  55. package/dist/types-ts4.5/metadata.d.ts +2 -8
  56. package/dist/types-ts4.5/types.d.ts +26 -3
  57. package/package.json +13 -5
  58. package/utils/logo-icons.tsx +48 -48
  59. package/dist/types/components/icon-tile.d.ts +0 -11
  60. package/dist/types-ts4.5/components/icon-tile.d.ts +0 -11
@@ -0,0 +1,95 @@
1
+ /* icon-tile-new.tsx generated by @compiled/babel-plugin v0.38.1 */
2
+ import "./icon-tile-new.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
5
+ import Tile from '@atlaskit/tile';
6
+ const sizeCrossCompatibleMap = {
7
+ // Size mapping from old pixel sizes to new t-shirt sizes
8
+ '16': 'xsmall',
9
+ // Not used
10
+ '24': 'small',
11
+ '32': 'medium',
12
+ '40': 'large',
13
+ '48': 'xlarge',
14
+ xsmall: 'xsmall',
15
+ small: 'small',
16
+ medium: 'medium',
17
+ large: 'large',
18
+ xlarge: 'xlarge'
19
+ };
20
+
21
+ // Icon color mapping for Tile-based icons
22
+ const iconColorMap = {
23
+ blue: "_syaz1ov1",
24
+ blueBold: "_syazwdcn",
25
+ gray: "_syaz1oju",
26
+ grayBold: "_syaz5w2r",
27
+ green: "_syaz17hp",
28
+ greenBold: "_syazwdcn",
29
+ lime: "_syaz8645",
30
+ limeBold: "_syazwdcn",
31
+ magenta: "_syazv8hk",
32
+ magentaBold: "_syazwdcn",
33
+ orange: "_syaz7r97",
34
+ orangeBold: "_syazwdcn",
35
+ purple: "_syaz5yjc",
36
+ purpleBold: "_syazwdcn",
37
+ red: "_syaznbxb",
38
+ redBold: "_syazwdcn",
39
+ teal: "_syaz8uof",
40
+ tealBold: "_syazwdcn",
41
+ yellow: "_syaz1oqg",
42
+ yellowBold: "_syazwdcn"
43
+ };
44
+
45
+ // Background color mapping for Tile component
46
+ const backgroundColorMap = {
47
+ blue: undefined,
48
+ blueBold: 'color.background.accent.blue.subtle',
49
+ gray: undefined,
50
+ grayBold: 'color.background.neutral.bold',
51
+ green: undefined,
52
+ greenBold: 'color.background.accent.green.subtle',
53
+ lime: undefined,
54
+ limeBold: 'color.background.accent.lime.subtle',
55
+ magenta: undefined,
56
+ magentaBold: 'color.background.accent.magenta.subtle',
57
+ orange: undefined,
58
+ orangeBold: 'color.background.accent.orange.subtle',
59
+ purple: undefined,
60
+ purpleBold: 'color.background.accent.purple.subtle',
61
+ red: undefined,
62
+ redBold: 'color.background.accent.red.subtle',
63
+ teal: undefined,
64
+ tealBold: 'color.background.accent.teal.subtle',
65
+ yellow: undefined,
66
+ yellowBold: 'color.background.accent.yellow.subtle'
67
+ };
68
+
69
+ /**
70
+ * __IconTile__
71
+ *
72
+ * An icon with background shape, color, and size properties determined by Tile.
73
+ */
74
+ export default function IconTileNew(props) {
75
+ const {
76
+ icon: Icon,
77
+ label,
78
+ appearance,
79
+ size = 'small',
80
+ testId
81
+ } = props;
82
+ const ExpandedIcon = Icon;
83
+ return /*#__PURE__*/React.createElement(Tile, {
84
+ size: sizeCrossCompatibleMap[size],
85
+ backgroundColor: backgroundColorMap[appearance],
86
+ label: label,
87
+ testId: testId
88
+ }, /*#__PURE__*/React.createElement("span", {
89
+ className: ax([iconColorMap[appearance]])
90
+ }, /*#__PURE__*/React.createElement(ExpandedIcon, {
91
+ color: "currentColor",
92
+ label: label,
93
+ shouldScale: true
94
+ })));
95
+ }
@@ -5,6 +5,7 @@
5
5
  ._1bsb1ylp{width:40px}
6
6
  ._1bsb7vkz{width:1pc}
7
7
  ._1bsbckbl{width:3pc}
8
+ ._1bsbgktf{width:20px}
8
9
  ._1bsbzwfg{width:2pc}
9
10
  ._1e0c116y{display:inline-flex}
10
11
  ._1wybidpf{font-size:0}
@@ -13,6 +14,7 @@
13
14
  ._4t3i1ylp{height:40px}
14
15
  ._4t3i7vkz{height:1pc}
15
16
  ._4t3ickbl{height:3pc}
17
+ ._4t3igktf{height:20px}
16
18
  ._4t3izwfg{height:2pc}
17
19
  ._bfhk1a17{background-color:var(--ds-background-accent-teal-subtler,#c6edfb)}
18
20
  ._bfhk1e5c{background-color:var(--ds-background-accent-green-bolder,#1f845a)}
@@ -1,10 +1,23 @@
1
- /* icon-tile.tsx generated by @compiled/babel-plugin v0.36.1 */
2
- import "./icon-tile.compiled.css";
1
+ /* icon-tile-old.tsx generated by @compiled/babel-plugin v0.38.1 */
2
+ import "./icon-tile-old.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
- import { fg } from '@atlaskit/platform-feature-flags';
5
+ const sizeCrossCompatibleMap = {
6
+ // Size mapping from new t-shirt sizes to old pixel sizes
7
+ xsmall: '20',
8
+ small: '24',
9
+ medium: '32',
10
+ large: '40',
11
+ xlarge: '48',
12
+ '16': '16',
13
+ '24': '24',
14
+ '32': '32',
15
+ '40': '40',
16
+ '48': '48'
17
+ };
6
18
  const sizeMap = {
7
19
  '16': "_1bsb7vkz _4t3i7vkz",
20
+ '20': "_1bsbgktf _4t3igktf",
8
21
  '24': "_1bsb1tcg _4t3i1tcg",
9
22
  '32': "_1bsbzwfg _4t3izwfg",
10
23
  '40': "_1bsb1ylp _4t3i1ylp",
@@ -39,13 +52,9 @@ const shapeMap = {
39
52
  const iconTileStyles = null;
40
53
 
41
54
  /**
42
- * __IconTile__ -- ⚠️ Experimental ⚠️
43
- *
44
- * An icon tile is used to present an icon with a background color.
45
- * Icon tiles, unlike standard icons, can scale up and down to provide greater emphasis.
46
- *
47
- * This component is currently in an experimental state and is subject to change in minor or patch releases.
55
+ * __IconTile__
48
56
  *
57
+ * An icon with background shape, color, and size properties determined by Tile.
49
58
  */
50
59
  export default function IconTile(props) {
51
60
  const {
@@ -54,23 +63,16 @@ export default function IconTile(props) {
54
63
  appearance,
55
64
  size = '24',
56
65
  shape = 'square',
57
- LEGACY_fallbackComponent,
58
66
  testId
59
67
  } = props;
60
68
  const ExpandedIcon = Icon;
61
-
62
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
63
- if (LEGACY_fallbackComponent && !fg('platform-visual-refresh-icons')) {
64
- return LEGACY_fallbackComponent;
65
- } else {
66
- return /*#__PURE__*/React.createElement("span", {
67
- "data-testid": testId,
68
- className: ax(["_1e0c116y _vchhusvi _4cvr1h6o _1bah1h6o _1wybidpf", appearanceMap[appearance], sizeMap[size], shapeMap[shape]])
69
- }, /*#__PURE__*/React.createElement(ExpandedIcon, {
70
- color: "currentColor",
71
- label: label,
72
- spacing: "spacious",
73
- shouldScale: true
74
- }));
75
- }
69
+ return /*#__PURE__*/React.createElement("span", {
70
+ "data-testid": testId,
71
+ className: ax(["_1e0c116y _vchhusvi _4cvr1h6o _1bah1h6o _1wybidpf", appearanceMap[appearance], sizeMap[sizeCrossCompatibleMap[size]], shapeMap[shape]])
72
+ }, /*#__PURE__*/React.createElement(ExpandedIcon, {
73
+ color: "currentColor",
74
+ label: label,
75
+ spacing: "spacious",
76
+ shouldScale: true
77
+ }));
76
78
  }
@@ -0,0 +1,79 @@
1
+ import React from 'react';
2
+ import { fg } from '@atlaskit/platform-feature-flags';
3
+ // Import both versions
4
+ import IconTileNew from './icon-tile-new';
5
+ import IconTileOld from './icon-tile-old';
6
+
7
+ // Color mapping for size 16 standalone icons that will no longer be tiles
8
+ const appearanceToIconColorMap = {
9
+ blue: "var(--ds-icon-accent-blue, #1D7AFC)",
10
+ blueBold: "var(--ds-icon-accent-blue, #1D7AFC)",
11
+ gray: "var(--ds-icon-accent-gray, #758195)",
12
+ grayBold: "var(--ds-icon-accent-gray, #758195)",
13
+ green: "var(--ds-icon-accent-green, #22A06B)",
14
+ greenBold: "var(--ds-icon-accent-green, #22A06B)",
15
+ lime: "var(--ds-icon-accent-lime, #6A9A23)",
16
+ limeBold: "var(--ds-icon-accent-lime, #6A9A23)",
17
+ magenta: "var(--ds-icon-accent-magenta, #CD519D)",
18
+ magentaBold: "var(--ds-icon-accent-magenta, #CD519D)",
19
+ orange: "var(--ds-icon-accent-orange, #E56910)",
20
+ orangeBold: "var(--ds-icon-accent-orange, #E56910)",
21
+ purple: "var(--ds-icon-accent-purple, #8270DB)",
22
+ purpleBold: "var(--ds-icon-accent-purple, #8270DB)",
23
+ red: "var(--ds-icon-accent-red, #C9372C)",
24
+ redBold: "var(--ds-icon-accent-red, #C9372C)",
25
+ teal: "var(--ds-icon-accent-teal, #2898BD)",
26
+ tealBold: "var(--ds-icon-accent-teal, #2898BD)",
27
+ yellow: "var(--ds-icon-accent-yellow, #B38600)",
28
+ yellowBold: "var(--ds-icon-accent-yellow, #B38600)"
29
+ };
30
+
31
+ /**
32
+ * __IconTile__
33
+ *
34
+ * An icon with background shape, color, and size properties determined by Tile.
35
+ */
36
+ export default function IconTile({
37
+ appearance,
38
+ icon: Icon,
39
+ label,
40
+ size,
41
+ testId,
42
+ shape,
43
+ LEGACY_fallbackComponent,
44
+ UNSAFE_circleReplacementComponent
45
+ }) {
46
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
47
+ if (LEGACY_fallbackComponent && !fg('platform-visual-refresh-icons')) {
48
+ return LEGACY_fallbackComponent;
49
+ }
50
+ if (UNSAFE_circleReplacementComponent && shape === 'circle' && fg('platform_dst_icon_tile_circle_replacement')) {
51
+ return UNSAFE_circleReplacementComponent;
52
+ }
53
+ if (shape !== 'circle' && fg('platform_dst_new_icon_tile')) {
54
+ // Handle size 16 - render icon directly without Tile
55
+ if (size === '16') {
56
+ return /*#__PURE__*/React.createElement(Icon, {
57
+ color: appearanceToIconColorMap[appearance],
58
+ label: label,
59
+ testId: testId
60
+ });
61
+ }
62
+ return /*#__PURE__*/React.createElement(IconTileNew, {
63
+ appearance: appearance,
64
+ icon: Icon,
65
+ label: label,
66
+ shape: shape,
67
+ size: size,
68
+ testId: testId
69
+ });
70
+ }
71
+ return /*#__PURE__*/React.createElement(IconTileOld, {
72
+ appearance: appearance,
73
+ icon: Icon,
74
+ label: label,
75
+ shape: shape,
76
+ size: size,
77
+ testId: testId
78
+ });
79
+ }
@@ -1,4 +1,4 @@
1
- /* icon.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* icon.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./icon.compiled.css";
4
4
  import * as React from 'react';
@@ -1,4 +1,4 @@
1
- /* skeleton.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* skeleton.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./skeleton.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* svg.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* svg.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./svg.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * To change the format of this file, modify `createIconDocsNew` in icon-build-process/src/create-icon-docs.tsx.
5
5
  *
6
- * @codegen <<SignedSource::736757b9fbc08cfe04a0dfd387060116>>
6
+ * @codegen <<SignedSource::ee18f4e5865068325a476701d51323b5>>
7
7
  * @codegenCommand yarn build:icon-glyphs
8
8
  */
9
9
 
@@ -511,7 +511,7 @@ const metadata = {
511
511
  package: '@atlaskit/icon/core/cash',
512
512
  type: 'core',
513
513
  categorization: 'multi-purpose',
514
- usage: "Known usages: 'Sales' work type.",
514
+ usage: "Known usages: \'Sales\' work type.",
515
515
  team: 'Design System Team',
516
516
  status: 'published'
517
517
  },
@@ -1111,7 +1111,7 @@ const metadata = {
1111
1111
  package: '@atlaskit/icon/core/devices',
1112
1112
  type: 'core',
1113
1113
  categorization: 'multi-purpose',
1114
- usage: "Known usages: 'Asset' work type.",
1114
+ usage: "Known usages: \'Asset\' work type.",
1115
1115
  team: 'Design System Team',
1116
1116
  status: 'published'
1117
1117
  },
@@ -1204,7 +1204,7 @@ const metadata = {
1204
1204
  oldName: ['editor/emoji', 'emoji/emoji', 'emoji', 'emoji/people'],
1205
1205
  type: 'core',
1206
1206
  categorization: 'single-purpose',
1207
- usage: "Single purpose - Reserved for Editor as a category for Emoji's.",
1207
+ usage: "Single purpose - Reserved for Editor as a category for Emoji\'s.",
1208
1208
  team: 'Design System Team',
1209
1209
  status: 'published'
1210
1210
  },
@@ -1417,7 +1417,7 @@ const metadata = {
1417
1417
  oldName: ['document-filled', 'document', 'editor/file', 'file'],
1418
1418
  type: 'core',
1419
1419
  categorization: 'multi-purpose',
1420
- usage: "Multi purpose - Known uses: document, file. Do not use to represent a page — use the dedicated 'Page' icon instead.",
1420
+ usage: "Multi purpose - Known uses: document, file. Do not use to represent a page — use the dedicated \'Page\' icon instead.",
1421
1421
  team: 'Design System Team',
1422
1422
  status: 'published'
1423
1423
  },
@@ -1428,7 +1428,7 @@ const metadata = {
1428
1428
  oldName: ['documents'],
1429
1429
  type: 'core',
1430
1430
  categorization: 'multi-purpose',
1431
- usage: "Multi purpose - Known uses: documents, files. Do not use to represent pages — use the dedicated 'Pages' icon instead.",
1431
+ usage: "Multi purpose - Known uses: documents, files. Do not use to represent pages — use the dedicated \'Pages\' icon instead.",
1432
1432
  team: 'Design System Team',
1433
1433
  status: 'published'
1434
1434
  },
@@ -1713,7 +1713,7 @@ const metadata = {
1713
1713
  oldName: ['tray'],
1714
1714
  type: 'core',
1715
1715
  categorization: 'multi-purpose',
1716
- usage: "Multi purpose - Known uses: 'Your work' in Confluence, inbox, mail.",
1716
+ usage: "Multi purpose - Known uses: \'Your work\' in Confluence, inbox, mail.",
1717
1717
  team: 'Design System Team',
1718
1718
  status: 'published'
1719
1719
  },
@@ -1739,7 +1739,7 @@ const metadata = {
1739
1739
  location: '@atlaskit/icon'
1740
1740
  },
1741
1741
  categorization: 'single-purpose',
1742
- usage: "Reserved for information statuses and messaging. Filled status icons provide higher visual contrast to draw attention to important information. For information tooltips, use the unfilled 'information circle' icon.",
1742
+ usage: "Reserved for information statuses and messaging. Filled status icons provide higher visual contrast to draw attention to important information. For information tooltips, use the unfilled \'information circle\' icon.",
1743
1743
  team: 'Design System Team',
1744
1744
  status: 'deprecated'
1745
1745
  },
@@ -1901,7 +1901,7 @@ const metadata = {
1901
1901
  package: '@atlaskit/icon/core/list-checklist',
1902
1902
  type: 'core',
1903
1903
  categorization: 'multi-purpose',
1904
- usage: "Known usages: Checklist, 'Requirement' work type.",
1904
+ usage: "Known usages: Checklist, \'Requirement\' work type.",
1905
1905
  team: 'Design System Team',
1906
1906
  status: 'published'
1907
1907
  },
@@ -2115,7 +2115,7 @@ const metadata = {
2115
2115
  package: '@atlaskit/icon/core/minus-square',
2116
2116
  type: 'core',
2117
2117
  categorization: 'multi-purpose',
2118
- usage: "Known usages: 'Remove feature' work type.",
2118
+ usage: "Known usages: \'Remove feature\' work type.",
2119
2119
  team: 'Design System Team',
2120
2120
  status: 'published'
2121
2121
  },
@@ -2272,7 +2272,7 @@ const metadata = {
2272
2272
  package: '@atlaskit/icon/core/pen',
2273
2273
  type: 'core',
2274
2274
  categorization: 'multi-purpose',
2275
- usage: "Known usages: 'Design task' work type.",
2275
+ usage: "Known usages: \'Design task\' work type.",
2276
2276
  team: 'Design System Team',
2277
2277
  status: 'published'
2278
2278
  },
@@ -2400,7 +2400,7 @@ const metadata = {
2400
2400
  oldName: ['issue-raise'],
2401
2401
  type: 'core',
2402
2402
  categorization: 'multi-purpose',
2403
- usage: "Known usages: 'New feature' work type.",
2403
+ usage: "Known usages: \'New feature\' work type.",
2404
2404
  team: 'Design System Team',
2405
2405
  status: 'published'
2406
2406
  },
@@ -3073,7 +3073,7 @@ const metadata = {
3073
3073
  oldName: ['editor/info', 'editor/panel', 'info'],
3074
3074
  type: 'core',
3075
3075
  categorization: 'single-purpose',
3076
- usage: "Reserved for information statuses and messaging. Filled status icons provide higher visual contrast to draw attention to important information. For information tooltips, use the unfilled 'information circle' icon.",
3076
+ usage: "Reserved for information statuses and messaging. Filled status icons provide higher visual contrast to draw attention to important information. For information tooltips, use the unfilled \'information circle\' icon.",
3077
3077
  team: 'Design System Team',
3078
3078
  status: 'published'
3079
3079
  },
@@ -3617,7 +3617,7 @@ const metadata = {
3617
3617
  package: '@atlaskit/icon/core/tools',
3618
3618
  type: 'core',
3619
3619
  categorization: 'multi-purpose',
3620
- usage: "Known usages: 'Service request' Jira work type.",
3620
+ usage: "Known usages: \'Service request\' Jira work type.",
3621
3621
  team: 'Design System Team',
3622
3622
  status: 'published'
3623
3623
  },
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * To change the format of this file, modify `createIconDocs` in icon-build-process/src/create-icon-docs.tsx.
5
5
  *
6
- * @codegen <<SignedSource::505188bcbfbd2bedd523b7a93366dd82>>
6
+ * @codegen <<SignedSource::5b9b70e1898d13b76e8faef592720556>>
7
7
  * @codegenCommand yarn build:icon-glyphs
8
8
  */
9
9
  /* eslint-disable import/no-extraneous-dependencies -- This import is within the same package, hence self-referential. */
@@ -1,4 +1,4 @@
1
- /* icon-new.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* icon-new.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./icon-new.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -0,0 +1,12 @@
1
+ ._syaz17hp{color:var(--ds-icon-accent-green,#22a06b)}
2
+ ._syaz1oju{color:var(--ds-icon-subtle,#626f86)}
3
+ ._syaz1oqg{color:var(--ds-icon-accent-yellow,#b38600)}
4
+ ._syaz1ov1{color:var(--ds-icon-accent-blue,#1d7afc)}
5
+ ._syaz5w2r{color:var(--ds-icon-inverse,#fff)}
6
+ ._syaz5yjc{color:var(--ds-icon-accent-purple,#8270db)}
7
+ ._syaz7r97{color:var(--ds-icon-accent-orange,#e56910)}
8
+ ._syaz8645{color:var(--ds-icon-accent-lime,#6a9a23)}
9
+ ._syaz8uof{color:var(--ds-icon-accent-teal,#2898bd)}
10
+ ._syaznbxb{color:var(--ds-icon-accent-red,#c9372c)}
11
+ ._syazv8hk{color:var(--ds-icon-accent-magenta,#cd519d)}
12
+ ._syazwdcn{color:var(--ds-icon,#44546f)}
@@ -0,0 +1,94 @@
1
+ /* icon-tile-new.tsx generated by @compiled/babel-plugin v0.38.1 */
2
+ import "./icon-tile-new.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
5
+ import Tile from '@atlaskit/tile';
6
+ var sizeCrossCompatibleMap = {
7
+ // Size mapping from old pixel sizes to new t-shirt sizes
8
+ '16': 'xsmall',
9
+ // Not used
10
+ '24': 'small',
11
+ '32': 'medium',
12
+ '40': 'large',
13
+ '48': 'xlarge',
14
+ xsmall: 'xsmall',
15
+ small: 'small',
16
+ medium: 'medium',
17
+ large: 'large',
18
+ xlarge: 'xlarge'
19
+ };
20
+
21
+ // Icon color mapping for Tile-based icons
22
+ var iconColorMap = {
23
+ blue: "_syaz1ov1",
24
+ blueBold: "_syazwdcn",
25
+ gray: "_syaz1oju",
26
+ grayBold: "_syaz5w2r",
27
+ green: "_syaz17hp",
28
+ greenBold: "_syazwdcn",
29
+ lime: "_syaz8645",
30
+ limeBold: "_syazwdcn",
31
+ magenta: "_syazv8hk",
32
+ magentaBold: "_syazwdcn",
33
+ orange: "_syaz7r97",
34
+ orangeBold: "_syazwdcn",
35
+ purple: "_syaz5yjc",
36
+ purpleBold: "_syazwdcn",
37
+ red: "_syaznbxb",
38
+ redBold: "_syazwdcn",
39
+ teal: "_syaz8uof",
40
+ tealBold: "_syazwdcn",
41
+ yellow: "_syaz1oqg",
42
+ yellowBold: "_syazwdcn"
43
+ };
44
+
45
+ // Background color mapping for Tile component
46
+ var backgroundColorMap = {
47
+ blue: undefined,
48
+ blueBold: 'color.background.accent.blue.subtle',
49
+ gray: undefined,
50
+ grayBold: 'color.background.neutral.bold',
51
+ green: undefined,
52
+ greenBold: 'color.background.accent.green.subtle',
53
+ lime: undefined,
54
+ limeBold: 'color.background.accent.lime.subtle',
55
+ magenta: undefined,
56
+ magentaBold: 'color.background.accent.magenta.subtle',
57
+ orange: undefined,
58
+ orangeBold: 'color.background.accent.orange.subtle',
59
+ purple: undefined,
60
+ purpleBold: 'color.background.accent.purple.subtle',
61
+ red: undefined,
62
+ redBold: 'color.background.accent.red.subtle',
63
+ teal: undefined,
64
+ tealBold: 'color.background.accent.teal.subtle',
65
+ yellow: undefined,
66
+ yellowBold: 'color.background.accent.yellow.subtle'
67
+ };
68
+
69
+ /**
70
+ * __IconTile__
71
+ *
72
+ * An icon with background shape, color, and size properties determined by Tile.
73
+ */
74
+ export default function IconTileNew(props) {
75
+ var Icon = props.icon,
76
+ label = props.label,
77
+ appearance = props.appearance,
78
+ _props$size = props.size,
79
+ size = _props$size === void 0 ? 'small' : _props$size,
80
+ testId = props.testId;
81
+ var ExpandedIcon = Icon;
82
+ return /*#__PURE__*/React.createElement(Tile, {
83
+ size: sizeCrossCompatibleMap[size],
84
+ backgroundColor: backgroundColorMap[appearance],
85
+ label: label,
86
+ testId: testId
87
+ }, /*#__PURE__*/React.createElement("span", {
88
+ className: ax([iconColorMap[appearance]])
89
+ }, /*#__PURE__*/React.createElement(ExpandedIcon, {
90
+ color: "currentColor",
91
+ label: label,
92
+ shouldScale: true
93
+ })));
94
+ }
@@ -5,6 +5,7 @@
5
5
  ._1bsb1ylp{width:40px}
6
6
  ._1bsb7vkz{width:1pc}
7
7
  ._1bsbckbl{width:3pc}
8
+ ._1bsbgktf{width:20px}
8
9
  ._1bsbzwfg{width:2pc}
9
10
  ._1e0c116y{display:inline-flex}
10
11
  ._1wybidpf{font-size:0}
@@ -13,6 +14,7 @@
13
14
  ._4t3i1ylp{height:40px}
14
15
  ._4t3i7vkz{height:1pc}
15
16
  ._4t3ickbl{height:3pc}
17
+ ._4t3igktf{height:20px}
16
18
  ._4t3izwfg{height:2pc}
17
19
  ._bfhk1a17{background-color:var(--ds-background-accent-teal-subtler,#c6edfb)}
18
20
  ._bfhk1e5c{background-color:var(--ds-background-accent-green-bolder,#1f845a)}
@@ -1,10 +1,23 @@
1
- /* icon-tile.tsx generated by @compiled/babel-plugin v0.36.1 */
2
- import "./icon-tile.compiled.css";
1
+ /* icon-tile-old.tsx generated by @compiled/babel-plugin v0.38.1 */
2
+ import "./icon-tile-old.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
- import { fg } from '@atlaskit/platform-feature-flags';
5
+ var sizeCrossCompatibleMap = {
6
+ // Size mapping from new t-shirt sizes to old pixel sizes
7
+ xsmall: '20',
8
+ small: '24',
9
+ medium: '32',
10
+ large: '40',
11
+ xlarge: '48',
12
+ '16': '16',
13
+ '24': '24',
14
+ '32': '32',
15
+ '40': '40',
16
+ '48': '48'
17
+ };
6
18
  var sizeMap = {
7
19
  '16': "_1bsb7vkz _4t3i7vkz",
20
+ '20': "_1bsbgktf _4t3igktf",
8
21
  '24': "_1bsb1tcg _4t3i1tcg",
9
22
  '32': "_1bsbzwfg _4t3izwfg",
10
23
  '40': "_1bsb1ylp _4t3i1ylp",
@@ -39,13 +52,9 @@ var shapeMap = {
39
52
  var iconTileStyles = null;
40
53
 
41
54
  /**
42
- * __IconTile__ -- ⚠️ Experimental ⚠️
43
- *
44
- * An icon tile is used to present an icon with a background color.
45
- * Icon tiles, unlike standard icons, can scale up and down to provide greater emphasis.
46
- *
47
- * This component is currently in an experimental state and is subject to change in minor or patch releases.
55
+ * __IconTile__
48
56
  *
57
+ * An icon with background shape, color, and size properties determined by Tile.
49
58
  */
50
59
  export default function IconTile(props) {
51
60
  var Icon = props.icon,
@@ -55,22 +64,15 @@ export default function IconTile(props) {
55
64
  size = _props$size === void 0 ? '24' : _props$size,
56
65
  _props$shape = props.shape,
57
66
  shape = _props$shape === void 0 ? 'square' : _props$shape,
58
- LEGACY_fallbackComponent = props.LEGACY_fallbackComponent,
59
67
  testId = props.testId;
60
68
  var ExpandedIcon = Icon;
61
-
62
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
63
- if (LEGACY_fallbackComponent && !fg('platform-visual-refresh-icons')) {
64
- return LEGACY_fallbackComponent;
65
- } else {
66
- return /*#__PURE__*/React.createElement("span", {
67
- "data-testid": testId,
68
- className: ax(["_1e0c116y _vchhusvi _4cvr1h6o _1bah1h6o _1wybidpf", appearanceMap[appearance], sizeMap[size], shapeMap[shape]])
69
- }, /*#__PURE__*/React.createElement(ExpandedIcon, {
70
- color: "currentColor",
71
- label: label,
72
- spacing: "spacious",
73
- shouldScale: true
74
- }));
75
- }
69
+ return /*#__PURE__*/React.createElement("span", {
70
+ "data-testid": testId,
71
+ className: ax(["_1e0c116y _vchhusvi _4cvr1h6o _1bah1h6o _1wybidpf", appearanceMap[appearance], sizeMap[sizeCrossCompatibleMap[size]], shapeMap[shape]])
72
+ }, /*#__PURE__*/React.createElement(ExpandedIcon, {
73
+ color: "currentColor",
74
+ label: label,
75
+ spacing: "spacious",
76
+ shouldScale: true
77
+ }));
76
78
  }