@atlaskit/icon 23.0.0 → 23.0.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 +8 -0
- package/dist/types/types.d.ts +8 -7
- package/dist/types-ts4.5/types.d.ts +8 -7
- package/package.json +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/icon
|
|
2
2
|
|
|
3
|
+
## 23.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#168321](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/168321)
|
|
8
|
+
[`01cada6d7a4d7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/01cada6d7a4d7) -
|
|
9
|
+
Fix bug where new icon types had an additional prop isFacadeDisabled that was not used
|
|
10
|
+
|
|
3
11
|
## 23.0.0
|
|
4
12
|
|
|
5
13
|
### Major Changes
|
package/dist/types/types.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ export interface GlyphColorProps {
|
|
|
37
37
|
export interface NewGlyphColorProps {
|
|
38
38
|
/**
|
|
39
39
|
* Color for the icon. Supports any icon or text design token, or 'currentColor' to inherit the current text color.
|
|
40
|
-
* Defaults to `currentColor
|
|
40
|
+
* Defaults to `currentColor`, inheriting the current text color.
|
|
41
41
|
*/
|
|
42
42
|
color?: IconColor | IconColorPressed | Exclude<TextColor, 'transparent'> | TextColorPressed | 'currentColor';
|
|
43
43
|
}
|
|
@@ -51,13 +51,18 @@ export interface GlyphSizeProps {
|
|
|
51
51
|
}
|
|
52
52
|
export interface NewCoreGlyphSpacingProps {
|
|
53
53
|
/**
|
|
54
|
-
* Core
|
|
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
57
|
*/
|
|
56
58
|
spacing?: IconSpacing;
|
|
57
59
|
}
|
|
58
60
|
export interface NewUtilityGlyphSpacingProps {
|
|
59
61
|
/**
|
|
60
|
-
*
|
|
62
|
+
* Utility Icons have only one available size, but can be displayed with additional spacing.
|
|
63
|
+
* "none" is default, and allows the icon to be placed in buttons and allows the parent component to manage spacing.
|
|
64
|
+
* "compact" provides accessible compact spacing between the icon and other elements.
|
|
65
|
+
* "spacious" provides accessible spacing between the icon and other elements.
|
|
61
66
|
*/
|
|
62
67
|
spacing?: UtilityIconSpacing;
|
|
63
68
|
}
|
|
@@ -74,10 +79,6 @@ export interface OtherGlyphProps {
|
|
|
74
79
|
* serving as a hook for automated tests.
|
|
75
80
|
*/
|
|
76
81
|
testId?: string;
|
|
77
|
-
/**
|
|
78
|
-
* Used to opt out of the icon facade and only display the legacy icon regardless of the feature flag.
|
|
79
|
-
*/
|
|
80
|
-
isFacadeDisabled?: boolean;
|
|
81
82
|
}
|
|
82
83
|
/**
|
|
83
84
|
* Props for legacy icons –– including the children prop to resolve R18 type errors
|
|
@@ -37,7 +37,7 @@ export interface GlyphColorProps {
|
|
|
37
37
|
export interface NewGlyphColorProps {
|
|
38
38
|
/**
|
|
39
39
|
* Color for the icon. Supports any icon or text design token, or 'currentColor' to inherit the current text color.
|
|
40
|
-
* Defaults to `currentColor
|
|
40
|
+
* Defaults to `currentColor`, inheriting the current text color.
|
|
41
41
|
*/
|
|
42
42
|
color?: IconColor | IconColorPressed | Exclude<TextColor, 'transparent'> | TextColorPressed | 'currentColor';
|
|
43
43
|
}
|
|
@@ -51,13 +51,18 @@ export interface GlyphSizeProps {
|
|
|
51
51
|
}
|
|
52
52
|
export interface NewCoreGlyphSpacingProps {
|
|
53
53
|
/**
|
|
54
|
-
* Core
|
|
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
57
|
*/
|
|
56
58
|
spacing?: IconSpacing;
|
|
57
59
|
}
|
|
58
60
|
export interface NewUtilityGlyphSpacingProps {
|
|
59
61
|
/**
|
|
60
|
-
*
|
|
62
|
+
* Utility Icons have only one available size, but can be displayed with additional spacing.
|
|
63
|
+
* "none" is default, and allows the icon to be placed in buttons and allows the parent component to manage spacing.
|
|
64
|
+
* "compact" provides accessible compact spacing between the icon and other elements.
|
|
65
|
+
* "spacious" provides accessible spacing between the icon and other elements.
|
|
61
66
|
*/
|
|
62
67
|
spacing?: UtilityIconSpacing;
|
|
63
68
|
}
|
|
@@ -74,10 +79,6 @@ export interface OtherGlyphProps {
|
|
|
74
79
|
* serving as a hook for automated tests.
|
|
75
80
|
*/
|
|
76
81
|
testId?: string;
|
|
77
|
-
/**
|
|
78
|
-
* Used to opt out of the icon facade and only display the legacy icon regardless of the feature flag.
|
|
79
|
-
*/
|
|
80
|
-
isFacadeDisabled?: boolean;
|
|
81
82
|
}
|
|
82
83
|
/**
|
|
83
84
|
* Props for legacy icons –– including the children prop to resolve R18 type errors
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/icon",
|
|
3
|
-
"version": "23.0.
|
|
3
|
+
"version": "23.0.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/"
|
|
@@ -82,7 +82,10 @@
|
|
|
82
82
|
"@af/visual-regression": "*",
|
|
83
83
|
"@atlaskit/code": "^15.6.0",
|
|
84
84
|
"@atlaskit/ds-lib": "^3.3.0",
|
|
85
|
+
"@atlaskit/heading": "^4.0.0",
|
|
86
|
+
"@atlaskit/link": "^1.2.7",
|
|
85
87
|
"@atlaskit/logo": "^15.0.0",
|
|
88
|
+
"@atlaskit/menu": "^2.13.5",
|
|
86
89
|
"@atlaskit/primitives": "^13.3.0",
|
|
87
90
|
"@atlaskit/ssr": "*",
|
|
88
91
|
"@atlaskit/textfield": "^6.6.0",
|