@atlaskit/icon 22.8.0 → 22.10.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 (84) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/core/app-switcher-legacy.d.ts +9 -0
  3. package/core/app-switcher-legacy.js +26 -0
  4. package/core/app-switcher.d.ts +9 -0
  5. package/core/app-switcher.js +26 -0
  6. package/core/menu.d.ts +9 -0
  7. package/core/{migration/edit--editor-add.js → menu.js} +7 -10
  8. package/core/migration/{edit--editor-add.d.ts → add--editor-add.d.ts} +2 -2
  9. package/core/migration/add--editor-add.js +29 -0
  10. package/core/migration/angle-brackets--bitbucket-repos.d.ts +9 -0
  11. package/core/migration/angle-brackets--bitbucket-repos.js +29 -0
  12. package/core/migration/app-switcher--switcher.d.ts +9 -0
  13. package/core/migration/app-switcher--switcher.js +29 -0
  14. package/core/migration/app-switcher.d.ts +9 -0
  15. package/core/migration/app-switcher.js +29 -0
  16. package/core/migration/download.d.ts +9 -0
  17. package/core/migration/download.js +29 -0
  18. package/core/migration/{audio--vid-audio-on.d.ts → emoji--emoji-people.d.ts} +2 -2
  19. package/core/migration/emoji--emoji-people.js +29 -0
  20. package/core/migration/flag--emoji-flags.d.ts +9 -0
  21. package/core/migration/flag--emoji-flags.js +29 -0
  22. package/core/migration/grid--editor-table.d.ts +9 -0
  23. package/core/migration/grid--editor-table.js +29 -0
  24. package/core/migration/lightbulb--lightbulb-filled.d.ts +9 -0
  25. package/core/migration/lightbulb--lightbulb-filled.js +29 -0
  26. package/core/migration/link--link-filled.d.ts +9 -0
  27. package/core/migration/link--link-filled.js +29 -0
  28. package/core/migration/menu--menu-expand.d.ts +9 -0
  29. package/core/migration/menu--menu-expand.js +29 -0
  30. package/core/migration/menu.d.ts +9 -0
  31. package/core/migration/menu.js +29 -0
  32. package/core/migration/microphone--vid-audio-on.d.ts +9 -0
  33. package/core/migration/{audio--vid-audio-on.js → microphone--vid-audio-on.js} +8 -7
  34. package/core/migration/minimize--media-services-fit-to-page.d.ts +9 -0
  35. package/core/migration/minimize--media-services-fit-to-page.js +29 -0
  36. package/core/migration/minimize--vid-full-screen-off.d.ts +9 -0
  37. package/core/migration/minimize--vid-full-screen-off.js +29 -0
  38. package/core/migration/notification--notification-direct.d.ts +9 -0
  39. package/core/migration/notification--notification-direct.js +29 -0
  40. package/core/migration/notification.d.ts +9 -0
  41. package/core/migration/notification.js +29 -0
  42. package/core/migration/upload--export.d.ts +9 -0
  43. package/core/migration/upload--export.js +29 -0
  44. package/core/notification.d.ts +9 -0
  45. package/core/notification.js +26 -0
  46. package/dist/cjs/entry-points/migration-map.js +10 -2
  47. package/dist/cjs/metadata-core.js +56 -8
  48. package/dist/cjs/metadata-utility.js +1 -1
  49. package/dist/cjs/migration-map.js +178 -89
  50. package/dist/es2019/entry-points/migration-map.js +1 -1
  51. package/dist/es2019/metadata-core.js +56 -8
  52. package/dist/es2019/metadata-utility.js +1 -1
  53. package/dist/es2019/migration-map.js +177 -88
  54. package/dist/esm/entry-points/migration-map.js +1 -1
  55. package/dist/esm/metadata-core.js +56 -8
  56. package/dist/esm/metadata-utility.js +1 -1
  57. package/dist/esm/migration-map.js +177 -88
  58. package/dist/types/entry-points/migration-map.d.ts +2 -1
  59. package/dist/types/migration-map.d.ts +2 -1
  60. package/dist/types/types.d.ts +19 -3
  61. package/dist/types-ts4.5/entry-points/migration-map.d.ts +2 -1
  62. package/dist/types-ts4.5/migration-map.d.ts +2 -1
  63. package/dist/types-ts4.5/types.d.ts +19 -3
  64. package/glyph/app-switcher.js +4 -1
  65. package/glyph/bitbucket/repos.js +4 -1
  66. package/glyph/download.js +4 -1
  67. package/glyph/editor/add.js +2 -2
  68. package/glyph/editor/table.js +4 -1
  69. package/glyph/emoji/flags.js +4 -1
  70. package/glyph/emoji/people.js +4 -1
  71. package/glyph/export.js +4 -1
  72. package/glyph/lightbulb-filled.js +4 -1
  73. package/glyph/link-filled.js +4 -1
  74. package/glyph/media-services/fit-to-page.js +4 -1
  75. package/glyph/menu-expand.js +4 -1
  76. package/glyph/menu.js +4 -1
  77. package/glyph/notification-direct.js +4 -1
  78. package/glyph/notification.js +4 -1
  79. package/glyph/switcher.js +4 -1
  80. package/glyph/vid-audio-on.js +2 -2
  81. package/glyph/vid-full-screen-off.js +2 -2
  82. package/package.json +2 -3
  83. package/utility/migration/add--editor-add.d.ts +9 -0
  84. package/utility/migration/add--editor-add.js +29 -0
