@atlaskit/icon 26.0.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.
Files changed (85) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/build/index.tsx +2 -0
  3. package/core/chevron-double-left.d.ts +13 -0
  4. package/core/chevron-double-left.js +27 -0
  5. package/core/chevron-double-right.d.ts +13 -0
  6. package/core/chevron-double-right.js +27 -0
  7. package/core/chevron-down.d.ts +13 -0
  8. package/core/chevron-down.js +27 -0
  9. package/core/chevron-left.d.ts +13 -0
  10. package/core/chevron-left.js +27 -0
  11. package/core/chevron-right.d.ts +13 -0
  12. package/core/chevron-right.js +27 -0
  13. package/core/chevron-up.d.ts +13 -0
  14. package/core/chevron-up.js +27 -0
  15. package/core/migration/chevron-down--chevron-down-circle.d.ts +15 -0
  16. package/core/migration/chevron-down--chevron-down-circle.js +30 -0
  17. package/core/migration/chevron-down--hipchat-chevron-down.d.ts +15 -0
  18. package/core/migration/chevron-down--hipchat-chevron-down.js +30 -0
  19. package/core/migration/chevron-down.d.ts +15 -0
  20. package/core/migration/chevron-down.js +30 -0
  21. package/core/migration/chevron-left--chevron-left-circle.d.ts +15 -0
  22. package/core/migration/chevron-left--chevron-left-circle.js +30 -0
  23. package/core/migration/chevron-left--chevron-left-large.d.ts +15 -0
  24. package/core/migration/chevron-left--chevron-left-large.js +30 -0
  25. package/core/migration/chevron-left.d.ts +15 -0
  26. package/core/migration/chevron-left.js +30 -0
  27. package/core/migration/chevron-right--chevron-right-circle.d.ts +15 -0
  28. package/core/migration/chevron-right--chevron-right-circle.js +30 -0
  29. package/core/migration/chevron-right--chevron-right-large.d.ts +15 -0
  30. package/core/migration/chevron-right--chevron-right-large.js +30 -0
  31. package/core/migration/chevron-right.d.ts +15 -0
  32. package/core/migration/chevron-right.js +30 -0
  33. package/core/migration/chevron-up--chevron-up-circle.d.ts +15 -0
  34. package/core/migration/chevron-up--chevron-up-circle.js +30 -0
  35. package/core/migration/chevron-up--hipchat-chevron-up.d.ts +15 -0
  36. package/core/migration/chevron-up--hipchat-chevron-up.js +30 -0
  37. package/core/migration/chevron-up.d.ts +15 -0
  38. package/core/migration/chevron-up.js +30 -0
  39. package/dist/cjs/components/icon-facade.js +9 -7
  40. package/dist/cjs/components/icon-new.js +41 -20
  41. package/dist/cjs/metadata-core.js +71 -1
  42. package/dist/cjs/metadata-utility.js +1 -1
  43. package/dist/cjs/migration-map.js +254 -182
  44. package/dist/cjs/recommended-small.js +7 -0
  45. package/dist/es2019/components/icon-facade.js +8 -6
  46. package/dist/es2019/components/icon-new.js +40 -20
  47. package/dist/es2019/metadata-core.js +71 -1
  48. package/dist/es2019/metadata-utility.js +1 -1
  49. package/dist/es2019/migration-map.js +254 -182
  50. package/dist/es2019/recommended-small.js +1 -0
  51. package/dist/esm/components/icon-facade.js +9 -7
  52. package/dist/esm/components/icon-new.js +41 -20
  53. package/dist/esm/metadata-core.js +71 -1
  54. package/dist/esm/metadata-utility.js +1 -1
  55. package/dist/esm/migration-map.js +254 -182
  56. package/dist/esm/recommended-small.js +1 -0
  57. package/dist/types/index.d.ts +1 -1
  58. package/dist/types/metadata-core.d.ts +5 -1
  59. package/dist/types/metadata-utility.d.ts +5 -1
  60. package/dist/types/recommended-small.d.ts +1 -0
  61. package/dist/types/types.d.ts +26 -8
  62. package/dist/types-ts4.5/index.d.ts +1 -1
  63. package/dist/types-ts4.5/metadata-core.d.ts +5 -1
  64. package/dist/types-ts4.5/metadata-utility.d.ts +5 -1
  65. package/dist/types-ts4.5/recommended-small.d.ts +1 -0
  66. package/dist/types-ts4.5/types.d.ts +26 -8
  67. package/glyph/chevron-down-circle.js +2 -3
  68. package/glyph/chevron-down.js +2 -3
  69. package/glyph/chevron-left-circle.js +2 -3
  70. package/glyph/chevron-left-large.js +2 -3
  71. package/glyph/chevron-left.js +2 -3
  72. package/glyph/chevron-right-circle.js +2 -3
  73. package/glyph/chevron-right-large.js +2 -3
  74. package/glyph/chevron-right.js +2 -3
  75. package/glyph/chevron-up-circle.js +2 -3
  76. package/glyph/chevron-up.js +2 -3
  77. package/glyph/hipchat/chevron-down.js +2 -3
  78. package/glyph/hipchat/chevron-up.js +2 -3
  79. package/package.json +8 -8
  80. package/svgs/core/chevron-double-left.svg +1 -0
  81. package/svgs/core/chevron-double-right.svg +1 -0
  82. package/svgs/core/chevron-down.svg +1 -0
  83. package/svgs/core/chevron-left.svg +1 -0
  84. package/svgs/core/chevron-right.svg +1 -0
  85. package/svgs/core/chevron-up.svg +1 -0
