@atlaskit/icon 22.15.2 → 22.16.1

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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # @atlaskit/icon
2
2
 
3
+ ## 22.16.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#137821](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/137821)
8
+ [`bcca6c1789a37`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bcca6c1789a37) -
9
+ Rename of `@atlassian/icon-lab` to `@atlaskit/icon-lab`
10
+
11
+ ## 22.16.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [#137781](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/137781)
16
+ [`21bfb50836bad`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/21bfb50836bad) -
17
+ Added a new icon to the utility migration icon set: 'cross--editor-close'
18
+
3
19
  ## 22.15.2
4
20
 
5
21
  ### Patch Changes
@@ -54,7 +54,7 @@ export default function transformer(file: FileInfo, api: API) {
54
54
  const iconLabIconImportDeclarations = getPartialImportDeclaration(
55
55
  j,
56
56
  source,
57
- '@atlassian/icon-lab/core',
57
+ '@atlaskit/icon-lab/core',
58
58
  );
59
59
 
60
60
  // Get all the specifier names
@@ -9,7 +9,7 @@ describe('Migrate color API', () => {
9
9
  `
10
10
  import AddIcon from '@atlaskit/icon/core/add';
11
11
  import ChevronDownIcon from '@atlaskit/icon/utility/add';
12
- import BitbucketBranchIcon from '@atlassian/icon-lab/core/bitbucket-branch';
12
+ import BitbucketBranchIcon from '@atlaskit/icon-lab/core/bitbucket-branch';
13
13
 
14
14
  const App = () => (
15
15
  <>
@@ -24,7 +24,7 @@ describe('Migrate color API', () => {
24
24
  import { token } from "@atlaskit/tokens";
25
25
  import AddIcon from '@atlaskit/icon/core/add';
26
26
  import ChevronDownIcon from '@atlaskit/icon/utility/add';
27
- import BitbucketBranchIcon from '@atlassian/icon-lab/core/bitbucket-branch';
27
+ import BitbucketBranchIcon from '@atlaskit/icon-lab/core/bitbucket-branch';
28
28
 
29
29
  const App = () => (
30
30
  <>
@@ -128,6 +128,7 @@ var metadata = {
128
128
  keywords: ['cross', 'close', 'x', 'cancel', 'icon', 'utility', 'remove', 'clear', 'x'],
129
129
  componentName: 'CrossIcon',
130
130
  package: '@atlaskit/icon/utility/cross',
131
+ oldName: ['editor/close'],
131
132
  type: 'utility',
132
133
  categorization: 'utility',
133
134
  usage: 'Known uses: remove tag.',
@@ -12,7 +12,7 @@ var migrationOutcomeDescriptionMap = exports.migrationOutcomeDescriptionMap = {
12
12
  'no-larger-size': 'This icon should not be used with a larger size; please shift to a smaller size.',
13
13
  'not-recommended': 'No equivalent icon in new set. This icon is not recommended.',
14
14
  'product-icon': 'Product icons are not supported; please use the custom SVG component from `@atlaskit/icon/svg`.',
15
- 'icon-lab': 'Find an alternative icon, or create an updated icon in the new style, and contribute it to `@atlassian/icon-lab`.',
15
+ 'icon-lab': 'Find an alternative icon, or create an updated icon in the new style, and contribute it to `@atlaskit/icon-lab`.',
16
16
  'top-nav': 'This icon is only for use for top navigation; please choose a different icon if used elsewhere.',
17
17
  'icon-tile': 'Switch to Icon Tile, use a smaller size or remove.',
18
18
  '16-icon-tile': "This icon can be re-created using an Icon tile with size='16'.",
@@ -1275,6 +1275,11 @@ var migrationMap = {
1275
1275
  type: 'core',
1276
1276
  package: '@atlaskit/icon'
1277
1277
  },
1278
+ additionalIcons: [{
1279
+ name: 'cross',
1280
+ type: 'utility',
1281
+ package: '@atlaskit/icon'
1282
+ }],
1278
1283
  sizeGuidance: {
1279
1284
  small: 'swap',
1280
1285
  medium: 'swap',
@@ -1353,6 +1358,11 @@ var migrationMap = {
1353
1358
  type: 'core',
1354
1359
  package: '@atlaskit/icon'
1355
1360
  },
1361
+ additionalIcons: [{
1362
+ name: 'check-mark',
1363
+ type: 'utility',
1364
+ package: '@atlaskit/icon'
1365
+ }],
1356
1366
  sizeGuidance: {
1357
1367
  small: 'swap',
1358
1368
  medium: 'swap',
@@ -122,6 +122,7 @@ const metadata = {
122
122
  keywords: ['cross', 'close', 'x', 'cancel', 'icon', 'utility', 'remove', 'clear', 'x'],
123
123
  componentName: 'CrossIcon',
124
124
  package: '@atlaskit/icon/utility/cross',
125
+ oldName: ['editor/close'],
125
126
  type: 'utility',
126
127
  categorization: 'utility',
127
128
  usage: 'Known uses: remove tag.',
@@ -6,7 +6,7 @@ export const migrationOutcomeDescriptionMap = {
6
6
  'no-larger-size': 'This icon should not be used with a larger size; please shift to a smaller size.',
7
7
  'not-recommended': 'No equivalent icon in new set. This icon is not recommended.',
8
8
  'product-icon': 'Product icons are not supported; please use the custom SVG component from `@atlaskit/icon/svg`.',
9
- 'icon-lab': 'Find an alternative icon, or create an updated icon in the new style, and contribute it to `@atlassian/icon-lab`.',
9
+ 'icon-lab': 'Find an alternative icon, or create an updated icon in the new style, and contribute it to `@atlaskit/icon-lab`.',
10
10
  'top-nav': 'This icon is only for use for top navigation; please choose a different icon if used elsewhere.',
11
11
  'icon-tile': 'Switch to Icon Tile, use a smaller size or remove.',
12
12
  '16-icon-tile': "This icon can be re-created using an Icon tile with size='16'.",
@@ -1269,6 +1269,11 @@ const migrationMap = {
1269
1269
  type: 'core',
1270
1270
  package: '@atlaskit/icon'
1271
1271
  },
1272
+ additionalIcons: [{
1273
+ name: 'cross',
1274
+ type: 'utility',
1275
+ package: '@atlaskit/icon'
1276
+ }],
1272
1277
  sizeGuidance: {
1273
1278
  small: 'swap',
1274
1279
  medium: 'swap',
@@ -1347,6 +1352,11 @@ const migrationMap = {
1347
1352
  type: 'core',
1348
1353
  package: '@atlaskit/icon'
1349
1354
  },
1355
+ additionalIcons: [{
1356
+ name: 'check-mark',
1357
+ type: 'utility',
1358
+ package: '@atlaskit/icon'
1359
+ }],
1350
1360
  sizeGuidance: {
1351
1361
  small: 'swap',
1352
1362
  medium: 'swap',
@@ -122,6 +122,7 @@ var metadata = {
122
122
  keywords: ['cross', 'close', 'x', 'cancel', 'icon', 'utility', 'remove', 'clear', 'x'],
123
123
  componentName: 'CrossIcon',
124
124
  package: '@atlaskit/icon/utility/cross',
125
+ oldName: ['editor/close'],
125
126
  type: 'utility',
126
127
  categorization: 'utility',
127
128
  usage: 'Known uses: remove tag.',
@@ -6,7 +6,7 @@ export var migrationOutcomeDescriptionMap = {
6
6
  'no-larger-size': 'This icon should not be used with a larger size; please shift to a smaller size.',
7
7
  'not-recommended': 'No equivalent icon in new set. This icon is not recommended.',
8
8
  'product-icon': 'Product icons are not supported; please use the custom SVG component from `@atlaskit/icon/svg`.',
9
- 'icon-lab': 'Find an alternative icon, or create an updated icon in the new style, and contribute it to `@atlassian/icon-lab`.',
9
+ 'icon-lab': 'Find an alternative icon, or create an updated icon in the new style, and contribute it to `@atlaskit/icon-lab`.',
10
10
  'top-nav': 'This icon is only for use for top navigation; please choose a different icon if used elsewhere.',
11
11
  'icon-tile': 'Switch to Icon Tile, use a smaller size or remove.',
12
12
  '16-icon-tile': "This icon can be re-created using an Icon tile with size='16'.",
@@ -1269,6 +1269,11 @@ var migrationMap = {
1269
1269
  type: 'core',
1270
1270
  package: '@atlaskit/icon'
1271
1271
  },
1272
+ additionalIcons: [{
1273
+ name: 'cross',
1274
+ type: 'utility',
1275
+ package: '@atlaskit/icon'
1276
+ }],
1272
1277
  sizeGuidance: {
1273
1278
  small: 'swap',
1274
1279
  medium: 'swap',
@@ -1347,6 +1352,11 @@ var migrationMap = {
1347
1352
  type: 'core',
1348
1353
  package: '@atlaskit/icon'
1349
1354
  },
1355
+ additionalIcons: [{
1356
+ name: 'check-mark',
1357
+ type: 'utility',
1358
+ package: '@atlaskit/icon'
1359
+ }],
1350
1360
  sizeGuidance: {
1351
1361
  small: 'swap',
1352
1362
  medium: 'swap',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/icon",
3
- "version": "22.15.2",
3
+ "version": "22.16.1",
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/"
@@ -45,7 +45,7 @@
45
45
  "@atlaskit/ssr": "*",
46
46
  "@atlaskit/textfield": "^6.5.0",
47
47
  "@atlaskit/theme": "^13.0.0",
48
- "@atlaskit/toggle": "^13.3.0",
48
+ "@atlaskit/toggle": "^13.4.0",
49
49
  "@atlaskit/tooltip": "^18.7.0",
50
50
  "@atlaskit/visual-regression": "*",
51
51
  "@babel/core": "^7.20.0",
@@ -0,0 +1,14 @@
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ * @codegen <<SignedSource::fe12111f9fd9352caac76e6700547352>>
4
+ * @codegenCommand yarn build:icon-glyphs
5
+ */
6
+
7
+ import React from 'react';
8
+ import Icon from '@atlaskit/icon/UNSAFE_base-new';
9
+
10
+ declare const CrossIconMigration: {
11
+ (props: Omit<React.ComponentProps<typeof Icon>, 'dangerouslySetGlyph' | 'type' | 'spacing' | 'LEGACY_fallbackIcon'> ): JSX.Element;
12
+ displayName: string;
13
+ };
14
+ export default CrossIconMigration;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ * @codegen <<SignedSource::7f4a9a14e2cbd991149ff35fe23cef8b>>
4
+ * @codegenCommand yarn build:icon-glyphs
5
+ */
6
+ "use strict";
7
+
8
+ Object.defineProperty(exports, "__esModule", {
9
+ value: true
10
+ });
11
+ exports.default = void 0;
12
+ var _react = _interopRequireDefault(require("react"));
13
+ var _cross = _interopRequireDefault(require("@atlaskit/icon/utility/cross"));
14
+ var _close = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/close"));
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
+ /**
17
+ * ⚠️ EXPERIMENTAL ⚠️ - New icons are in alpha - and subject to change or removal in future minor or patch releases.
18
+ *
19
+ * Migration Icon component for CrossIcon.
20
+ * This component is CrossIcon, with `UNSAFE_fallbackIcon` set to "EditorCloseIcon".
21
+ *
22
+ * Category: utility
23
+ * Location: @atlaskit/icon
24
+ * Usage guidance: Known uses: remove tag.
25
+ * - [Examples](https://atlaskit.atlassian.com/packages/design-system/icon)
26
+ * - [Code](https://atlaskit.atlassian.com/packages/design-system/icon/docs/custom-icons)
27
+ */
28
+ const CrossIcon = props => /*#__PURE__*/_react.default.createElement(_cross.default, Object.assign({
29
+ LEGACY_fallbackIcon: _close.default
30
+ // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
31
+ }, props));
32
+ CrossIcon.Name = 'CrossIconMigration';
33
+ var _default = exports.default = CrossIcon;