@@ -6,9 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _base = require("@atlaskit/icon/base");
9
+ var _minimize = _interopRequireDefault(require("@atlaskit/icon/core/minimize"));
9
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
11
  const MediaServicesFitToPageIcon = props => /*#__PURE__*/_react.default.createElement(_base.UNSAFE_IconFacade, Object.assign({
11
12
  dangerouslySetGlyph: `<svg width="24" height="24" viewBox="0 0 24 24" role="presentation"><path fill="currentColor" fill-rule="evenodd" d="M16.413 8.997H18A1 1 0 0 1 18 11h-3.9l-.047-.001a.98.98 0 0 1-.736-.285l-.032-.032A.98.98 0 0 1 13 9.946V6.002a1 1 0 1 1 2 0v1.587l3.309-3.308a.977.977 0 0 1 1.374.005l.032.032a.976.976 0 0 1 .005 1.374zm-8.826 6.006H6A1 1 0 0 1 6 13h3.9l.047.001a.98.98 0 0 1 .736.285l.032.032c.2.2.296.47.284.736l.001.048v3.896a1 1 0 1 1-2 0v-1.587l-3.309 3.308a.977.977 0 0 1-1.374-.005l-.032-.032a.976.976 0 0 1-.005-1.374z"/></svg>`
12
- }, props));
13
+ }, props, {
14
+ newIcon: _minimize.default
15
+ }));
13
16
  MediaServicesFitToPageIcon.displayName = 'MediaServicesFitToPageIcon';
14
17
  var _default = exports.default = MediaServicesFitToPageIcon;
@@ -6,9 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _base = require("@atlaskit/icon/base");
9
+ var _menu = _interopRequireDefault(require("@atlaskit/icon/core/menu"));
9
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
11
  const MenuExpandIcon = props => /*#__PURE__*/_react.default.createElement(_base.UNSAFE_IconFacade, Object.assign({
11
12
  dangerouslySetGlyph: `<svg width="24" height="24" viewBox="0 0 24 24" role="presentation"><path fill="currentColor" d="M6 12c0-.552.456-1 1.002-1h9.996a.999.999 0 1 1 0 2H7.002A1 1 0 0 1 6 12m0 4c0-.552.456-1 1.002-1h9.996a.999.999 0 1 1 0 2H7.002A1 1 0 0 1 6 16m0-8c0-.552.456-1 1.002-1h9.996a.999.999 0 1 1 0 2H7.002A1 1 0 0 1 6 8"/></svg>`
12
- }, props));
13
+ }, props, {
14
+ newIcon: _menu.default
15
+ }));
13
16
  MenuExpandIcon.displayName = 'MenuExpandIcon';
