@atlaskit/icon 27.7.0 → 27.8.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,25 @@
1
1
  # @atlaskit/icon
2
2
 
3
+ ## 27.8.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#193863](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/193863)
8
+ [`ddb17aca8f0c7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ddb17aca8f0c7) -
9
+ Disabling icon facade where old icons displayed new icons in prepartion for removal
10
+ - [#193214](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/193214)
11
+ [`c661806a65543`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c661806a65543) -
12
+ Internal changes to how border radius and border width values are applied. No visual change.
13
+ - Updated dependencies
14
+
15
+ ## 27.8.0
16
+
17
+ ### Minor Changes
18
+
19
+ - [#193177](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/193177)
20
+ [`5b373c4d14e0c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5b373c4d14e0c) -
21
+ Deprecated custom icon and custom SVG
22
+
3
23
  ## 27.7.0
4
24
 
5
25
  ### Minor Changes
@@ -1,27 +1,33 @@
1
1
  {
2
- "extends": "../../../../tsconfig.entry-points.confluence.json",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "target": "es5",
6
- "composite": true,
7
- "outDir": "../../../../../confluence/tsDist/@atlaskit__icon",
8
- "rootDir": "../"
9
- },
10
- "include": [
11
- "../src/**/*.ts",
12
- "../src/**/*.tsx"
13
- ],
14
- "exclude": [
15
- "../src/**/__tests__/*",
16
- "../src/**/*.test.*",
17
- "../src/**/test.*"
18
- ],
19
- "references": [
20
- {
21
- "path": "../../../platform/feature-flags/afm-cc/tsconfig.json"
22
- },
23
- {
24
- "path": "../../tokens/afm-cc/tsconfig.json"
25
- }
26
- ]
2
+ "extends": "../../../../tsconfig.entry-points.confluence.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "target": "es5",
6
+ "composite": true,
7
+ "outDir": "../../../../../confluence/tsDist/@atlaskit__icon",
8
+ "rootDir": "../"
9
+ },
10
+ "include": [
11
+ "../src/**/*.ts",
12
+ "../src/**/*.tsx"
13
+ ],
14
+ "exclude": [
15
+ "../src/**/__tests__/*",
16
+ "../src/**/*.test.*",
17
+ "../src/**/test.*",
18
+ "../src/**/examples.*",
19
+ "../src/**/examples/*",
20
+ "../src/**/examples/**/*",
21
+ "../src/**/*.stories.*",
22
+ "../src/**/stories/*",
23
+ "../src/**/stories/**/*"
24
+ ],
25
+ "references": [
26
+ {
27
+ "path": "../../../platform/feature-flags/afm-cc/tsconfig.json"
28
+ },
29
+ {
30
+ "path": "../../tokens/afm-cc/tsconfig.json"
31
+ }
32
+ ]
27
33
  }
@@ -14,7 +14,13 @@
14
14
  "exclude": [
15
15
  "../src/**/__tests__/*",
16
16
  "../src/**/*.test.*",
17
- "../src/**/test.*"
17
+ "../src/**/test.*",
18
+ "../src/**/examples.*",
19
+ "../src/**/examples/*",
20
+ "../src/**/examples/**/*",
21
+ "../src/**/*.stories.*",
22
+ "../src/**/stories/*",
23
+ "../src/**/stories/**/*"
18
24
  ],
