@atlaskit/icon-lab 6.13.0 → 7.0.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 CHANGED
@@ -1,5 +1,43 @@
1
1
  # @atlaskit/icon-lab
2
2
 
3
+ ## 7.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
8
+ Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
9
+
10
+ Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
11
+
12
+ Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
13
+
14
+ ```diff
15
+ - "typesVersions": {
16
+ - ">=4.5 <4.9": {
17
+ - "*": [
18
+ - "dist/types-ts4.5/*",
19
+ - "dist/types-ts4.5/index.d.ts"
20
+ - ]
21
+ - }
22
+ - },
23
+ ```
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies
28
+
29
+ ## 6.14.0
30
+
31
+ ### Minor Changes
32
+
33
+ - [`1cf6739aac60c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1cf6739aac60c) -
34
+ This release adds icons in `@atlaskit/icon-lab`.
35
+
36
+ ### Added:
37
+
38
+ **`@atlaskit/icon-lab/core`**
39
+ - `loom`
40
+
3
41
  ## 6.13.0
4
42
 
5
43
  ### Minor Changes
package/core/loom.d.ts ADDED
@@ -0,0 +1,13 @@
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ * @codegen <<SignedSource::c12df919e5d4ac66783854d6a2ceaf78>>
4
+ * @codegenCommand yarn build:icon-glyphs
5
+ */
6
+
7
+ import type { NewCoreIconProps } from '@atlaskit/icon/base-new';
8
+
9
+ declare const LoomIcon: {
10
+ (props: NewCoreIconProps): JSX.Element;
11
+ displayName: string;
12
+ };
13
+ export default LoomIcon;
package/core/loom.js ADDED
@@ -0,0 +1,29 @@
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ * @codegen <<SignedSource::a051ab78e18c281411dfa9ccba68c085>>
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
+ * Icon: "Loom".
17
+ * Category: single-purpose
18
+ * Location: @atlaskit/icon-lab
19
+ * Usage guidance: Used only for representing the object type of 'a Loom'
20
+ * - [Examples](https://atlaskit.atlassian.com/packages/design-system/icon)
21
+ * - [Code](https://atlaskit.atlassian.com/packages/design-system/icon/docs/custom-icons)
22
+ */
23
+ const LoomIcon = props => /*#__PURE__*/_react.default.createElement(_baseNew.default, Object.assign({
24
+ name: "LoomIcon",
25
+ dangerouslySetGlyph: `<path fill="currentcolor" d="m8.751 5.198 2.6-4.503 1.3.75-2.604 4.507 4.507-2.6.75 1.298-4.505 2.6H16v1.5h-5.203l4.506 2.602-.75 1.298-4.504-2.6 2.6 4.502-1.3.75L8.752 10.8V16h-1.5v-5.205l-2.6 4.507-1.3-.75L5.95 10.05l-4.502 2.6-.75-1.298L5.202 8.75H0v-1.5h5.2L.696 4.65l.75-1.298 4.505 2.6L3.35 1.445l1.298-.75 2.603 4.508V0h1.5zM8 5.75q-.244.002-.472.053A2.24 2.24 0 0 0 5.81 8.5c.081.36.248.688.48.96l.001-.001c.328.383.782.654 1.299.749l-.002.001q.2.04.412.041c.202 0 .398-.03.584-.081a2.24 2.24 0 0 0 1.56-1.5c.066-.211.106-.435.106-.669a2 2 0 0 0-.04-.41 2.24 2.24 0 0 0-.75-1.299l.002-.001a2.2 2.2 0 0 0-.711-.411v.002A2.2 2.2 0 0 0 8 5.75"/>`
26
+ // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
27
+ }, props));
28
+ LoomIcon.displayName = 'LoomIcon';
29
+ var _default = exports.default = LoomIcon;
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/deprecated-map.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/deprecated-map.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/deprecated-map.d.ts"
17
10
  }
@@ -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::6e4f234d466ffb878c16d52b801dcea1>>
12
+ * @codegen <<SignedSource::008bc20aa9b7cbdbfc570d8ba3f1af54>>
13
13
  * @codegenCommand yarn build:icon-glyphs
14
14
  */
15
15
 
@@ -2696,6 +2696,15 @@ var metadata = {
2696
2696
  team: 'Loom',
2697
2697
  status: 'published'
2698
2698
  },
2699
+ loom: {
2700
+ keywords: ['loom', 'icon', 'icon-lab', 'loom'],
2701
+ componentName: 'LoomIcon',
2702
+ package: '@atlaskit/icon-lab/core/loom',
2703
+ categorization: 'single-purpose',
2704
+ usage: "Used only for representing the object type of \'a Loom\'",
2705
+ team: 'Design System',
2706
+ status: 'published'
2707
+ },
2699
2708
  lozenge: {
2700
2709
  keywords: ['lozenge', 'icon', 'icon-lab', 'insert', 'status', 'badge'],
2701
2710
  componentName: 'LozengeIcon',
@@ -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::6e4f234d466ffb878c16d52b801dcea1>>
6
+ * @codegen <<SignedSource::008bc20aa9b7cbdbfc570d8ba3f1af54>>
7
7
  * @codegenCommand yarn build:icon-glyphs
8
8
  */
9
9
 
@@ -2690,6 +2690,15 @@ const metadata = {
2690
2690
  team: 'Loom',
2691
2691
  status: 'published'
2692
2692
  },
2693
+ loom: {
2694
+ keywords: ['loom', 'icon', 'icon-lab', 'loom'],
2695
+ componentName: 'LoomIcon',
2696
+ package: '@atlaskit/icon-lab/core/loom',
2697
+ categorization: 'single-purpose',
2698
+ usage: "Used only for representing the object type of \'a Loom\'",
2699
+ team: 'Design System',
2700
+ status: 'published'
2701
+ },
2693
2702
  lozenge: {
2694
2703
  keywords: ['lozenge', 'icon', 'icon-lab', 'insert', 'status', 'badge'],
2695
2704
  componentName: 'LozengeIcon',
@@ -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::6e4f234d466ffb878c16d52b801dcea1>>
6
+ * @codegen <<SignedSource::008bc20aa9b7cbdbfc570d8ba3f1af54>>
7
7
  * @codegenCommand yarn build:icon-glyphs
8
8
  */
9
9
 
@@ -2690,6 +2690,15 @@ var metadata = {
2690
2690
  team: 'Loom',
2691
2691
  status: 'published'
2692
2692
  },
2693
+ loom: {
2694
+ keywords: ['loom', 'icon', 'icon-lab', 'loom'],
2695
+ componentName: 'LoomIcon',
2696
+ package: '@atlaskit/icon-lab/core/loom',
2697
+ categorization: 'single-purpose',
2698
+ usage: "Used only for representing the object type of \'a Loom\'",
2699
+ team: 'Design System',
2700
+ status: 'published'
2701
+ },
2693
2702
  lozenge: {
2694
2703
  keywords: ['lozenge', 'icon', 'icon-lab', 'insert', 'status', 'badge'],
2695
2704
  componentName: 'LozengeIcon',
@@ -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::6e4f234d466ffb878c16d52b801dcea1>>
6
+ * @codegen <<SignedSource::008bc20aa9b7cbdbfc570d8ba3f1af54>>
7
7
  * @codegenCommand yarn build:icon-glyphs
8
8
  */
9
9
  interface metadata {
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/metadata.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/metadata.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/metadata.d.ts"
17
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/icon-lab",
3
- "version": "6.13.0",
3
+ "version": "7.0.0",
4
4
  "description": "An icon package for public icon contributions",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -38,7 +38,7 @@
38
38
  "build-glyphs": "ts-node --project ../../../tsconfig.node.json ./build/index.tsx"
39
39
  },
40
40
  "dependencies": {
41
- "@atlaskit/icon": "^35.4.0",
41
+ "@atlaskit/icon": "^36.0.0",
42
42
  "@babel/runtime": "^7.0.0"
43
43
  },
44
44
  "peerDependencies": {
@@ -47,14 +47,14 @@
47
47
  "devDependencies": {
48
48
  "@af/icon-build-process": "workspace:^",
49
49
  "@af/visual-regression": "workspace:^",
50
- "@atlaskit/button": "^23.11.0",
51
- "@atlaskit/code": "^17.5.0",
52
- "@atlaskit/heading": "^5.4.0",
53
- "@atlaskit/modal-dialog": "^15.2.0",
54
- "@atlaskit/primitives": "^19.0.0",
55
- "@atlaskit/textfield": "^8.3.0",
56
- "@atlaskit/tokens": "^13.1.0",
57
- "@atlaskit/tooltip": "^22.6.0",
50
+ "@atlaskit/button": "^24.0.0",
51
+ "@atlaskit/code": "^18.0.0",
52
+ "@atlaskit/heading": "^6.0.0",
53
+ "@atlaskit/modal-dialog": "^16.0.0",
54
+ "@atlaskit/primitives": "^20.0.0",
55
+ "@atlaskit/textfield": "^9.0.0",
56
+ "@atlaskit/tokens": "^14.0.0",
57
+ "@atlaskit/tooltip": "^23.0.0",
58
58
  "@atlassian/react-compiler-gating": "workspace:^",
59
59
  "@atlassian/ssr-tests": "workspace:^",
60
60
  "@compiled/react": "^0.20.0",
@@ -86,13 +86,5 @@
86
86
  "deprecation": "no-deprecated-imports"
87
87
  }
88
88
  },
89
- "typesVersions": {
90
- ">=4.5 <5.4": {
91
- "*": [
92
- "dist/types-ts4.5/*",
93
- "dist/types-ts4.5/index.d.ts"
94
- ]
95
- }
96
- },
97
89
  "homepage": "https://atlaskit.atlassian.com/packages/design-system/icon-lab"
98
90
  }
@@ -0,0 +1 @@
1
+ <svg width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentcolor" d="m8.751 5.198 2.6-4.503 1.3.75-2.604 4.507 4.507-2.6.75 1.298-4.505 2.6H16v1.5h-5.203l4.506 2.602-.75 1.298-4.504-2.6 2.6 4.502-1.3.75L8.752 10.8V16h-1.5v-5.205l-2.6 4.507-1.3-.75L5.95 10.05l-4.502 2.6-.75-1.298L5.202 8.75H0v-1.5h5.2L.696 4.65l.75-1.298 4.505 2.6L3.35 1.445l1.298-.75 2.603 4.508V0h1.5zM8 5.75q-.244.002-.472.053A2.24 2.24 0 0 0 5.81 8.5c.081.36.248.688.48.96l.001-.001c.328.383.782.654 1.299.749l-.002.001q.2.04.412.041c.202 0 .398-.03.584-.081a2.24 2.24 0 0 0 1.56-1.5c.066-.211.106-.435.106-.669a2 2 0 0 0-.04-.41 2.24 2.24 0 0 0-.75-1.299l.002-.001a2.2 2.2 0 0 0-.711-.411v.002A2.2 2.2 0 0 0 8 5.75"/></svg>
@@ -1,13 +0,0 @@
1
- /**
2
- * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- *
4
- * To change the format of this file, modify `createDeprecatedIconDocs` in icon-build-process/src/create-deprecated-icon-docs.tsx.
5
- *
6
- * @codegen <<SignedSource::76fab6ad916e9e2ad7e252306192ad79>>
7
- * @codegenCommand yarn build:icon-glyphs
8
- */
9
- declare const deprecatedIcons: Record<string, {
10
- message: string;
11
- unfixable?: boolean;
12
- }>;
13
- export default deprecatedIcons;
@@ -1,13 +0,0 @@
1
- /**
2
- * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- *
4
- * To change the format of this file, modify `createDeprecatedIconDocs` in icon-build-process/src/create-deprecated-icon-docs.tsx.
5
- *
6
- * @codegen <<SignedSource::8445ed95dffea52ddea417fc5752ff90>>
7
- * @codegenCommand yarn build:icon-glyphs
8
- */
9
- declare const deprecatedIcons: Record<string, {
10
- message: string;
11
- unfixable?: boolean;
12
- }>;
13
- export default deprecatedIcons;
@@ -1,2 +0,0 @@
1
- export { default as deprecatedCore } from '../deprecated-core';
2
- export { default as deprecatedUtility } from '../deprecated-utility';
@@ -1 +0,0 @@
1
- export { default } from '../metadata-core';
@@ -1 +0,0 @@
1
- export { default as metadata } from './entry-points/metadata';
@@ -1,57 +0,0 @@
1
- /**
2
- * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- *
4
- * To change the format of this file, modify `createIconDocsNew` in icon-build-process/src/create-icon-docs.tsx.
5
- *
6
- * @codegen <<SignedSource::6e4f234d466ffb878c16d52b801dcea1>>
7
- * @codegenCommand yarn build:icon-glyphs
8
- */
9
- interface metadata {
10
- /**
11
- * Default component name for the icon
12
- */
13
- componentName: string;
14
- /**
15
- * Package path to the icon component
16
- */
17
- package: string;
18
- /**
19
- * The category of the icon:
20
- * - 'single-purpose' icons should only be used for the purposes listed in the 'usage' field
21
- * - 'multi-purpose' icons are designed for various use cases and don't have the same usage restrictions
22
- */
23
- categorization: 'single-purpose' | 'multi-purpose';
24
- /**
25
- * Usage guidelines for the icon. For single-purpose icons,
26
- */
27
- usage?: string;
28
- /**
29
- * Additional keywords used to assist in search/lookup of an icon
30
- */
31
- keywords: string[];
32
- /**
33
- * The name of the team owning the icon
34
- */
35
- team: string;
36
- /**
37
- * The status of the icon
38
- */
39
- status?: 'draft' | 'ready-to-publish' | 'published' | 'modified' | 'deprecated';
40
- /**
41
- * Contact slack channel for the team owning the icon
42
- */
43
- slackChannel?: string;
44
- /**
45
- * A replacement icon if this icon has been deprecated
46
- */
47
- replacement?: {
48
- name: string;
49
- location: '@atlaskit/icon' | '@atlaskit/icon-lab' | '@atlassian/icon-private';
50
- };
51
- /**
52
- * Whether the icon should be recommended as a small icon
53
- */
54
- shouldRecommendSmallIcon?: boolean;
55
- }
56
- declare const metadata: Record<string, metadata>;
57
- export default metadata;
@@ -1,63 +0,0 @@
1
- /**
2
- * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- *
4
- * To change the format of this file, modify `createIconDocsNew` in icon-build-process/src/create-icon-docs.tsx.
5
- *
6
- * @codegen <<SignedSource::04af6dfad1ade5135739e980e9e566f4>>
7
- * @codegenCommand yarn build:icon-glyphs
8
- */
9
- interface metadata {
10
- /**
11
- * Default component name for the icon
12
- */
13
- componentName: string;
14
- /**
15
- * Package path to the icon component
16
- */
17
- package: string;
18
- /**
19
- * The category of the icon:
20
- * - 'single-purpose' icons should only be used for the purposes listed in the 'usage' field
21
- * - 'multi-purpose' icons are designed for various use cases and don't have the same usage restrictions
22
- * - 'utility' icons are used for utility purposes
23
- */
24
- categorization: 'single-purpose' | 'multi-purpose' | 'utility';
25
- /**
26
- * The type of the icon - either a 16px 'core' icon, or a 12px 'utility' icon
27
- */
28
- type: 'core' | 'utility';
29
- /**
30
- * Usage guidelines for the icon. For single-purpose icons,
31
- */
32
- usage?: string;
33
- /**
34
- * Additional keywords used to assist in search/lookup of an icon
35
- */
36
- keywords: string[];
37
- /**
38
- * The name of the team owning the icon
39
- */
40
- team: string;
41
- /**
42
- * The status of the icon
43
- */
44
- status?: 'draft' | 'ready-to-publish' | 'published' | 'modified' | 'deprecated';
45
- /**
46
- * Contact slack channel for the team owning the icon
47
- */
48
- slackChannel?: string;
49
- /**
50
- * A replacement icon if this icon has been deprecated
51
- */
52
- replacement?: {
53
- name: string;
54
- type: 'core' | 'utility';
55
- location: '@atlaskit/icon' | '@atlaskit/icon-lab' | '@atlassian/icon-private';
56
- };
57
- /**
58
- * Whether the icon should be recommended as a small icon
59
- */
60
- shouldRecommendSmallIcon?: boolean;
61
- }
62
- declare const metadata: Record<string, metadata>;
63
- export default metadata;