@@ -0,0 +1 @@
1
+ export var recommendedSmallIcons = ['chevron-double-left', 'chevron-double-right', 'chevron-down', 'chevron-left', 'chevron-right', 'chevron-up'];
@@ -4,4 +4,4 @@ export { default as SVG } from './components/svg';
4
4
  export { sizeMap as size, sizes } from './constants';
5
5
  export { default as Skeleton } from './components/skeleton';
6
6
  export { default as IconTile } from './components/icon-tile';
7
- export type { Size, SkeletonProps, IconProps, GlyphProps, CustomGlyphProps, SVGProps, NewIconProps, NewUtilityIconProps, NewCoreIconProps, IconMigrationMap, IconTileProps, } from './types';
7
+ export type { Size, NewCoreIconSize, SkeletonProps, IconProps, GlyphProps, CustomGlyphProps, SVGProps, NewIconProps, NewUtilityIconProps, NewCoreIconProps, IconMigrationMap, IconTileProps, } from './types';
@@ -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::74e48f82d18722adc91c77fffafd647c>>
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[];
@@ -1,8 +1,9 @@
1
1
  import type { ComponentType, ReactElement, ReactNode, SVGProps as ReactSVGProps } from 'react';
2
2
  import type { IconColor, IconColorPressed, TextColor, TextColorPressed } from '@atlaskit/tokens/css-type-schema';
3
3
  export type Size = 'small' | 'medium' | 'large' | 'xlarge';
4
- export type IconSpacing = 'none' | 'spacious';
5
- type UtilityIconSpacing = 'none' | 'spacious' | 'compact';
4
+ export type NewCoreIconSize = 'small' | 'medium';
5
+ export type IconSpacing = 'none' | 'spacious' | 'compact';
6
+ export type IconSize = 'small' | 'medium';
6
7
  export interface CustomGlyphProps extends ReactSVGProps<SVGSVGElement> {
7
8
  /**
8
9
  * provided to a custom glyph
@@ -51,9 +52,10 @@ interface GlyphSizeProps {
51
52
  }
52
53
  interface NewCoreGlyphSpacingProps {
53
54
  /**
54
- * Core Icons have only one available size, but can be displayed with additional spacing.
55
- * "none" is default, and allows the icon to be placed in buttons and allows the parent component to manage spacing.
56
- * "spacious" provides accessible spacing between the icon and other elements.
55
+ * Core Icons can be displayed with additional spacing.
56
+ * - `none` is default, and allows the icon to be placed in buttons and allows the parent component to manage spacing.
57
+ * - `compact` provides accessible compact spacing between the icon and other elements. **Only available for small icons.**
58
+ * - `spacious` provides accessible spacing between the icon and other elements.
57
59
  */
58
60
  spacing?: IconSpacing;
59
61
  }
@@ -64,7 +66,15 @@ interface NewUtilityGlyphSpacingProps {
64
66
  * "compact" provides accessible compact spacing between the icon and other elements.
65
67
  * "spacious" provides accessible spacing between the icon and other elements.
66
68
  */
67
- spacing?: UtilityIconSpacing;
69
+ spacing?: IconSpacing;
70
+ }
71
+ interface NewCoreGlyphSizeProps {
72
+ /**
73
+ * There are two icon sizes available:
74
+ * - `medium` - 16px. (default).
75
+ * - `small` - 12px.
76
+ */
77
+ size?: IconSize;
68
78
  }
