@atlaskit/icon 28.2.1 → 28.4.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 (64) hide show
  1. package/CHANGELOG.md +33 -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/core/chart-pie.js +2 -2
  11. package/dist/cjs/components/icon-new.js +1 -1
  12. package/dist/cjs/components/icon-tile/icon-tile-new.compiled.css +12 -0
  13. package/dist/cjs/components/icon-tile/icon-tile-new.js +103 -0
  14. package/dist/cjs/components/{icon-tile.compiled.css → icon-tile/icon-tile-old.compiled.css} +2 -0
  15. package/dist/cjs/components/{icon-tile.js → icon-tile/icon-tile-old.js} +27 -25
  16. package/dist/cjs/components/icon-tile/index.js +85 -0
  17. package/dist/cjs/components/icon.js +1 -1
  18. package/dist/cjs/components/skeleton.js +1 -1
  19. package/dist/cjs/components/svg.js +1 -1
  20. package/dist/cjs/metadata-core.js +14 -14
  21. package/dist/cjs/metadata.js +1 -1
  22. package/dist/es2019/components/icon-new.js +1 -1
  23. package/dist/es2019/components/icon-tile/icon-tile-new.compiled.css +12 -0
  24. package/dist/es2019/components/icon-tile/icon-tile-new.js +95 -0
  25. package/dist/{esm/components/icon-tile.compiled.css → es2019/components/icon-tile/icon-tile-old.compiled.css} +2 -0
  26. package/dist/es2019/components/{icon-tile.js → icon-tile/icon-tile-old.js} +27 -25
  27. package/dist/es2019/components/icon-tile/index.js +79 -0
  28. package/dist/es2019/components/icon.js +1 -1
  29. package/dist/es2019/components/skeleton.js +1 -1
  30. package/dist/es2019/components/svg.js +1 -1
  31. package/dist/es2019/metadata-core.js +14 -14
  32. package/dist/es2019/metadata.js +1 -1
  33. package/dist/esm/components/icon-new.js +1 -1
  34. package/dist/esm/components/icon-tile/icon-tile-new.compiled.css +12 -0
  35. package/dist/esm/components/icon-tile/icon-tile-new.js +94 -0
  36. package/dist/{es2019/components/icon-tile.compiled.css → esm/components/icon-tile/icon-tile-old.compiled.css} +2 -0
  37. package/dist/esm/components/{icon-tile.js → icon-tile/icon-tile-old.js} +27 -25
  38. package/dist/esm/components/icon-tile/index.js +78 -0
  39. package/dist/esm/components/icon.js +1 -1
  40. package/dist/esm/components/skeleton.js +1 -1
  41. package/dist/esm/components/svg.js +1 -1
  42. package/dist/esm/metadata-core.js +14 -14
  43. package/dist/esm/metadata.js +1 -1
  44. package/dist/types/components/icon-tile/icon-tile-new.d.ts +7 -0
  45. package/dist/types/components/icon-tile/icon-tile-old.d.ts +7 -0
  46. package/dist/types/components/icon-tile/index.d.ts +8 -0
  47. package/dist/types/entry-points/types.d.ts +1 -1
  48. package/dist/types/metadata-core.d.ts +1 -1
  49. package/dist/types/metadata.d.ts +2 -8
  50. package/dist/types/types.d.ts +26 -3
  51. package/dist/types-ts4.5/components/icon-tile/icon-tile-new.d.ts +7 -0
  52. package/dist/types-ts4.5/components/icon-tile/icon-tile-old.d.ts +7 -0
  53. package/dist/types-ts4.5/components/icon-tile/index.d.ts +8 -0
  54. package/dist/types-ts4.5/entry-points/types.d.ts +1 -1
  55. package/dist/types-ts4.5/metadata-core.d.ts +1 -1
  56. package/dist/types-ts4.5/metadata.d.ts +2 -8
  57. package/dist/types-ts4.5/types.d.ts +26 -3
  58. package/docs/ai/icon-instructions.md +556 -6
  59. package/package.json +18 -10
  60. package/svgs/core/chart-pie.svg +1 -1
  61. package/utils/logo-icons.tsx +65 -49
  62. package/utils/synonyms.tsx +301 -300
  63. package/dist/types/components/icon-tile.d.ts +0 -11
  64. package/dist/types-ts4.5/components/icon-tile.d.ts +0 -11
package/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
1
1
  # @atlaskit/icon