19
25
  "references": [
20
26
  {
@@ -14,7 +14,13 @@
14
14
  "exclude": [
15
15
  "../src/**/__tests__/*",
16
16
  "../src/**/*.test.*",
17
- "../src/**/test.*"
17
+ "../src/**/test.*",
18
+ "../src/**/examples.*",
19
+ "../src/**/examples/*",
20
+ "../src/**/examples/**/*",
21
+ "../src/**/*.stories.*",
22
+ "../src/**/stories/*",
23
+ "../src/**/stories/**/*"
18
24
  ],
19
25
  "references": [
20
26
  {
@@ -14,7 +14,13 @@
14
14
  "exclude": [
15
15
  "../src/**/__tests__/*",
16
16
  "../src/**/*.test.*",
17
- "../src/**/test.*"
17
+ "../src/**/test.*",
18
+ "../src/**/examples.*",
19
+ "../src/**/examples/*",
20
+ "../src/**/examples/**/*",
21
+ "../src/**/*.stories.*",
22
+ "../src/**/stories/*",
23
+ "../src/**/stories/**/*"
18
24
  ],
19
25
  "references": [
20
26
  {
@@ -14,7 +14,13 @@
14
14
  "exclude": [
15
15
  "../src/**/__tests__/*",
16
16
  "../src/**/*.test.*",
17
- "../src/**/test.*"
17
+ "../src/**/test.*",
18
+ "../src/**/examples.*",
19
+ "../src/**/examples/*",
20
+ "../src/**/examples/**/*",
21
+ "../src/**/*.stories.*",
22
+ "../src/**/stories/*",
23
+ "../src/**/stories/**/*"
18
24
  ],
19
25
  "references": [
20
26
  {
@@ -14,7 +14,13 @@
14
14
  "exclude": [
15
15
  "../src/**/__tests__/*",
16
16
  "../src/**/*.test.*",
17
- "../src/**/test.*"
17
+ "../src/**/test.*",
18
+ "../src/**/examples.*",
19
+ "../src/**/examples/*",
20
+ "../src/**/examples/**/*",
21
+ "../src/**/*.stories.*",
22
+ "../src/**/stories/*",
23
+ "../src/**/stories/**/*"
18
24
  ],
19
25
  "references": [
20
26
  {
@@ -14,7 +14,13 @@
14
14
  "exclude": [
15
15
  "../src/**/__tests__/*",
16
16
  "../src/**/*.test.*",
17
- "../src/**/test.*"
17
+ "../src/**/test.*",
18
+ "../src/**/examples.*",
19
+ "../src/**/examples/*",
20
+ "../src/**/examples/**/*",
21
+ "../src/**/*.stories.*",
22
+ "../src/**/stories/*",
23
+ "../src/**/stories/**/*"
18
24
  ],
19
25
  "references": [
20
26
  {
package/build/index.tsx CHANGED
@@ -138,7 +138,7 @@ async function main() {
138
138
  const [vrExampleCore, vrTestCore] = createVRTest(
139
139
  coreIconMetadata,
140
140
  '../../../../..',
141
- 20,
141
+ 50,
142
142
  'core',
143
143
  );
144
144
  fs.outputFile(
@@ -153,7 +153,7 @@ async function main() {
153
153
  const [vrExampleUtility, vrTestUtility] = createVRTest(
154
154
  utilityIconMetadata,
155
155
  '../../../../..',
156
- 20,
156
+ 50,
157
157
  'utility',
158
158
  );
159
159
  fs.outputFile(
@@ -12,6 +12,12 @@
12
12
  "exclude": [
13
13
  "../src/**/__tests__/*",
14
14
  "../src/**/*.test.*",
15
- "../src/**/test.*"
15
+ "../src/**/test.*",
16
+ "../src/**/examples.*",
17
+ "../src/**/examples/*",
18
+ "../src/**/examples/**/*",
19
+ "../src/**/*.stories.*",
20
+ "../src/**/stories/*",
21
+ "../src/**/stories/**/*"
16
22
  ]
17
- }
23
+ }
@@ -43,7 +43,7 @@ var IconFacade = exports.IconFacade = /*#__PURE__*/(0, _react.memo)(function Ico
43
43
  var useNewIcon = !props.isFacadeDisabled &&
44
44
  // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
45
45
  (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons-legacy-facade');
46
- if (useNewIcon && NewIcon && (iconSize === 'small' || iconSize === 'medium')) {
46
+ if (useNewIcon && NewIcon && (iconSize === 'small' || iconSize === 'medium') && !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons-facade-removal')) {
47
47
  if (props.iconType === 'utility') {
48
48
  var Icon = NewIcon;
49
49
  return /*#__PURE__*/_react.default.createElement(Icon, (0, _extends2.default)({}, props, {
@@ -39,6 +39,8 @@ var secondaryTransparentHcmStyles = null;
39
39
  /**
40
40
  * __Icon__
41
41
  *
42
+ * @deprecated Custom Icon is deprecated and will be removed from `atlaskit/icon` in an upcoming major release. Please use either an existing icon from @atlaskit/icon or @atlaskit/icon-lab, or contributing to @atlaskit/icon-lab directly. For third party logos, use an SVG element along with a label.
43
+ *
42
44
  * An icon is used as a visual representation of common actions and commands to provide context.
43
45
  *
44
46
  * - [Examples](https://atlaskit.atlassian.com/packages/design-system/icon)
@@ -22,6 +22,8 @@ var svgStyles = null;
22
22
  /**
23
23
  * __SVG__
24
24
  *
25
+ * @deprecated Custom SVG is deprecated and will be removed from `atlaskit/icon` in an upcoming major release. Please use either an existing icon from @atlaskit/icon or @atlaskit/icon-lab, or contributing to @atlaskit/icon-lab directly. For third party logos, use an SVG element along with a label.
26
+ *
25
27
  * An icon is used as a visual representation of common actions and commands to provide context.
26
28
  *
27
29
  * - [Examples](https://atlaskit.atlassian.com/packages/design-system/icon)
@@ -33,7 +33,7 @@ export const IconFacade = /*#__PURE__*/memo(function IconFacade({
33
33
  const useNewIcon = !props.isFacadeDisabled &&
34
34
  // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
35
35
  fg('platform-visual-refresh-icons-legacy-facade');
36
- if (useNewIcon && NewIcon && (iconSize === 'small' || iconSize === 'medium')) {
36
+ if (useNewIcon && NewIcon && (iconSize === 'small' || iconSize === 'medium') && !fg('platform-visual-refresh-icons-facade-removal')) {
37
37
  if (props.iconType === 'utility') {
38
38
  const Icon = NewIcon;
39
39
  return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
@@ -28,6 +28,8 @@ const secondaryTransparentHcmStyles = null;
28
28
  /**
29
29
  * __Icon__
30
30
  *
31
+ * @deprecated Custom Icon is deprecated and will be removed from `atlaskit/icon` in an upcoming major release. Please use either an existing icon from @atlaskit/icon or @atlaskit/icon-lab, or contributing to @atlaskit/icon-lab directly. For third party logos, use an SVG element along with a label.
32
+ *
31
33
  * An icon is used as a visual representation of common actions and commands to provide context.
32
34
  *
33
35
  * - [Examples](https://atlaskit.atlassian.com/packages/design-system/icon)
@@ -14,6 +14,8 @@ const svgStyles = null;
14
14
  /**
15
15
  * __SVG__
16
16
  *
17
+ * @deprecated Custom SVG is deprecated and will be removed from `atlaskit/icon` in an upcoming major release. Please use either an existing icon from @atlaskit/icon or @atlaskit/icon-lab, or contributing to @atlaskit/icon-lab directly. For third party logos, use an SVG element along with a label.
18
+ *
17
19
  * An icon is used as a visual representation of common actions and commands to provide context.
18
20
  *
19
21
  * - [Examples](https://atlaskit.atlassian.com/packages/design-system/icon)
@@ -34,7 +34,7 @@ export var IconFacade = /*#__PURE__*/memo(function IconFacade(_ref) {
34
34
  var useNewIcon = !props.isFacadeDisabled &&
35
35
  // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
36
36
  fg('platform-visual-refresh-icons-legacy-facade');
37
- if (useNewIcon && NewIcon && (iconSize === 'small' || iconSize === 'medium')) {
37
+ if (useNewIcon && NewIcon && (iconSize === 'small' || iconSize === 'medium') && !fg('platform-visual-refresh-icons-facade-removal')) {
38
38
  if (props.iconType === 'utility') {
39
39
  var Icon = NewIcon;
40
40
  return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
@@ -31,6 +31,8 @@ var secondaryTransparentHcmStyles = null;
31
31
  /**
32
32
  * __Icon__
33
33
  *
34
+ * @deprecated Custom Icon is deprecated and will be removed from `atlaskit/icon` in an upcoming major release. Please use either an existing icon from @atlaskit/icon or @atlaskit/icon-lab, or contributing to @atlaskit/icon-lab directly. For third party logos, use an SVG element along with a label.
35
+ *
34
36
  * An icon is used as a visual representation of common actions and commands to provide context.
35
37
  *
36
38
  * - [Examples](https://atlaskit.atlassian.com/packages/design-system/icon)
@@ -14,6 +14,8 @@ var svgStyles = null;
14
14
  /**
15
15
  * __SVG__
16
16
  *
17
+ * @deprecated Custom SVG is deprecated and will be removed from `atlaskit/icon` in an upcoming major release. Please use either an existing icon from @atlaskit/icon or @atlaskit/icon-lab, or contributing to @atlaskit/icon-lab directly. For third party logos, use an SVG element along with a label.
18
+ *
17
19
  * An icon is used as a visual representation of common actions and commands to provide context.
18
20
  *
19
21
  * - [Examples](https://atlaskit.atlassian.com/packages/design-system/icon)
@@ -3,6 +3,8 @@ import type { IconProps } from '../types';
3
3
  /**
4
4
  * __Icon__
5
5
  *
6
+ * @deprecated Custom Icon is deprecated and will be removed from `atlaskit/icon` in an upcoming major release. Please use either an existing icon from @atlaskit/icon or @atlaskit/icon-lab, or contributing to @atlaskit/icon-lab directly. For third party logos, use an SVG element along with a label.
7
+ *
6
8
  * An icon is used as a visual representation of common actions and commands to provide context.
7
9
  *
8
10
  * - [Examples](https://atlaskit.atlassian.com/packages/design-system/icon)
@@ -3,6 +3,8 @@ import type { SVGProps } from '../types';
3
3
  /**
4
4
  * __SVG__
5
5
  *
6
+ * @deprecated Custom SVG is deprecated and will be removed from `atlaskit/icon` in an upcoming major release. Please use either an existing icon from @atlaskit/icon or @atlaskit/icon-lab, or contributing to @atlaskit/icon-lab directly. For third party logos, use an SVG element along with a label.
7
+ *
6
8
  * An icon is used as a visual representation of common actions and commands to provide context.
7
9
  *
8
10
  * - [Examples](https://atlaskit.atlassian.com/packages/design-system/icon)
@@ -3,6 +3,8 @@ import type { IconProps } from '../types';
3
3
  /**
4
4
  * __Icon__
5
5
  *
6
+ * @deprecated Custom Icon is deprecated and will be removed from `atlaskit/icon` in an upcoming major release. Please use either an existing icon from @atlaskit/icon or @atlaskit/icon-lab, or contributing to @atlaskit/icon-lab directly. For third party logos, use an SVG element along with a label.
7
+ *
6
8
  * An icon is used as a visual representation of common actions and commands to provide context.
7
9
  *
8
10
  * - [Examples](https://atlaskit.atlassian.com/packages/design-system/icon)
@@ -3,6 +3,8 @@ import type { SVGProps } from '../types';
3
3
  /**
4
4
  * __SVG__
5
5
  *
6
+ * @deprecated Custom SVG is deprecated and will be removed from `atlaskit/icon` in an upcoming major release. Please use either an existing icon from @atlaskit/icon or @atlaskit/icon-lab, or contributing to @atlaskit/icon-lab directly. For third party logos, use an SVG element along with a label.
7
+ *
6
8
  * An icon is used as a visual representation of common actions and commands to provide context.
7
9
  *
8
10
  * - [Examples](https://atlaskit.atlassian.com/packages/design-system/icon)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/icon",
3
- "version": "27.7.0",
3
+ "version": "27.8.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/"
@@ -55,8 +55,8 @@
55
55
  "id": "custom-icon",
56
56
  "sortKey": 3,
57
57
  "status": {
58
- "type": "intent-to-deprecate",
59
- "description": "We are planning on deprecating custom icon. We recommend using either an existing icon from @atlaskit/icon or @atlaskit/icon-lab, or contributing to @atlaskit/icon-lab directly. For third party logos, use an SVG element along with a label.",
58
+ "type": "deprecated",
59
+ "description": "Custom icon is deprecated. We recommend using either an existing icon from @atlaskit/icon or @atlaskit/icon-lab, or contributing to @atlaskit/icon-lab directly. For third party logos, use an SVG element along with a label.",
60
60
  "actions": [
61
61
  {
62
62
  "text": "View available icons",
@@ -74,8 +74,8 @@
74
74
  "id": "custom-svg",
75
75
  "sortKey": 4,
76
76
  "status": {
77
- "type": "intent-to-deprecate",
78
- "description": "We are planning on deprecating custom SVG. We recommend using either an existing icon from @atlaskit/icon or @atlaskit/icon-lab, or contributing to @atlaskit/icon-lab directly. For third party logos, use an SVG element along with a label.",
77
+ "type": "deprecated",
78
+ "description": "Custom SVG is deprecated. We recommend using either an existing icon from @atlaskit/icon or @atlaskit/icon-lab, or contributing to @atlaskit/icon-lab directly. For third party logos, use an SVG element along with a label.",
79
79
  "actions": [
80
80
  {
81
81
  "text": "View available icons",
@@ -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.2.0",
112
+ "@atlaskit/button": "^23.3.0",
113
113
  "@atlaskit/code": "^17.2.0",
114
114
  "@atlaskit/css": "^0.12.0",
115
115
  "@atlaskit/docs": "^11.0.0",
@@ -119,15 +119,15 @@
119
119
  "@atlaskit/icon-file-type": "^7.0.0",
120
120
  "@atlaskit/icon-object": "^7.1.0",
121
121
  "@atlaskit/link": "^3.2.0",
122
- "@atlaskit/logo": "^19.5.0",
123
- "@atlaskit/menu": "^8.0.0",
122
+ "@atlaskit/logo": "^19.6.0",
123
+ "@atlaskit/menu": "^8.1.0",
124
124
  "@atlaskit/modal-dialog": "^14.3.0",
125
- "@atlaskit/primitives": "^14.10.0",
126
- "@atlaskit/section-message": "^8.4.0",
125
+ "@atlaskit/primitives": "^14.11.0",
126
+ "@atlaskit/section-message": "^8.5.0",
127
127
  "@atlaskit/textfield": "^8.0.0",
128
128
  "@atlaskit/theme": "^19.0.0",
129
- "@atlaskit/toggle": "^15.0.0",
130
- "@atlaskit/tooltip": "^20.3.0",
129
+ "@atlaskit/toggle": "^15.1.0",
130
+ "@atlaskit/tooltip": "^20.4.0",
131
131
  "@atlaskit/visual-regression": "workspace:^",
132
132
  "@atlassian/ssr-tests": "^0.2.0",
133
133
  "@babel/core": "7.24.9",
@@ -196,6 +196,9 @@
196
196
  },
197
197
  "platform-visual-refresh-icons-facade-button-fix": {
198
198
  "type": "boolean"
199
+ },
200
+ "platform-visual-refresh-icons-facade-removal": {
201
+ "type": "boolean"
199
202
  }
200
203
  }
201
204
  }
package/tsconfig.json CHANGED
@@ -8,8 +8,13 @@
8
8
  "./docs/**/*.tsx",
9
9
  "./examples/**/*.ts",
10
10
  "./examples/**/*.tsx",
11
- "./codemods"
11
+ "./codemods",
12
+ "**/stories.ts",
13
+ "**/stories.tsx",
14
+ "**/stories/*.ts",
15
+ "**/stories/*.tsx",
16
+ "**/stories/**/*.ts",
17
+ "**/stories/**/*.tsx"
12
18
  ],
13
- "compilerOptions": {
14
- }
19
+ "compilerOptions": {}
15
20
  }