69
79
  interface OtherGlyphProps {
70
80
  /**
@@ -115,7 +125,7 @@ interface IconInternalGlyphProps {
115
125
  }
116
126
  export interface GlyphProps extends LegacyOtherGlyphProps, GlyphSizeProps, GlyphColorProps {
117
127
  }
118
- interface NewCoreGlyphProps extends OtherGlyphProps, NewCoreGlyphSpacingProps, NewGlyphColorProps {
128
+ interface NewCoreGlyphProps extends OtherGlyphProps, NewCoreGlyphSpacingProps, NewCoreGlyphSizeProps, NewGlyphColorProps {
119
129
  }
120
130
  interface NewUtilityGlyphProps extends OtherGlyphProps, NewUtilityGlyphSpacingProps, NewGlyphColorProps {
121
131
  }
@@ -152,6 +162,8 @@ interface BaseNewIconProps {
152
162
  }
153
163
  export interface UNSAFE_NewCoreGlyphProps extends BaseNewIconProps, NewCoreGlyphProps, IconInternalGlyphProps {
154
164
  type?: 'core';
165
+ size?: NewCoreIconSize;
166
+ shouldRecommendSmallIcon?: boolean;
155
167
  }
156
168
  export interface UNSAFE_NewUtilityGlyphProps extends BaseNewIconProps, NewUtilityGlyphProps, IconInternalGlyphProps {
157
169
  type: 'utility';
@@ -222,6 +234,12 @@ type IconMigrationResult = {
222
234
  type: string;
223
235
  package: string;
224
236
  isMigrationUnsafe?: boolean;
237
+ /**
238
+ * Forces the new icon to be `size="small"`, even if the legacy icon was not a small icon.
239
+ *
240
+ * E.g. used for chevron icons.
241
+ */
242
+ shouldForceSmallIcon?: boolean;
225
243
  };
226
244
  /**
227
245
  * Alternative new icon that the legacy icon can be migrated to
@@ -238,7 +256,7 @@ type IconMigrationResult = {
238
256
  */
239
257
  sizeGuidance: Record<Size, IconMigrationSizeGuidance>;
240
258
  };
241
- export type IconMigrationSizeGuidance = '16-icon-tile' | '24-icon-tile' | '32-icon-tile' | '48-icon-tile' | 'swap' | 'swap-slight-visual-change' | 'swap-visual-change' | 'swap-size-shift-utility' | 'product-icon' | 'not-recommended' | 'icon-tile' | 'top-nav' | 'icon-lab' | 'no-larger-size';
259
+ export type IconMigrationSizeGuidance = '16-icon-tile' | '24-icon-tile' | '32-icon-tile' | '48-icon-tile' | 'swap' | 'swap-slight-visual-change' | 'swap-visual-change' | 'product-icon' | 'not-recommended' | 'icon-tile' | 'top-nav' | 'icon-lab' | 'no-larger-size';
242
260
  export type IconMigrationMap = Record<string, IconMigrationResult>;
