@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 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
- A React package that contains icons.
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
- Detailed docs and example usage can be found [here](https://atlaskit.atlassian.com/packages/design-system/icon).
14
- For adding a new icon to the icon set please follow the [adding new icons](https://developer.atlassian.com/cloud/framework/atlassian-frontend/documentation/02-adding-new-icons/) documentation.
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); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
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] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
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-background-default, #FFFFFF)",
9
- dark: "var(--ds-background-default, #1B2638)"
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.
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = CustomGlyphProps;
7
+
8
+ function CustomGlyphProps(props) {
9
+ return null;
10
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = SVGProps;
7
+
8
+ function SVGProps(props) {
9
+ return null;
10
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/icon",
3
- "version": "21.9.3",
3
+ "version": "21.10.3",
4
4
  "sideEffects": false
5
5
  }
@@ -1,6 +1,6 @@
1
1
  const themedBackground = {
2
- light: "var(--ds-background-default, #FFFFFF)",
3
- dark: "var(--ds-background-default, #1B2638)"
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.
@@ -0,0 +1,3 @@
1
+ export default function CustomGlyphProps(props) {
2
+ return null;
3
+ }
@@ -0,0 +1,3 @@
1
+ export default function SVGProps(props) {
2
+ return null;
3
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/icon",
3
- "version": "21.9.3",
3
+ "version": "21.10.3",
4
4
  "sideEffects": false
5
5
  }
@@ -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); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
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] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
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-background-default, #FFFFFF)",
3
- dark: "var(--ds-background-default, #1B2638)"
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.
@@ -0,0 +1,3 @@
1
+ export default function CustomGlyphProps(props) {
2
+ return null;
3
+ }
@@ -0,0 +1,3 @@
1
+ export default function SVGProps(props) {
2
+ return null;
3
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/icon",
3
- "version": "21.9.3",
3
+ "version": "21.10.3",
4
4
  "sideEffects": false
5
5
  }
@@ -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-background-default)";
6
+ export declare const getBackground: (mode?: ThemeModes) => "var(--ds-surface)";
@@ -0,0 +1,2 @@
1
+ import type { CustomGlyphProps as Props } from '../types';
2
+ export default function CustomGlyphProps(props: Props): null;
@@ -0,0 +1,2 @@
1
+ import type { SVGProps as Props } from '../types';
2
+ export default function SVGProps(props: Props): null;
@@ -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.9.3",
4
- "description": "An icon is used as a visual representation of common actions and commands to provide context.",
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.0.0",
38
- "@atlaskit/tokens": "^0.4.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.4.0",
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.2.0",
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",