2
2
 
3
+ ## 28.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`0a012007605a2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0a012007605a2) -
8
+ This release updates icons in `@atlaskit/icon`.
9
+
10
+ ### Updated:
11
+
12
+ **`@atlaskit/icon/core`**
13
+
14
+ - `chart-pie`
15
+
16
+ ## 28.3.0
17
+
18
+ ### Minor Changes
19
+
20
+ - [`99f4f441fac8c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/99f4f441fac8c) -
21
+ We are testing new design language visual changes to Icon Tile behind a feature flag. If this
22
+ change is successful it will be available in a later release.
23
+
24
+ Additionally, backwards-compatible API changes were required to support this:
25
+
26
+ - Deprecation of pixel number `size` in favor of new t-shirt sizes
27
+ - Deprecation of `size` "16"
28
+ - Deprecation of `shape`
29
+ - Added `UNSAFE_circleReplacementComponent` prop temporarily to assist `shape` migrations
30
+ - Deprecation of `LEGACY_fallbackComponent`
31
+
32
+ ### Patch Changes
33
+
34
+ - Updated dependencies
35
+
3
36
  ## 28.2.1
4
37
 
5
38
  ### Patch Changes
@@ -26,6 +26,9 @@
26
26
  {
27
27
  "path": "../../../platform/feature-flags/afm-cc/tsconfig.json"
28
28
  },
29
+ {
30
+ "path": "../../tile/afm-cc/tsconfig.json"
31
+ },
29
32
  {
30
33
  "path": "../../tokens/afm-cc/tsconfig.json"
31
34
  }
@@ -26,6 +26,9 @@
26
26
  {
27
27
  "path": "../../../platform/feature-flags/afm-dev-agents/tsconfig.json"
28
28
  },
29
+ {
30
+ "path": "../../tile/afm-dev-agents/tsconfig.json"
31
+ },
29
32
  {
30
33
  "path": "../../tokens/afm-dev-agents/tsconfig.json"
31
34
  }
@@ -26,6 +26,9 @@
26
26
  {
27
27
  "path": "../../../platform/feature-flags/afm-jira/tsconfig.json"
28
28
  },
29
+ {
30
+ "path": "../../tile/afm-jira/tsconfig.json"
31
+ },
29
32
  {
30
33
  "path": "../../tokens/afm-jira/tsconfig.json"
31
34
  }
@@ -26,6 +26,9 @@
26
26
  {
27
27
  "path": "../../../platform/feature-flags/afm-passionfruit/tsconfig.json"
28
28
  },
29
+ {
30
+ "path": "../../tile/afm-passionfruit/tsconfig.json"
31
+ },
29
32
  {
30
33
  "path": "../../tokens/afm-passionfruit/tsconfig.json"
31
34
  }
@@ -26,6 +26,9 @@
26
26
  {
27
27
  "path": "../../../platform/feature-flags/afm-post-office/tsconfig.json"
28
28
  },
29
+ {
30
+ "path": "../../tile/afm-post-office/tsconfig.json"
31
+ },
29
32
  {
30
33
  "path": "../../tokens/afm-post-office/tsconfig.json"
31
34
  }
@@ -26,6 +26,9 @@
26
26
  {
27
27
  "path": "../../../platform/feature-flags/afm-rovo-extension/tsconfig.json"
28
28
  },
29
+ {
30
+ "path": "../../tile/afm-rovo-extension/tsconfig.json"
31
+ },
29
32
  {
30
33
  "path": "../../tokens/afm-rovo-extension/tsconfig.json"
31
34
  }
@@ -26,6 +26,9 @@
26
26
  {
27
27
  "path": "../../../platform/feature-flags/afm-townsquare/tsconfig.json"
28
28
  },
29
+ {
30
+ "path": "../../tile/afm-townsquare/tsconfig.json"
31
+ },
29
32
  {
30
33
  "path": "../../tokens/afm-townsquare/tsconfig.json"
31
34
  }
package/build/index.tsx CHANGED
@@ -29,7 +29,7 @@ async function main() {
29
29
 
30
30
  /**
31
31
  * The legacy icon build process. A past SVGO update disabled this process and slightly changed the SVG output.
32
- * Re-running this step re-generates all icons and triggers a large number of platform/product snapshot tests.
32
+ * Re-running this step re-generates all icons and triggers a large number of platform/app snapshot tests.
33
33
  *
34
34
  * To avoid unnecessary churn, this step is switched off, and any updates to the old icon set can be done piecemeal.
35
35
  */
package/core/chart-pie.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::458e1f507cdfe939b7f46674372cf129>>
3
+ * @codegen <<SignedSource::4428a859d58db8bc3cfb72e5cd497419>>
4
4
  * @codegenCommand yarn build:icon-glyphs
5
5
  */
6
6
  "use strict";
@@ -22,7 +22,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
22
22
  */
23
23
  const ChartPieIcon = props => /*#__PURE__*/_react.default.createElement(_baseNew.default, Object.assign({
24
24
  name: "ChartPieIcon",
25
- dangerouslySetGlyph: `<mask id="mask0_55124_7686" width="16" height="16" x="0" y="0" maskUnits="userSpaceOnUse" style="mask-type:alpha"><path fill="currentcolor" d="M5.106 0C5.04.239 5 .49 5 .75v7.5a2.75 2.75 0 0 0 3.462 2.656l7.246-1.941q.15-.04.292-.098V16H0V0zm5.672 4.59-.278.076v-.29q.143.102.278.215M16 2.17A10.3 10.3 0 0 0 13.831 0H16z"/></mask><g mask="url(#mask0_55124_7686)"><path stroke="currentcolor" stroke-linejoin="round" stroke-width="1.5" d="M1.75 8a6.25 6.25 0 1 0 12.5 0 6.25 6.25 0 0 0-12.5 0Z"/></g><path stroke="currentcolor" stroke-linejoin="round" stroke-width="1.5" d="M7.75 8.25V.75c3.47 0 6.39 2.357 7.246 5.558z"/>`
25
+ dangerouslySetGlyph: `<mask id="mask0_56173_3412" width="16" height="16" x="0" y="0" maskUnits="userSpaceOnUse" style="mask-type:alpha"><path fill="currentcolor" d="M5.106 0C5.04.239 5 .49 5 .75v7.5a2.75 2.75 0 0 0 3.462 2.656l7.246-1.941q.15-.04.292-.098V16H0V0zm5.672 4.59-.278.076v-.29q.143.102.278.215M16 2.17A10.3 10.3 0 0 0 13.831 0H16z"/></mask><g mask="url(#mask0_56173_3412)"><path stroke="currentcolor" stroke-linejoin="round" stroke-width="1.5" d="M1.75 8a6.25 6.25 0 1 0 12.5 0 6.25 6.25 0 0 0-12.5 0Z"/></g><path stroke="currentcolor" stroke-linejoin="round" stroke-width="1.5" d="M7.75 8.25V.75c3.47 0 6.39 2.357 7.246 5.558z"/>`
26
26
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
27
27
  }, props));
28
28
  ChartPieIcon.displayName = 'ChartPieIcon';
@@ -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
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -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,103 @@
1
+ /* icon-tile-new.tsx generated by @compiled/babel-plugin v0.38.1 */
2
+ "use strict";
3
+
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+ Object.defineProperty(exports, "__esModule", {
7
+ value: true
8
+ });
9
+ exports.default = IconTileNew;
10
+ require("./icon-tile-new.compiled.css");
11
+ var React = _interopRequireWildcard(require("react"));
12
+ var _runtime = require("@compiled/react/runtime");
13
+ var _tile = _interopRequireDefault(require("@atlaskit/tile"));
14
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
15
+ var sizeCrossCompatibleMap = {
16
+ // Size mapping from old pixel sizes to new t-shirt sizes
17
+ '16': 'xsmall',
18
+ // Not used
19
+ '24': 'small',
20
+ '32': 'medium',
21
+ '40': 'large',
22
+ '48': 'xlarge',
23
+ xsmall: 'xsmall',
24
+ small: 'small',
25
+ medium: 'medium',
26
+ large: 'large',
27
+ xlarge: 'xlarge'
28
+ };
29
+
30
+ // Icon color mapping for Tile-based icons
31
+ var iconColorMap = {
32
+ blue: "_syaz1ov1",
33
+ blueBold: "_syazwdcn",
34
+ gray: "_syaz1oju",
35
+ grayBold: "_syaz5w2r",
36
+ green: "_syaz17hp",
37
+ greenBold: "_syazwdcn",
38
+ lime: "_syaz8645",
39
+ limeBold: "_syazwdcn",
40
+ magenta: "_syazv8hk",
41
+ magentaBold: "_syazwdcn",
42
+ orange: "_syaz7r97",
43
+ orangeBold: "_syazwdcn",
44
+ purple: "_syaz5yjc",
45
+ purpleBold: "_syazwdcn",
46
+ red: "_syaznbxb",
47
+ redBold: "_syazwdcn",
48
+ teal: "_syaz8uof",
49
+ tealBold: "_syazwdcn",
50
+ yellow: "_syaz1oqg",
51
+ yellowBold: "_syazwdcn"
52
+ };
53
+
54
+ // Background color mapping for Tile component
55
+ var backgroundColorMap = {
56
+ blue: undefined,
57
+ blueBold: 'color.background.accent.blue.subtle',
58
+ gray: undefined,
59
+ grayBold: 'color.background.neutral.bold',
60
+ green: undefined,
61
+ greenBold: 'color.background.accent.green.subtle',
62
+ lime: undefined,
63
+ limeBold: 'color.background.accent.lime.subtle',
64
+ magenta: undefined,
65
+ magentaBold: 'color.background.accent.magenta.subtle',
66
+ orange: undefined,
67
+ orangeBold: 'color.background.accent.orange.subtle',
68
+ purple: undefined,
69
+ purpleBold: 'color.background.accent.purple.subtle',
70
+ red: undefined,
71
+ redBold: 'color.background.accent.red.subtle',
72
+ teal: undefined,
73
+ tealBold: 'color.background.accent.teal.subtle',
74
+ yellow: undefined,
75
+ yellowBold: 'color.background.accent.yellow.subtle'
76
+ };
77
+
78
+ /**
79
+ * __IconTile__
80
+ *
81
+ * An icon with background shape, color, and size properties determined by Tile.
82
+ */
83
+ function IconTileNew(props) {
84
+ var Icon = props.icon,
85
+ label = props.label,
86
+ appearance = props.appearance,
87
+ _props$size = props.size,
88
+ size = _props$size === void 0 ? 'small' : _props$size,
89
+ testId = props.testId;
90
+ var ExpandedIcon = Icon;
91
+ return /*#__PURE__*/React.createElement(_tile.default, {
92
+ size: sizeCrossCompatibleMap[size],
93
+ backgroundColor: backgroundColorMap[appearance],
94
+ label: label,
95
+ testId: testId
96
+ }, /*#__PURE__*/React.createElement("span", {
97
+ className: (0, _runtime.ax)([iconColorMap[appearance]])
98
+ }, /*#__PURE__*/React.createElement(ExpandedIcon, {
99
+ color: "currentColor",
100
+ label: label,
101
+ shouldScale: true
102
+ })));
103
+ }
@@ -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,4 +1,4 @@
1
- /* icon-tile.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* icon-tile-old.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -6,13 +6,26 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.default = IconTile;
9
- require("./icon-tile.compiled.css");
9
+ require("./icon-tile-old.compiled.css");
10
10
  var React = _interopRequireWildcard(require("react"));
11
11
  var _runtime = require("@compiled/react/runtime");
12
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
12
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
13
+ var sizeCrossCompatibleMap = {
14
+ // Size mapping from new t-shirt sizes to old pixel sizes
15
+ xsmall: '20',
16
+ small: '24',
17
+ medium: '32',
18
+ large: '40',
19
+ xlarge: '48',
20
+ '16': '16',
21
+ '24': '24',
22
+ '32': '32',
23
+ '40': '40',
24
+ '48': '48'
25
+ };
14
26
  var sizeMap = {
15
27
  '16': "_1bsb7vkz _4t3i7vkz",
28
+ '20': "_1bsbgktf _4t3igktf",
16
29
  '24': "_1bsb1tcg _4t3i1tcg",
17
30
  '32': "_1bsbzwfg _4t3izwfg",
18
31
  '40': "_1bsb1ylp _4t3i1ylp",
@@ -47,13 +60,9 @@ var shapeMap = {
47
60
  var iconTileStyles = null;
48
61
 
49
62
  /**
50
- * __IconTile__ -- ⚠️ Experimental ⚠️
51
- *
52
- * An icon tile is used to present an icon with a background color.
53
- * Icon tiles, unlike standard icons, can scale up and down to provide greater emphasis.
54
- *
55
- * This component is currently in an experimental state and is subject to change in minor or patch releases.
63
+ * __IconTile__
56
64
  *
65
+ * An icon with background shape, color, and size properties determined by Tile.
57
66
  */
58
67
  function IconTile(props) {
59
68
  var Icon = props.icon,
@@ -63,22 +72,15 @@ function IconTile(props) {
63
72
  size = _props$size === void 0 ? '24' : _props$size,
64
73
  _props$shape = props.shape,
65
74
  shape = _props$shape === void 0 ? 'square' : _props$shape,
66
- LEGACY_fallbackComponent = props.LEGACY_fallbackComponent,
67
75
  testId = props.testId;
68
76
  var ExpandedIcon = Icon;
69
-
70
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
71
- if (LEGACY_fallbackComponent && !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons')) {
72
- return LEGACY_fallbackComponent;
73
- } else {
74
- return /*#__PURE__*/React.createElement("span", {
75
- "data-testid": testId,
76
- className: (0, _runtime.ax)(["_1e0c116y _vchhusvi _4cvr1h6o _1bah1h6o _1wybidpf", appearanceMap[appearance], sizeMap[size], shapeMap[shape]])
77
- }, /*#__PURE__*/React.createElement(ExpandedIcon, {
78
- color: "currentColor",
79
- label: label,
80
- spacing: "spacious",
81
- shouldScale: true
82
- }));
83
- }
77
+ return /*#__PURE__*/React.createElement("span", {
78
+ "data-testid": testId,
79
+ className: (0, _runtime.ax)(["_1e0c116y _vchhusvi _4cvr1h6o _1bah1h6o _1wybidpf", appearanceMap[appearance], sizeMap[sizeCrossCompatibleMap[size]], shapeMap[shape]])
80
+ }, /*#__PURE__*/React.createElement(ExpandedIcon, {
81
+ color: "currentColor",
82
+ label: label,
83
+ spacing: "spacious",
84
+ shouldScale: true
85
+ }));
84
86
  }
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = IconTile;
8
+ var _react = _interopRequireDefault(require("react"));
9
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
10
+ var _iconTileNew = _interopRequireDefault(require("./icon-tile-new"));
11
+ var _iconTileOld = _interopRequireDefault(require("./icon-tile-old"));
12
+ // Import both versions
13
+
14
+ // Color mapping for size 16 standalone icons that will no longer be tiles
15
+ var appearanceToIconColorMap = {
16
+ blue: "var(--ds-icon-accent-blue, #1D7AFC)",
17
+ blueBold: "var(--ds-icon-accent-blue, #1D7AFC)",
18
+ gray: "var(--ds-icon-accent-gray, #758195)",
19
+ grayBold: "var(--ds-icon-accent-gray, #758195)",
20
+ green: "var(--ds-icon-accent-green, #22A06B)",
21
+ greenBold: "var(--ds-icon-accent-green, #22A06B)",
22
+ lime: "var(--ds-icon-accent-lime, #6A9A23)",
23
+ limeBold: "var(--ds-icon-accent-lime, #6A9A23)",
24
+ magenta: "var(--ds-icon-accent-magenta, #CD519D)",
25
+ magentaBold: "var(--ds-icon-accent-magenta, #CD519D)",
26
+ orange: "var(--ds-icon-accent-orange, #E56910)",
27
+ orangeBold: "var(--ds-icon-accent-orange, #E56910)",
28
+ purple: "var(--ds-icon-accent-purple, #8270DB)",
29
+ purpleBold: "var(--ds-icon-accent-purple, #8270DB)",
30
+ red: "var(--ds-icon-accent-red, #C9372C)",
31
+ redBold: "var(--ds-icon-accent-red, #C9372C)",
32
+ teal: "var(--ds-icon-accent-teal, #2898BD)",
33
+ tealBold: "var(--ds-icon-accent-teal, #2898BD)",
34
+ yellow: "var(--ds-icon-accent-yellow, #B38600)",
35
+ yellowBold: "var(--ds-icon-accent-yellow, #B38600)"
36
+ };
37
+
38
+ /**
39
+ * __IconTile__
40
+ *
41
+ * An icon with background shape, color, and size properties determined by Tile.
42
+ */
43
+ function IconTile(_ref) {
44
+ var appearance = _ref.appearance,
45
+ Icon = _ref.icon,
46
+ label = _ref.label,
47
+ size = _ref.size,
48
+ testId = _ref.testId,
49
+ shape = _ref.shape,
50
+ LEGACY_fallbackComponent = _ref.LEGACY_fallbackComponent,
51
+ UNSAFE_circleReplacementComponent = _ref.UNSAFE_circleReplacementComponent;
52
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
53
+ if (LEGACY_fallbackComponent && !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons')) {
54
+ return LEGACY_fallbackComponent;
55
+ }
56
+ if (UNSAFE_circleReplacementComponent && shape === 'circle' && (0, _platformFeatureFlags.fg)('platform_dst_icon_tile_circle_replacement')) {
57
+ return UNSAFE_circleReplacementComponent;
58
+ }
59
+ if (shape !== 'circle' && (0, _platformFeatureFlags.fg)('platform_dst_new_icon_tile')) {
60
+ // Handle size 16 - render icon directly without Tile
61
+ if (size === '16') {
62
+ return /*#__PURE__*/_react.default.createElement(Icon, {
63
+ color: appearanceToIconColorMap[appearance],
64
+ label: label,
65
+ testId: testId
66
+ });
67
+ }
68
+ return /*#__PURE__*/_react.default.createElement(_iconTileNew.default, {
69
+ appearance: appearance,
70
+ icon: Icon,
71
+ label: label,
72
+ shape: shape,
73
+ size: size,
74
+ testId: testId
75
+ });
76
+ }
77
+ return /*#__PURE__*/_react.default.createElement(_iconTileOld.default, {
78
+ appearance: appearance,
79
+ icon: Icon,
80
+ label: label,
81
+ shape: shape,
82
+ size: size,
83
+ testId: testId
84
+ });
85
+ }
@@ -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
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -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
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -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
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -9,7 +9,7 @@ exports.default = void 0;
9
9
  *
10
10
  * To change the format of this file, modify `createIconDocsNew` in icon-build-process/src/create-icon-docs.tsx.
11
11
  *
12
- * @codegen <<SignedSource::736757b9fbc08cfe04a0dfd387060116>>
12
+ * @codegen <<SignedSource::ee18f4e5865068325a476701d51323b5>>
13
13
  * @codegenCommand yarn build:icon-glyphs
14
14
  */
15
15
 
@@ -517,7 +517,7 @@ var metadata = {
517
517
  package: '@atlaskit/icon/core/cash',
518
518
  type: 'core',
519
519
  categorization: 'multi-purpose',
520
- usage: "Known usages: 'Sales' work type.",
520
+ usage: "Known usages: \'Sales\' work type.",
521
521
  team: 'Design System Team',
522
522
  status: 'published'
523
523
  },
@@ -1117,7 +1117,7 @@ var metadata = {
1117
1117
  package: '@atlaskit/icon/core/devices',
1118
1118
  type: 'core',
1119
1119
  categorization: 'multi-purpose',
1120
- usage: "Known usages: 'Asset' work type.",
1120
+ usage: "Known usages: \'Asset\' work type.",
1121
1121
  team: 'Design System Team',
1122
1122
  status: 'published'
1123
1123
  },
@@ -1210,7 +1210,7 @@ var metadata = {
1210
1210
  oldName: ['editor/emoji', 'emoji/emoji', 'emoji', 'emoji/people'],
1211
1211
  type: 'core',
1212
1212
  categorization: 'single-purpose',
1213
- usage: "Single purpose - Reserved for Editor as a category for Emoji's.",
1213
+ usage: "Single purpose - Reserved for Editor as a category for Emoji\'s.",
1214
1214
  team: 'Design System Team',
1215
1215
  status: 'published'
1216
1216
  },
@@ -1423,7 +1423,7 @@ var metadata = {
1423
1423
  oldName: ['document-filled', 'document', 'editor/file', 'file'],
1424
1424
  type: 'core',
1425
1425
  categorization: 'multi-purpose',
1426
- usage: "Multi purpose - Known uses: document, file. Do not use to represent a page — use the dedicated 'Page' icon instead.",
1426
+ usage: "Multi purpose - Known uses: document, file. Do not use to represent a page — use the dedicated \'Page\' icon instead.",
1427
1427
  team: 'Design System Team',
1428
1428
  status: 'published'
1429
1429
  },
@@ -1434,7 +1434,7 @@ var metadata = {
1434
1434
  oldName: ['documents'],
1435
1435
  type: 'core',
1436
1436
  categorization: 'multi-purpose',
1437
- usage: "Multi purpose - Known uses: documents, files. Do not use to represent pages — use the dedicated 'Pages' icon instead.",
1437
+ usage: "Multi purpose - Known uses: documents, files. Do not use to represent pages — use the dedicated \'Pages\' icon instead.",
1438
1438
  team: 'Design System Team',
1439
1439
  status: 'published'
1440
1440
  },
@@ -1719,7 +1719,7 @@ var metadata = {
1719
1719
  oldName: ['tray'],
1720
1720
  type: 'core',
1721
1721
  categorization: 'multi-purpose',
1722
- usage: "Multi purpose - Known uses: 'Your work' in Confluence, inbox, mail.",
1722
+ usage: "Multi purpose - Known uses: \'Your work\' in Confluence, inbox, mail.",
1723
1723
  team: 'Design System Team',
1724
1724
  status: 'published'
1725
1725
  },
@@ -1745,7 +1745,7 @@ var metadata = {
1745
1745
  location: '@atlaskit/icon'
1746
1746
  },
1747
1747
  categorization: 'single-purpose',
1748
- 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.",
1748
+ 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.",
1749
1749
  team: 'Design System Team',
1750
1750
  status: 'deprecated'
1751
1751
  },
@@ -1907,7 +1907,7 @@ var metadata = {
1907
1907
  package: '@atlaskit/icon/core/list-checklist',
1908
1908
  type: 'core',
1909
1909
  categorization: 'multi-purpose',
1910
- usage: "Known usages: Checklist, 'Requirement' work type.",
1910
+ usage: "Known usages: Checklist, \'Requirement\' work type.",
1911
1911
  team: 'Design System Team',
1912
1912
  status: 'published'
1913
1913
  },
@@ -2121,7 +2121,7 @@ var metadata = {
2121
2121
  package: '@atlaskit/icon/core/minus-square',
2122
2122
  type: 'core',
2123
2123
  categorization: 'multi-purpose',
2124
- usage: "Known usages: 'Remove feature' work type.",
2124
+ usage: "Known usages: \'Remove feature\' work type.",
2125
2125
  team: 'Design System Team',
2126
2126
  status: 'published'
2127
2127
  },
@@ -2278,7 +2278,7 @@ var metadata = {
2278
2278
  package: '@atlaskit/icon/core/pen',
2279
2279
  type: 'core',
2280
2280
  categorization: 'multi-purpose',
2281
- usage: "Known usages: 'Design task' work type.",
2281
+ usage: "Known usages: \'Design task\' work type.",
2282
2282
  team: 'Design System Team',
2283
2283
  status: 'published'
2284
2284
  },
@@ -2406,7 +2406,7 @@ var metadata = {
2406
2406
  oldName: ['issue-raise'],
2407
2407
  type: 'core',
2408
2408
  categorization: 'multi-purpose',
2409
- usage: "Known usages: 'New feature' work type.",
2409
+ usage: "Known usages: \'New feature\' work type.",
2410
2410
  team: 'Design System Team',
2411
2411
  status: 'published'
2412
2412
  },
@@ -3079,7 +3079,7 @@ var metadata = {
3079
3079
  oldName: ['editor/info', 'editor/panel', 'info'],
3080
3080
  type: 'core',
3081
3081
  categorization: 'single-purpose',
3082
- 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.",
3082
+ 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.",
3083
3083
  team: 'Design System Team',
3084
3084
  status: 'published'
3085
3085
  },
@@ -3623,7 +3623,7 @@ var metadata = {
3623
3623
  package: '@atlaskit/icon/core/tools',
3624
3624
  type: 'core',
3625
3625
  categorization: 'multi-purpose',
3626
- usage: "Known usages: 'Service request' Jira work type.",
3626
+ usage: "Known usages: \'Service request\' Jira work type.",
3627
3627
  team: 'Design System Team',
3628
3628
  status: 'published'
3629
3629
  },
@@ -15,7 +15,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
15
15
  *
16
16
  * To change the format of this file, modify `createIconDocs` in icon-build-process/src/create-icon-docs.tsx.
17
17
  *
18
- * @codegen <<SignedSource::505188bcbfbd2bedd523b7a93366dd82>>
18
+ * @codegen <<SignedSource::5b9b70e1898d13b76e8faef592720556>>
19
19
  * @codegenCommand yarn build:icon-glyphs
20
20
  */
21
21
  /* 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)}