243
261
  export type IconFacadeProps = IconProps & {
244
262
  newIcon?: React.ComponentType<NewUtilityIconProps> | React.ComponentType<NewCoreIconProps>;
@@ -4,4 +4,4 @@ export { default as SVG } from './components/svg';
4
4
  export { sizeMap as size, sizes } from './constants';
5
5
  export { default as Skeleton } from './components/skeleton';
6
6
  export { default as IconTile } from './components/icon-tile';
7
- export type { Size, SkeletonProps, IconProps, GlyphProps, CustomGlyphProps, SVGProps, NewIconProps, NewUtilityIconProps, NewCoreIconProps, IconMigrationMap, IconTileProps, } from './types';
7
+ export type { Size, NewCoreIconSize, SkeletonProps, IconProps, GlyphProps, CustomGlyphProps, SVGProps, NewIconProps, NewUtilityIconProps, NewCoreIconProps, IconMigrationMap, IconTileProps, } from './types';
@@ -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::74e48f82d18722adc91c77fffafd647c>>
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[];
@@ -1,8 +1,9 @@
1
1
  import type { ComponentType, ReactElement, ReactNode, SVGProps as ReactSVGProps } from 'react';
2
2
  import type { IconColor, IconColorPressed, TextColor, TextColorPressed } from '@atlaskit/tokens/css-type-schema';
3
3
  export type Size = 'small' | 'medium' | 'large' | 'xlarge';
4
- export type IconSpacing = 'none' | 'spacious';
5
- type UtilityIconSpacing = 'none' | 'spacious' | 'compact';
4
+ export type NewCoreIconSize = 'small' | 'medium';
5
+ export type IconSpacing = 'none' | 'spacious' | 'compact';
6
+ export type IconSize = 'small' | 'medium';
6
7
  export interface CustomGlyphProps extends ReactSVGProps<SVGSVGElement> {
7
8
  /**
8
9
  * provided to a custom glyph
@@ -51,9 +52,10 @@ interface GlyphSizeProps {
51
52
  }
52
53
  interface NewCoreGlyphSpacingProps {
53
54
  /**
54
- * Core Icons have only one available size, but can be displayed with additional spacing.
55
- * "none" is default, and allows the icon to be placed in buttons and allows the parent component to manage spacing.
56
- * "spacious" provides accessible spacing between the icon and other elements.
55
+ * Core Icons can be displayed with additional spacing.
56
+ * - `none` is default, and allows the icon to be placed in buttons and allows the parent component to manage spacing.
57
+ * - `compact` provides accessible compact spacing between the icon and other elements. **Only available for small icons.**
58
+ * - `spacious` provides accessible spacing between the icon and other elements.
57
59
  */
58
60
  spacing?: IconSpacing;
59
61
  }
@@ -64,7 +66,15 @@ interface NewUtilityGlyphSpacingProps {
64
66
  * "compact" provides accessible compact spacing between the icon and other elements.
65
67
  * "spacious" provides accessible spacing between the icon and other elements.
66
68
  */
67
- spacing?: UtilityIconSpacing;
69
+ spacing?: IconSpacing;
70
+ }
71
+ interface NewCoreGlyphSizeProps {
72
+ /**
73
+ * There are two icon sizes available:
74
+ * - `medium` - 16px. (default).
75
+ * - `small` - 12px.
76
+ */
77
+ size?: IconSize;
68
78
  }
69
79
  interface OtherGlyphProps {
70
80
  /**
@@ -115,7 +125,7 @@ interface IconInternalGlyphProps {
115
125
  }
116
126
  export interface GlyphProps extends LegacyOtherGlyphProps, GlyphSizeProps, GlyphColorProps {
117
127
  }
118
- interface NewCoreGlyphProps extends OtherGlyphProps, NewCoreGlyphSpacingProps, NewGlyphColorProps {
128
+ interface NewCoreGlyphProps extends OtherGlyphProps, NewCoreGlyphSpacingProps, NewCoreGlyphSizeProps, NewGlyphColorProps {
119
129
  }
120
130
  interface NewUtilityGlyphProps extends OtherGlyphProps, NewUtilityGlyphSpacingProps, NewGlyphColorProps {
121
131
  }
@@ -152,6 +162,8 @@ interface BaseNewIconProps {
152
162
  }
153
163
  export interface UNSAFE_NewCoreGlyphProps extends BaseNewIconProps, NewCoreGlyphProps, IconInternalGlyphProps {
154
164
  type?: 'core';
165
+ size?: NewCoreIconSize;
166
+ shouldRecommendSmallIcon?: boolean;
155
167
  }
156
168
  export interface UNSAFE_NewUtilityGlyphProps extends BaseNewIconProps, NewUtilityGlyphProps, IconInternalGlyphProps {
157
169
  type: 'utility';
@@ -222,6 +234,12 @@ type IconMigrationResult = {
222
234
  type: string;
223
235
  package: string;
224
236
  isMigrationUnsafe?: boolean;
237
+ /**
238
+ * Forces the new icon to be `size="small"`, even if the legacy icon was not a small icon.
239
+ *
240
+ * E.g. used for chevron icons.
241
+ */
242
+ shouldForceSmallIcon?: boolean;
225
243
  };
226
244
  /**
227
245
  * Alternative new icon that the legacy icon can be migrated to
@@ -238,7 +256,7 @@ type IconMigrationResult = {
238
256
  */
239
257
  sizeGuidance: Record<Size, IconMigrationSizeGuidance>;
240
258
  };
241
- export type IconMigrationSizeGuidance = '16-icon-tile' | '24-icon-tile' | '32-icon-tile' | '48-icon-tile' | 'swap' | 'swap-slight-visual-change' | 'swap-visual-change' | 'swap-size-shift-utility' | 'product-icon' | 'not-recommended' | 'icon-tile' | 'top-nav' | 'icon-lab' | 'no-larger-size';
259
+ export type IconMigrationSizeGuidance = '16-icon-tile' | '24-icon-tile' | '32-icon-tile' | '48-icon-tile' | 'swap' | 'swap-slight-visual-change' | 'swap-visual-change' | 'product-icon' | 'not-recommended' | 'icon-tile' | 'top-nav' | 'icon-lab' | 'no-larger-size';
242
260
  export type IconMigrationMap = Record<string, IconMigrationResult>;