14
17
  var _default = exports.default = MenuExpandIcon;
package/glyph/menu.js CHANGED
@@ -6,9 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _base = require("@atlaskit/icon/base");
9
+ var _menu = _interopRequireDefault(require("@atlaskit/icon/core/menu"));
9
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
11
  const MenuIcon = props => /*#__PURE__*/_react.default.createElement(_base.UNSAFE_IconFacade, Object.assign({
11
12
  dangerouslySetGlyph: `<svg width="24" height="24" viewBox="0 0 24 24" role="presentation"><path fill="currentColor" fill-rule="evenodd" d="M5 15h14v2H5zm0-8h14v2H5zm0 4h14v2H5z"/></svg>`
12
- }, props));
13
+ }, props, {
14
+ newIcon: _menu.default
15
+ }));
13
16
  MenuIcon.displayName = 'MenuIcon';
14
17
  var _default = exports.default = MenuIcon;
@@ -6,9 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _base = require("@atlaskit/icon/base");
9
+ var _notification = _interopRequireDefault(require("@atlaskit/icon/core/notification"));
9
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
11
  const NotificationDirectIcon = props => /*#__PURE__*/_react.default.createElement(_base.UNSAFE_IconFacade, Object.assign({
11
12
  dangerouslySetGlyph: `<svg width="24" height="24" viewBox="0 0 24 24" role="presentation"><path fill="currentColor" fill-rule="evenodd" d="M6.59 17.83a2 2 0 0 0 2.83 0L6.59 15a2 2 0 0 0 0 2.83m4.79-12.35A5.04 5.04 0 0 1 14.95 4c.97 0 1.95.28 2.79.84q.03-.04.07-.07a1.01 1.01 0 1 1 1.35 1.49 5.05 5.05 0 0 1-.64 6.36l-.72.73c-.78.78-1.81 2.21-2.31 3.21l-1.51 3.02c-.25.5-.77.58-1.17.19l-8.56-8.55c-.4-.4-.31-.92.19-1.17l3.02-1.51c.99-.49 2.42-1.53 3.21-2.31zm2.74 9.63c.52-.97 1.57-2.4 2.35-3.18l.73-.73a3.05 3.05 0 0 0 .39-3.83c-.19-.29-.72-.77-.86-.86A3.04 3.04 0 0 0 15.05 6c-.8 0-1.57.31-2.16.89l-.95.95c-.78.79-2.22 1.82-3.2 2.31L7 11.02l6.07 6.07z"/></svg>`
12
- }, props));
13
+ }, props, {
14
+ newIcon: _notification.default
15
+ }));
13
16
  NotificationDirectIcon.displayName = 'NotificationDirectIcon';
14
17
  var _default = exports.default = NotificationDirectIcon;
@@ -6,9 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _base = require("@atlaskit/icon/base");
9
+ var _notification = _interopRequireDefault(require("@atlaskit/icon/core/notification"));
9
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
11
  const NotificationIcon = props => /*#__PURE__*/_react.default.createElement(_base.UNSAFE_IconFacade, Object.assign({
11
12
  dangerouslySetGlyph: `<svg width="24" height="24" viewBox="0 0 24 24" role="presentation"><path fill="currentColor" fill-rule="evenodd" d="M6.49 17.67a2 2 0 0 0 2.83 0l-2.83-2.83a2 2 0 0 0 0 2.83m4.89-12.19-.72.73c-.78.78-2.21 1.81-3.21 2.31l-3.02 1.51c-.49.25-.58.77-.19 1.17l8.56 8.56c.4.4.92.31 1.17-.19l1.51-3.02c.49-.99 1.53-2.42 2.31-3.21l.73-.73a5.05 5.05 0 0 0 .64-6.36 1.01 1.01 0 1 0-1.35-1.49q-.04.04-.07.08A5.04 5.04 0 0 0 14.95 4a5.04 5.04 0 0 0-3.57 1.48"/></svg>`
12
- }, props));
13
+ }, props, {
14
+ newIcon: _notification.default
15
+ }));
13
16
  NotificationIcon.displayName = 'NotificationIcon';
