@atlaskit/icon 22.15.2 → 22.16.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 +8 -0
- package/dist/cjs/metadata-utility.js +1 -0
- package/dist/cjs/migration-map.js +10 -0
- package/dist/es2019/metadata-utility.js +1 -0
- package/dist/es2019/migration-map.js +10 -0
- package/dist/esm/metadata-utility.js +1 -0
- package/dist/esm/migration-map.js +10 -0
- package/package.json +2 -2
- package/utility/migration/cross--editor-close.d.ts +14 -0
- package/utility/migration/cross--editor-close.js +33 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/icon
|
|
2
2
|
|
|
3
|
+
## 22.16.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#137781](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/137781)
|
|
8
|
+
[`21bfb50836bad`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/21bfb50836bad) -
|
|
9
|
+
Added a new icon to the utility migration icon set: 'cross--editor-close'
|
|
10
|
+
|
|
3
11
|
## 22.15.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -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.',
|
|
@@ -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.',
|
|
@@ -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.',
|
|
@@ -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.
|
|
3
|
+
"version": "22.16.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/"
|
|
@@ -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.
|
|
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;
|