243
261
  export type IconFacadeProps = IconProps & {
244
262
  newIcon?: React.ComponentType<NewUtilityIconProps> | React.ComponentType<NewCoreIconProps>;
@@ -6,13 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _base = require("@atlaskit/icon/base");
9
- var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/utility/chevron-down"));
9
+ var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/chevron-down"));
10
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
11
  const ChevronDownCircleIcon = props => /*#__PURE__*/_react.default.createElement(_base.IconFacade, Object.assign({
12
12
  dangerouslySetGlyph: `<svg width="24" height="24" viewBox="0 0 24 24" role="presentation"><g fill-rule="evenodd"><circle cx="12" cy="12" r="10" fill="currentcolor"/><path fill="inherit" d="M8.292 10.293a1.01 1.01 0 0 0 0 1.419l2.939 2.965c.218.215.5.322.779.322s.556-.107.769-.322l2.93-2.955a1.01 1.01 0 0 0 0-1.419.987.987 0 0 0-1.406 0l-2.298 2.317-2.307-2.327a.99.99 0 0 0-1.406 0"/></g></svg>`
13
13
  }, props, {
14
- newIcon: _chevronDown.default,
15
- iconType: "utility"
14
+ newIcon: _chevronDown.default
16
15
  }));
17
16
  ChevronDownCircleIcon.displayName = 'ChevronDownCircleIcon';
18
17
  var _default = exports.default = ChevronDownCircleIcon;
@@ -6,13 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _base = require("@atlaskit/icon/base");
9
- var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/utility/chevron-down"));
9
+ var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/chevron-down"));
10
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
11
  const ChevronDownIcon = props => /*#__PURE__*/_react.default.createElement(_base.IconFacade, Object.assign({
12
12
  dangerouslySetGlyph: `<svg width="24" height="24" viewBox="0 0 24 24" role="presentation"><path fill="currentcolor" fill-rule="evenodd" d="M8.292 10.293a1.01 1.01 0 0 0 0 1.419l2.939 2.965c.218.215.5.322.779.322s.556-.107.769-.322l2.93-2.955a1.01 1.01 0 0 0 0-1.419.987.987 0 0 0-1.406 0l-2.298 2.317-2.307-2.327a.99.99 0 0 0-1.406 0"/></svg>`
13
13
  }, props, {
14
- newIcon: _chevronDown.default,
15
- iconType: "utility"
14
+ newIcon: _chevronDown.default
16
15
  }));
17
16
  ChevronDownIcon.displayName = 'ChevronDownIcon';
18
17
  var _default = exports.default = ChevronDownIcon;
@@ -6,13 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _base = require("@atlaskit/icon/base");
9
- var _chevronLeft = _interopRequireDefault(require("@atlaskit/icon/utility/chevron-left"));
9
+ var _chevronLeft = _interopRequireDefault(require("@atlaskit/icon/core/chevron-left"));
10
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
11
  const ChevronLeftCircleIcon = props => /*#__PURE__*/_react.default.createElement(_base.IconFacade, Object.assign({
12
12
  dangerouslySetGlyph: `<svg width="24" height="24" viewBox="0 0 24 24" role="presentation"><g fill-rule="evenodd"><circle cx="12" cy="12" r="10" fill="currentcolor"/><path fill="inherit" d="M13.706 9.698a.99.99 0 0 0 0-1.407 1.01 1.01 0 0 0-1.419 0l-2.965 2.94a1.09 1.09 0 0 0 0 1.548l2.955 2.93a1.01 1.01 0 0 0 1.42 0 .99.99 0 0 0 0-1.407l-2.318-2.297z"/></g></svg>`
13
13
  }, props, {
14
- newIcon: _chevronLeft.default,
15
- iconType: "utility"
14
+ newIcon: _chevronLeft.default
16
15
  }));
17
16
  ChevronLeftCircleIcon.displayName = 'ChevronLeftCircleIcon';
18
17
  var _default = exports.default = ChevronLeftCircleIcon;
@@ -6,13 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _base = require("@atlaskit/icon/base");
9
- var _chevronLeft = _interopRequireDefault(require("@atlaskit/icon/utility/chevron-left"));
9
+ var _chevronLeft = _interopRequireDefault(require("@atlaskit/icon/core/chevron-left"));
10
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
11
  const ChevronLeftLargeIcon = props => /*#__PURE__*/_react.default.createElement(_base.IconFacade, Object.assign({
12
12
  dangerouslySetGlyph: `<svg width="24" height="24" viewBox="0 0 24 24" role="presentation"><path fill="currentcolor" fill-rule="evenodd" d="m9.005 10.995 4.593-4.593a.99.99 0 1 1 1.4 1.4l-3.9 3.9 3.9 3.9a.99.99 0 0 1-1.4 1.4L9.005 12.41a1 1 0 0 1 0-1.414"/></svg>`
13
13
  }, props, {
14
- newIcon: _chevronLeft.default,
15
- iconType: "utility"
14
+ newIcon: _chevronLeft.default
16
15
  }));
17
16
  ChevronLeftLargeIcon.displayName = 'ChevronLeftLargeIcon';
18
17
  var _default = exports.default = ChevronLeftLargeIcon;
@@ -6,13 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _base = require("@atlaskit/icon/base");
9
- var _chevronLeft = _interopRequireDefault(require("@atlaskit/icon/utility/chevron-left"));
9
+ var _chevronLeft = _interopRequireDefault(require("@atlaskit/icon/core/chevron-left"));
10
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
11
  const ChevronLeftIcon = props => /*#__PURE__*/_react.default.createElement(_base.IconFacade, Object.assign({
12
12
  dangerouslySetGlyph: `<svg width="24" height="24" viewBox="0 0 24 24" role="presentation"><path fill="currentcolor" fill-rule="evenodd" d="M13.706 9.698a.99.99 0 0 0 0-1.407 1.01 1.01 0 0 0-1.419 0l-2.965 2.94a1.09 1.09 0 0 0 0 1.548l2.955 2.93a1.01 1.01 0 0 0 1.42 0 .99.99 0 0 0 0-1.407l-2.318-2.297z"/></svg>`
13
13
  }, props, {
14
- newIcon: _chevronLeft.default,
15
- iconType: "utility"
14
+ newIcon: _chevronLeft.default
16
15
  }));
17
16
  ChevronLeftIcon.displayName = 'ChevronLeftIcon';
18
17
  var _default = exports.default = ChevronLeftIcon;
@@ -6,13 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _base = require("@atlaskit/icon/base");
9
- var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/utility/chevron-right"));
9
+ var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/core/chevron-right"));
10
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
11
  const ChevronRightCircleIcon = props => /*#__PURE__*/_react.default.createElement(_base.IconFacade, Object.assign({
12
12
  dangerouslySetGlyph: `<svg width="24" height="24" viewBox="0 0 24 24" role="presentation"><g fill-rule="evenodd"><circle cx="12" cy="12" r="10" fill="currentcolor"/><path fill="inherit" d="M10.294 9.698a.99.99 0 0 1 0-1.407 1.01 1.01 0 0 1 1.419 0l2.965 2.94a1.09 1.09 0 0 1 0 1.548l-2.955 2.93a1.01 1.01 0 0 1-1.42 0 .99.99 0 0 1 0-1.407l2.318-2.297z"/></g></svg>`
13
13
  }, props, {
14
- newIcon: _chevronRight.default,
15
- iconType: "utility"
14
+ newIcon: _chevronRight.default
16
15
  }));
17
16
  ChevronRightCircleIcon.displayName = 'ChevronRightCircleIcon';
18
17
  var _default = exports.default = ChevronRightCircleIcon;
@@ -6,13 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _base = require("@atlaskit/icon/base");
9
- var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/utility/chevron-right"));
9
+ var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/core/chevron-right"));
10
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
11
  const ChevronRightLargeIcon = props => /*#__PURE__*/_react.default.createElement(_base.IconFacade, Object.assign({
12
12
  dangerouslySetGlyph: `<svg width="24" height="24" viewBox="0 0 24 24" role="presentation"><path fill="currentcolor" fill-rule="evenodd" d="M14.995 10.995a1 1 0 0 1 0 1.414l-4.593 4.593a.99.99 0 0 1-1.4-1.4l3.9-3.9-3.9-3.9a.99.99 0 0 1 1.4-1.4z"/></svg>`
13
13
  }, props, {
14
- newIcon: _chevronRight.default,
15
- iconType: "utility"
14
+ newIcon: _chevronRight.default
16
15
  }));
17
16
  ChevronRightLargeIcon.displayName = 'ChevronRightLargeIcon';
18
17
  var _default = exports.default = ChevronRightLargeIcon;
@@ -6,13 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _base = require("@atlaskit/icon/base");
9
- var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/utility/chevron-right"));
9
+ var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/core/chevron-right"));
10
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
11
  const ChevronRightIcon = props => /*#__PURE__*/_react.default.createElement(_base.IconFacade, Object.assign({
12
12
  dangerouslySetGlyph: `<svg width="24" height="24" viewBox="0 0 24 24" role="presentation"><path fill="currentcolor" fill-rule="evenodd" d="M10.294 9.698a.99.99 0 0 1 0-1.407 1.01 1.01 0 0 1 1.419 0l2.965 2.94a1.09 1.09 0 0 1 0 1.548l-2.955 2.93a1.01 1.01 0 0 1-1.42 0 .99.99 0 0 1 0-1.407l2.318-2.297z"/></svg>`
13
13
  }, props, {
14
- newIcon: _chevronRight.default,
15
- iconType: "utility"
14
+ newIcon: _chevronRight.default
16
15
  }));
17
16
  ChevronRightIcon.displayName = 'ChevronRightIcon';
18
17
  var _default = exports.default = ChevronRightIcon;
@@ -6,13 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _base = require("@atlaskit/icon/base");
9
- var _chevronUp = _interopRequireDefault(require("@atlaskit/icon/utility/chevron-up"));
9
+ var _chevronUp = _interopRequireDefault(require("@atlaskit/icon/core/chevron-up"));
10
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
11
  const ChevronUpCircleIcon = props => /*#__PURE__*/_react.default.createElement(_base.IconFacade, Object.assign({
12
12
  dangerouslySetGlyph: `<svg width="24" height="24" viewBox="0 0 24 24" role="presentation"><g fill-rule="evenodd"><circle cx="12" cy="12" r="10" fill="currentcolor"/><path fill="inherit" d="m11.221 9.322-2.929 2.955a1.01 1.01 0 0 0 0 1.419.986.986 0 0 0 1.405 0l2.298-2.317 2.307 2.327a.99.99 0 0 0 1.407 0 1.01 1.01 0 0 0 0-1.419l-2.94-2.965A1.1 1.1 0 0 0 11.991 9c-.279 0-.557.107-.77.322"/></g></svg>`
13
13
  }, props, {
14
- newIcon: _chevronUp.default,
15
- iconType: "utility"
14
+ newIcon: _chevronUp.default
16
15
  }));
17
16
  ChevronUpCircleIcon.displayName = 'ChevronUpCircleIcon';
18
17
  var _default = exports.default = ChevronUpCircleIcon;
@@ -6,13 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _base = require("@atlaskit/icon/base");
9
- var _chevronUp = _interopRequireDefault(require("@atlaskit/icon/utility/chevron-up"));
9
+ var _chevronUp = _interopRequireDefault(require("@atlaskit/icon/core/chevron-up"));
10
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
11
  const ChevronUpIcon = props => /*#__PURE__*/_react.default.createElement(_base.IconFacade, Object.assign({
12
12
  dangerouslySetGlyph: `<svg width="24" height="24" viewBox="0 0 24 24" role="presentation"><path fill="currentcolor" fill-rule="evenodd" d="m11.221 9.322-2.929 2.955a1.01 1.01 0 0 0 0 1.419.986.986 0 0 0 1.405 0l2.298-2.317 2.307 2.327a.99.99 0 0 0 1.407 0 1.01 1.01 0 0 0 0-1.419l-2.94-2.965A1.1 1.1 0 0 0 11.991 9c-.279 0-.557.107-.77.322"/></svg>`
13
13
  }, props, {
14
- newIcon: _chevronUp.default,
15
- iconType: "utility"
14
+ newIcon: _chevronUp.default
16
15
  }));
17
16
  ChevronUpIcon.displayName = 'ChevronUpIcon';
18
17
  var _default = exports.default = ChevronUpIcon;
@@ -6,13 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _base = require("@atlaskit/icon/base");
9
- var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/utility/chevron-down"));
9
+ var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/chevron-down"));
10
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
11
  const HipchatChevronDownIcon = props => /*#__PURE__*/_react.default.createElement(_base.IconFacade, Object.assign({
12
12
  dangerouslySetGlyph: `<svg width="24" height="24" viewBox="0 0 24 24" role="presentation"><path fill="currentcolor" d="M6.744 8.744a1.053 1.053 0 0 0 0 1.49l4.547 4.557a1 1 0 0 0 1.416 0l4.55-4.558a1.051 1.051 0 1 0-1.488-1.488l-3.77 3.776-3.768-3.776a1.05 1.05 0 0 0-1.487 0"/></svg>`
13
13
  }, props, {
14
- newIcon: _chevronDown.default,
15
- iconType: "utility"
14
+ newIcon: _chevronDown.default
16
15
  }));
17
16
  HipchatChevronDownIcon.displayName = 'HipchatChevronDownIcon';
18
17
  var _default = exports.default = HipchatChevronDownIcon;
@@ -6,13 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _base = require("@atlaskit/icon/base");
9
- var _chevronUp = _interopRequireDefault(require("@atlaskit/icon/utility/chevron-up"));
9
+ var _chevronUp = _interopRequireDefault(require("@atlaskit/icon/core/chevron-up"));
10
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
11
  const HipchatChevronUpIcon = props => /*#__PURE__*/_react.default.createElement(_base.IconFacade, Object.assign({
12
12
  dangerouslySetGlyph: `<svg width="24" height="24" viewBox="0 0 24 24" role="presentation"><path fill="currentcolor" fill-rule="evenodd" d="m11.294 8.708-4.549 4.559a1.051 1.051 0 1 0 1.486 1.488l.001-.001 3.77-3.776 3.768 3.776a1.05 1.05 0 0 0 1.486.001h.001a1.054 1.054 0 0 0 .001-1.489L12.71 8.708a1 1 0 0 0-1.415-.001"/></svg>`
13
13
  }, props, {
14
- newIcon: _chevronUp.default,
15
- iconType: "utility"
14
+ newIcon: _chevronUp.default
16
15
  }));
17
16
  HipchatChevronUpIcon.displayName = 'HipchatChevronUpIcon';
18
17
  var _default = exports.default = HipchatChevronUpIcon;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/icon",
3
- "version": "26.0.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/"
@@ -96,7 +96,7 @@
96
96
  },
