@atlaskit/icon 21.9.3 → 21.10.3
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 +33 -0
- package/README.md +4 -3
- package/dist/cjs/components/icon.js +2 -2
- package/dist/cjs/components/utils.js +2 -2
- package/dist/cjs/extract-react-types/custom-glyph.js +10 -0
- package/dist/cjs/extract-react-types/svg.js +10 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/utils.js +2 -2
- package/dist/es2019/extract-react-types/custom-glyph.js +3 -0
- package/dist/es2019/extract-react-types/svg.js +3 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/icon.js +2 -2
- package/dist/esm/components/utils.js +2 -2
- package/dist/esm/extract-react-types/custom-glyph.js +3 -0
- package/dist/esm/extract-react-types/svg.js +3 -0
- package/dist/esm/version.json +1 -1
- package/dist/types/components/utils.d.ts +1 -1
- package/dist/types/extract-react-types/custom-glyph.d.ts +2 -0
- package/dist/types/extract-react-types/svg.d.ts +2 -0
- package/dist/types/types.d.ts +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# @atlaskit/icon
|
|
2
2
|
|
|
3
|
+
## 21.10.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`58884c2f6c1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/58884c2f6c1) - Internal code change turning on a new linting rule.
|
|
8
|
+
|
|
9
|
+
## 21.10.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Updates usage of deprecated token names so they're aligned with the latest naming conventions. No UI or visual changes
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
16
|
+
## 21.10.1
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
22
|
+
## 21.10.0
|
|
23
|
+
|
|
24
|
+
### Minor Changes
|
|
25
|
+
|
|
26
|
+
- [`1c835620aa5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1c835620aa5) - **Note**: It is a re-release of the wrongly `patched` version `21.9.2` that should have been a `minor` release.
|
|
27
|
+
|
|
28
|
+
CETI-16 added remove emoji icon so that it appears in mobilekit too
|
|
29
|
+
|
|
30
|
+
### Patch Changes
|
|
31
|
+
|
|
32
|
+
- Updated dependencies
|
|
33
|
+
|
|
3
34
|
## 21.9.3
|
|
4
35
|
|
|
5
36
|
### Patch Changes
|
|
@@ -10,6 +41,8 @@
|
|
|
10
41
|
|
|
11
42
|
### Minor Changes
|
|
12
43
|
|
|
44
|
+
_WRONG RELEASE TYPE - DON'T USE_
|
|
45
|
+
|
|
13
46
|
- [`229177bb85d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/229177bb85d) - CETI-16 added remove emoji icon so that it appears in mobilekit too
|
|
14
47
|
|
|
15
48
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Icon
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
An icon is a visual representation of a command, device, directory, or common action.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -10,5 +10,6 @@ yarn add @atlaskit/icon
|
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
Icons should be used intentionally to maximize comprehension and reduce cognitive load. Use it to call attention to a particular action, command, or section. If you’re questioning an icon’s use, it probably doesn’t need to be used.
|
|
14
|
+
|
|
15
|
+
To search through all the icons we have in our system, have a look at our [icon explorer](https://atlassian.design/components/icon/icon-explorer).
|
|
@@ -21,9 +21,9 @@ var _utils = require("./utils");
|
|
|
21
21
|
|
|
22
22
|
var _styles = require("./styles");
|
|
23
23
|
|
|
24
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
24
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
25
25
|
|
|
26
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
26
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
27
27
|
|
|
28
28
|
var iconStyles = (0, _core.css)({
|
|
29
29
|
display: 'inline-block',
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.getBackground = void 0;
|
|
7
7
|
var themedBackground = {
|
|
8
|
-
light: "var(--ds-
|
|
9
|
-
dark: "var(--ds-
|
|
8
|
+
light: "var(--ds-surface, #FFFFFF)",
|
|
9
|
+
dark: "var(--ds-surface, #1B2638)"
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
12
|
* Returns the background color depending on the passed through mode.
|
package/dist/cjs/version.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const themedBackground = {
|
|
2
|
-
light: "var(--ds-
|
|
3
|
-
dark: "var(--ds-
|
|
2
|
+
light: "var(--ds-surface, #FFFFFF)",
|
|
3
|
+
dark: "var(--ds-surface, #1B2638)"
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
6
|
* Returns the background color depending on the passed through mode.
|
package/dist/es2019/version.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
|
|
4
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
4
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
5
5
|
|
|
6
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
6
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7
7
|
|
|
8
8
|
/** @jsx jsx */
|
|
9
9
|
import { memo } from 'react';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var themedBackground = {
|
|
2
|
-
light: "var(--ds-
|
|
3
|
-
dark: "var(--ds-
|
|
2
|
+
light: "var(--ds-surface, #FFFFFF)",
|
|
3
|
+
dark: "var(--ds-surface, #1B2638)"
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
6
|
* Returns the background color depending on the passed through mode.
|
package/dist/esm/version.json
CHANGED
|
@@ -3,4 +3,4 @@ import type { ThemeModes } from '@atlaskit/theme/types';
|
|
|
3
3
|
* Returns the background color depending on the passed through mode.
|
|
4
4
|
* @param mode
|
|
5
5
|
*/
|
|
6
|
-
export declare const getBackground: (mode?: ThemeModes) => "var(--ds-
|
|
6
|
+
export declare const getBackground: (mode?: ThemeModes) => "var(--ds-surface)";
|
package/dist/types/types.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export interface OtherGlyphProps {
|
|
|
38
38
|
/**
|
|
39
39
|
* Text used to describe what the icon is in context.
|
|
40
40
|
* A label is needed when there is no pairing visible text next to the icon.
|
|
41
|
-
* An empty string marks the icon as presentation only
|
|
41
|
+
* An empty string marks the icon as presentation only.
|
|
42
42
|
*/
|
|
43
43
|
label: string;
|
|
44
44
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/icon",
|
|
3
|
-
"version": "21.
|
|
4
|
-
"description": "An icon is
|
|
3
|
+
"version": "21.10.3",
|
|
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/"
|
|
7
7
|
},
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
|
15
15
|
"sideEffects": false,
|
|
16
16
|
"atlaskit:src": "src/index.tsx",
|
|
17
|
+
"homepage": "https://atlassian.design/components/icon/",
|
|
17
18
|
"atlassian": {
|
|
18
19
|
"team": "Design System Team",
|
|
19
20
|
"releaseModel": "scheduled",
|
|
@@ -34,8 +35,8 @@
|
|
|
34
35
|
"build-glyphs": "ts-node --project ../../../tsconfig.node.json ./build/index.tsx"
|
|
35
36
|
},
|
|
36
37
|
"dependencies": {
|
|
37
|
-
"@atlaskit/theme": "^12.
|
|
38
|
-
"@atlaskit/tokens": "^0.
|
|
38
|
+
"@atlaskit/theme": "^12.1.0",
|
|
39
|
+
"@atlaskit/tokens": "^0.6.0",
|
|
39
40
|
"@babel/runtime": "^7.0.0",
|
|
40
41
|
"@emotion/core": "^10.0.9"
|
|
41
42
|
},
|
|
@@ -44,13 +45,12 @@
|
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
46
47
|
"@af/icon-build-process": "^0.3.0",
|
|
47
|
-
"@atlaskit/build-utils": "*",
|
|
48
48
|
"@atlaskit/button": "^16.1.0",
|
|
49
49
|
"@atlaskit/docs": "*",
|
|
50
|
-
"@atlaskit/dynamic-table": "^14.
|
|
50
|
+
"@atlaskit/dynamic-table": "^14.5.0",
|
|
51
51
|
"@atlaskit/icon-file-type": "^6.3.0",
|
|
52
52
|
"@atlaskit/icon-object": "^6.2.0",
|
|
53
|
-
"@atlaskit/icon-priority": "^6.
|
|
53
|
+
"@atlaskit/icon-priority": "^6.3.0",
|
|
54
54
|
"@atlaskit/logo": "^13.5.0",
|
|
55
55
|
"@atlaskit/modal-dialog": "^12.2.0",
|
|
56
56
|
"@atlaskit/section-message": "^6.1.0",
|