@atlaskit/icon 26.1.0 → 26.1.1

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,13 @@
1
1
  # @atlaskit/icon
2
2
 
3
+ ## 26.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#158890](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/158890)
8
+ [`a8e4b409426ca`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a8e4b409426ca) -
9
+ Added guidance for chevron icons to inform makers to use 12px variant to maintain uniformity
10
+
3
11
  ## 26.1.0
4
12
 
5
13
  ### Minor Changes
package/build/index.tsx CHANGED
@@ -17,6 +17,7 @@ import coreIconMetadata from '../icons_raw/metadata-core';
17
17
  import utilityIconMetadata from '../icons_raw/metadata-utility';
18
18
  import legacyMetadata from '../src/metadata';
19
19
  import migrationMap from '../src/migration-map';
20
+ import { recommendedSmallIcons } from '../src/recommended-small';
20
21
  import synonyms from '../utils/synonyms';
21
22
 
22
23
  async function main() {
@@ -76,6 +77,7 @@ async function main() {
76
77
  ['icon', 'core'],
77
78
  coreIconMetadata,
78
79
  migrationMap,
80
+ recommendedSmallIcons,
79
81
  );
80
82
 
81
83
  fs.outputFile(path.resolve(root, 'src/metadata-core.tsx'), iconDocs);
@@ -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::ddf97866ab3e12660c9c9f8e4a34f107>>
12
+ * @codegen <<SignedSource::60ca5eb1312bd9cabe699f3be0937d0f>>
13
13
  * @codegenCommand yarn build:icon-glyphs
14
14
  */
15
15
 
@@ -730,6 +730,7 @@ var metadata = {
730
730
  keywords: ['chevron-double-left', 'chevrondoubleleft', 'icon', 'core', 'double chevron', 'left', 'previous year'],
731
731
  componentName: 'ChevronDoubleLeftIcon',
732
732
  package: '@atlaskit/icon/core/chevron-double-left',
733
+ shouldRecommendSmallIcon: true,
733
734
  type: 'core',
734
735
  categorization: 'multi-purpose',
735
736
  team: 'Design System Team',
@@ -740,6 +741,7 @@ var metadata = {
740
741
  keywords: ['chevron-double-right', 'chevrondoubleright', 'icon', 'core', 'double chevron', 'right', 'next year'],
741
742
  componentName: 'ChevronDoubleRightIcon',
742
743
  package: '@atlaskit/icon/core/chevron-double-right',
744
+ shouldRecommendSmallIcon: true,
743
745
  type: 'core',
744
746
  categorization: 'multi-purpose',
745
747
  team: 'Design System Team',
@@ -751,6 +753,7 @@ var metadata = {
751
753
  componentName: 'ChevronDownIcon',
752
754
  package: '@atlaskit/icon/core/chevron-down',
753
755
  oldName: ['chevron-down', 'chevron-down-circle', 'hipchat/chevron-down'],
756
+ shouldRecommendSmallIcon: true,
754
757
  type: 'core',
755
758
  categorization: 'multi-purpose',
756
759
  team: 'Design System Team',
@@ -762,6 +765,7 @@ var metadata = {
762
765
  componentName: 'ChevronLeftIcon',
763
766
  package: '@atlaskit/icon/core/chevron-left',
764
767
  oldName: ['chevron-left-circle', 'chevron-left', 'chevron-left-large'],
768
+ shouldRecommendSmallIcon: true,
765
769
  type: 'core',
766
770
  categorization: 'multi-purpose',
767
771
  team: 'Design System Team',
@@ -773,6 +777,7 @@ var metadata = {
773
777
  componentName: 'ChevronRightIcon',
774
778
  package: '@atlaskit/icon/core/chevron-right',
775
779
  oldName: ['chevron-right-circle', 'chevron-right', 'chevron-right-large'],
780
+ shouldRecommendSmallIcon: true,
776
781
  type: 'core',
777
782
  categorization: 'multi-purpose',
778
783
  team: 'Design System Team',
@@ -784,6 +789,7 @@ var metadata = {
784
789
  componentName: 'ChevronUpIcon',
785
790
  package: '@atlaskit/icon/core/chevron-up',
786
791
  oldName: ['chevron-up-circle', 'hipchat/chevron-up', 'chevron-up'],
792
+ shouldRecommendSmallIcon: true,
787
793
  type: 'core',
788
794
  categorization: 'multi-purpose',
789
795
  team: 'Design System Team',
@@ -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::0a9bbc9e058d3b90ee6b8b82cf2f9830>>
12
+ * @codegen <<SignedSource::d968f0d4e1bd5bc5e728353f8fdcc101>>
13
13
  * @codegenCommand yarn build:icon-glyphs
14
14
  */
15
15
 
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.recommendedSmallIcons = void 0;
7
+ var recommendedSmallIcons = exports.recommendedSmallIcons = ['chevron-double-left', 'chevron-double-right', 'chevron-down', 'chevron-left', 'chevron-right', 'chevron-up'];
@@ -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::ddf97866ab3e12660c9c9f8e4a34f107>>
6
+ * @codegen <<SignedSource::60ca5eb1312bd9cabe699f3be0937d0f>>
7
7
  * @codegenCommand yarn build:icon-glyphs
8
8
  */
9
9
 
@@ -724,6 +724,7 @@ const metadata = {
724
724
  keywords: ['chevron-double-left', 'chevrondoubleleft', 'icon', 'core', 'double chevron', 'left', 'previous year'],
725
725
  componentName: 'ChevronDoubleLeftIcon',
726
726
  package: '@atlaskit/icon/core/chevron-double-left',
727
+ shouldRecommendSmallIcon: true,
727
728
  type: 'core',
728
729
  categorization: 'multi-purpose',
729
730
  team: 'Design System Team',
@@ -734,6 +735,7 @@ const metadata = {
734
735
  keywords: ['chevron-double-right', 'chevrondoubleright', 'icon', 'core', 'double chevron', 'right', 'next year'],
735
736
  componentName: 'ChevronDoubleRightIcon',
736
737
  package: '@atlaskit/icon/core/chevron-double-right',
738
+ shouldRecommendSmallIcon: true,
737
739
  type: 'core',
738
740
  categorization: 'multi-purpose',
739
741
  team: 'Design System Team',
@@ -745,6 +747,7 @@ const metadata = {
745
747
  componentName: 'ChevronDownIcon',
746
748
  package: '@atlaskit/icon/core/chevron-down',
747
749
  oldName: ['chevron-down', 'chevron-down-circle', 'hipchat/chevron-down'],
750
+ shouldRecommendSmallIcon: true,
748
751
  type: 'core',
749
752
  categorization: 'multi-purpose',
750
753
  team: 'Design System Team',
@@ -756,6 +759,7 @@ const metadata = {
756
759
  componentName: 'ChevronLeftIcon',
757
760
  package: '@atlaskit/icon/core/chevron-left',
758
761
  oldName: ['chevron-left-circle', 'chevron-left', 'chevron-left-large'],
762
+ shouldRecommendSmallIcon: true,
759
763
  type: 'core',
760
764
  categorization: 'multi-purpose',
761
765
  team: 'Design System Team',
@@ -767,6 +771,7 @@ const metadata = {
767
771
  componentName: 'ChevronRightIcon',
768
772
  package: '@atlaskit/icon/core/chevron-right',
769
773
  oldName: ['chevron-right-circle', 'chevron-right', 'chevron-right-large'],
774
+ shouldRecommendSmallIcon: true,
770
775
  type: 'core',
771
776
  categorization: 'multi-purpose',
772
777
  team: 'Design System Team',
@@ -778,6 +783,7 @@ const metadata = {
778
783
  componentName: 'ChevronUpIcon',
779
784
  package: '@atlaskit/icon/core/chevron-up',
780
785
  oldName: ['chevron-up-circle', 'hipchat/chevron-up', 'chevron-up'],
786
+ shouldRecommendSmallIcon: true,
781
787
  type: 'core',
782
788
  categorization: 'multi-purpose',
783
789
  team: 'Design System Team',
@@ -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::0a9bbc9e058d3b90ee6b8b82cf2f9830>>
6
+ * @codegen <<SignedSource::d968f0d4e1bd5bc5e728353f8fdcc101>>
7
7
  * @codegenCommand yarn build:icon-glyphs
8
8
  */
9
9
 
@@ -0,0 +1 @@
1
+ export const recommendedSmallIcons = ['chevron-double-left', 'chevron-double-right', 'chevron-down', 'chevron-left', 'chevron-right', 'chevron-up'];
@@ -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::ddf97866ab3e12660c9c9f8e4a34f107>>
6
+ * @codegen <<SignedSource::60ca5eb1312bd9cabe699f3be0937d0f>>
7
7
  * @codegenCommand yarn build:icon-glyphs
8
8
  */
9
9
 
@@ -724,6 +724,7 @@ var metadata = {
724
724
  keywords: ['chevron-double-left', 'chevrondoubleleft', 'icon', 'core', 'double chevron', 'left', 'previous year'],
725
725
  componentName: 'ChevronDoubleLeftIcon',
726
726
  package: '@atlaskit/icon/core/chevron-double-left',
727
+ shouldRecommendSmallIcon: true,
727
728
  type: 'core',
728
729
  categorization: 'multi-purpose',
729
730
  team: 'Design System Team',
@@ -734,6 +735,7 @@ var metadata = {
734
735
  keywords: ['chevron-double-right', 'chevrondoubleright', 'icon', 'core', 'double chevron', 'right', 'next year'],
735
736
  componentName: 'ChevronDoubleRightIcon',
736
737
  package: '@atlaskit/icon/core/chevron-double-right',
738
+ shouldRecommendSmallIcon: true,
737
739
  type: 'core',
738
740
  categorization: 'multi-purpose',
739
741
  team: 'Design System Team',
@@ -745,6 +747,7 @@ var metadata = {
745
747
  componentName: 'ChevronDownIcon',
746
748
  package: '@atlaskit/icon/core/chevron-down',
747
749
  oldName: ['chevron-down', 'chevron-down-circle', 'hipchat/chevron-down'],
750
+ shouldRecommendSmallIcon: true,
748
751
  type: 'core',
749
752
  categorization: 'multi-purpose',
750
753
  team: 'Design System Team',
@@ -756,6 +759,7 @@ var metadata = {
756
759
  componentName: 'ChevronLeftIcon',
757
760
  package: '@atlaskit/icon/core/chevron-left',
758
761
  oldName: ['chevron-left-circle', 'chevron-left', 'chevron-left-large'],
762
+ shouldRecommendSmallIcon: true,
759
763
  type: 'core',
760
764
  categorization: 'multi-purpose',
761
765
  team: 'Design System Team',
@@ -767,6 +771,7 @@ var metadata = {
767
771
  componentName: 'ChevronRightIcon',
768
772
  package: '@atlaskit/icon/core/chevron-right',
769
773
  oldName: ['chevron-right-circle', 'chevron-right', 'chevron-right-large'],
774
+ shouldRecommendSmallIcon: true,
770
775
  type: 'core',
771
776
  categorization: 'multi-purpose',
772
777
  team: 'Design System Team',
@@ -778,6 +783,7 @@ var metadata = {
778
783
  componentName: 'ChevronUpIcon',
779
784
  package: '@atlaskit/icon/core/chevron-up',
780
785
  oldName: ['chevron-up-circle', 'hipchat/chevron-up', 'chevron-up'],
786
+ shouldRecommendSmallIcon: true,
781
787
  type: 'core',
782
788
  categorization: 'multi-purpose',
783
789
  team: 'Design System Team',
@@ -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::0a9bbc9e058d3b90ee6b8b82cf2f9830>>
6
+ * @codegen <<SignedSource::d968f0d4e1bd5bc5e728353f8fdcc101>>
7
7
  * @codegenCommand yarn build:icon-glyphs
8
8
  */
9
9
 
@@ -0,0 +1 @@
1
+ export var recommendedSmallIcons = ['chevron-double-left', 'chevron-double-right', 'chevron-down', 'chevron-left', 'chevron-right', 'chevron-up'];
@@ -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::ddf97866ab3e12660c9c9f8e4a34f107>>
6
+ * @codegen <<SignedSource::60ca5eb1312bd9cabe699f3be0937d0f>>
7
7
  * @codegenCommand yarn build:icon-glyphs
8
8
  */
9
9
  interface metadata {
@@ -58,6 +58,10 @@ interface metadata {
58
58
  type: 'core' | 'utility';
59
59
  location: '@atlaskit/icon' | '@atlaskit/icon-lab' | '@atlassian/icon-private';
60
60
  };
61
+ /**
62
+ * Whether the icon should be recommended as a small icon
63
+ */
64
+ shouldRecommendSmallIcon?: boolean;
61
65
  }
62
66
  declare const metadata: Record<string, metadata>;
63
67
  export default metadata;
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * To change the format of this file, modify `createIconDocsNew` in icon-build-process/src/create-icon-docs.tsx.
5
5
  *
6
- * @codegen <<SignedSource::0a9bbc9e058d3b90ee6b8b82cf2f9830>>
6
+ * @codegen <<SignedSource::d968f0d4e1bd5bc5e728353f8fdcc101>>
7
7
  * @codegenCommand yarn build:icon-glyphs
8
8
  */
9
9
  interface metadata {
@@ -58,6 +58,10 @@ interface metadata {
58
58
  type: 'core' | 'utility';
59
59
  location: '@atlaskit/icon' | '@atlaskit/icon-lab' | '@atlassian/icon-private';
60
60
  };
61
+ /**
62
+ * Whether the icon should be recommended as a small icon
63
+ */
64
+ shouldRecommendSmallIcon?: boolean;
61
65
  }
62
66
  declare const metadata: Record<string, metadata>;
63
67
  export default metadata;
@@ -0,0 +1 @@
1
+ export declare const recommendedSmallIcons: string[];
@@ -163,6 +163,7 @@ interface BaseNewIconProps {
163
163
  export interface UNSAFE_NewCoreGlyphProps extends BaseNewIconProps, NewCoreGlyphProps, IconInternalGlyphProps {
164
164
  type?: 'core';
165
165
  size?: NewCoreIconSize;
166
+ shouldRecommendSmallIcon?: boolean;
166
167
  }
167
168
  export interface UNSAFE_NewUtilityGlyphProps extends BaseNewIconProps, NewUtilityGlyphProps, IconInternalGlyphProps {
168
169
  type: 'utility';
@@ -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::ddf97866ab3e12660c9c9f8e4a34f107>>
6
+ * @codegen <<SignedSource::60ca5eb1312bd9cabe699f3be0937d0f>>
7
7
  * @codegenCommand yarn build:icon-glyphs
8
8
  */
9
9
  interface metadata {
@@ -58,6 +58,10 @@ interface metadata {
58
58
  type: 'core' | 'utility';
59
59
  location: '@atlaskit/icon' | '@atlaskit/icon-lab' | '@atlassian/icon-private';
60
60
  };
61
+ /**
62
+ * Whether the icon should be recommended as a small icon
63
+ */
64
+ shouldRecommendSmallIcon?: boolean;
61
65
  }
62
66
  declare const metadata: Record<string, metadata>;
63
67
  export default metadata;
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * To change the format of this file, modify `createIconDocsNew` in icon-build-process/src/create-icon-docs.tsx.
5
5
  *
6
- * @codegen <<SignedSource::0a9bbc9e058d3b90ee6b8b82cf2f9830>>
6
+ * @codegen <<SignedSource::d968f0d4e1bd5bc5e728353f8fdcc101>>
7
7
  * @codegenCommand yarn build:icon-glyphs
8
8
  */
9
9
  interface metadata {
@@ -58,6 +58,10 @@ interface metadata {
58
58
  type: 'core' | 'utility';
59
59
  location: '@atlaskit/icon' | '@atlaskit/icon-lab' | '@atlassian/icon-private';
60
60
  };
61
+ /**
62
+ * Whether the icon should be recommended as a small icon
63
+ */
64
+ shouldRecommendSmallIcon?: boolean;
61
65
  }
62
66
  declare const metadata: Record<string, metadata>;
63
67
  export default metadata;
@@ -0,0 +1 @@
1
+ export declare const recommendedSmallIcons: string[];
@@ -163,6 +163,7 @@ interface BaseNewIconProps {
163
163
  export interface UNSAFE_NewCoreGlyphProps extends BaseNewIconProps, NewCoreGlyphProps, IconInternalGlyphProps {
164
164
  type?: 'core';
165
165
  size?: NewCoreIconSize;
166
+ shouldRecommendSmallIcon?: boolean;
166
167
  }
167
168
  export interface UNSAFE_NewUtilityGlyphProps extends BaseNewIconProps, NewUtilityGlyphProps, IconInternalGlyphProps {
168
169
  type: 'utility';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/icon",
3
- "version": "26.1.0",
3
+ "version": "26.1.1",
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/"
@@ -109,7 +109,7 @@
109
109
  "@af/icon-build-process": "workspace:^",
110
110
  "@af/integration-testing": "workspace:^",
111
111
  "@af/visual-regression": "workspace:^",
112
- "@atlaskit/button": "^23.1.0",
112
+ "@atlaskit/button": "^23.2.0",
113
113
  "@atlaskit/code": "^17.2.0",
114
114
  "@atlaskit/css": "^0.10.0",
115
115
  "@atlaskit/docs": "^10.0.0",
@@ -118,11 +118,11 @@
118
118
  "@atlaskit/heading": "^5.2.0",
119
119
  "@atlaskit/icon-file-type": "^7.0.0",
120
120
  "@atlaskit/icon-object": "^7.1.0",
121
- "@atlaskit/link": "^3.1.0",
121
+ "@atlaskit/link": "^3.2.0",
122
122
  "@atlaskit/logo": "^18.0.0",
123
- "@atlaskit/menu": "^7.0.0",
123
+ "@atlaskit/menu": "^8.0.0",
124
124
  "@atlaskit/modal-dialog": "^14.2.0",
125
- "@atlaskit/primitives": "^14.7.0",
125
+ "@atlaskit/primitives": "^14.8.0",
126
126
  "@atlaskit/section-message": "^8.2.0",
127
127
  "@atlaskit/textfield": "^8.0.0",
128
128
  "@atlaskit/theme": "^18.0.0",