97
97
  "dependencies": {
98
98
  "@atlaskit/platform-feature-flags": "^1.1.0",
99
- "@atlaskit/tokens": "^4.8.0",
99
+ "@atlaskit/tokens": "^4.9.0",
100
100
  "@babel/register": "^7.25.9",
101
101
  "@babel/runtime": "^7.0.0",
102
102
  "@compiled/react": "^0.18.3"
@@ -109,8 +109,8 @@
109
109
  "@af/icon-build-process": "workspace:^",
110
110
  "@af/integration-testing": "workspace:^",
111
111
  "@af/visual-regression": "workspace:^",
112
- "@atlaskit/button": "^23.0.0",
113
- "@atlaskit/code": "^17.1.0",
112
+ "@atlaskit/button": "^23.2.0",
113
+ "@atlaskit/code": "^17.2.0",
114
114
  "@atlaskit/css": "^0.10.0",
115
115
  "@atlaskit/docs": "^10.0.0",
116
116
  "@atlaskit/ds-lib": "^4.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": "^5.0.0",
124
- "@atlaskit/modal-dialog": "^14.1.0",
125
- "@atlaskit/primitives": "^14.7.0",
123
+ "@atlaskit/menu": "^8.0.0",
124
+ "@atlaskit/modal-dialog": "^14.2.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",
@@ -0,0 +1 @@
1
+ <svg width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentcolor" d="m7.72 1.47-6 6a.75.75 0 0 0-.052 1.004l.052.056 6 6 1.06-1.06L3.31 8l5.47-5.47z"/><path fill="currentcolor" d="m12.47 1.47-6 6a.75.75 0 0 0-.052 1.004l.052.056 6 6 1.06-1.06L8.06 8l5.47-5.47z"/></svg>
@@ -0,0 +1 @@
1
+ <svg width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentcolor" d="m8.28 1.47 6 6a.75.75 0 0 1 .052 1.004l-.052.056-6 6-1.06-1.06L12.69 8 7.22 2.53z"/><path fill="currentcolor" d="m3.53 1.47 6 6a.75.75 0 0 1 .052 1.004l-.052.056-6 6-1.06-1.06L7.94 8 2.47 2.53z"/></svg>
@@ -0,0 +1 @@
1
+ <svg width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentcolor" d="m14.53 6.03-6 6a.75.75 0 0 1-1.004.052l-.056-.052-6-6 1.06-1.06L8 10.44l5.47-5.47z"/></svg>
@@ -0,0 +1 @@
1
+ <svg width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentcolor" d="m9.97 1.47-6 6a.75.75 0 0 0-.052 1.004l.052.056 6 6 1.06-1.06L5.56 8l5.47-5.47z"/></svg>
@@ -0,0 +1 @@
1
+ <svg width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentcolor" d="m6.03 1.47 6 6a.75.75 0 0 1 .052 1.004l-.052.056-6 6-1.06-1.06L10.44 8 4.97 2.53z"/></svg>
@@ -0,0 +1 @@
1
+ <svg width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentcolor" d="m14.53 9.97-6-6a.75.75 0 0 0-1.004-.052l-.056.052-6 6 1.06 1.06L8 5.56l5.47 5.47z"/></svg>