14
17
  var _default = exports.default = NotificationIcon;
package/glyph/switcher.js CHANGED
@@ -6,9 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _base = require("@atlaskit/icon/base");
9
+ var _appSwitcher = _interopRequireDefault(require("@atlaskit/icon/core/app-switcher"));
9
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
11
  const SwitcherIcon = props => /*#__PURE__*/_react.default.createElement(_base.UNSAFE_IconFacade, Object.assign({
11
12
  dangerouslySetGlyph: `<svg width="24" height="24" viewBox="0 0 24 24" role="presentation"><g fill="currentColor"><path d="M3.507 15H16.5c-.007 0-.007-10-.007-10H3.5c.007 0 .007 10 .007 10M1.5 4.994C1.5 3.893 2.263 3 3.192 3h13.616c.934 0 1.692.895 1.692 1.994v10.012c0 1.101-.763 1.994-1.692 1.994H3.192c-.934 0-1.692-.895-1.692-1.994zM6.5 5v10h2V5zm5 0v10h2V5z"/><path d="M20.5 5h.006c1.101 0 1.994.895 1.994 1.994v12.012A1.995 1.995 0 0 1 20.506 21H8.494A1.995 1.995 0 0 1 6.5 19.006V19h13c.555 0 1-.448 1-1z"/></g></svg>`
12
- }, props));
13
+ }, props, {
14
+ newIcon: _appSwitcher.default
15
+ }));
13
16
  SwitcherIcon.displayName = 'SwitcherIcon';
14
17
  var _default = exports.default = SwitcherIcon;
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _base = require("@atlaskit/icon/base");
9
- var _audio = _interopRequireDefault(require("@atlaskit/icon/core/audio"));
9
+ var _microphone = _interopRequireDefault(require("@atlaskit/icon/core/microphone"));
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
11
  const VidAudioOnIcon = props => /*#__PURE__*/_react.default.createElement(_base.UNSAFE_IconFacade, Object.assign({
12
12
  dangerouslySetGlyph: `<svg width="24" height="24" viewBox="0 0 24 24" role="presentation"><g fill="currentColor" fill-rule="evenodd"><rect width="6" height="12" x="9" y="3" rx="3"/><path fill-rule="nonzero" d="M13 17.917c2.833-.476 5-2.941 5-5.91V9a1 1 0 0 0-2 0v3.006A4 4 0 0 1 12 16c-2.205 0-4-1.795-4-3.994V9a1 1 0 1 0-2 0v3.006c0 2.96 2.162 5.433 5 5.91v2.075a1 1 0 1 0 2 0z"/></g></svg>`
13
13
  }, props, {
14
- newIcon: _audio.default
14
+ newIcon: _microphone.default
15
15
  }));
16
16
  VidAudioOnIcon.displayName = 'VidAudioOnIcon';
