@atlaskit/icon-lab 0.1.0 → 0.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 +28 -0
- package/core/highlight.js +2 -2
- package/core/status.d.ts +14 -0
- package/core/status.js +31 -0
- package/dist/cjs/metadata-core.js +10 -1
- package/dist/es2019/metadata-core.js +10 -1
- package/dist/esm/metadata-core.js +10 -1
- package/dist/types/metadata-core.d.ts +1 -1
- package/dist/types-ts4.5/metadata-core.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @atlaskit/icon-lab
|
|
2
2
|
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#140548](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/140548)
|
|
8
|
+
[`c66b92f724af1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c66b92f724af1) - ###
|
|
9
|
+
Summary:
|
|
10
|
+
|
|
11
|
+
- Fixes issue where icons with arrows sometimes rendered incorrectly.
|
|
12
|
+
- Adds `status` icon.
|
|
13
|
+
|
|
14
|
+
### Added:
|
|
15
|
+
|
|
16
|
+
**`@atlaskit/icon-lab/core`**
|
|
17
|
+
|
|
18
|
+
- `status`
|
|
19
|
+
|
|
20
|
+
### Updated:
|
|
21
|
+
|
|
22
|
+
**`@atlaskit/icon-lab/core`**
|
|
23
|
+
|
|
24
|
+
- `highlight`: now feature smaller icon with room for a color indicator underneath.
|
|
25
|
+
- Icons containing arrows have corrected paths
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- Updated dependencies
|
|
30
|
+
|
|
3
31
|
## 0.1.0
|
|
4
32
|
|
|
5
33
|
### Minor Changes
|
package/core/highlight.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::5d50894a3b22e9b9b5b7f0718dd9e14e>>
|
|
4
4
|
* @codegenCommand yarn build:icon-glyphs
|
|
5
5
|
*/
|
|
6
6
|
"use strict";
|
|
@@ -24,7 +24,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
24
24
|
* - [Code](https://atlaskit.atlassian.com/packages/design-system/icon/docs/custom-icons)
|
|
25
25
|
*/
|
|
26
26
|
const HighlightIcon = props => /*#__PURE__*/_react.default.createElement(_UNSAFE_baseNew.default, Object.assign({
|
|
27
|
-
dangerouslySetGlyph: `<path stroke="currentcolor" stroke-linejoin="round" stroke-width="1.5" d="
|
|
27
|
+
dangerouslySetGlyph: `<path stroke="currentcolor" stroke-linejoin="round" stroke-width="1.5" d="M4.125 9.375 3.5 8.75l1.25-3.5L10.946.925a.625.625 0 0 1 .8.07l1.259 1.26a.625.625 0 0 1 .07.8L8.75 9.25l-3.5 1.25-.625-.625m-.5-.5L3 10.5l.5.5 1.125-1.125m-.5-.5.5.5m.12-4.632 4 4"/>`
|
|
28
28
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
29
29
|
}, props));
|
|
30
30
|
HighlightIcon.displayName = 'HighlightIcon';
|
package/core/status.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::698f65155436ed13448fee5548dd0d99>>
|
|
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 StatusIcon: {
|
|
11
|
+
(props: Omit<React.ComponentProps<typeof Icon>, 'dangerouslySetGlyph' | 'type'>): JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
export default StatusIcon;
|
package/core/status.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::5cca7e7516a747610e23866a45ac01d3>>
|
|
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 _UNSAFE_baseNew = _interopRequireDefault(require("@atlaskit/icon/UNSAFE_base-new"));
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
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: "Status".
|
|
20
|
+
* Category: single-purpose
|
|
21
|
+
* Location: @atlaskit/icon-lab
|
|
22
|
+
* Usage guidance: Reserved for inserting status lozenges in Editor.
|
|
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 StatusIcon = props => /*#__PURE__*/_react.default.createElement(_UNSAFE_baseNew.default, Object.assign({
|
|
27
|
+
dangerouslySetGlyph: `<path stroke="currentcolor" stroke-width="1.5" d="M3 8h10M2 11.25h12c.69 0 1.25-.56 1.25-1.25V6c0-.69-.56-1.25-1.25-1.25H2C1.31 4.75.75 5.31.75 6v4c0 .69.56 1.25 1.25 1.25Z"/>`
|
|
28
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
29
|
+
}, props));
|
|
30
|
+
StatusIcon.displayName = 'StatusIcon';
|
|
31
|
+
var _default = exports.default = StatusIcon;
|
|
@@ -9,7 +9,7 @@ exports.default = void 0;
|
|
|
9
9
|
*
|
|
10
10
|
* To change the format of this file, modify `UNSAFE_createIconDocsNew` in icon-build-process/src/create-icon-docs.tsx.
|
|
11
11
|
*
|
|
12
|
-
* @codegen <<SignedSource::
|
|
12
|
+
* @codegen <<SignedSource::2d16b88a415798c547f1c341061067bd>>
|
|
13
13
|
* @codegenCommand yarn build:icon-glyphs
|
|
14
14
|
*/
|
|
15
15
|
|
|
@@ -106,6 +106,15 @@ var metadata = {
|
|
|
106
106
|
usage: 'Multi purpose',
|
|
107
107
|
team: 'Design System Team'
|
|
108
108
|
},
|
|
109
|
+
status: {
|
|
110
|
+
keywords: ['status', 'icon', 'icon-lab', 'core', 'insert', 'status', 'badge'],
|
|
111
|
+
componentName: 'StatusIcon',
|
|
112
|
+
package: '@atlaskit/icon-lab/core/status',
|
|
113
|
+
type: 'core',
|
|
114
|
+
categorization: 'single-purpose',
|
|
115
|
+
usage: 'Reserved for inserting status lozenges in Editor.',
|
|
116
|
+
team: 'Editor'
|
|
117
|
+
},
|
|
109
118
|
'takeout-container': {
|
|
110
119
|
keywords: ['takeout-container', 'takeoutcontainer', 'icon', 'icon-lab', 'core', 'takeaway', 'takeout', 'food'],
|
|
111
120
|
componentName: 'TakeoutContainerIcon',
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* To change the format of this file, modify `UNSAFE_createIconDocsNew` in icon-build-process/src/create-icon-docs.tsx.
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::2d16b88a415798c547f1c341061067bd>>
|
|
7
7
|
* @codegenCommand yarn build:icon-glyphs
|
|
8
8
|
*/
|
|
9
9
|
|
|
@@ -100,6 +100,15 @@ const metadata = {
|
|
|
100
100
|
usage: 'Multi purpose',
|
|
101
101
|
team: 'Design System Team'
|
|
102
102
|
},
|
|
103
|
+
status: {
|
|
104
|
+
keywords: ['status', 'icon', 'icon-lab', 'core', 'insert', 'status', 'badge'],
|
|
105
|
+
componentName: 'StatusIcon',
|
|
106
|
+
package: '@atlaskit/icon-lab/core/status',
|
|
107
|
+
type: 'core',
|
|
108
|
+
categorization: 'single-purpose',
|
|
109
|
+
usage: 'Reserved for inserting status lozenges in Editor.',
|
|
110
|
+
team: 'Editor'
|
|
111
|
+
},
|
|
103
112
|
'takeout-container': {
|
|
104
113
|
keywords: ['takeout-container', 'takeoutcontainer', 'icon', 'icon-lab', 'core', 'takeaway', 'takeout', 'food'],
|
|
105
114
|
componentName: 'TakeoutContainerIcon',
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* To change the format of this file, modify `UNSAFE_createIconDocsNew` in icon-build-process/src/create-icon-docs.tsx.
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::2d16b88a415798c547f1c341061067bd>>
|
|
7
7
|
* @codegenCommand yarn build:icon-glyphs
|
|
8
8
|
*/
|
|
9
9
|
|
|
@@ -100,6 +100,15 @@ var metadata = {
|
|
|
100
100
|
usage: 'Multi purpose',
|
|
101
101
|
team: 'Design System Team'
|
|
102
102
|
},
|
|
103
|
+
status: {
|
|
104
|
+
keywords: ['status', 'icon', 'icon-lab', 'core', 'insert', 'status', 'badge'],
|
|
105
|
+
componentName: 'StatusIcon',
|
|
106
|
+
package: '@atlaskit/icon-lab/core/status',
|
|
107
|
+
type: 'core',
|
|
108
|
+
categorization: 'single-purpose',
|
|
109
|
+
usage: 'Reserved for inserting status lozenges in Editor.',
|
|
110
|
+
team: 'Editor'
|
|
111
|
+
},
|
|
103
112
|
'takeout-container': {
|
|
104
113
|
keywords: ['takeout-container', 'takeoutcontainer', 'icon', 'icon-lab', 'core', 'takeaway', 'takeout', 'food'],
|
|
105
114
|
componentName: 'TakeoutContainerIcon',
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* To change the format of this file, modify `UNSAFE_createIconDocsNew` in icon-build-process/src/create-icon-docs.tsx.
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::2d16b88a415798c547f1c341061067bd>>
|
|
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 `UNSAFE_createIconDocsNew` in icon-build-process/src/create-icon-docs.tsx.
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::2d16b88a415798c547f1c341061067bd>>
|
|
7
7
|
* @codegenCommand yarn build:icon-glyphs
|
|
8
8
|
*/
|
|
9
9
|
interface metadata {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/icon-lab",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "An icon package for public icon contributions",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"build-glyphs": "ts-node --project ../../../tsconfig.node.json ./build/index.tsx"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@atlaskit/icon": "^22.
|
|
33
|
+
"@atlaskit/icon": "^22.18.0",
|
|
34
34
|
"@babel/runtime": "^7.0.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|