@atlaskit/icon 23.7.0 → 23.8.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 +37 -0
- package/core/align-image-center.d.ts +13 -0
- package/core/align-image-center.js +31 -0
- package/core/align-image-left.d.ts +13 -0
- package/core/align-image-left.js +31 -0
- package/core/align-image-right.d.ts +13 -0
- package/core/align-image-right.js +31 -0
- package/core/align-text-center.d.ts +13 -0
- package/core/align-text-center.js +31 -0
- package/core/align-text-left.d.ts +13 -0
- package/core/align-text-left.js +31 -0
- package/core/align-text-right.d.ts +13 -0
- package/core/align-text-right.js +31 -0
- package/core/stroke-weight-extra-large.d.ts +13 -0
- package/core/stroke-weight-extra-large.js +31 -0
- package/core/stroke-weight-large.d.ts +13 -0
- package/core/stroke-weight-large.js +31 -0
- package/core/stroke-weight-medium.d.ts +13 -0
- package/core/stroke-weight-medium.js +31 -0
- package/core/stroke-weight-small.d.ts +13 -0
- package/core/stroke-weight-small.js +31 -0
- package/dist/cjs/components/icon-facade.js +4 -5
- package/dist/cjs/metadata-core.js +91 -1
- package/dist/es2019/components/icon-facade.js +2 -3
- package/dist/es2019/metadata-core.js +91 -1
- package/dist/esm/components/icon-facade.js +2 -3
- package/dist/esm/metadata-core.js +91 -1
- package/dist/types/components/icon-facade.d.ts +0 -1
- package/dist/types/metadata-core.d.ts +1 -1
- package/dist/types/types.d.ts +10 -10
- package/dist/types-ts4.5/components/icon-facade.d.ts +0 -1
- package/dist/types-ts4.5/metadata-core.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +10 -10
- package/package.json +16 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# @atlaskit/icon
|
|
2
2
|
|
|
3
|
+
## 23.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#111393](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/111393)
|
|
8
|
+
[`cbcdf9cbfacf7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cbcdf9cbfacf7) -
|
|
9
|
+
This release adds and updates icons in `@atlaskit/icon`.
|
|
10
|
+
|
|
11
|
+
### Added:
|
|
12
|
+
|
|
13
|
+
**`@atlaskit/icon/core`**
|
|
14
|
+
|
|
15
|
+
- `align-image-center`
|
|
16
|
+
- `align-image-left`
|
|
17
|
+
- `align-image-right`
|
|
18
|
+
- `align-text-center`
|
|
19
|
+
- `align-text-left`
|
|
20
|
+
- `align-text-right`
|
|
21
|
+
- `stroke-weight-extra-large`
|
|
22
|
+
- `stroke-weight-large`
|
|
23
|
+
- `stroke-weight-medium`
|
|
24
|
+
- `stroke-weight-small`
|
|
25
|
+
|
|
26
|
+
### Updated:
|
|
27
|
+
|
|
28
|
+
**`@atlaskit/icon/core`**
|
|
29
|
+
|
|
30
|
+
- `text-strikethrough`
|
|
31
|
+
|
|
32
|
+
## 23.7.1
|
|
33
|
+
|
|
34
|
+
### Patch Changes
|
|
35
|
+
|
|
36
|
+
- [#108179](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/108179)
|
|
37
|
+
[`327beb94a2e5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/327beb94a2e5a) -
|
|
38
|
+
Remove unused internal exports and update dependencies.
|
|
39
|
+
|
|
3
40
|
## 23.7.0
|
|
4
41
|
|
|
5
42
|
### Minor Changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::69305b121025647cc0550dfaff8e68c6>>
|
|
4
|
+
* @codegenCommand yarn build:icon-glyphs
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import type { NewCoreIconProps } from '@atlaskit/icon/base-new';
|
|
8
|
+
|
|
9
|
+
declare const AlignImageCenterIcon: {
|
|
10
|
+
(props: NewCoreIconProps): JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
export default AlignImageCenterIcon;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::c9b45ff5d1f46ac1a43b61a51fab3aff>>
|
|
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 _baseNew = _interopRequireDefault(require("@atlaskit/icon/base-new"));
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
/**
|
|
16
|
+
* ⚠️ EXPERIMENTAL ⚠️ - New icons are in alpha - and subject to change or removal in future minor or patch releases.
|
|
17
|
+
* Please reach out in #icon-contributions before using these in production.
|
|
18
|
+
*
|
|
19
|
+
* Icon: "AlignImageCenter".
|
|
20
|
+
* Category: single-purpose
|
|
21
|
+
* Location: @atlaskit/icon
|
|
22
|
+
* Usage guidance: Single purpose - Reserved for center aligning media and content.
|
|
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 AlignImageCenterIcon = props => /*#__PURE__*/_react.default.createElement(_baseNew.default, Object.assign({
|
|
27
|
+
dangerouslySetGlyph: `<path stroke="currentcolor" stroke-linejoin="round" stroke-width="1.5" d="M1 1.75h14M1 14.25h14m-5.375-4h-3.25a.625.625 0 0 1-.625-.625v-3.25c0-.345.28-.625.625-.625h3.25c.345 0 .625.28.625.625v3.25c0 .345-.28.625-.625.625Z"/>`
|
|
28
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
29
|
+
}, props));
|
|
30
|
+
AlignImageCenterIcon.displayName = 'AlignImageCenterIcon';
|
|
31
|
+
var _default = exports.default = AlignImageCenterIcon;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::5465f465e26073dafb418ad65943ac5d>>
|
|
4
|
+
* @codegenCommand yarn build:icon-glyphs
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import type { NewCoreIconProps } from '@atlaskit/icon/base-new';
|
|
8
|
+
|
|
9
|
+
declare const AlignImageLeftIcon: {
|
|
10
|
+
(props: NewCoreIconProps): JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
export default AlignImageLeftIcon;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::5d0c107257ed15db438c22484b63d13f>>
|
|
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 _baseNew = _interopRequireDefault(require("@atlaskit/icon/base-new"));
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
/**
|
|
16
|
+
* ⚠️ EXPERIMENTAL ⚠️ - New icons are in alpha - and subject to change or removal in future minor or patch releases.
|
|
17
|
+
* Please reach out in #icon-contributions before using these in production.
|
|
18
|
+
*
|
|
19
|
+
* Icon: "AlignImageLeft".
|
|
20
|
+
* Category: single-purpose
|
|
21
|
+
* Location: @atlaskit/icon
|
|
22
|
+
* Usage guidance: Single purpose - Reserved for left aligning media and content.
|
|
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 AlignImageLeftIcon = props => /*#__PURE__*/_react.default.createElement(_baseNew.default, Object.assign({
|
|
27
|
+
dangerouslySetGlyph: `<path stroke="currentcolor" stroke-linejoin="round" stroke-width="1.5" d="M1 1.75h14M1 14.25h14m-9.375-4h-3.25a.625.625 0 0 1-.625-.625v-3.25c0-.345.28-.625.625-.625h3.25c.345 0 .625.28.625.625v3.25c0 .345-.28.625-.625.625Z"/>`
|
|
28
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
29
|
+
}, props));
|
|
30
|
+
AlignImageLeftIcon.displayName = 'AlignImageLeftIcon';
|
|
31
|
+
var _default = exports.default = AlignImageLeftIcon;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::1615fffefbd687b977b427dd77a66005>>
|
|
4
|
+
* @codegenCommand yarn build:icon-glyphs
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import type { NewCoreIconProps } from '@atlaskit/icon/base-new';
|
|
8
|
+
|
|
9
|
+
declare const AlignImageRightIcon: {
|
|
10
|
+
(props: NewCoreIconProps): JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
export default AlignImageRightIcon;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::333bbcb76f20fa16b1525904dc7c53d6>>
|
|
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 _baseNew = _interopRequireDefault(require("@atlaskit/icon/base-new"));
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
/**
|
|
16
|
+
* ⚠️ EXPERIMENTAL ⚠️ - New icons are in alpha - and subject to change or removal in future minor or patch releases.
|
|
17
|
+
* Please reach out in #icon-contributions before using these in production.
|
|
18
|
+
*
|
|
19
|
+
* Icon: "AlignImageRight".
|
|
20
|
+
* Category: single-purpose
|
|
21
|
+
* Location: @atlaskit/icon
|
|
22
|
+
* Usage guidance: Single purpose - Reserved for right aligning media and content.
|
|
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 AlignImageRightIcon = props => /*#__PURE__*/_react.default.createElement(_baseNew.default, Object.assign({
|
|
27
|
+
dangerouslySetGlyph: `<path stroke="currentcolor" stroke-linejoin="round" stroke-width="1.5" d="M1 1.75h14M1 14.25h14m-1.375-4h-3.25a.625.625 0 0 1-.625-.625v-3.25c0-.345.28-.625.625-.625h3.25c.345 0 .625.28.625.625v3.25c0 .345-.28.625-.625.625Z"/>`
|
|
28
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
29
|
+
}, props));
|
|
30
|
+
AlignImageRightIcon.displayName = 'AlignImageRightIcon';
|
|
31
|
+
var _default = exports.default = AlignImageRightIcon;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::2fab8da48b2738c4c1bf7943f5a0dbbc>>
|
|
4
|
+
* @codegenCommand yarn build:icon-glyphs
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import type { NewCoreIconProps } from '@atlaskit/icon/base-new';
|
|
8
|
+
|
|
9
|
+
declare const AlignTextCenterIcon: {
|
|
10
|
+
(props: NewCoreIconProps): JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
export default AlignTextCenterIcon;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::c07625b0f6e2a46ce909db17734cf9a9>>
|
|
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 _baseNew = _interopRequireDefault(require("@atlaskit/icon/base-new"));
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
/**
|
|
16
|
+
* ⚠️ EXPERIMENTAL ⚠️ - New icons are in alpha - and subject to change or removal in future minor or patch releases.
|
|
17
|
+
* Please reach out in #icon-contributions before using these in production.
|
|
18
|
+
*
|
|
19
|
+
* Icon: "AlignTextCenter".
|
|
20
|
+
* Category: multi-purpose
|
|
21
|
+
* Location: @atlaskit/icon
|
|
22
|
+
* Usage guidance: Multi purpose - Known uses: align text center, align center.
|
|
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 AlignTextCenterIcon = props => /*#__PURE__*/_react.default.createElement(_baseNew.default, Object.assign({
|
|
27
|
+
dangerouslySetGlyph: `<path stroke="currentcolor" stroke-width="1.5" d="M4 2.75h8m-8 10.5h8M1 8h14"/>`
|
|
28
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
29
|
+
}, props));
|
|
30
|
+
AlignTextCenterIcon.displayName = 'AlignTextCenterIcon';
|
|
31
|
+
var _default = exports.default = AlignTextCenterIcon;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::90b980c0a0be18480f0c2715d4f7b7a0>>
|
|
4
|
+
* @codegenCommand yarn build:icon-glyphs
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import type { NewCoreIconProps } from '@atlaskit/icon/base-new';
|
|
8
|
+
|
|
9
|
+
declare const AlignTextLeftIcon: {
|
|
10
|
+
(props: NewCoreIconProps): JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
export default AlignTextLeftIcon;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::cef7acc97621b06863f10d18986382c2>>
|
|
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 _baseNew = _interopRequireDefault(require("@atlaskit/icon/base-new"));
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
/**
|
|
16
|
+
* ⚠️ EXPERIMENTAL ⚠️ - New icons are in alpha - and subject to change or removal in future minor or patch releases.
|
|
17
|
+
* Please reach out in #icon-contributions before using these in production.
|
|
18
|
+
*
|
|
19
|
+
* Icon: "AlignTextLeft".
|
|
20
|
+
* Category: multi-purpose
|
|
21
|
+
* Location: @atlaskit/icon
|
|
22
|
+
* Usage guidance: Multi purpose - Known uses: align text left, align content left, summary.
|
|
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 AlignTextLeftIcon = props => /*#__PURE__*/_react.default.createElement(_baseNew.default, Object.assign({
|
|
27
|
+
dangerouslySetGlyph: `<path stroke="currentcolor" stroke-width="1.5" d="M1 2.75h14M1 13.25h7M1 8h14"/>`
|
|
28
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
29
|
+
}, props));
|
|
30
|
+
AlignTextLeftIcon.displayName = 'AlignTextLeftIcon';
|
|
31
|
+
var _default = exports.default = AlignTextLeftIcon;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::ff124e0ac36251d308cd47431f2c3b00>>
|
|
4
|
+
* @codegenCommand yarn build:icon-glyphs
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import type { NewCoreIconProps } from '@atlaskit/icon/base-new';
|
|
8
|
+
|
|
9
|
+
declare const AlignTextRightIcon: {
|
|
10
|
+
(props: NewCoreIconProps): JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
export default AlignTextRightIcon;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::b7a4180edde25538e7e2113d64439836>>
|
|
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 _baseNew = _interopRequireDefault(require("@atlaskit/icon/base-new"));
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
/**
|
|
16
|
+
* ⚠️ EXPERIMENTAL ⚠️ - New icons are in alpha - and subject to change or removal in future minor or patch releases.
|
|
17
|
+
* Please reach out in #icon-contributions before using these in production.
|
|
18
|
+
*
|
|
19
|
+
* Icon: "AlignTextRight".
|
|
20
|
+
* Category: multi-purpose
|
|
21
|
+
* Location: @atlaskit/icon
|
|
22
|
+
* Usage guidance: Multi purpose - Known uses: align text right, align content right.
|
|
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 AlignTextRightIcon = props => /*#__PURE__*/_react.default.createElement(_baseNew.default, Object.assign({
|
|
27
|
+
dangerouslySetGlyph: `<path stroke="currentcolor" stroke-width="1.5" d="M1 2.75h14m-7 10.5h7M1 8h14"/>`
|
|
28
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
29
|
+
}, props));
|
|
30
|
+
AlignTextRightIcon.displayName = 'AlignTextRightIcon';
|
|
31
|
+
var _default = exports.default = AlignTextRightIcon;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::61dfa1b252883c45c5ed387a06d4d78c>>
|
|
4
|
+
* @codegenCommand yarn build:icon-glyphs
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import type { NewCoreIconProps } from '@atlaskit/icon/base-new';
|
|
8
|
+
|
|
9
|
+
declare const StrokeWeightExtraLargeIcon: {
|
|
10
|
+
(props: NewCoreIconProps): JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
export default StrokeWeightExtraLargeIcon;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::9b40451c3b1058b0e1cec3288b5d8a9a>>
|
|
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 _baseNew = _interopRequireDefault(require("@atlaskit/icon/base-new"));
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
/**
|
|
16
|
+
* ⚠️ EXPERIMENTAL ⚠️ - New icons are in alpha - and subject to change or removal in future minor or patch releases.
|
|
17
|
+
* Please reach out in #icon-contributions before using these in production.
|
|
18
|
+
*
|
|
19
|
+
* Icon: "StrokeWeightExtraLarge".
|
|
20
|
+
* Category: single-purpose
|
|
21
|
+
* Location: @atlaskit/icon
|
|
22
|
+
* Usage guidance: Reserved for representing the thickest border stroke width.
|
|
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 StrokeWeightExtraLargeIcon = props => /*#__PURE__*/_react.default.createElement(_baseNew.default, Object.assign({
|
|
27
|
+
dangerouslySetGlyph: `<rect width="8" height="8" x="4" y="4" fill="currentcolor" stroke="currentcolor" stroke-linejoin="round" stroke-width="1.5" rx="4"/>`
|
|
28
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
29
|
+
}, props));
|
|
30
|
+
StrokeWeightExtraLargeIcon.displayName = 'StrokeWeightExtraLargeIcon';
|
|
31
|
+
var _default = exports.default = StrokeWeightExtraLargeIcon;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::1a3825609b6353d118c984ad49a3669d>>
|
|
4
|
+
* @codegenCommand yarn build:icon-glyphs
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import type { NewCoreIconProps } from '@atlaskit/icon/base-new';
|
|
8
|
+
|
|
9
|
+
declare const StrokeWeightLargeIcon: {
|
|
10
|
+
(props: NewCoreIconProps): JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
export default StrokeWeightLargeIcon;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::f9f310bc31dad1632c4362b15f6c34f8>>
|
|
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 _baseNew = _interopRequireDefault(require("@atlaskit/icon/base-new"));
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
/**
|
|
16
|
+
* ⚠️ EXPERIMENTAL ⚠️ - New icons are in alpha - and subject to change or removal in future minor or patch releases.
|
|
17
|
+
* Please reach out in #icon-contributions before using these in production.
|
|
18
|
+
*
|
|
19
|
+
* Icon: "StrokeWeightLarge".
|
|
20
|
+
* Category: single-purpose
|
|
21
|
+
* Location: @atlaskit/icon
|
|
22
|
+
* Usage guidance: Reserved for representing thick border stroke widths.
|
|
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 StrokeWeightLargeIcon = props => /*#__PURE__*/_react.default.createElement(_baseNew.default, Object.assign({
|
|
27
|
+
dangerouslySetGlyph: `<rect width="6" height="6" x="5" y="5" fill="currentcolor" stroke="currentcolor" stroke-linejoin="round" stroke-width="1.5" rx="3"/>`
|
|
28
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
29
|
+
}, props));
|
|
30
|
+
StrokeWeightLargeIcon.displayName = 'StrokeWeightLargeIcon';
|
|
31
|
+
var _default = exports.default = StrokeWeightLargeIcon;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::29ddf8bf74b7a28af37c79b2d2ecdd21>>
|
|
4
|
+
* @codegenCommand yarn build:icon-glyphs
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import type { NewCoreIconProps } from '@atlaskit/icon/base-new';
|
|
8
|
+
|
|
9
|
+
declare const StrokeWeightMediumIcon: {
|
|
10
|
+
(props: NewCoreIconProps): JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
export default StrokeWeightMediumIcon;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::8440504e72be0b869c7073ffc55f88e2>>
|
|
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 _baseNew = _interopRequireDefault(require("@atlaskit/icon/base-new"));
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
/**
|
|
16
|
+
* ⚠️ EXPERIMENTAL ⚠️ - New icons are in alpha - and subject to change or removal in future minor or patch releases.
|
|
17
|
+
* Please reach out in #icon-contributions before using these in production.
|
|
18
|
+
*
|
|
19
|
+
* Icon: "StrokeWeightMedium".
|
|
20
|
+
* Category: single-purpose
|
|
21
|
+
* Location: @atlaskit/icon
|
|
22
|
+
* Usage guidance: Reserved for representing medium border stroke widths.
|
|
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 StrokeWeightMediumIcon = props => /*#__PURE__*/_react.default.createElement(_baseNew.default, Object.assign({
|
|
27
|
+
dangerouslySetGlyph: `<rect width="4" height="4" x="6" y="6" fill="currentcolor" stroke="currentcolor" stroke-linejoin="round" stroke-width="1.5" rx="2"/>`
|
|
28
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
29
|
+
}, props));
|
|
30
|
+
StrokeWeightMediumIcon.displayName = 'StrokeWeightMediumIcon';
|
|
31
|
+
var _default = exports.default = StrokeWeightMediumIcon;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::8de5533cea4caa19f464dd117b3f860e>>
|
|
4
|
+
* @codegenCommand yarn build:icon-glyphs
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import type { NewCoreIconProps } from '@atlaskit/icon/base-new';
|
|
8
|
+
|
|
9
|
+
declare const StrokeWeightSmallIcon: {
|
|
10
|
+
(props: NewCoreIconProps): JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
export default StrokeWeightSmallIcon;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::5a8f21cc916c45477690e90dedc2427b>>
|
|
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 _baseNew = _interopRequireDefault(require("@atlaskit/icon/base-new"));
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
/**
|
|
16
|
+
* ⚠️ EXPERIMENTAL ⚠️ - New icons are in alpha - and subject to change or removal in future minor or patch releases.
|
|
17
|
+
* Please reach out in #icon-contributions before using these in production.
|
|
18
|
+
*
|
|
19
|
+
* Icon: "StrokeWeightSmall".
|
|
20
|
+
* Category: single-purpose
|
|
21
|
+
* Location: @atlaskit/icon
|
|
22
|
+
* Usage guidance: Reserved for representing thin border stroke widths.
|
|
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 StrokeWeightSmallIcon = props => /*#__PURE__*/_react.default.createElement(_baseNew.default, Object.assign({
|
|
27
|
+
dangerouslySetGlyph: `<rect width="2" height="2" fill="currentcolor" stroke="currentcolor" stroke-linejoin="round" stroke-width="1.5" rx="1" transform="matrix(1 0 0 -1 7 9)"/>`
|
|
28
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
29
|
+
}, props));
|
|
30
|
+
StrokeWeightSmallIcon.displayName = 'StrokeWeightSmallIcon';
|
|
31
|
+
var _default = exports.default = StrokeWeightSmallIcon;
|
|
@@ -5,12 +5,12 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.IconFacade = void 0;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
|
-
var _icon =
|
|
13
|
+
var _icon = require("./icon");
|
|
14
14
|
var _excluded = ["dangerouslySetGlyph"];
|
|
15
15
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
16
16
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -61,8 +61,7 @@ var IconFacade = exports.IconFacade = /*#__PURE__*/(0, _react.memo)(function Ico
|
|
|
61
61
|
}));
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
return /*#__PURE__*/_react.default.createElement(_icon.
|
|
64
|
+
return /*#__PURE__*/_react.default.createElement(_icon.Icon, (0, _extends2.default)({
|
|
65
65
|
dangerouslySetGlyph: dangerouslySetGlyph
|
|
66
66
|
}, props));
|
|
67
|
-
});
|
|
68
|
-
var _default = exports.default = IconFacade;
|
|
67
|
+
});
|
|
@@ -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::8d615a9e55d05a28b6a31d643dc17516>>
|
|
13
13
|
* @codegenCommand yarn build:icon-glyphs
|
|
14
14
|
*/
|
|
15
15
|
|
|
@@ -61,6 +61,33 @@ var metadata = {
|
|
|
61
61
|
usage: 'Multi purpose - Known uses: align text center, align center.',
|
|
62
62
|
team: 'Design System Team'
|
|
63
63
|
},
|
|
64
|
+
'align-image-center': {
|
|
65
|
+
keywords: ['align-image-center', 'alignimagecenter', 'icon', 'core', 'content', 'media', 'image', 'alignment', 'centre'],
|
|
66
|
+
componentName: 'AlignImageCenterIcon',
|
|
67
|
+
package: '@atlaskit/icon/core/align-image-center',
|
|
68
|
+
type: 'core',
|
|
69
|
+
categorization: 'single-purpose',
|
|
70
|
+
usage: 'Single purpose - Reserved for center aligning media and content.',
|
|
71
|
+
team: 'Design System Team'
|
|
72
|
+
},
|
|
73
|
+
'align-image-left': {
|
|
74
|
+
keywords: ['align-image-left', 'alignimageleft', 'icon', 'core', 'content', 'media', 'image', 'alignment', 'left'],
|
|
75
|
+
componentName: 'AlignImageLeftIcon',
|
|
76
|
+
package: '@atlaskit/icon/core/align-image-left',
|
|
77
|
+
type: 'core',
|
|
78
|
+
categorization: 'single-purpose',
|
|
79
|
+
usage: 'Single purpose - Reserved for left aligning media and content.',
|
|
80
|
+
team: 'Design System Team'
|
|
81
|
+
},
|
|
82
|
+
'align-image-right': {
|
|
83
|
+
keywords: ['align-image-right', 'alignimageright', 'icon', 'core', 'content', 'media', 'image', 'alignment', 'right'],
|
|
84
|
+
componentName: 'AlignImageRightIcon',
|
|
85
|
+
package: '@atlaskit/icon/core/align-image-right',
|
|
86
|
+
type: 'core',
|
|
87
|
+
categorization: 'single-purpose',
|
|
88
|
+
usage: 'Single purpose - Reserved for right aligning media and content.',
|
|
89
|
+
team: 'Design System Team'
|
|
90
|
+
},
|
|
64
91
|
'align-left': {
|
|
65
92
|
keywords: ['align-left', 'alignleft', 'icon', 'core', 'alignment', 'text', 'content', 'summary'],
|
|
66
93
|
componentName: 'AlignLeftIcon',
|
|
@@ -81,6 +108,33 @@ var metadata = {
|
|
|
81
108
|
usage: 'Multi purpose - Known uses: align text right, align content right.',
|
|
82
109
|
team: 'Design System Team'
|
|
83
110
|
},
|
|
111
|
+
'align-text-center': {
|
|
112
|
+
keywords: ['align-text-center', 'aligntextcenter', 'icon', 'core', 'alignment', 'text', 'content'],
|
|
113
|
+
componentName: 'AlignTextCenterIcon',
|
|
114
|
+
package: '@atlaskit/icon/core/align-text-center',
|
|
115
|
+
type: 'core',
|
|
116
|
+
categorization: 'multi-purpose',
|
|
117
|
+
usage: 'Multi purpose - Known uses: align text center, align center.',
|
|
118
|
+
team: 'Design System Team'
|
|
119
|
+
},
|
|
120
|
+
'align-text-left': {
|
|
121
|
+
keywords: ['align-text-left', 'aligntextleft', 'icon', 'core', 'alignment', 'text', 'content', 'summary'],
|
|
122
|
+
componentName: 'AlignTextLeftIcon',
|
|
123
|
+
package: '@atlaskit/icon/core/align-text-left',
|
|
124
|
+
type: 'core',
|
|
125
|
+
categorization: 'multi-purpose',
|
|
126
|
+
usage: 'Multi purpose - Known uses: align text left, align content left, summary.',
|
|
127
|
+
team: 'Design System Team'
|
|
128
|
+
},
|
|
129
|
+
'align-text-right': {
|
|
130
|
+
keywords: ['align-text-right', 'aligntextright', 'icon', 'core', 'alignment', 'text', 'content'],
|
|
131
|
+
componentName: 'AlignTextRightIcon',
|
|
132
|
+
package: '@atlaskit/icon/core/align-text-right',
|
|
133
|
+
type: 'core',
|
|
134
|
+
categorization: 'multi-purpose',
|
|
135
|
+
usage: 'Multi purpose - Known uses: align text right, align content right.',
|
|
136
|
+
team: 'Design System Team'
|
|
137
|
+
},
|
|
84
138
|
'angle-brackets': {
|
|
85
139
|
keywords: ['angle-brackets', 'anglebrackets', 'icon', 'core', 'code', '<>', '</>', 'syntax', 'jira status'],
|
|
86
140
|
componentName: 'AngleBracketsIcon',
|
|
@@ -2640,6 +2694,42 @@ var metadata = {
|
|
|
2640
2694
|
usage: 'Single purpose - Reserved for stories in Jira.',
|
|
2641
2695
|
team: 'Design System Team'
|
|
2642
2696
|
},
|
|
2697
|
+
'stroke-weight-extra-large': {
|
|
2698
|
+
keywords: ['stroke-weight-extra-large', 'strokeweightextralarge', 'icon', 'core', 'border', 'weight', 'thickness', 'stroke', 'confluence', 'editor', 'whiteboards', 'thickest'],
|
|
2699
|
+
componentName: 'StrokeWeightExtraLargeIcon',
|
|
2700
|
+
package: '@atlaskit/icon/core/stroke-weight-extra-large',
|
|
2701
|
+
type: 'core',
|
|
2702
|
+
categorization: 'single-purpose',
|
|
2703
|
+
usage: 'Reserved for representing the thickest border stroke width.',
|
|
2704
|
+
team: 'Whiteboards'
|
|
2705
|
+
},
|
|
2706
|
+
'stroke-weight-large': {
|
|
2707
|
+
keywords: ['stroke-weight-large', 'strokeweightlarge', 'icon', 'core', 'border', 'weight', 'thickness', 'stroke', 'thick', 'confluence', 'editor', 'whiteboards'],
|
|
2708
|
+
componentName: 'StrokeWeightLargeIcon',
|
|
2709
|
+
package: '@atlaskit/icon/core/stroke-weight-large',
|
|
2710
|
+
type: 'core',
|
|
2711
|
+
categorization: 'single-purpose',
|
|
2712
|
+
usage: 'Reserved for representing thick border stroke widths.',
|
|
2713
|
+
team: 'Editor'
|
|
2714
|
+
},
|
|
2715
|
+
'stroke-weight-medium': {
|
|
2716
|
+
keywords: ['stroke-weight-medium', 'strokeweightmedium', 'icon', 'core', 'border', 'weight', 'stroke', 'medium', 'thickness', 'confluence', 'editor', 'whiteboards'],
|
|
2717
|
+
componentName: 'StrokeWeightMediumIcon',
|
|
2718
|
+
package: '@atlaskit/icon/core/stroke-weight-medium',
|
|
2719
|
+
type: 'core',
|
|
2720
|
+
categorization: 'single-purpose',
|
|
2721
|
+
usage: 'Reserved for representing medium border stroke widths.',
|
|
2722
|
+
team: 'Editor'
|
|
2723
|
+
},
|
|
2724
|
+
'stroke-weight-small': {
|
|
2725
|
+
keywords: ['stroke-weight-small', 'strokeweightsmall', 'icon', 'core', 'border', 'weight', 'thickness', 'stroke', 'confluence', 'editor', 'whiteboards', 'thin'],
|
|
2726
|
+
componentName: 'StrokeWeightSmallIcon',
|
|
2727
|
+
package: '@atlaskit/icon/core/stroke-weight-small',
|
|
2728
|
+
type: 'core',
|
|
2729
|
+
categorization: 'single-purpose',
|
|
2730
|
+
usage: 'Reserved for representing thin border stroke widths.',
|
|
2731
|
+
team: 'Editor'
|
|
2732
|
+
},
|
|
2643
2733
|
subtasks: {
|
|
2644
2734
|
keywords: ['subtasks', 'icon', 'core', 'issue', 'todo', 'checklist', 'jira status'],
|
|
2645
2735
|
componentName: 'SubtasksIcon',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { memo } from 'react';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
-
import LegacyIcon from './icon';
|
|
4
|
+
import { Icon as LegacyIcon } from './icon';
|
|
5
5
|
const sizeSpacingMap = {
|
|
6
6
|
utility: {
|
|
7
7
|
small: 'compact',
|
|
@@ -53,5 +53,4 @@ export const IconFacade = /*#__PURE__*/memo(function IconFacade({
|
|
|
53
53
|
return /*#__PURE__*/React.createElement(LegacyIcon, _extends({
|
|
54
54
|
dangerouslySetGlyph: dangerouslySetGlyph
|
|
55
55
|
}, props));
|
|
56
|
-
});
|
|
57
|
-
export default IconFacade;
|
|
56
|
+
});
|
|
@@ -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::8d615a9e55d05a28b6a31d643dc17516>>
|
|
7
7
|
* @codegenCommand yarn build:icon-glyphs
|
|
8
8
|
*/
|
|
9
9
|
|
|
@@ -55,6 +55,33 @@ const metadata = {
|
|
|
55
55
|
usage: 'Multi purpose - Known uses: align text center, align center.',
|
|
56
56
|
team: 'Design System Team'
|
|
57
57
|
},
|
|
58
|
+
'align-image-center': {
|
|
59
|
+
keywords: ['align-image-center', 'alignimagecenter', 'icon', 'core', 'content', 'media', 'image', 'alignment', 'centre'],
|
|
60
|
+
componentName: 'AlignImageCenterIcon',
|
|
61
|
+
package: '@atlaskit/icon/core/align-image-center',
|
|
62
|
+
type: 'core',
|
|
63
|
+
categorization: 'single-purpose',
|
|
64
|
+
usage: 'Single purpose - Reserved for center aligning media and content.',
|
|
65
|
+
team: 'Design System Team'
|
|
66
|
+
},
|
|
67
|
+
'align-image-left': {
|
|
68
|
+
keywords: ['align-image-left', 'alignimageleft', 'icon', 'core', 'content', 'media', 'image', 'alignment', 'left'],
|
|
69
|
+
componentName: 'AlignImageLeftIcon',
|
|
70
|
+
package: '@atlaskit/icon/core/align-image-left',
|
|
71
|
+
type: 'core',
|
|
72
|
+
categorization: 'single-purpose',
|
|
73
|
+
usage: 'Single purpose - Reserved for left aligning media and content.',
|
|
74
|
+
team: 'Design System Team'
|
|
75
|
+
},
|
|
76
|
+
'align-image-right': {
|
|
77
|
+
keywords: ['align-image-right', 'alignimageright', 'icon', 'core', 'content', 'media', 'image', 'alignment', 'right'],
|
|
78
|
+
componentName: 'AlignImageRightIcon',
|
|
79
|
+
package: '@atlaskit/icon/core/align-image-right',
|
|
80
|
+
type: 'core',
|
|
81
|
+
categorization: 'single-purpose',
|
|
82
|
+
usage: 'Single purpose - Reserved for right aligning media and content.',
|
|
83
|
+
team: 'Design System Team'
|
|
84
|
+
},
|
|
58
85
|
'align-left': {
|
|
59
86
|
keywords: ['align-left', 'alignleft', 'icon', 'core', 'alignment', 'text', 'content', 'summary'],
|
|
60
87
|
componentName: 'AlignLeftIcon',
|
|
@@ -75,6 +102,33 @@ const metadata = {
|
|
|
75
102
|
usage: 'Multi purpose - Known uses: align text right, align content right.',
|
|
76
103
|
team: 'Design System Team'
|
|
77
104
|
},
|
|
105
|
+
'align-text-center': {
|
|
106
|
+
keywords: ['align-text-center', 'aligntextcenter', 'icon', 'core', 'alignment', 'text', 'content'],
|
|
107
|
+
componentName: 'AlignTextCenterIcon',
|
|
108
|
+
package: '@atlaskit/icon/core/align-text-center',
|
|
109
|
+
type: 'core',
|
|
110
|
+
categorization: 'multi-purpose',
|
|
111
|
+
usage: 'Multi purpose - Known uses: align text center, align center.',
|
|
112
|
+
team: 'Design System Team'
|
|
113
|
+
},
|
|
114
|
+
'align-text-left': {
|
|
115
|
+
keywords: ['align-text-left', 'aligntextleft', 'icon', 'core', 'alignment', 'text', 'content', 'summary'],
|
|
116
|
+
componentName: 'AlignTextLeftIcon',
|
|
117
|
+
package: '@atlaskit/icon/core/align-text-left',
|
|
118
|
+
type: 'core',
|
|
119
|
+
categorization: 'multi-purpose',
|
|
120
|
+
usage: 'Multi purpose - Known uses: align text left, align content left, summary.',
|
|
121
|
+
team: 'Design System Team'
|
|
122
|
+
},
|
|
123
|
+
'align-text-right': {
|
|
124
|
+
keywords: ['align-text-right', 'aligntextright', 'icon', 'core', 'alignment', 'text', 'content'],
|
|
125
|
+
componentName: 'AlignTextRightIcon',
|
|
126
|
+
package: '@atlaskit/icon/core/align-text-right',
|
|
127
|
+
type: 'core',
|
|
128
|
+
categorization: 'multi-purpose',
|
|
129
|
+
usage: 'Multi purpose - Known uses: align text right, align content right.',
|
|
130
|
+
team: 'Design System Team'
|
|
131
|
+
},
|
|
78
132
|
'angle-brackets': {
|
|
79
133
|
keywords: ['angle-brackets', 'anglebrackets', 'icon', 'core', 'code', '<>', '</>', 'syntax', 'jira status'],
|
|
80
134
|
componentName: 'AngleBracketsIcon',
|
|
@@ -2634,6 +2688,42 @@ const metadata = {
|
|
|
2634
2688
|
usage: 'Single purpose - Reserved for stories in Jira.',
|
|
2635
2689
|
team: 'Design System Team'
|
|
2636
2690
|
},
|
|
2691
|
+
'stroke-weight-extra-large': {
|
|
2692
|
+
keywords: ['stroke-weight-extra-large', 'strokeweightextralarge', 'icon', 'core', 'border', 'weight', 'thickness', 'stroke', 'confluence', 'editor', 'whiteboards', 'thickest'],
|
|
2693
|
+
componentName: 'StrokeWeightExtraLargeIcon',
|
|
2694
|
+
package: '@atlaskit/icon/core/stroke-weight-extra-large',
|
|
2695
|
+
type: 'core',
|
|
2696
|
+
categorization: 'single-purpose',
|
|
2697
|
+
usage: 'Reserved for representing the thickest border stroke width.',
|
|
2698
|
+
team: 'Whiteboards'
|
|
2699
|
+
},
|
|
2700
|
+
'stroke-weight-large': {
|
|
2701
|
+
keywords: ['stroke-weight-large', 'strokeweightlarge', 'icon', 'core', 'border', 'weight', 'thickness', 'stroke', 'thick', 'confluence', 'editor', 'whiteboards'],
|
|
2702
|
+
componentName: 'StrokeWeightLargeIcon',
|
|
2703
|
+
package: '@atlaskit/icon/core/stroke-weight-large',
|
|
2704
|
+
type: 'core',
|
|
2705
|
+
categorization: 'single-purpose',
|
|
2706
|
+
usage: 'Reserved for representing thick border stroke widths.',
|
|
2707
|
+
team: 'Editor'
|
|
2708
|
+
},
|
|
2709
|
+
'stroke-weight-medium': {
|
|
2710
|
+
keywords: ['stroke-weight-medium', 'strokeweightmedium', 'icon', 'core', 'border', 'weight', 'stroke', 'medium', 'thickness', 'confluence', 'editor', 'whiteboards'],
|
|
2711
|
+
componentName: 'StrokeWeightMediumIcon',
|
|
2712
|
+
package: '@atlaskit/icon/core/stroke-weight-medium',
|
|
2713
|
+
type: 'core',
|
|
2714
|
+
categorization: 'single-purpose',
|
|
2715
|
+
usage: 'Reserved for representing medium border stroke widths.',
|
|
2716
|
+
team: 'Editor'
|
|
2717
|
+
},
|
|
2718
|
+
'stroke-weight-small': {
|
|
2719
|
+
keywords: ['stroke-weight-small', 'strokeweightsmall', 'icon', 'core', 'border', 'weight', 'thickness', 'stroke', 'confluence', 'editor', 'whiteboards', 'thin'],
|
|
2720
|
+
componentName: 'StrokeWeightSmallIcon',
|
|
2721
|
+
package: '@atlaskit/icon/core/stroke-weight-small',
|
|
2722
|
+
type: 'core',
|
|
2723
|
+
categorization: 'single-purpose',
|
|
2724
|
+
usage: 'Reserved for representing thin border stroke widths.',
|
|
2725
|
+
team: 'Editor'
|
|
2726
|
+
},
|
|
2637
2727
|
subtasks: {
|
|
2638
2728
|
keywords: ['subtasks', 'icon', 'core', 'issue', 'todo', 'checklist', 'jira status'],
|
|
2639
2729
|
componentName: 'SubtasksIcon',
|
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["dangerouslySetGlyph"];
|
|
4
4
|
import React, { memo } from 'react';
|
|
5
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
|
-
import LegacyIcon from './icon';
|
|
6
|
+
import { Icon as LegacyIcon } from './icon';
|
|
7
7
|
var sizeSpacingMap = {
|
|
8
8
|
utility: {
|
|
9
9
|
small: 'compact',
|
|
@@ -54,5 +54,4 @@ export var IconFacade = /*#__PURE__*/memo(function IconFacade(_ref) {
|
|
|
54
54
|
return /*#__PURE__*/React.createElement(LegacyIcon, _extends({
|
|
55
55
|
dangerouslySetGlyph: dangerouslySetGlyph
|
|
56
56
|
}, props));
|
|
57
|
-
});
|
|
58
|
-
export default IconFacade;
|
|
57
|
+
});
|
|
@@ -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::8d615a9e55d05a28b6a31d643dc17516>>
|
|
7
7
|
* @codegenCommand yarn build:icon-glyphs
|
|
8
8
|
*/
|
|
9
9
|
|
|
@@ -55,6 +55,33 @@ var metadata = {
|
|
|
55
55
|
usage: 'Multi purpose - Known uses: align text center, align center.',
|
|
56
56
|
team: 'Design System Team'
|
|
57
57
|
},
|
|
58
|
+
'align-image-center': {
|
|
59
|
+
keywords: ['align-image-center', 'alignimagecenter', 'icon', 'core', 'content', 'media', 'image', 'alignment', 'centre'],
|
|
60
|
+
componentName: 'AlignImageCenterIcon',
|
|
61
|
+
package: '@atlaskit/icon/core/align-image-center',
|
|
62
|
+
type: 'core',
|
|
63
|
+
categorization: 'single-purpose',
|
|
64
|
+
usage: 'Single purpose - Reserved for center aligning media and content.',
|
|
65
|
+
team: 'Design System Team'
|
|
66
|
+
},
|
|
67
|
+
'align-image-left': {
|
|
68
|
+
keywords: ['align-image-left', 'alignimageleft', 'icon', 'core', 'content', 'media', 'image', 'alignment', 'left'],
|
|
69
|
+
componentName: 'AlignImageLeftIcon',
|
|
70
|
+
package: '@atlaskit/icon/core/align-image-left',
|
|
71
|
+
type: 'core',
|
|
72
|
+
categorization: 'single-purpose',
|
|
73
|
+
usage: 'Single purpose - Reserved for left aligning media and content.',
|
|
74
|
+
team: 'Design System Team'
|
|
75
|
+
},
|
|
76
|
+
'align-image-right': {
|
|
77
|
+
keywords: ['align-image-right', 'alignimageright', 'icon', 'core', 'content', 'media', 'image', 'alignment', 'right'],
|
|
78
|
+
componentName: 'AlignImageRightIcon',
|
|
79
|
+
package: '@atlaskit/icon/core/align-image-right',
|
|
80
|
+
type: 'core',
|
|
81
|
+
categorization: 'single-purpose',
|
|
82
|
+
usage: 'Single purpose - Reserved for right aligning media and content.',
|
|
83
|
+
team: 'Design System Team'
|
|
84
|
+
},
|
|
58
85
|
'align-left': {
|
|
59
86
|
keywords: ['align-left', 'alignleft', 'icon', 'core', 'alignment', 'text', 'content', 'summary'],
|
|
60
87
|
componentName: 'AlignLeftIcon',
|
|
@@ -75,6 +102,33 @@ var metadata = {
|
|
|
75
102
|
usage: 'Multi purpose - Known uses: align text right, align content right.',
|
|
76
103
|
team: 'Design System Team'
|
|
77
104
|
},
|
|
105
|
+
'align-text-center': {
|
|
106
|
+
keywords: ['align-text-center', 'aligntextcenter', 'icon', 'core', 'alignment', 'text', 'content'],
|
|
107
|
+
componentName: 'AlignTextCenterIcon',
|
|
108
|
+
package: '@atlaskit/icon/core/align-text-center',
|
|
109
|
+
type: 'core',
|
|
110
|
+
categorization: 'multi-purpose',
|
|
111
|
+
usage: 'Multi purpose - Known uses: align text center, align center.',
|
|
112
|
+
team: 'Design System Team'
|
|
113
|
+
},
|
|
114
|
+
'align-text-left': {
|
|
115
|
+
keywords: ['align-text-left', 'aligntextleft', 'icon', 'core', 'alignment', 'text', 'content', 'summary'],
|
|
116
|
+
componentName: 'AlignTextLeftIcon',
|
|
117
|
+
package: '@atlaskit/icon/core/align-text-left',
|
|
118
|
+
type: 'core',
|
|
119
|
+
categorization: 'multi-purpose',
|
|
120
|
+
usage: 'Multi purpose - Known uses: align text left, align content left, summary.',
|
|
121
|
+
team: 'Design System Team'
|
|
122
|
+
},
|
|
123
|
+
'align-text-right': {
|
|
124
|
+
keywords: ['align-text-right', 'aligntextright', 'icon', 'core', 'alignment', 'text', 'content'],
|
|
125
|
+
componentName: 'AlignTextRightIcon',
|
|
126
|
+
package: '@atlaskit/icon/core/align-text-right',
|
|
127
|
+
type: 'core',
|
|
128
|
+
categorization: 'multi-purpose',
|
|
129
|
+
usage: 'Multi purpose - Known uses: align text right, align content right.',
|
|
130
|
+
team: 'Design System Team'
|
|
131
|
+
},
|
|
78
132
|
'angle-brackets': {
|
|
79
133
|
keywords: ['angle-brackets', 'anglebrackets', 'icon', 'core', 'code', '<>', '</>', 'syntax', 'jira status'],
|
|
80
134
|
componentName: 'AngleBracketsIcon',
|
|
@@ -2634,6 +2688,42 @@ var metadata = {
|
|
|
2634
2688
|
usage: 'Single purpose - Reserved for stories in Jira.',
|
|
2635
2689
|
team: 'Design System Team'
|
|
2636
2690
|
},
|
|
2691
|
+
'stroke-weight-extra-large': {
|
|
2692
|
+
keywords: ['stroke-weight-extra-large', 'strokeweightextralarge', 'icon', 'core', 'border', 'weight', 'thickness', 'stroke', 'confluence', 'editor', 'whiteboards', 'thickest'],
|
|
2693
|
+
componentName: 'StrokeWeightExtraLargeIcon',
|
|
2694
|
+
package: '@atlaskit/icon/core/stroke-weight-extra-large',
|
|
2695
|
+
type: 'core',
|
|
2696
|
+
categorization: 'single-purpose',
|
|
2697
|
+
usage: 'Reserved for representing the thickest border stroke width.',
|
|
2698
|
+
team: 'Whiteboards'
|
|
2699
|
+
},
|
|
2700
|
+
'stroke-weight-large': {
|
|
2701
|
+
keywords: ['stroke-weight-large', 'strokeweightlarge', 'icon', 'core', 'border', 'weight', 'thickness', 'stroke', 'thick', 'confluence', 'editor', 'whiteboards'],
|
|
2702
|
+
componentName: 'StrokeWeightLargeIcon',
|
|
2703
|
+
package: '@atlaskit/icon/core/stroke-weight-large',
|
|
2704
|
+
type: 'core',
|
|
2705
|
+
categorization: 'single-purpose',
|
|
2706
|
+
usage: 'Reserved for representing thick border stroke widths.',
|
|
2707
|
+
team: 'Editor'
|
|
2708
|
+
},
|
|
2709
|
+
'stroke-weight-medium': {
|
|
2710
|
+
keywords: ['stroke-weight-medium', 'strokeweightmedium', 'icon', 'core', 'border', 'weight', 'stroke', 'medium', 'thickness', 'confluence', 'editor', 'whiteboards'],
|
|
2711
|
+
componentName: 'StrokeWeightMediumIcon',
|
|
2712
|
+
package: '@atlaskit/icon/core/stroke-weight-medium',
|
|
2713
|
+
type: 'core',
|
|
2714
|
+
categorization: 'single-purpose',
|
|
2715
|
+
usage: 'Reserved for representing medium border stroke widths.',
|
|
2716
|
+
team: 'Editor'
|
|
2717
|
+
},
|
|
2718
|
+
'stroke-weight-small': {
|
|
2719
|
+
keywords: ['stroke-weight-small', 'strokeweightsmall', 'icon', 'core', 'border', 'weight', 'thickness', 'stroke', 'confluence', 'editor', 'whiteboards', 'thin'],
|
|
2720
|
+
componentName: 'StrokeWeightSmallIcon',
|
|
2721
|
+
package: '@atlaskit/icon/core/stroke-weight-small',
|
|
2722
|
+
type: 'core',
|
|
2723
|
+
categorization: 'single-purpose',
|
|
2724
|
+
usage: 'Reserved for representing thin border stroke widths.',
|
|
2725
|
+
team: 'Editor'
|
|
2726
|
+
},
|
|
2637
2727
|
subtasks: {
|
|
2638
2728
|
keywords: ['subtasks', 'icon', 'core', 'issue', 'todo', 'checklist', 'jira status'],
|
|
2639
2729
|
componentName: 'SubtasksIcon',
|
|
@@ -9,4 +9,3 @@ import type { IconFacadeProps } from '../types';
|
|
|
9
9
|
* @returns A React element representing either the new or legacy icon based on the feature flag and icon size.
|
|
10
10
|
*/
|
|
11
11
|
export declare const IconFacade: React.NamedExoticComponent<IconFacadeProps>;
|
|
12
|
-
export default IconFacade;
|
|
@@ -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::8d615a9e55d05a28b6a31d643dc17516>>
|
|
7
7
|
* @codegenCommand yarn build:icon-glyphs
|
|
8
8
|
*/
|
|
9
9
|
interface metadata {
|
package/dist/types/types.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { ComponentType, ReactElement, ReactNode, SVGProps as ReactSVGProps
|
|
|
2
2
|
import type { IconColor, IconColorPressed, TextColor, TextColorPressed } from '@atlaskit/tokens/css-type-schema';
|
|
3
3
|
export type Size = 'small' | 'medium' | 'large' | 'xlarge';
|
|
4
4
|
export type IconSpacing = 'none' | 'spacious';
|
|
5
|
-
|
|
5
|
+
type UtilityIconSpacing = 'none' | 'spacious' | 'compact';
|
|
6
6
|
export interface CustomGlyphProps extends ReactSVGProps<SVGSVGElement> {
|
|
7
7
|
/**
|
|
8
8
|
* provided to a custom glyph
|
|
@@ -17,7 +17,7 @@ export interface CustomGlyphProps extends ReactSVGProps<SVGSVGElement> {
|
|
|
17
17
|
*/
|
|
18
18
|
className?: string;
|
|
19
19
|
}
|
|
20
|
-
|
|
20
|
+
interface GlyphColorProps {
|
|
21
21
|
/**
|
|
22
22
|
* Primary color for the icon.
|
|
23
23
|
* Inherits the current font color by default.
|
|
@@ -41,7 +41,7 @@ export interface NewGlyphColorProps {
|
|
|
41
41
|
*/
|
|
42
42
|
color?: IconColor | IconColorPressed | Exclude<TextColor, 'transparent'> | TextColorPressed | 'currentColor';
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
interface GlyphSizeProps {
|
|
45
45
|
/**
|
|
46
46
|
* There are three icon sizes – small (16px), medium (24px), and large (32px).
|
|
47
47
|
* This pixel size refers to the canvas the icon sits on,
|
|
@@ -49,7 +49,7 @@ export interface GlyphSizeProps {
|
|
|
49
49
|
*/
|
|
50
50
|
size?: Size;
|
|
51
51
|
}
|
|
52
|
-
|
|
52
|
+
interface NewCoreGlyphSpacingProps {
|
|
53
53
|
/**
|
|
54
54
|
* Core Icons have only one available size, but can be displayed with additional spacing.
|
|
55
55
|
* "none" is default, and allows the icon to be placed in buttons and allows the parent component to manage spacing.
|
|
@@ -57,7 +57,7 @@ export interface NewCoreGlyphSpacingProps {
|
|
|
57
57
|
*/
|
|
58
58
|
spacing?: IconSpacing;
|
|
59
59
|
}
|
|
60
|
-
|
|
60
|
+
interface NewUtilityGlyphSpacingProps {
|
|
61
61
|
/**
|
|
62
62
|
* Utility Icons have only one available size, but can be displayed with additional spacing.
|
|
63
63
|
* "none" is default, and allows the icon to be placed in buttons and allows the parent component to manage spacing.
|
|
@@ -66,7 +66,7 @@ export interface NewUtilityGlyphSpacingProps {
|
|
|
66
66
|
*/
|
|
67
67
|
spacing?: UtilityIconSpacing;
|
|
68
68
|
}
|
|
69
|
-
|
|
69
|
+
interface OtherGlyphProps {
|
|
70
70
|
/**
|
|
71
71
|
* Text used to describe what the icon is in context.
|
|
72
72
|
* A label is needed when there is no pairing visible text next to the icon.
|
|
@@ -83,7 +83,7 @@ export interface OtherGlyphProps {
|
|
|
83
83
|
/**
|
|
84
84
|
* Props for legacy icons –– including the children prop to resolve R18 type errors
|
|
85
85
|
*/
|
|
86
|
-
|
|
86
|
+
interface LegacyOtherGlyphProps {
|
|
87
87
|
/**
|
|
88
88
|
* Text used to describe what the icon is in context.
|
|
89
89
|
*/
|
|
@@ -115,9 +115,9 @@ interface IconInternalGlyphProps {
|
|
|
115
115
|
}
|
|
116
116
|
export interface GlyphProps extends LegacyOtherGlyphProps, GlyphSizeProps, GlyphColorProps {
|
|
117
117
|
}
|
|
118
|
-
|
|
118
|
+
interface NewCoreGlyphProps extends OtherGlyphProps, NewCoreGlyphSpacingProps, NewGlyphColorProps {
|
|
119
119
|
}
|
|
120
|
-
|
|
120
|
+
interface NewUtilityGlyphProps extends OtherGlyphProps, NewUtilityGlyphSpacingProps, NewGlyphColorProps {
|
|
121
121
|
}
|
|
122
122
|
export interface IconProps extends GlyphProps, IconInternalGlyphProps {
|
|
123
123
|
/**
|
|
@@ -126,7 +126,7 @@ export interface IconProps extends GlyphProps, IconInternalGlyphProps {
|
|
|
126
126
|
*/
|
|
127
127
|
glyph?: ComponentType<CustomGlyphProps>;
|
|
128
128
|
}
|
|
129
|
-
|
|
129
|
+
interface BaseNewIconProps {
|
|
130
130
|
/**
|
|
131
131
|
* Legacy icon component to render when the icon refresh feature flag is turned off.
|
|
132
132
|
* The legacy icon defaults to "medium" size, with `primaryColor` set to the value of the `color` prop.
|
|
@@ -9,4 +9,3 @@ import type { IconFacadeProps } from '../types';
|
|
|
9
9
|
* @returns A React element representing either the new or legacy icon based on the feature flag and icon size.
|
|
10
10
|
*/
|
|
11
11
|
export declare const IconFacade: React.NamedExoticComponent<IconFacadeProps>;
|
|
12
|
-
export default IconFacade;
|
|
@@ -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::8d615a9e55d05a28b6a31d643dc17516>>
|
|
7
7
|
* @codegenCommand yarn build:icon-glyphs
|
|
8
8
|
*/
|
|
9
9
|
interface metadata {
|
|
@@ -2,7 +2,7 @@ import type { ComponentType, ReactElement, ReactNode, SVGProps as ReactSVGProps
|
|
|
2
2
|
import type { IconColor, IconColorPressed, TextColor, TextColorPressed } from '@atlaskit/tokens/css-type-schema';
|
|
3
3
|
export type Size = 'small' | 'medium' | 'large' | 'xlarge';
|
|
4
4
|
export type IconSpacing = 'none' | 'spacious';
|
|
5
|
-
|
|
5
|
+
type UtilityIconSpacing = 'none' | 'spacious' | 'compact';
|
|
6
6
|
export interface CustomGlyphProps extends ReactSVGProps<SVGSVGElement> {
|
|
7
7
|
/**
|
|
8
8
|
* provided to a custom glyph
|
|
@@ -17,7 +17,7 @@ export interface CustomGlyphProps extends ReactSVGProps<SVGSVGElement> {
|
|
|
17
17
|
*/
|
|
18
18
|
className?: string;
|
|
19
19
|
}
|
|
20
|
-
|
|
20
|
+
interface GlyphColorProps {
|
|
21
21
|
/**
|
|
22
22
|
* Primary color for the icon.
|
|
23
23
|
* Inherits the current font color by default.
|
|
@@ -41,7 +41,7 @@ export interface NewGlyphColorProps {
|
|
|
41
41
|
*/
|
|
42
42
|
color?: IconColor | IconColorPressed | Exclude<TextColor, 'transparent'> | TextColorPressed | 'currentColor';
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
interface GlyphSizeProps {
|
|
45
45
|
/**
|
|
46
46
|
* There are three icon sizes – small (16px), medium (24px), and large (32px).
|
|
47
47
|
* This pixel size refers to the canvas the icon sits on,
|
|
@@ -49,7 +49,7 @@ export interface GlyphSizeProps {
|
|
|
49
49
|
*/
|
|
50
50
|
size?: Size;
|
|
51
51
|
}
|
|
52
|
-
|
|
52
|
+
interface NewCoreGlyphSpacingProps {
|
|
53
53
|
/**
|
|
54
54
|
* Core Icons have only one available size, but can be displayed with additional spacing.
|
|
55
55
|
* "none" is default, and allows the icon to be placed in buttons and allows the parent component to manage spacing.
|
|
@@ -57,7 +57,7 @@ export interface NewCoreGlyphSpacingProps {
|
|
|
57
57
|
*/
|
|
58
58
|
spacing?: IconSpacing;
|
|
59
59
|
}
|
|
60
|
-
|
|
60
|
+
interface NewUtilityGlyphSpacingProps {
|
|
61
61
|
/**
|
|
62
62
|
* Utility Icons have only one available size, but can be displayed with additional spacing.
|
|
63
63
|
* "none" is default, and allows the icon to be placed in buttons and allows the parent component to manage spacing.
|
|
@@ -66,7 +66,7 @@ export interface NewUtilityGlyphSpacingProps {
|
|
|
66
66
|
*/
|
|
67
67
|
spacing?: UtilityIconSpacing;
|
|
68
68
|
}
|
|
69
|
-
|
|
69
|
+
interface OtherGlyphProps {
|
|
70
70
|
/**
|
|
71
71
|
* Text used to describe what the icon is in context.
|
|
72
72
|
* A label is needed when there is no pairing visible text next to the icon.
|
|
@@ -83,7 +83,7 @@ export interface OtherGlyphProps {
|
|
|
83
83
|
/**
|
|
84
84
|
* Props for legacy icons –– including the children prop to resolve R18 type errors
|
|
85
85
|
*/
|
|
86
|
-
|
|
86
|
+
interface LegacyOtherGlyphProps {
|
|
87
87
|
/**
|
|
88
88
|
* Text used to describe what the icon is in context.
|
|
89
89
|
*/
|
|
@@ -115,9 +115,9 @@ interface IconInternalGlyphProps {
|
|
|
115
115
|
}
|
|
116
116
|
export interface GlyphProps extends LegacyOtherGlyphProps, GlyphSizeProps, GlyphColorProps {
|
|
117
117
|
}
|
|
118
|
-
|
|
118
|
+
interface NewCoreGlyphProps extends OtherGlyphProps, NewCoreGlyphSpacingProps, NewGlyphColorProps {
|
|
119
119
|
}
|
|
120
|
-
|
|
120
|
+
interface NewUtilityGlyphProps extends OtherGlyphProps, NewUtilityGlyphSpacingProps, NewGlyphColorProps {
|
|
121
121
|
}
|
|
122
122
|
export interface IconProps extends GlyphProps, IconInternalGlyphProps {
|
|
123
123
|
/**
|
|
@@ -126,7 +126,7 @@ export interface IconProps extends GlyphProps, IconInternalGlyphProps {
|
|
|
126
126
|
*/
|
|
127
127
|
glyph?: ComponentType<CustomGlyphProps>;
|
|
128
128
|
}
|
|
129
|
-
|
|
129
|
+
interface BaseNewIconProps {
|
|
130
130
|
/**
|
|
131
131
|
* Legacy icon component to render when the icon refresh feature flag is turned off.
|
|
132
132
|
* The legacy icon defaults to "medium" size, with `primaryColor` set to the value of the `color` prop.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/icon",
|
|
3
|
-
"version": "23.
|
|
3
|
+
"version": "23.8.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/"
|
|
@@ -69,8 +69,11 @@
|
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@atlaskit/platform-feature-flags": "^1.0.0",
|
|
71
71
|
"@atlaskit/tokens": "^3.3.0",
|
|
72
|
+
"@babel/register": "^7.25.9",
|
|
72
73
|
"@babel/runtime": "^7.0.0",
|
|
73
|
-
"@emotion/react": "^11.7.1"
|
|
74
|
+
"@emotion/react": "^11.7.1",
|
|
75
|
+
"globby": "^6.1.0",
|
|
76
|
+
"puppeteer": "13.7.0"
|
|
74
77
|
},
|
|
75
78
|
"peerDependencies": {
|
|
76
79
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
@@ -80,26 +83,32 @@
|
|
|
80
83
|
"@af/icon-build-process": "^2.4.0",
|
|
81
84
|
"@af/integration-testing": "*",
|
|
82
85
|
"@af/visual-regression": "*",
|
|
86
|
+
"@atlaskit/button": "^20.3.12",
|
|
83
87
|
"@atlaskit/code": "^15.7.0",
|
|
84
88
|
"@atlaskit/css": "^0.8.0",
|
|
89
|
+
"@atlaskit/docs": "*",
|
|
85
90
|
"@atlaskit/ds-lib": "^3.5.0",
|
|
91
|
+
"@atlaskit/form": "^11.0.2",
|
|
86
92
|
"@atlaskit/heading": "^4.1.0",
|
|
93
|
+
"@atlaskit/icon-file-type": "^6.8.0",
|
|
94
|
+
"@atlaskit/icon-object": "^6.9.0",
|
|
87
95
|
"@atlaskit/link": "^2.1.0",
|
|
88
96
|
"@atlaskit/logo": "^15.2.0",
|
|
89
97
|
"@atlaskit/menu": "^2.14.0",
|
|
90
|
-
"@atlaskit/
|
|
98
|
+
"@atlaskit/modal-dialog": "^12.19.3",
|
|
99
|
+
"@atlaskit/primitives": "^13.5.0",
|
|
100
|
+
"@atlaskit/section-message": "*",
|
|
91
101
|
"@atlaskit/ssr": "*",
|
|
92
102
|
"@atlaskit/textfield": "^6.8.0",
|
|
93
|
-
"@atlaskit/theme": "^
|
|
103
|
+
"@atlaskit/theme": "^15.0.0",
|
|
94
104
|
"@atlaskit/toggle": "^14.1.0",
|
|
95
105
|
"@atlaskit/tooltip": "^19.1.0",
|
|
96
106
|
"@atlaskit/visual-regression": "*",
|
|
97
107
|
"@babel/core": "7.24.9",
|
|
98
|
-
"@
|
|
108
|
+
"@codeshift/utils": "^0.2.4",
|
|
109
|
+
"@compiled/react": "^0.18.1",
|
|
99
110
|
"@testing-library/react": "^13.4.0",
|
|
100
|
-
"classnames": "^2.2.5",
|
|
101
111
|
"fs-extra": "^4.0.2",
|
|
102
|
-
"jest-emotion": "^10.0.32",
|
|
103
112
|
"jscodeshift": "^0.13.0",
|
|
104
113
|
"lodash": "^4.17.21",
|
|
105
114
|
"nullthrows": "^1.1.1",
|