17
17
  var _default = exports.default = VidAudioOnIcon;
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _base = require("@atlaskit/icon/base");
9
- var _fullscreenExit = _interopRequireDefault(require("@atlaskit/icon/core/fullscreen-exit"));
9
+ var _minimize = _interopRequireDefault(require("@atlaskit/icon/core/minimize"));
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
11
  const VidFullScreenOffIcon = props => /*#__PURE__*/_react.default.createElement(_base.UNSAFE_IconFacade, Object.assign({
12
12
  dangerouslySetGlyph: `<svg width="24" height="24" viewBox="0 0 24 24" role="presentation"><g fill="currentColor" fill-rule="evenodd"><path fill-rule="nonzero" d="M9 15.003v2.995a1 1 0 1 0 2 0v-3.896C11 13.494 10.507 13 9.9 13H6a1 1 0 0 0 0 2.003z"/><path fill-rule="nonzero" d="M3.74 20.294a.997.997 0 0 0 1.407.005l5.152-5.152a1 1 0 0 0-.005-1.407l-.034-.034a.997.997 0 0 0-1.407-.005l-5.152 5.152a1 1 0 0 0 .005 1.407z"/><path d="M19.067 3.321 13.32 9.066a1.115 1.115 0 0 0 .005 1.57l.036.037a1.11 1.11 0 0 0 1.571.005l5.747-5.744a1.116 1.116 0 0 0-.006-1.57l-.037-.037a1.117 1.117 0 0 0-1.57-.006"/><path d="M13 6.002v3.896c0 .608.493 1.102 1.1 1.102H18a1 1 0 0 0 0-2.003h-3V6.002a1 1 0 1 0-2 0"/></g></svg>`
13
13
  }, props, {
14
- newIcon: _fullscreenExit.default
14
+ newIcon: _minimize.default
15
15
  }));
16
16
  VidFullScreenOffIcon.displayName = 'VidFullScreenOffIcon';
17
17
  var _default = exports.default = VidFullScreenOffIcon;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/icon",
3
- "version": "22.8.0",
3
+ "version": "22.10.0",
4
4
  "description": "An icon is a visual representation of a command, device, directory, or common action.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "devDependencies": {
42
42
  "@af/accessibility-testing": "*",
43
- "@af/icon-build-process": "^1.1.0",
43
+ "@af/icon-build-process": "^2.0.0",
44
44
  "@af/visual-regression": "*",
45
45
  "@atlaskit/code": "^15.4.0",
46
46
  "@atlaskit/ds-lib": "^2.3.0",
@@ -52,7 +52,6 @@
52
52
  "@atlaskit/toggle": "^13.2.0",
53
53
  "@atlaskit/tooltip": "^18.5.0",
54
54
  "@atlaskit/visual-regression": "*",
55
- "@atlassian/icon-lab": "^0.0.2",
56
55
  "@babel/core": "^7.20.0",
57
56
  "@emotion/babel-preset-css-prop": "^10.0.7",
58
57
  "@testing-library/react": "^12.1.5",
@@ -0,0 +1,9 @@
1
+
2
+ import React from 'react';
3
+ import Icon from '@atlaskit/icon/UNSAFE_base-new';
4
+
5
+ declare const AddIconMigration: {
6
+ (props: Omit<React.ComponentProps<typeof Icon>, 'dangerouslySetGlyph' | 'type' | 'spacing' | 'LEGACY_fallbackIcon'> ): JSX.Element;
7
+ displayName: string;
8
+ };
9
+ export default AddIconMigration;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _add = _interopRequireDefault(require("@atlaskit/icon/utility/add"));
9
+ var _add2 = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/add"));
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ /**
12
+ * ⚠️ EXPERIMENTAL ⚠️ - New icons are a work in progress and subject to change or removal in future minor or patch releases.
13
+ * Please reach out in #help-design-system before using these in production.
14
+ *
15
+ * Migration Icon component for AddIcon.
16
+ * This component is AddIcon, with `UNSAFE_fallbackIcon` set to "EditorAddIcon".
17
+ *
18
+ * Category: Multi-purpose
19
+ * Location: ADS
20
+ * Usage guidance: Reserved for creating and adding an object as a secondary action within a Menu Item.
21
+ * - [Examples](https://atlaskit.atlassian.com/packages/design-system/icon)
22
+ * - [Code](https://atlaskit.atlassian.com/packages/design-system/icon/docs/custom-icons)
23
+ */
24
+ const AddIcon = props => /*#__PURE__*/_react.default.createElement(_add.default, Object.assign({
25
+ LEGACY_fallbackIcon: _add2.default
26
+ // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
27
+ }, props));
28
+ AddIcon.Name = 'AddIconMigration';
29
+ var _default = exports.default = AddIcon;