@atlaskit/icon 22.10.0 → 22.11.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 +16 -0
- package/dist/cjs/entry-points/migration-map.js +1 -1
- package/dist/es2019/entry-points/migration-map.js +1 -1
- package/dist/esm/entry-points/migration-map.js +1 -1
- package/dist/types/entry-points/migration-map.d.ts +1 -1
- package/dist/types/types.d.ts +3 -3
- package/dist/types-ts4.5/entry-points/migration-map.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +3 -3
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/icon
|
|
2
2
|
|
|
3
|
+
## 22.11.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#128275](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/128275)
|
|
8
|
+
[`e1b99e3ce07ca`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e1b99e3ce07ca) -
|
|
9
|
+
Fixed an invalid path in the migration-map entrypoint.
|
|
10
|
+
|
|
11
|
+
## 22.11.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#128427](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/128427)
|
|
16
|
+
[`ade1e717764e2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ade1e717764e2) -
|
|
17
|
+
Updated the `color` prop of alpha icon components to support text design tokens.
|
|
18
|
+
|
|
3
19
|
## 22.10.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
|
@@ -16,6 +16,6 @@ Object.defineProperty(exports, "migrationOutcomeDescriptionMap", {
|
|
|
16
16
|
return _migrationMap.migrationOutcomeDescriptionMap;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
var _migrationMap = _interopRequireWildcard(require("
|
|
19
|
+
var _migrationMap = _interopRequireWildcard(require("../migration-map"));
|
|
20
20
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
21
21
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default, migrationOutcomeDescriptionMap } from '
|
|
1
|
+
export { default, migrationOutcomeDescriptionMap } from '../migration-map';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default, migrationOutcomeDescriptionMap } from '
|
|
1
|
+
export { default, migrationOutcomeDescriptionMap } from '../migration-map';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default, migrationOutcomeDescriptionMap } from '
|
|
1
|
+
export { default, migrationOutcomeDescriptionMap } from '../migration-map';
|
|
2
2
|
export type { IconMigrationMap, IconMigrationSizeGuidance } from '../types';
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentType, ReactNode, SVGProps as ReactSVGProps } from 'react';
|
|
2
|
-
import type { IconColor, IconColorPressed } from '@atlaskit/tokens/css-type-schema';
|
|
2
|
+
import type { IconColor, IconColorPressed, TextColor, TextColorPressed } from '@atlaskit/tokens/css-type-schema';
|
|
3
3
|
export type Size = 'small' | 'medium' | 'large' | 'xlarge';
|
|
4
4
|
export interface CustomGlyphProps extends ReactSVGProps<SVGSVGElement> {
|
|
5
5
|
/**
|
|
@@ -34,9 +34,9 @@ export interface GlyphColorProps {
|
|
|
34
34
|
*/
|
|
35
35
|
export interface NewGlyphColorProps {
|
|
36
36
|
/**
|
|
37
|
-
* Color for the icon. Supports any icon design token, or 'currentColor' to inherit the current text color.
|
|
37
|
+
* Color for the icon. Supports any icon or text design token, or 'currentColor' to inherit the current text color.
|
|
38
38
|
*/
|
|
39
|
-
color?: IconColor | IconColorPressed | 'currentColor';
|
|
39
|
+
color?: IconColor | IconColorPressed | Exclude<TextColor, 'transparent'> | TextColorPressed | 'currentColor';
|
|
40
40
|
}
|
|
41
41
|
export interface GlyphSizeProps {
|
|
42
42
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default, migrationOutcomeDescriptionMap } from '
|
|
1
|
+
export { default, migrationOutcomeDescriptionMap } from '../migration-map';
|
|
2
2
|
export type { IconMigrationMap, IconMigrationSizeGuidance } from '../types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentType, ReactNode, SVGProps as ReactSVGProps } from 'react';
|
|
2
|
-
import type { IconColor, IconColorPressed } from '@atlaskit/tokens/css-type-schema';
|
|
2
|
+
import type { IconColor, IconColorPressed, TextColor, TextColorPressed } from '@atlaskit/tokens/css-type-schema';
|
|
3
3
|
export type Size = 'small' | 'medium' | 'large' | 'xlarge';
|
|
4
4
|
export interface CustomGlyphProps extends ReactSVGProps<SVGSVGElement> {
|
|
5
5
|
/**
|
|
@@ -34,9 +34,9 @@ export interface GlyphColorProps {
|
|
|
34
34
|
*/
|
|
35
35
|
export interface NewGlyphColorProps {
|
|
36
36
|
/**
|
|
37
|
-
* Color for the icon. Supports any icon design token, or 'currentColor' to inherit the current text color.
|
|
37
|
+
* Color for the icon. Supports any icon or text design token, or 'currentColor' to inherit the current text color.
|
|
38
38
|
*/
|
|
39
|
-
color?: IconColor | IconColorPressed | 'currentColor';
|
|
39
|
+
color?: IconColor | IconColorPressed | Exclude<TextColor, 'transparent'> | TextColorPressed | 'currentColor';
|
|
40
40
|
}
|
|
41
41
|
export interface GlyphSizeProps {
|
|
42
42
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/icon",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.11.1",
|
|
4
4
|
"description": "An icon is a visual representation of a command, device, directory, or common action.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
34
|
-
"@atlaskit/tokens": "^1.
|
|
34
|
+
"@atlaskit/tokens": "^1.57.0",
|
|
35
35
|
"@babel/runtime": "^7.0.0",
|
|
36
36
|
"@emotion/react": "^11.7.1"
|
|
37
37
|
},
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
"@atlaskit/code": "^15.4.0",
|
|
46
46
|
"@atlaskit/ds-lib": "^2.3.0",
|
|
47
47
|
"@atlaskit/logo": "^14.1.0",
|
|
48
|
-
"@atlaskit/primitives": "^
|
|
48
|
+
"@atlaskit/primitives": "^12.0.0",
|
|
49
49
|
"@atlaskit/ssr": "*",
|
|
50
50
|
"@atlaskit/textfield": "^6.4.0",
|
|
51
51
|
"@atlaskit/theme": "^12.11.0",
|
|
52
52
|
"@atlaskit/toggle": "^13.2.0",
|
|
53
|
-
"@atlaskit/tooltip": "^18.
|
|
53
|
+
"@atlaskit/tooltip": "^18.6.0",
|
|
54
54
|
"@atlaskit/visual-regression": "*",
|
|
55
55
|
"@babel/core": "^7.20.0",
|
|
56
56
|
"@emotion/babel-preset-css-prop": "^10.0.7",
|