@atlaskit/icon 27.1.0 → 27.2.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.
- package/CHANGELOG.md +20 -2
- package/core/migration/cross--editor-close.d.ts +15 -0
- package/core/migration/cross--editor-close.js +31 -0
- package/core/migration/cross.d.ts +15 -0
- package/core/migration/cross.js +31 -0
- package/dist/cjs/deprecated-utility.js +2 -3
- package/dist/cjs/metadata-core.js +2 -1
- package/dist/cjs/metadata-utility.js +2 -2
- package/dist/cjs/migration-map.js +11 -2
- package/dist/es2019/deprecated-utility.js +2 -3
- package/dist/es2019/metadata-core.js +2 -1
- package/dist/es2019/metadata-utility.js +2 -2
- package/dist/es2019/migration-map.js +11 -2
- package/dist/esm/deprecated-utility.js +2 -3
- package/dist/esm/metadata-core.js +2 -1
- package/dist/esm/metadata-utility.js +2 -2
- package/dist/esm/migration-map.js +11 -2
- package/dist/types/deprecated-utility.d.ts +1 -1
- package/dist/types/metadata-core.d.ts +1 -1
- package/dist/types/metadata-utility.d.ts +1 -1
- package/dist/types-ts4.5/deprecated-utility.d.ts +1 -1
- package/dist/types-ts4.5/metadata-core.d.ts +1 -1
- package/dist/types-ts4.5/metadata-utility.d.ts +1 -1
- package/glyph/cross.js +2 -2
- package/glyph/editor/close.js +2 -2
- package/package.json +2 -2
- package/utility/migration/cross.d.ts +15 -0
- package/utility/migration/cross.js +31 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/icon
|
|
2
2
|
|
|
3
|
+
## 27.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#176032](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/176032)
|
|
8
|
+
[`0a172a0fd7cd6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0a172a0fd7cd6) -
|
|
9
|
+
Updated migration mapping for several icon entrypoints.
|
|
10
|
+
|
|
11
|
+
### Added:
|
|
12
|
+
|
|
13
|
+
**`@atlaskit/icon/core/migration`**
|
|
14
|
+
|
|
15
|
+
- `cross--editor-close`
|
|
16
|
+
- `cross`
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 27.1.0
|
|
4
23
|
|
|
5
24
|
### Minor Changes
|
|
@@ -8,8 +27,7 @@
|
|
|
8
27
|
[`26fefb696ee7e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/26fefb696ee7e) -
|
|
9
28
|
This release deprecates all `@atlaskit/icon/utility` entry-points. If you require 12px icons
|
|
10
29
|
please use the `@atlaskit/icon/core` entry-point instead with size prop set to 'small'.
|
|
11
|
-
Furthermore, this release also adds, updates and deprecates
|
|
12
|
-
`@atlaskit/icon/core`.
|
|
30
|
+
Furthermore, this release also adds, updates and deprecates other icons in `@atlaskit/icon/core`.
|
|
13
31
|
|
|
14
32
|
### Added:
|
|
15
33
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::2da46d8855ce09cda67571450b965ffc>>
|
|
4
|
+
* @codegenCommand yarn build:icon-glyphs
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import type { NewCoreIconProps } from '@atlaskit/icon/base-new';
|
|
9
|
+
import Icon from '@atlaskit/icon/base-new';
|
|
10
|
+
|
|
11
|
+
declare const CrossIconMigration: {
|
|
12
|
+
(props: Omit<NewCoreIconProps, | 'LEGACY_fallbackIcon'> ): JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
export default CrossIconMigration;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::53b9d7f39d5a7786fd5c4592782d4f82>>
|
|
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/core/cross"));
|
|
14
|
+
var _close = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/close"));
|
|
15
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
|
+
/**
|
|
17
|
+
* Migration Icon component for CrossIcon.
|
|
18
|
+
* This component is CrossIcon, with `UNSAFE_fallbackIcon` set to "EditorCloseIcon".
|
|
19
|
+
*
|
|
20
|
+
* Category: multi-purpose
|
|
21
|
+
* Location: @atlaskit/icon
|
|
22
|
+
* Usage guidance: Known uses: closing modals, panels, and transient views; removing tags
|
|
23
|
+
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/icon)
|
|
24
|
+
* - [Code](https://atlaskit.atlassian.com/packages/design-system/icon/docs/custom-icons)
|
|
25
|
+
*/
|
|
26
|
+
const CrossIcon = props => /*#__PURE__*/_react.default.createElement(_cross.default, Object.assign({
|
|
27
|
+
LEGACY_fallbackIcon: _close.default
|
|
28
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
29
|
+
}, props));
|
|
30
|
+
CrossIcon.Name = 'CrossIconMigration';
|
|
31
|
+
var _default = exports.default = CrossIcon;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::2da46d8855ce09cda67571450b965ffc>>
|
|
4
|
+
* @codegenCommand yarn build:icon-glyphs
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import type { NewCoreIconProps } from '@atlaskit/icon/base-new';
|
|
9
|
+
import Icon from '@atlaskit/icon/base-new';
|
|
10
|
+
|
|
11
|
+
declare const CrossIconMigration: {
|
|
12
|
+
(props: Omit<NewCoreIconProps, | 'LEGACY_fallbackIcon'> ): JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
export default CrossIconMigration;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::40d49d14e43276e4147396a05e9540f1>>
|
|
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/core/cross"));
|
|
14
|
+
var _cross2 = _interopRequireDefault(require("@atlaskit/icon/glyph/cross"));
|
|
15
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
|
+
/**
|
|
17
|
+
* Migration Icon component for CrossIcon.
|
|
18
|
+
* This component is CrossIcon, with `UNSAFE_fallbackIcon` set to "CrossIcon".
|
|
19
|
+
*
|
|
20
|
+
* Category: multi-purpose
|
|
21
|
+
* Location: @atlaskit/icon
|
|
22
|
+
* Usage guidance: Known uses: closing modals, panels, and transient views; removing tags
|
|
23
|
+
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/icon)
|
|
24
|
+
* - [Code](https://atlaskit.atlassian.com/packages/design-system/icon/docs/custom-icons)
|
|
25
|
+
*/
|
|
26
|
+
const CrossIcon = props => /*#__PURE__*/_react.default.createElement(_cross.default, Object.assign({
|
|
27
|
+
LEGACY_fallbackIcon: _cross2.default
|
|
28
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
29
|
+
}, props));
|
|
30
|
+
CrossIcon.Name = 'CrossIconMigration';
|
|
31
|
+
var _default = exports.default = CrossIcon;
|
|
@@ -9,7 +9,7 @@ exports.default = void 0;
|
|
|
9
9
|
*
|
|
10
10
|
* To change the format of this file, modify `createDeprecatedIconDocs` in icon-build-process/src/create-deprecated-icon-docs.tsx.
|
|
11
11
|
*
|
|
12
|
-
* @codegen <<SignedSource::
|
|
12
|
+
* @codegen <<SignedSource::ec9654a23699788f0dfeb0bccea011b6>>
|
|
13
13
|
* @codegenCommand yarn build:icon-glyphs
|
|
14
14
|
*/
|
|
15
15
|
var deprecatedIcons = {
|
|
@@ -144,8 +144,7 @@ var deprecatedIcons = {
|
|
|
144
144
|
message: 'The icon "chevron-up" is deprecated in favour of "chevron-up" from “@atlaskit/icon/core/migration”'
|
|
145
145
|
},
|
|
146
146
|
'@atlaskit/icon/utility/migration/cross--editor-close': {
|
|
147
|
-
message: 'The icon "cross--editor-close" is deprecated
|
|
148
|
-
unfixable: true
|
|
147
|
+
message: 'The icon "cross--editor-close" is deprecated in favour of "cross--editor-close" from “@atlaskit/icon/core/migration”'
|
|
149
148
|
},
|
|
150
149
|
'@atlaskit/icon/core/migration/drag-handle--drag-handler': {
|
|
151
150
|
message: 'The icon "drag-handle--drag-handler" is deprecated in favour of "drag-handle-vertical--drag-handler" from “@atlaskit/icon/core/migration”'
|
|
@@ -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::
|
|
12
|
+
* @codegen <<SignedSource::74da18cf3b9a90fa10ee83c7d6201ac6>>
|
|
13
13
|
* @codegenCommand yarn build:icon-glyphs
|
|
14
14
|
*/
|
|
15
15
|
|
|
@@ -917,6 +917,7 @@ var metadata = {
|
|
|
917
917
|
keywords: ['cross', 'close', 'x', 'cancel', 'icon', 'core', 'cross', 'x', 'close', 'remove'],
|
|
918
918
|
componentName: 'CrossIcon',
|
|
919
919
|
package: '@atlaskit/icon/core/cross',
|
|
920
|
+
oldName: ['cross', 'editor/close'],
|
|
920
921
|
type: 'core',
|
|
921
922
|
categorization: 'multi-purpose',
|
|
922
923
|
usage: 'Known uses: closing modals, panels, and transient views; removing tags',
|
|
@@ -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::
|
|
12
|
+
* @codegen <<SignedSource::0c3e035b20a6ad065a4bf439a32227fa>>
|
|
13
13
|
* @codegenCommand yarn build:icon-glyphs
|
|
14
14
|
*/
|
|
15
15
|
|
|
@@ -226,7 +226,7 @@ var metadata = {
|
|
|
226
226
|
keywords: ['cross', 'close', 'x', 'cancel', 'icon', 'utility', 'remove', 'clear', 'x'],
|
|
227
227
|
componentName: 'CrossIcon',
|
|
228
228
|
package: '@atlaskit/icon/utility/cross',
|
|
229
|
-
oldName: ['editor/close'],
|
|
229
|
+
oldName: ['cross', 'editor/close'],
|
|
230
230
|
type: 'utility',
|
|
231
231
|
replacement: {
|
|
232
232
|
name: 'cross',
|
|
@@ -1043,10 +1043,15 @@ var migrationMap = {
|
|
|
1043
1043
|
},
|
|
1044
1044
|
cross: {
|
|
1045
1045
|
newIcon: {
|
|
1046
|
-
name: '
|
|
1046
|
+
name: 'cross',
|
|
1047
1047
|
type: 'core',
|
|
1048
1048
|
package: '@atlaskit/icon'
|
|
1049
1049
|
},
|
|
1050
|
+
additionalIcons: [{
|
|
1051
|
+
name: 'close',
|
|
1052
|
+
type: 'core',
|
|
1053
|
+
package: '@atlaskit/icon'
|
|
1054
|
+
}],
|
|
1050
1055
|
sizeGuidance: {
|
|
1051
1056
|
small: 'swap-slight-visual-change',
|
|
1052
1057
|
medium: 'swap',
|
|
@@ -1407,7 +1412,7 @@ var migrationMap = {
|
|
|
1407
1412
|
},
|
|
1408
1413
|
'editor/close': {
|
|
1409
1414
|
newIcon: {
|
|
1410
|
-
name: '
|
|
1415
|
+
name: 'cross',
|
|
1411
1416
|
type: 'core',
|
|
1412
1417
|
package: '@atlaskit/icon'
|
|
1413
1418
|
},
|
|
@@ -1415,6 +1420,10 @@ var migrationMap = {
|
|
|
1415
1420
|
name: 'cross',
|
|
1416
1421
|
type: 'utility',
|
|
1417
1422
|
package: '@atlaskit/icon'
|
|
1423
|
+
}, {
|
|
1424
|
+
name: 'close',
|
|
1425
|
+
type: 'core',
|
|
1426
|
+
package: '@atlaskit/icon'
|
|
1418
1427
|
}],
|
|
1419
1428
|
sizeGuidance: {
|
|
1420
1429
|
small: 'swap-slight-visual-change',
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* To change the format of this file, modify `createDeprecatedIconDocs` in icon-build-process/src/create-deprecated-icon-docs.tsx.
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::ec9654a23699788f0dfeb0bccea011b6>>
|
|
7
7
|
* @codegenCommand yarn build:icon-glyphs
|
|
8
8
|
*/
|
|
9
9
|
const deprecatedIcons = {
|
|
@@ -138,8 +138,7 @@ const deprecatedIcons = {
|
|
|
138
138
|
message: 'The icon "chevron-up" is deprecated in favour of "chevron-up" from “@atlaskit/icon/core/migration”'
|
|
139
139
|
},
|
|
140
140
|
'@atlaskit/icon/utility/migration/cross--editor-close': {
|
|
141
|
-
message: 'The icon "cross--editor-close" is deprecated
|
|
142
|
-
unfixable: true
|
|
141
|
+
message: 'The icon "cross--editor-close" is deprecated in favour of "cross--editor-close" from “@atlaskit/icon/core/migration”'
|
|
143
142
|
},
|
|
144
143
|
'@atlaskit/icon/core/migration/drag-handle--drag-handler': {
|
|
145
144
|
message: 'The icon "drag-handle--drag-handler" is deprecated in favour of "drag-handle-vertical--drag-handler" from “@atlaskit/icon/core/migration”'
|
|
@@ -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::
|
|
6
|
+
* @codegen <<SignedSource::74da18cf3b9a90fa10ee83c7d6201ac6>>
|
|
7
7
|
* @codegenCommand yarn build:icon-glyphs
|
|
8
8
|
*/
|
|
9
9
|
|
|
@@ -911,6 +911,7 @@ const metadata = {
|
|
|
911
911
|
keywords: ['cross', 'close', 'x', 'cancel', 'icon', 'core', 'cross', 'x', 'close', 'remove'],
|
|
912
912
|
componentName: 'CrossIcon',
|
|
913
913
|
package: '@atlaskit/icon/core/cross',
|
|
914
|
+
oldName: ['cross', 'editor/close'],
|
|
914
915
|
type: 'core',
|
|
915
916
|
categorization: 'multi-purpose',
|
|
916
917
|
usage: 'Known uses: closing modals, panels, and transient views; removing tags',
|
|
@@ -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::
|
|
6
|
+
* @codegen <<SignedSource::0c3e035b20a6ad065a4bf439a32227fa>>
|
|
7
7
|
* @codegenCommand yarn build:icon-glyphs
|
|
8
8
|
*/
|
|
9
9
|
|
|
@@ -220,7 +220,7 @@ const metadata = {
|
|
|
220
220
|
keywords: ['cross', 'close', 'x', 'cancel', 'icon', 'utility', 'remove', 'clear', 'x'],
|
|
221
221
|
componentName: 'CrossIcon',
|
|
222
222
|
package: '@atlaskit/icon/utility/cross',
|
|
223
|
-
oldName: ['editor/close'],
|
|
223
|
+
oldName: ['cross', 'editor/close'],
|
|
224
224
|
type: 'utility',
|
|
225
225
|
replacement: {
|
|
226
226
|
name: 'cross',
|
|
@@ -1037,10 +1037,15 @@ const migrationMap = {
|
|
|
1037
1037
|
},
|
|
1038
1038
|
cross: {
|
|
1039
1039
|
newIcon: {
|
|
1040
|
-
name: '
|
|
1040
|
+
name: 'cross',
|
|
1041
1041
|
type: 'core',
|
|
1042
1042
|
package: '@atlaskit/icon'
|
|
1043
1043
|
},
|
|
1044
|
+
additionalIcons: [{
|
|
1045
|
+
name: 'close',
|
|
1046
|
+
type: 'core',
|
|
1047
|
+
package: '@atlaskit/icon'
|
|
1048
|
+
}],
|
|
1044
1049
|
sizeGuidance: {
|
|
1045
1050
|
small: 'swap-slight-visual-change',
|
|
1046
1051
|
medium: 'swap',
|
|
@@ -1401,7 +1406,7 @@ const migrationMap = {
|
|
|
1401
1406
|
},
|
|
1402
1407
|
'editor/close': {
|
|
1403
1408
|
newIcon: {
|
|
1404
|
-
name: '
|
|
1409
|
+
name: 'cross',
|
|
1405
1410
|
type: 'core',
|
|
1406
1411
|
package: '@atlaskit/icon'
|
|
1407
1412
|
},
|
|
@@ -1409,6 +1414,10 @@ const migrationMap = {
|
|
|
1409
1414
|
name: 'cross',
|
|
1410
1415
|
type: 'utility',
|
|
1411
1416
|
package: '@atlaskit/icon'
|
|
1417
|
+
}, {
|
|
1418
|
+
name: 'close',
|
|
1419
|
+
type: 'core',
|
|
1420
|
+
package: '@atlaskit/icon'
|
|
1412
1421
|
}],
|
|
1413
1422
|
sizeGuidance: {
|
|
1414
1423
|
small: 'swap-slight-visual-change',
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* To change the format of this file, modify `createDeprecatedIconDocs` in icon-build-process/src/create-deprecated-icon-docs.tsx.
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::ec9654a23699788f0dfeb0bccea011b6>>
|
|
7
7
|
* @codegenCommand yarn build:icon-glyphs
|
|
8
8
|
*/
|
|
9
9
|
var deprecatedIcons = {
|
|
@@ -138,8 +138,7 @@ var deprecatedIcons = {
|
|
|
138
138
|
message: 'The icon "chevron-up" is deprecated in favour of "chevron-up" from “@atlaskit/icon/core/migration”'
|
|
139
139
|
},
|
|
140
140
|
'@atlaskit/icon/utility/migration/cross--editor-close': {
|
|
141
|
-
message: 'The icon "cross--editor-close" is deprecated
|
|
142
|
-
unfixable: true
|
|
141
|
+
message: 'The icon "cross--editor-close" is deprecated in favour of "cross--editor-close" from “@atlaskit/icon/core/migration”'
|
|
143
142
|
},
|
|
144
143
|
'@atlaskit/icon/core/migration/drag-handle--drag-handler': {
|
|
145
144
|
message: 'The icon "drag-handle--drag-handler" is deprecated in favour of "drag-handle-vertical--drag-handler" from “@atlaskit/icon/core/migration”'
|
|
@@ -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::
|
|
6
|
+
* @codegen <<SignedSource::74da18cf3b9a90fa10ee83c7d6201ac6>>
|
|
7
7
|
* @codegenCommand yarn build:icon-glyphs
|
|
8
8
|
*/
|
|
9
9
|
|
|
@@ -911,6 +911,7 @@ var metadata = {
|
|
|
911
911
|
keywords: ['cross', 'close', 'x', 'cancel', 'icon', 'core', 'cross', 'x', 'close', 'remove'],
|
|
912
912
|
componentName: 'CrossIcon',
|
|
913
913
|
package: '@atlaskit/icon/core/cross',
|
|
914
|
+
oldName: ['cross', 'editor/close'],
|
|
914
915
|
type: 'core',
|
|
915
916
|
categorization: 'multi-purpose',
|
|
916
917
|
usage: 'Known uses: closing modals, panels, and transient views; removing tags',
|
|
@@ -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::
|
|
6
|
+
* @codegen <<SignedSource::0c3e035b20a6ad065a4bf439a32227fa>>
|
|
7
7
|
* @codegenCommand yarn build:icon-glyphs
|
|
8
8
|
*/
|
|
9
9
|
|
|
@@ -220,7 +220,7 @@ var metadata = {
|
|
|
220
220
|
keywords: ['cross', 'close', 'x', 'cancel', 'icon', 'utility', 'remove', 'clear', 'x'],
|
|
221
221
|
componentName: 'CrossIcon',
|
|
222
222
|
package: '@atlaskit/icon/utility/cross',
|
|
223
|
-
oldName: ['editor/close'],
|
|
223
|
+
oldName: ['cross', 'editor/close'],
|
|
224
224
|
type: 'utility',
|
|
225
225
|
replacement: {
|
|
226
226
|
name: 'cross',
|
|
@@ -1037,10 +1037,15 @@ var migrationMap = {
|
|
|
1037
1037
|
},
|
|
1038
1038
|
cross: {
|
|
1039
1039
|
newIcon: {
|
|
1040
|
-
name: '
|
|
1040
|
+
name: 'cross',
|
|
1041
1041
|
type: 'core',
|
|
1042
1042
|
package: '@atlaskit/icon'
|
|
1043
1043
|
},
|
|
1044
|
+
additionalIcons: [{
|
|
1045
|
+
name: 'close',
|
|
1046
|
+
type: 'core',
|
|
1047
|
+
package: '@atlaskit/icon'
|
|
1048
|
+
}],
|
|
1044
1049
|
sizeGuidance: {
|
|
1045
1050
|
small: 'swap-slight-visual-change',
|
|
1046
1051
|
medium: 'swap',
|
|
@@ -1401,7 +1406,7 @@ var migrationMap = {
|
|
|
1401
1406
|
},
|
|
1402
1407
|
'editor/close': {
|
|
1403
1408
|
newIcon: {
|
|
1404
|
-
name: '
|
|
1409
|
+
name: 'cross',
|
|
1405
1410
|
type: 'core',
|
|
1406
1411
|
package: '@atlaskit/icon'
|
|
1407
1412
|
},
|
|
@@ -1409,6 +1414,10 @@ var migrationMap = {
|
|
|
1409
1414
|
name: 'cross',
|
|
1410
1415
|
type: 'utility',
|
|
1411
1416
|
package: '@atlaskit/icon'
|
|
1417
|
+
}, {
|
|
1418
|
+
name: 'close',
|
|
1419
|
+
type: 'core',
|
|
1420
|
+
package: '@atlaskit/icon'
|
|
1412
1421
|
}],
|
|
1413
1422
|
sizeGuidance: {
|
|
1414
1423
|
small: 'swap-slight-visual-change',
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* To change the format of this file, modify `createDeprecatedIconDocs` in icon-build-process/src/create-deprecated-icon-docs.tsx.
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::ec9654a23699788f0dfeb0bccea011b6>>
|
|
7
7
|
* @codegenCommand yarn build:icon-glyphs
|
|
8
8
|
*/
|
|
9
9
|
declare const deprecatedIcons: Record<string, {
|
|
@@ -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::
|
|
6
|
+
* @codegen <<SignedSource::74da18cf3b9a90fa10ee83c7d6201ac6>>
|
|
7
7
|
* @codegenCommand yarn build:icon-glyphs
|
|
8
8
|
*/
|
|
9
9
|
interface metadata {
|
|
@@ -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::
|
|
6
|
+
* @codegen <<SignedSource::0c3e035b20a6ad065a4bf439a32227fa>>
|
|
7
7
|
* @codegenCommand yarn build:icon-glyphs
|
|
8
8
|
*/
|
|
9
9
|
interface metadata {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* To change the format of this file, modify `createDeprecatedIconDocs` in icon-build-process/src/create-deprecated-icon-docs.tsx.
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::ec9654a23699788f0dfeb0bccea011b6>>
|
|
7
7
|
* @codegenCommand yarn build:icon-glyphs
|
|
8
8
|
*/
|
|
9
9
|
declare const deprecatedIcons: Record<string, {
|
|
@@ -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::
|
|
6
|
+
* @codegen <<SignedSource::74da18cf3b9a90fa10ee83c7d6201ac6>>
|
|
7
7
|
* @codegenCommand yarn build:icon-glyphs
|
|
8
8
|
*/
|
|
9
9
|
interface metadata {
|
|
@@ -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::
|
|
6
|
+
* @codegen <<SignedSource::0c3e035b20a6ad065a4bf439a32227fa>>
|
|
7
7
|
* @codegenCommand yarn build:icon-glyphs
|
|
8
8
|
*/
|
|
9
9
|
interface metadata {
|
package/glyph/cross.js
CHANGED
|
@@ -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
|
|
9
|
+
var _cross = _interopRequireDefault(require("@atlaskit/icon/core/cross"));
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
const CrossIcon = props => /*#__PURE__*/_react.default.createElement(_base.IconFacade, Object.assign({
|
|
12
12
|
dangerouslySetGlyph: `<svg width="24" height="24" viewBox="0 0 24 24" role="presentation"><path fill="currentcolor" d="M12 10.586 6.707 5.293a1 1 0 0 0-1.414 1.414L10.586 12l-5.293 5.293a1 1 0 0 0 1.414 1.414L12 13.414l5.293 5.293a1 1 0 0 0 1.414-1.414L13.414 12l5.293-5.293a1 1 0 1 0-1.414-1.414z"/></svg>`
|
|
13
13
|
}, props, {
|
|
14
|
-
newIcon:
|
|
14
|
+
newIcon: _cross.default
|
|
15
15
|
}));
|
|
16
16
|
CrossIcon.displayName = 'CrossIcon';
|
|
17
17
|
var _default = exports.default = CrossIcon;
|
package/glyph/editor/close.js
CHANGED
|
@@ -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
|
|
9
|
+
var _cross = _interopRequireDefault(require("@atlaskit/icon/core/cross"));
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
const EditorCloseIcon = props => /*#__PURE__*/_react.default.createElement(_base.IconFacade, Object.assign({
|
|
12
12
|
dangerouslySetGlyph: `<svg width="24" height="24" viewBox="0 0 24 24" role="presentation"><path fill="currentcolor" fill-rule="evenodd" d="m15.185 7.4-3.184 3.185-3.186-3.186a.507.507 0 0 0-.712.003l-.7.701a.496.496 0 0 0-.004.712l3.185 3.184L7.4 15.185a.507.507 0 0 0 .004.712l.7.7c.206.207.516.2.712.004l3.186-3.185 3.184 3.185a.507.507 0 0 0 .712-.004l.701-.7a.496.496 0 0 0 .003-.712l-3.186-3.186 3.186-3.184a.507.507 0 0 0-.003-.712l-.7-.7a.5.5 0 0 0-.36-.153.5.5 0 0 0-.353.15"/></svg>`
|
|
13
13
|
}, props, {
|
|
14
|
-
newIcon:
|
|
14
|
+
newIcon: _cross.default
|
|
15
15
|
}));
|
|
16
16
|
EditorCloseIcon.displayName = 'EditorCloseIcon';
|
|
17
17
|
var _default = exports.default = EditorCloseIcon;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/icon",
|
|
3
|
-
"version": "27.
|
|
3
|
+
"version": "27.2.0",
|
|
4
4
|
"description": "An icon is a symbol representing a command, device, directory, or common action.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"@atlaskit/icon-file-type": "^7.0.0",
|
|
120
120
|
"@atlaskit/icon-object": "^7.1.0",
|
|
121
121
|
"@atlaskit/link": "^3.2.0",
|
|
122
|
-
"@atlaskit/logo": "^19.
|
|
122
|
+
"@atlaskit/logo": "^19.2.0",
|
|
123
123
|
"@atlaskit/menu": "^8.0.0",
|
|
124
124
|
"@atlaskit/modal-dialog": "^14.2.0",
|
|
125
125
|
"@atlaskit/primitives": "^14.9.0",
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::d39b22ab845de88238a3351ddeb5064e>>
|
|
4
|
+
* @codegenCommand yarn build:icon-glyphs
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import type { NewUtilityIconProps } from '@atlaskit/icon/base-new';
|
|
9
|
+
import Icon from '@atlaskit/icon/base-new';
|
|
10
|
+
|
|
11
|
+
declare const CrossIconMigration: {
|
|
12
|
+
(props: Omit<NewUtilityIconProps, | 'LEGACY_fallbackIcon'> ): JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
export default CrossIconMigration;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::5bfd3fa037eb79e2f4e6e4739f9b346e>>
|
|
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 _cross2 = _interopRequireDefault(require("@atlaskit/icon/glyph/cross"));
|
|
15
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
|
+
/**
|
|
17
|
+
* Migration Icon component for CrossIcon.
|
|
18
|
+
* This component is CrossIcon, with `UNSAFE_fallbackIcon` set to "CrossIcon".
|
|
19
|
+
*
|
|
20
|
+
* Category: utility
|
|
21
|
+
* Location: @atlaskit/icon
|
|
22
|
+
* Usage guidance: Known uses: remove tag.
|
|
23
|
+
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/icon)
|
|
24
|
+
* - [Code](https://atlaskit.atlassian.com/packages/design-system/icon/docs/custom-icons)
|
|
25
|
+
*/
|
|
26
|
+
const CrossIcon = props => /*#__PURE__*/_react.default.createElement(_cross.default, Object.assign({
|
|
27
|
+
LEGACY_fallbackIcon: _cross2.default
|
|
28
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
29
|
+
}, props));
|
|
30
|
+
CrossIcon.Name = 'CrossIconMigration';
|
|
31
|
+
var _default = exports.default = CrossIcon;
|