@atlaskit/logo 15.0.0 → 15.1.0

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,13 @@
1
1
  # @atlaskit/logo
2
2
 
3
+ ## 15.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#174515](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/174515)
8
+ [`e948b27b6716a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e948b27b6716a) -
9
+ [ux] Add Focus product logo.
10
+
3
11
  ## 15.0.0
4
12
 
5
13
  ### Major Changes
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.FocusIcon = void 0;
8
+ var _react = _interopRequireDefault(require("react"));
9
+ var _tokens = require("@atlaskit/tokens");
10
+ var _constants = require("../constants");
11
+ var _utils = require("../utils");
12
+ var _wrapper = _interopRequireDefault(require("../wrapper"));
13
+ /* eslint-disable max-len */
14
+
15
+ var svg = function svg(_ref, colorMode) {
16
+ var appearance = _ref.appearance,
17
+ iconColor = _ref.iconColor;
18
+ var colors = {
19
+ iconColor: iconColor
20
+ };
21
+ if (appearance) {
22
+ colors = (0, _utils.getColorsFromAppearance)(appearance, colorMode);
23
+ }
24
+ return "<svg fill=\"none\" height=\"32\" viewBox=\"0 0 48 48\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t<path fill=\"".concat(colors.iconColor, "\" d=\"M45.4277 24.5018C41.4108 20.4849 34.8821 20.5276 30.908 24.5018L27.5636 27.8462C25.717 29.6927 22.7177 29.6927 20.8712 27.8462L18.0925 25.0675L10.8309 32.3291L13.6096 35.1078C19.4658 40.9641 28.9654 40.9641 34.8216 35.1078L45.4277 24.5018ZM3 23.5018C7.01684 27.5186 13.4637 27.5578 17.4805 23.5409L20.8676 20.1538C22.7142 18.3073 25.7135 18.3073 27.56 20.1538L30.3387 22.9325L37.6003 15.6709L34.8216 12.8922C28.9654 7.03593 19.4658 7.03593 13.6096 12.8922L3.00356 23.4982L3 23.5018Z\"/>\n\t\t</svg>\n\t\t");
25
+ };
26
+
27
+ /**
28
+ * __Focus icon__
29
+ *
30
+ * The Focus icon without an accompanying wordmark.
31
+ *
32
+ * - [Examples](https://atlassian.design/components/logo/examples)
33
+ * - [Code](https://atlassian.design/components/logo/code)
34
+ * - [Usage](https://atlassian.design/components/logo/usage)
35
+ */
36
+ var FocusIcon = exports.FocusIcon = function FocusIcon(_ref2) {
37
+ var appearance = _ref2.appearance,
38
+ _ref2$label = _ref2.label,
39
+ label = _ref2$label === void 0 ? 'Focus' : _ref2$label,
40
+ _ref2$size = _ref2.size,
41
+ size = _ref2$size === void 0 ? _constants.defaultLogoParams.size : _ref2$size,
42
+ testId = _ref2.testId,
43
+ _ref2$iconColor = _ref2.iconColor,
44
+ iconColor = _ref2$iconColor === void 0 ? _constants.defaultLogoParams.iconColor : _ref2$iconColor,
45
+ _ref2$textColor = _ref2.textColor,
46
+ textColor = _ref2$textColor === void 0 ? _constants.defaultLogoParams.textColor : _ref2$textColor;
47
+ var _useThemeObserver = (0, _tokens.useThemeObserver)(),
48
+ colorMode = _useThemeObserver.colorMode;
49
+ return /*#__PURE__*/_react.default.createElement(_wrapper.default, {
50
+ appearance: appearance,
51
+ label: label,
52
+ svg: svg({
53
+ appearance: appearance,
54
+ iconColor: iconColor
55
+ }, colorMode),
56
+ iconColor: iconColor,
57
+ size: size,
58
+ testId: testId,
59
+ textColor: textColor
60
+ });
61
+ };
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "FocusIcon", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _icon.FocusIcon;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "FocusLogo", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _logo.FocusLogo;
16
+ }
17
+ });
18
+ var _icon = require("./icon");
19
+ var _logo = require("./logo");
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.FocusLogo = void 0;
8
+ var _react = _interopRequireDefault(require("react"));
9
+ var _tokens = require("@atlaskit/tokens");
10
+ var _constants = require("../constants");
11
+ var _utils = require("../utils");
12
+ var _wrapper = _interopRequireDefault(require("../wrapper"));
13
+ /* eslint-disable max-len */
14
+
15
+ var svg = function svg(_ref, colorMode) {
16
+ var appearance = _ref.appearance,
17
+ iconColor = _ref.iconColor,
18
+ textColor = _ref.textColor;
19
+ var colors = {
20
+ iconColor: iconColor,
21
+ textColor: textColor
22
+ };
23
+ if (appearance) {
24
+ colors = (0, _utils.getColorsFromAppearance)(appearance, colorMode);
25
+ }
26
+ return "<svg fill=\"none\" height=\"32\" viewBox=\"0 0 168 48\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t<path fill=\"".concat(colors.iconColor, "\" d=\"M42.4277 24.5018C38.4108 20.4849 31.8821 20.5276 27.908 24.5018L24.5636 27.8462C22.717 29.6927 19.7177 29.6927 17.8712 27.8462L15.0925 25.0675L7.83088 32.3291L10.6096 35.1078C16.4658 40.9641 25.9654 40.9641 31.8216 35.1078L42.4277 24.5018ZM0 23.5018C4.01684 27.5186 10.4637 27.5578 14.4805 23.5409L17.8676 20.1538C19.7142 18.3073 22.7135 18.3073 24.56 20.1538L27.3387 22.9325L34.6003 15.6709L31.8216 12.8922C25.9654 7.03593 16.4658 7.03593 10.6096 12.8922L0.00355592 23.4982L0 23.5018Z\"/>\n\t\t<path fill=\"").concat(colors.textColor, "\" d=\"M167.405 31.746C167.405 35.564 164.921 38.462 158.757 38.462C155.307 38.462 152.501 37.68 150.753 36.76V32.574C152.731 33.724 156.043 34.828 158.941 34.828C161.977 34.828 163.541 33.586 163.541 31.792C163.541 30.044 162.207 29.032 157.837 27.974C152.731 26.732 150.569 24.754 150.569 20.982C150.569 16.98 153.651 14.542 158.895 14.542C161.885 14.542 164.599 15.278 166.301 16.198V20.292C163.541 18.912 161.287 18.176 158.849 18.176C155.951 18.176 154.387 19.188 154.387 20.982C154.387 22.592 155.491 23.604 159.723 24.616C164.829 25.858 167.405 27.744 167.405 31.746Z\"/>\n\t\t<path fill=\"").concat(colors.textColor, "\" d=\"M126.009 28.48V15.002H129.965V28.894C129.965 33.034 131.621 34.874 135.393 34.874C139.073 34.874 141.603 32.436 141.603 27.79V15.002H145.559V38.002H141.603V34.23C140.131 36.944 137.417 38.462 134.335 38.462C129.045 38.462 126.009 34.828 126.009 28.48Z\"/>\n\t\t<path fill=\"").concat(colors.textColor, "\" d=\"M121.953 33.862V37.404C120.573 38.14 118.457 38.462 116.341 38.462C108.153 38.462 104.335 33.494 104.335 26.456C104.335 19.51 108.153 14.542 116.341 14.542C118.411 14.542 120.021 14.818 121.815 15.646V19.326C120.343 18.636 118.779 18.222 116.617 18.222C110.637 18.222 108.199 21.994 108.199 26.456C108.199 30.918 110.683 34.69 116.709 34.69C119.055 34.69 120.527 34.368 121.953 33.862Z\"/>\n\t\t<path fill=\"").concat(colors.textColor, "\" d=\"M90.2616 38.462C83.3616 38.462 79.3136 33.356 79.3136 26.456C79.3136 19.556 83.3616 14.542 90.2616 14.542C97.1156 14.542 101.118 19.556 101.118 26.456C101.118 33.356 97.1156 38.462 90.2616 38.462ZM90.2616 18.222C85.3396 18.222 83.1776 22.086 83.1776 26.456C83.1776 30.826 85.3396 34.782 90.2616 34.782C95.1376 34.782 97.2536 30.826 97.2536 26.456C97.2536 22.086 95.1376 18.222 90.2616 18.222Z\"/>\n\t\t<path fill=\"").concat(colors.textColor, "\" d=\"M75.298 26.732H61.59V38.002H57.45V7.78003H76.862V11.736H61.59V22.776H75.298V26.732Z\"/>\n\t\t</svg>\n\t\t");
27
+ };
28
+
29
+ /**
30
+ * __Focus logo__
31
+ *
32
+ * The Focus logo with both the wordmark and the icon combined.
33
+ *
34
+ * - [Examples](https://atlassian.design/components/logo/examples)
35
+ * - [Code](https://atlassian.design/components/logo/code)
36
+ * - [Usage](https://atlassian.design/components/logo/usage)
37
+ */
38
+ var FocusLogo = exports.FocusLogo = function FocusLogo(_ref2) {
39
+ var appearance = _ref2.appearance,
40
+ _ref2$label = _ref2.label,
41
+ label = _ref2$label === void 0 ? 'Focus' : _ref2$label,
42
+ _ref2$size = _ref2.size,
43
+ size = _ref2$size === void 0 ? _constants.defaultLogoParams.size : _ref2$size,
44
+ testId = _ref2.testId,
45
+ _ref2$iconColor = _ref2.iconColor,
46
+ iconColor = _ref2$iconColor === void 0 ? _constants.defaultLogoParams.iconColor : _ref2$iconColor,
47
+ _ref2$textColor = _ref2.textColor,
48
+ textColor = _ref2$textColor === void 0 ? _constants.defaultLogoParams.textColor : _ref2$textColor;
49
+ var _useThemeObserver = (0, _tokens.useThemeObserver)(),
50
+ colorMode = _useThemeObserver.colorMode;
51
+ return /*#__PURE__*/_react.default.createElement(_wrapper.default, {
52
+ appearance: appearance,
53
+ label: label,
54
+ iconColor: iconColor,
55
+ size: size,
56
+ svg: svg({
57
+ appearance: appearance,
58
+ iconColor: iconColor,
59
+ textColor: textColor
60
+ }, colorMode),
61
+ testId: testId,
62
+ textColor: textColor
63
+ });
64
+ };
package/dist/cjs/index.js CHANGED
@@ -129,6 +129,18 @@ Object.defineProperty(exports, "ConfluenceLogo", {
129
129
  return _confluenceLogo.ConfluenceLogo;
130
130
  }
131
131
  });
132
+ Object.defineProperty(exports, "FocusIcon", {
133
+ enumerable: true,
134
+ get: function get() {
135
+ return _focusLogo.FocusIcon;
136
+ }
137
+ });
138
+ Object.defineProperty(exports, "FocusLogo", {
139
+ enumerable: true,
140
+ get: function get() {
141
+ return _focusLogo.FocusLogo;
142
+ }
143
+ });
132
144
  Object.defineProperty(exports, "GuardIcon", {
133
145
  enumerable: true,
134
146
  get: function get() {
@@ -319,6 +331,7 @@ var _atlasLogo = require("./atlas-logo");
319
331
  var _atlassianMarketplaceLogo = require("./atlassian-marketplace-logo");
320
332
  var _rovoLogo = require("./rovo-logo");
321
333
  var _guardLogo = require("./guard-logo");
334
+ var _focusLogo = require("./focus-logo");
322
335
  var _atlassianAccessLogo = require("./atlassian-access-logo");
323
336
  var _atlassianAdministrationLogo = require("./atlassian-administration-logo");
324
337
  var _atlassianAdminLogo = require("./atlassian-admin-logo");
@@ -0,0 +1,55 @@
1
+ /* eslint-disable max-len */
2
+ import React from 'react';
3
+ import { useThemeObserver } from '@atlaskit/tokens';
4
+ import { defaultLogoParams } from '../constants';
5
+ import { getColorsFromAppearance } from '../utils';
6
+ import Wrapper from '../wrapper';
7
+ const svg = ({
8
+ appearance,
9
+ iconColor
10
+ }, colorMode) => {
11
+ let colors = {
12
+ iconColor
13
+ };
14
+ if (appearance) {
15
+ colors = getColorsFromAppearance(appearance, colorMode);
16
+ }
17
+ return `<svg fill="none" height="32" viewBox="0 0 48 48" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg">
18
+ <path fill="${colors.iconColor}" d="M45.4277 24.5018C41.4108 20.4849 34.8821 20.5276 30.908 24.5018L27.5636 27.8462C25.717 29.6927 22.7177 29.6927 20.8712 27.8462L18.0925 25.0675L10.8309 32.3291L13.6096 35.1078C19.4658 40.9641 28.9654 40.9641 34.8216 35.1078L45.4277 24.5018ZM3 23.5018C7.01684 27.5186 13.4637 27.5578 17.4805 23.5409L20.8676 20.1538C22.7142 18.3073 25.7135 18.3073 27.56 20.1538L30.3387 22.9325L37.6003 15.6709L34.8216 12.8922C28.9654 7.03593 19.4658 7.03593 13.6096 12.8922L3.00356 23.4982L3 23.5018Z"/>
19
+ </svg>
20
+ `;
21
+ };
22
+
23
+ /**
24
+ * __Focus icon__
25
+ *
26
+ * The Focus icon without an accompanying wordmark.
27
+ *
28
+ * - [Examples](https://atlassian.design/components/logo/examples)
29
+ * - [Code](https://atlassian.design/components/logo/code)
30
+ * - [Usage](https://atlassian.design/components/logo/usage)
31
+ */
32
+ export const FocusIcon = ({
33
+ appearance,
34
+ label = 'Focus',
35
+ size = defaultLogoParams.size,
36
+ testId,
37
+ iconColor = defaultLogoParams.iconColor,
38
+ textColor = defaultLogoParams.textColor
39
+ }) => {
40
+ const {
41
+ colorMode
42
+ } = useThemeObserver();
43
+ return /*#__PURE__*/React.createElement(Wrapper, {
44
+ appearance: appearance,
45
+ label: label,
46
+ svg: svg({
47
+ appearance,
48
+ iconColor
49
+ }, colorMode),
50
+ iconColor: iconColor,
51
+ size: size,
52
+ testId: testId,
53
+ textColor: textColor
54
+ });
55
+ };
@@ -0,0 +1,2 @@
1
+ export { FocusIcon } from './icon';
2
+ export { FocusLogo } from './logo';
@@ -0,0 +1,63 @@
1
+ /* eslint-disable max-len */
2
+ import React from 'react';
3
+ import { useThemeObserver } from '@atlaskit/tokens';
4
+ import { defaultLogoParams } from '../constants';
5
+ import { getColorsFromAppearance } from '../utils';
6
+ import Wrapper from '../wrapper';
7
+ const svg = ({
8
+ appearance,
9
+ iconColor,
10
+ textColor
11
+ }, colorMode) => {
12
+ let colors = {
13
+ iconColor,
14
+ textColor
15
+ };
16
+ if (appearance) {
17
+ colors = getColorsFromAppearance(appearance, colorMode);
18
+ }
19
+ return `<svg fill="none" height="32" viewBox="0 0 168 48" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg">
20
+ <path fill="${colors.iconColor}" d="M42.4277 24.5018C38.4108 20.4849 31.8821 20.5276 27.908 24.5018L24.5636 27.8462C22.717 29.6927 19.7177 29.6927 17.8712 27.8462L15.0925 25.0675L7.83088 32.3291L10.6096 35.1078C16.4658 40.9641 25.9654 40.9641 31.8216 35.1078L42.4277 24.5018ZM0 23.5018C4.01684 27.5186 10.4637 27.5578 14.4805 23.5409L17.8676 20.1538C19.7142 18.3073 22.7135 18.3073 24.56 20.1538L27.3387 22.9325L34.6003 15.6709L31.8216 12.8922C25.9654 7.03593 16.4658 7.03593 10.6096 12.8922L0.00355592 23.4982L0 23.5018Z"/>
21
+ <path fill="${colors.textColor}" d="M167.405 31.746C167.405 35.564 164.921 38.462 158.757 38.462C155.307 38.462 152.501 37.68 150.753 36.76V32.574C152.731 33.724 156.043 34.828 158.941 34.828C161.977 34.828 163.541 33.586 163.541 31.792C163.541 30.044 162.207 29.032 157.837 27.974C152.731 26.732 150.569 24.754 150.569 20.982C150.569 16.98 153.651 14.542 158.895 14.542C161.885 14.542 164.599 15.278 166.301 16.198V20.292C163.541 18.912 161.287 18.176 158.849 18.176C155.951 18.176 154.387 19.188 154.387 20.982C154.387 22.592 155.491 23.604 159.723 24.616C164.829 25.858 167.405 27.744 167.405 31.746Z"/>
22
+ <path fill="${colors.textColor}" d="M126.009 28.48V15.002H129.965V28.894C129.965 33.034 131.621 34.874 135.393 34.874C139.073 34.874 141.603 32.436 141.603 27.79V15.002H145.559V38.002H141.603V34.23C140.131 36.944 137.417 38.462 134.335 38.462C129.045 38.462 126.009 34.828 126.009 28.48Z"/>
23
+ <path fill="${colors.textColor}" d="M121.953 33.862V37.404C120.573 38.14 118.457 38.462 116.341 38.462C108.153 38.462 104.335 33.494 104.335 26.456C104.335 19.51 108.153 14.542 116.341 14.542C118.411 14.542 120.021 14.818 121.815 15.646V19.326C120.343 18.636 118.779 18.222 116.617 18.222C110.637 18.222 108.199 21.994 108.199 26.456C108.199 30.918 110.683 34.69 116.709 34.69C119.055 34.69 120.527 34.368 121.953 33.862Z"/>
24
+ <path fill="${colors.textColor}" d="M90.2616 38.462C83.3616 38.462 79.3136 33.356 79.3136 26.456C79.3136 19.556 83.3616 14.542 90.2616 14.542C97.1156 14.542 101.118 19.556 101.118 26.456C101.118 33.356 97.1156 38.462 90.2616 38.462ZM90.2616 18.222C85.3396 18.222 83.1776 22.086 83.1776 26.456C83.1776 30.826 85.3396 34.782 90.2616 34.782C95.1376 34.782 97.2536 30.826 97.2536 26.456C97.2536 22.086 95.1376 18.222 90.2616 18.222Z"/>
25
+ <path fill="${colors.textColor}" d="M75.298 26.732H61.59V38.002H57.45V7.78003H76.862V11.736H61.59V22.776H75.298V26.732Z"/>
26
+ </svg>
27
+ `;
28
+ };
29
+
30
+ /**
31
+ * __Focus logo__
32
+ *
33
+ * The Focus logo with both the wordmark and the icon combined.
34
+ *
35
+ * - [Examples](https://atlassian.design/components/logo/examples)
36
+ * - [Code](https://atlassian.design/components/logo/code)
37
+ * - [Usage](https://atlassian.design/components/logo/usage)
38
+ */
39
+ export const FocusLogo = ({
40
+ appearance,
41
+ label = 'Focus',
42
+ size = defaultLogoParams.size,
43
+ testId,
44
+ iconColor = defaultLogoParams.iconColor,
45
+ textColor = defaultLogoParams.textColor
46
+ }) => {
47
+ const {
48
+ colorMode
49
+ } = useThemeObserver();
50
+ return /*#__PURE__*/React.createElement(Wrapper, {
51
+ appearance: appearance,
52
+ label: label,
53
+ iconColor: iconColor,
54
+ size: size,
55
+ svg: svg({
56
+ appearance,
57
+ iconColor,
58
+ textColor
59
+ }, colorMode),
60
+ testId: testId,
61
+ textColor: textColor
62
+ });
63
+ };
@@ -20,6 +20,7 @@ export { AtlasIcon, AtlasLogo } from './atlas-logo';
20
20
  export { AtlassianMarketplaceIcon, AtlassianMarketplaceLogo } from './atlassian-marketplace-logo';
21
21
  export { RovoIcon, RovoLogo } from './rovo-logo';
22
22
  export { GuardIcon, GuardLogo } from './guard-logo';
23
+ export { FocusIcon, FocusLogo } from './focus-logo';
23
24
  export { AtlassianAccessIcon, AtlassianAccessLogo } from './atlassian-access-logo';
24
25
  export { AtlassianAdministrationIcon, AtlassianAdministrationLogo } from './atlassian-administration-logo';
25
26
  export { AtlassianAdminIcon, AtlassianAdminLogo } from './atlassian-admin-logo';
@@ -0,0 +1,53 @@
1
+ /* eslint-disable max-len */
2
+ import React from 'react';
3
+ import { useThemeObserver } from '@atlaskit/tokens';
4
+ import { defaultLogoParams } from '../constants';
5
+ import { getColorsFromAppearance } from '../utils';
6
+ import Wrapper from '../wrapper';
7
+ var svg = function svg(_ref, colorMode) {
8
+ var appearance = _ref.appearance,
9
+ iconColor = _ref.iconColor;
10
+ var colors = {
11
+ iconColor: iconColor
12
+ };
13
+ if (appearance) {
14
+ colors = getColorsFromAppearance(appearance, colorMode);
15
+ }
16
+ return "<svg fill=\"none\" height=\"32\" viewBox=\"0 0 48 48\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t<path fill=\"".concat(colors.iconColor, "\" d=\"M45.4277 24.5018C41.4108 20.4849 34.8821 20.5276 30.908 24.5018L27.5636 27.8462C25.717 29.6927 22.7177 29.6927 20.8712 27.8462L18.0925 25.0675L10.8309 32.3291L13.6096 35.1078C19.4658 40.9641 28.9654 40.9641 34.8216 35.1078L45.4277 24.5018ZM3 23.5018C7.01684 27.5186 13.4637 27.5578 17.4805 23.5409L20.8676 20.1538C22.7142 18.3073 25.7135 18.3073 27.56 20.1538L30.3387 22.9325L37.6003 15.6709L34.8216 12.8922C28.9654 7.03593 19.4658 7.03593 13.6096 12.8922L3.00356 23.4982L3 23.5018Z\"/>\n\t\t</svg>\n\t\t");
17
+ };
18
+
19
+ /**
20
+ * __Focus icon__
21
+ *
22
+ * The Focus icon without an accompanying wordmark.
23
+ *
24
+ * - [Examples](https://atlassian.design/components/logo/examples)
25
+ * - [Code](https://atlassian.design/components/logo/code)
26
+ * - [Usage](https://atlassian.design/components/logo/usage)
27
+ */
28
+ export var FocusIcon = function FocusIcon(_ref2) {
29
+ var appearance = _ref2.appearance,
30
+ _ref2$label = _ref2.label,
31
+ label = _ref2$label === void 0 ? 'Focus' : _ref2$label,
32
+ _ref2$size = _ref2.size,
33
+ size = _ref2$size === void 0 ? defaultLogoParams.size : _ref2$size,
34
+ testId = _ref2.testId,
35
+ _ref2$iconColor = _ref2.iconColor,
36
+ iconColor = _ref2$iconColor === void 0 ? defaultLogoParams.iconColor : _ref2$iconColor,
37
+ _ref2$textColor = _ref2.textColor,
38
+ textColor = _ref2$textColor === void 0 ? defaultLogoParams.textColor : _ref2$textColor;
39
+ var _useThemeObserver = useThemeObserver(),
40
+ colorMode = _useThemeObserver.colorMode;
41
+ return /*#__PURE__*/React.createElement(Wrapper, {
42
+ appearance: appearance,
43
+ label: label,
44
+ svg: svg({
45
+ appearance: appearance,
46
+ iconColor: iconColor
47
+ }, colorMode),
48
+ iconColor: iconColor,
49
+ size: size,
50
+ testId: testId,
51
+ textColor: textColor
52
+ });
53
+ };
@@ -0,0 +1,2 @@
1
+ export { FocusIcon } from './icon';
2
+ export { FocusLogo } from './logo';
@@ -0,0 +1,56 @@
1
+ /* eslint-disable max-len */
2
+ import React from 'react';
3
+ import { useThemeObserver } from '@atlaskit/tokens';
4
+ import { defaultLogoParams } from '../constants';
5
+ import { getColorsFromAppearance } from '../utils';
6
+ import Wrapper from '../wrapper';
7
+ var svg = function svg(_ref, colorMode) {
8
+ var appearance = _ref.appearance,
9
+ iconColor = _ref.iconColor,
10
+ textColor = _ref.textColor;
11
+ var colors = {
12
+ iconColor: iconColor,
13
+ textColor: textColor
14
+ };
15
+ if (appearance) {
16
+ colors = getColorsFromAppearance(appearance, colorMode);
17
+ }
18
+ return "<svg fill=\"none\" height=\"32\" viewBox=\"0 0 168 48\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t<path fill=\"".concat(colors.iconColor, "\" d=\"M42.4277 24.5018C38.4108 20.4849 31.8821 20.5276 27.908 24.5018L24.5636 27.8462C22.717 29.6927 19.7177 29.6927 17.8712 27.8462L15.0925 25.0675L7.83088 32.3291L10.6096 35.1078C16.4658 40.9641 25.9654 40.9641 31.8216 35.1078L42.4277 24.5018ZM0 23.5018C4.01684 27.5186 10.4637 27.5578 14.4805 23.5409L17.8676 20.1538C19.7142 18.3073 22.7135 18.3073 24.56 20.1538L27.3387 22.9325L34.6003 15.6709L31.8216 12.8922C25.9654 7.03593 16.4658 7.03593 10.6096 12.8922L0.00355592 23.4982L0 23.5018Z\"/>\n\t\t<path fill=\"").concat(colors.textColor, "\" d=\"M167.405 31.746C167.405 35.564 164.921 38.462 158.757 38.462C155.307 38.462 152.501 37.68 150.753 36.76V32.574C152.731 33.724 156.043 34.828 158.941 34.828C161.977 34.828 163.541 33.586 163.541 31.792C163.541 30.044 162.207 29.032 157.837 27.974C152.731 26.732 150.569 24.754 150.569 20.982C150.569 16.98 153.651 14.542 158.895 14.542C161.885 14.542 164.599 15.278 166.301 16.198V20.292C163.541 18.912 161.287 18.176 158.849 18.176C155.951 18.176 154.387 19.188 154.387 20.982C154.387 22.592 155.491 23.604 159.723 24.616C164.829 25.858 167.405 27.744 167.405 31.746Z\"/>\n\t\t<path fill=\"").concat(colors.textColor, "\" d=\"M126.009 28.48V15.002H129.965V28.894C129.965 33.034 131.621 34.874 135.393 34.874C139.073 34.874 141.603 32.436 141.603 27.79V15.002H145.559V38.002H141.603V34.23C140.131 36.944 137.417 38.462 134.335 38.462C129.045 38.462 126.009 34.828 126.009 28.48Z\"/>\n\t\t<path fill=\"").concat(colors.textColor, "\" d=\"M121.953 33.862V37.404C120.573 38.14 118.457 38.462 116.341 38.462C108.153 38.462 104.335 33.494 104.335 26.456C104.335 19.51 108.153 14.542 116.341 14.542C118.411 14.542 120.021 14.818 121.815 15.646V19.326C120.343 18.636 118.779 18.222 116.617 18.222C110.637 18.222 108.199 21.994 108.199 26.456C108.199 30.918 110.683 34.69 116.709 34.69C119.055 34.69 120.527 34.368 121.953 33.862Z\"/>\n\t\t<path fill=\"").concat(colors.textColor, "\" d=\"M90.2616 38.462C83.3616 38.462 79.3136 33.356 79.3136 26.456C79.3136 19.556 83.3616 14.542 90.2616 14.542C97.1156 14.542 101.118 19.556 101.118 26.456C101.118 33.356 97.1156 38.462 90.2616 38.462ZM90.2616 18.222C85.3396 18.222 83.1776 22.086 83.1776 26.456C83.1776 30.826 85.3396 34.782 90.2616 34.782C95.1376 34.782 97.2536 30.826 97.2536 26.456C97.2536 22.086 95.1376 18.222 90.2616 18.222Z\"/>\n\t\t<path fill=\"").concat(colors.textColor, "\" d=\"M75.298 26.732H61.59V38.002H57.45V7.78003H76.862V11.736H61.59V22.776H75.298V26.732Z\"/>\n\t\t</svg>\n\t\t");
19
+ };
20
+
21
+ /**
22
+ * __Focus logo__
23
+ *
24
+ * The Focus logo with both the wordmark and the icon combined.
25
+ *
26
+ * - [Examples](https://atlassian.design/components/logo/examples)
27
+ * - [Code](https://atlassian.design/components/logo/code)
28
+ * - [Usage](https://atlassian.design/components/logo/usage)
29
+ */
30
+ export var FocusLogo = function FocusLogo(_ref2) {
31
+ var appearance = _ref2.appearance,
32
+ _ref2$label = _ref2.label,
33
+ label = _ref2$label === void 0 ? 'Focus' : _ref2$label,
34
+ _ref2$size = _ref2.size,
35
+ size = _ref2$size === void 0 ? defaultLogoParams.size : _ref2$size,
36
+ testId = _ref2.testId,
37
+ _ref2$iconColor = _ref2.iconColor,
38
+ iconColor = _ref2$iconColor === void 0 ? defaultLogoParams.iconColor : _ref2$iconColor,
39
+ _ref2$textColor = _ref2.textColor,
40
+ textColor = _ref2$textColor === void 0 ? defaultLogoParams.textColor : _ref2$textColor;
41
+ var _useThemeObserver = useThemeObserver(),
42
+ colorMode = _useThemeObserver.colorMode;
43
+ return /*#__PURE__*/React.createElement(Wrapper, {
44
+ appearance: appearance,
45
+ label: label,
46
+ iconColor: iconColor,
47
+ size: size,
48
+ svg: svg({
49
+ appearance: appearance,
50
+ iconColor: iconColor,
51
+ textColor: textColor
52
+ }, colorMode),
53
+ testId: testId,
54
+ textColor: textColor
55
+ });
56
+ };
package/dist/esm/index.js CHANGED
@@ -20,6 +20,7 @@ export { AtlasIcon, AtlasLogo } from './atlas-logo';
20
20
  export { AtlassianMarketplaceIcon, AtlassianMarketplaceLogo } from './atlassian-marketplace-logo';
21
21
  export { RovoIcon, RovoLogo } from './rovo-logo';
22
22
  export { GuardIcon, GuardLogo } from './guard-logo';
23
+ export { FocusIcon, FocusLogo } from './focus-logo';
23
24
  export { AtlassianAccessIcon, AtlassianAccessLogo } from './atlassian-access-logo';
24
25
  export { AtlassianAdministrationIcon, AtlassianAdministrationLogo } from './atlassian-administration-logo';
25
26
  export { AtlassianAdminIcon, AtlassianAdminLogo } from './atlassian-admin-logo';
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import type { LogoProps } from '../types';
3
+ /**
4
+ * __Focus icon__
5
+ *
6
+ * The Focus icon without an accompanying wordmark.
7
+ *
8
+ * - [Examples](https://atlassian.design/components/logo/examples)
9
+ * - [Code](https://atlassian.design/components/logo/code)
10
+ * - [Usage](https://atlassian.design/components/logo/usage)
11
+ */
12
+ export declare const FocusIcon: ({ appearance, label, size, testId, iconColor, textColor, }: LogoProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { FocusIcon } from './icon';
2
+ export { FocusLogo } from './logo';
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import type { LogoProps } from '../types';
3
+ /**
4
+ * __Focus logo__
5
+ *
6
+ * The Focus logo with both the wordmark and the icon combined.
7
+ *
8
+ * - [Examples](https://atlassian.design/components/logo/examples)
9
+ * - [Code](https://atlassian.design/components/logo/code)
10
+ * - [Usage](https://atlassian.design/components/logo/usage)
11
+ */
12
+ export declare const FocusLogo: ({ appearance, label, size, testId, iconColor, textColor, }: LogoProps) => JSX.Element;
@@ -21,6 +21,7 @@ export { AtlasIcon, AtlasLogo } from './atlas-logo';
21
21
  export { AtlassianMarketplaceIcon, AtlassianMarketplaceLogo } from './atlassian-marketplace-logo';
22
22
  export { RovoIcon, RovoLogo } from './rovo-logo';
23
23
  export { GuardIcon, GuardLogo } from './guard-logo';
24
+ export { FocusIcon, FocusLogo } from './focus-logo';
24
25
  export { AtlassianAccessIcon, AtlassianAccessLogo } from './atlassian-access-logo';
25
26
  export { AtlassianAdministrationIcon, AtlassianAdministrationLogo, } from './atlassian-administration-logo';
26
27
  export { AtlassianAdminIcon, AtlassianAdminLogo } from './atlassian-admin-logo';
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import type { LogoProps } from '../types';
3
+ /**
4
+ * __Focus icon__
5
+ *
6
+ * The Focus icon without an accompanying wordmark.
7
+ *
8
+ * - [Examples](https://atlassian.design/components/logo/examples)
9
+ * - [Code](https://atlassian.design/components/logo/code)
10
+ * - [Usage](https://atlassian.design/components/logo/usage)
11
+ */
12
+ export declare const FocusIcon: ({ appearance, label, size, testId, iconColor, textColor, }: LogoProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { FocusIcon } from './icon';
2
+ export { FocusLogo } from './logo';
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import type { LogoProps } from '../types';
3
+ /**
4
+ * __Focus logo__
5
+ *
6
+ * The Focus logo with both the wordmark and the icon combined.
7
+ *
8
+ * - [Examples](https://atlassian.design/components/logo/examples)
9
+ * - [Code](https://atlassian.design/components/logo/code)
10
+ * - [Usage](https://atlassian.design/components/logo/usage)
11
+ */
12
+ export declare const FocusLogo: ({ appearance, label, size, testId, iconColor, textColor, }: LogoProps) => JSX.Element;
@@ -21,6 +21,7 @@ export { AtlasIcon, AtlasLogo } from './atlas-logo';
21
21
  export { AtlassianMarketplaceIcon, AtlassianMarketplaceLogo } from './atlassian-marketplace-logo';
22
22
  export { RovoIcon, RovoLogo } from './rovo-logo';
23
23
  export { GuardIcon, GuardLogo } from './guard-logo';
24
+ export { FocusIcon, FocusLogo } from './focus-logo';
24
25
  export { AtlassianAccessIcon, AtlassianAccessLogo } from './atlassian-access-logo';
25
26
  export { AtlassianAdministrationIcon, AtlassianAdministrationLogo, } from './atlassian-administration-logo';
26
27
  export { AtlassianAdminIcon, AtlassianAdminLogo } from './atlassian-admin-logo';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/logo",
3
- "version": "15.0.0",
3
+ "version": "15.1.0",
4
4
  "description": "A logo is a visual representation of a brand or product. It can be a word or an image, or a combination of both.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"