@atlaskit/logo 14.3.5 → 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 +22 -0
- package/dist/cjs/constants.js +1 -9
- package/dist/cjs/focus-logo/icon.js +61 -0
- package/dist/cjs/focus-logo/index.js +19 -0
- package/dist/cjs/focus-logo/logo.js +64 -0
- package/dist/cjs/index.js +13 -0
- package/dist/cjs/wrapper.compiled.css +15 -0
- package/dist/cjs/wrapper.js +31 -52
- package/dist/es2019/constants.js +0 -8
- package/dist/es2019/focus-logo/icon.js +55 -0
- package/dist/es2019/focus-logo/index.js +2 -0
- package/dist/es2019/focus-logo/logo.js +63 -0
- package/dist/es2019/index.js +1 -0
- package/dist/es2019/wrapper.compiled.css +15 -0
- package/dist/es2019/wrapper.js +17 -38
- package/dist/esm/constants.js +0 -8
- package/dist/esm/focus-logo/icon.js +53 -0
- package/dist/esm/focus-logo/index.js +2 -0
- package/dist/esm/focus-logo/logo.js +56 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/wrapper.compiled.css +15 -0
- package/dist/esm/wrapper.js +28 -53
- package/dist/types/constants.d.ts +0 -7
- package/dist/types/focus-logo/icon.d.ts +12 -0
- package/dist/types/focus-logo/index.d.ts +2 -0
- package/dist/types/focus-logo/logo.d.ts +12 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/wrapper.d.ts +2 -2
- package/dist/types-ts4.5/constants.d.ts +0 -7
- package/dist/types-ts4.5/focus-logo/icon.d.ts +12 -0
- package/dist/types-ts4.5/focus-logo/index.d.ts +2 -0
- package/dist/types-ts4.5/focus-logo/logo.d.ts +12 -0
- package/dist/types-ts4.5/index.d.ts +1 -0
- package/dist/types-ts4.5/wrapper.d.ts +2 -2
- package/package.json +7 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
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
|
+
|
|
11
|
+
## 15.0.0
|
|
12
|
+
|
|
13
|
+
### Major Changes
|
|
14
|
+
|
|
15
|
+
- [#170937](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/170937)
|
|
16
|
+
[`2f502fec31157`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2f502fec31157) -
|
|
17
|
+
Migrated from `@emotion/react` to `@compiled/react` in order to improve performance, align with
|
|
18
|
+
the rest of the Atlaskit techstack, and support React 18 Streaming SSR.
|
|
19
|
+
|
|
20
|
+
Please note, in order to use this version of `@atlaskit/logo`, you will need to ensure that your
|
|
21
|
+
bundler is configured to handle `.css` imports correctly. Most bundlers come with built-in support
|
|
22
|
+
for `.css` imports, so you may not need to do anything. If you are using a different bundler,
|
|
23
|
+
please refer to the documentation for that bundler to understand how to handle `.css` imports.
|
|
24
|
+
|
|
3
25
|
## 14.3.5
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/dist/cjs/constants.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.legacyDefaultLogoParams = exports.defaultLogoParams = exports.DefaultProps = void 0;
|
|
7
7
|
/**
|
|
8
8
|
* These are the default parameters for LogoProps if the user does not specify values.
|
|
9
9
|
*/
|
|
@@ -22,14 +22,6 @@ var legacyDefaultLogoParams = exports.legacyDefaultLogoParams = {
|
|
|
22
22
|
* The props for the <Wrapper /> that takes the svg and turns it into a component.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
var sizes = exports.sizes = {
|
|
26
|
-
xsmall: 16,
|
|
27
|
-
small: 24,
|
|
28
|
-
medium: 32,
|
|
29
|
-
large: 40,
|
|
30
|
-
xlarge: 48
|
|
31
|
-
};
|
|
32
|
-
|
|
33
25
|
/**
|
|
34
26
|
* In order to pass linting rules, these props were renamed to be more descriptive i.e. props renamed to LogoProps and
|
|
35
27
|
* defaultParams to defaultLogoParams. However, this is a breaking change as it is a file with public entry points. The code
|
|
@@ -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,15 @@
|
|
|
1
|
+
._1e0c1o8l{display:inline-block}
|
|
2
|
+
._3se11kw7 >svg{fill:inherit}
|
|
3
|
+
._4t3i1tcg{height:24px}
|
|
4
|
+
._4t3i1ylp{height:40px}
|
|
5
|
+
._4t3i7vkz{height:1pc}
|
|
6
|
+
._4t3ickbl{height:3pc}
|
|
7
|
+
._4t3izwfg{height:2pc}
|
|
8
|
+
._kqswh2mm{position:relative}
|
|
9
|
+
._lswu1xf6{fill:var(--logo-fill)}
|
|
10
|
+
._o5724jg8{white-space:normal}
|
|
11
|
+
._syaz1vry{color:var(--logo-color)}
|
|
12
|
+
._uiztglyw{-webkit-user-select:none;-ms-user-select:none;user-select:none}
|
|
13
|
+
._vc881r31 stop{stop-color:currentColor}
|
|
14
|
+
._vwz4kb7n{line-height:1}
|
|
15
|
+
._zbji1osq >svg{height:100%}
|
package/dist/cjs/wrapper.js
CHANGED
|
@@ -1,85 +1,64 @@
|
|
|
1
|
+
/* wrapper.tsx generated by @compiled/babel-plugin v0.32.2 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
6
|
Object.defineProperty(exports, "__esModule", {
|
|
5
7
|
value: true
|
|
6
8
|
});
|
|
7
9
|
exports.default = void 0;
|
|
10
|
+
require("./wrapper.compiled.css");
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _runtime = require("@compiled/react/runtime");
|
|
8
13
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
15
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
12
|
-
var _react = require("@emotion/react");
|
|
13
|
-
var _constants = require("./constants");
|
|
14
16
|
var _excluded = ["label", "svg", "size", "appearance", "iconColor", "textColor", "testId"];
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
* @jsx jsx
|
|
18
|
-
*/
|
|
19
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
17
|
+
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); }
|
|
18
|
+
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 && {}.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; }
|
|
20
19
|
var CSS_VAR_COLOR = '--logo-color';
|
|
21
20
|
var CSS_VAR_FILL = '--logo-fill';
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
'> svg': {
|
|
32
|
-
height: '100%',
|
|
33
|
-
fill: 'inherit'
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
var stopColorStyles = (0, _react.css)({
|
|
37
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
38
|
-
stop: {
|
|
39
|
-
stopColor: 'currentColor'
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
var sizeStyles = Object.entries(_constants.sizes).reduce(function (acc, _ref) {
|
|
43
|
-
var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
|
|
44
|
-
key = _ref2[0],
|
|
45
|
-
val = _ref2[1];
|
|
46
|
-
acc[key] = (0, _react.css)({
|
|
47
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
48
|
-
height: "".concat(val, "px")
|
|
49
|
-
});
|
|
50
|
-
return acc;
|
|
51
|
-
}, {});
|
|
21
|
+
var styles = {
|
|
22
|
+
root: "_1e0c1o8l _kqswh2mm _syaz1vry _lswu1xf6 _vwz4kb7n _uiztglyw _o5724jg8 _zbji1osq _3se11kw7",
|
|
23
|
+
stop: "_vc881r31",
|
|
24
|
+
xsmall: "_4t3i7vkz",
|
|
25
|
+
small: "_4t3i1tcg",
|
|
26
|
+
medium: "_4t3izwfg",
|
|
27
|
+
large: "_4t3i1ylp",
|
|
28
|
+
xlarge: "_4t3ickbl"
|
|
29
|
+
};
|
|
52
30
|
|
|
53
31
|
/**
|
|
54
32
|
* __Wrapper__
|
|
55
33
|
*
|
|
56
34
|
* An internal component used by `@atlaskit/logo` to render logo SVGs with correct styles.
|
|
57
35
|
*/
|
|
58
|
-
var Wrapper = function Wrapper(
|
|
59
|
-
var
|
|
60
|
-
var label =
|
|
61
|
-
svg =
|
|
62
|
-
size =
|
|
63
|
-
appearance =
|
|
64
|
-
iconColor =
|
|
65
|
-
textColor =
|
|
66
|
-
userDefinedTestId =
|
|
67
|
-
rest = (0, _objectWithoutProperties2.default)(
|
|
36
|
+
var Wrapper = function Wrapper(_ref) {
|
|
37
|
+
var _ref2;
|
|
38
|
+
var label = _ref.label,
|
|
39
|
+
svg = _ref.svg,
|
|
40
|
+
size = _ref.size,
|
|
41
|
+
appearance = _ref.appearance,
|
|
42
|
+
iconColor = _ref.iconColor,
|
|
43
|
+
textColor = _ref.textColor,
|
|
44
|
+
userDefinedTestId = _ref.testId,
|
|
45
|
+
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
68
46
|
// Only required for old logos with gradients, which set gradient values to `inherit` when no appearance is provided
|
|
69
47
|
var shouldApplyStopColor = appearance === undefined;
|
|
70
48
|
var testId = userDefinedTestId && "".concat(userDefinedTestId, "--wrapper");
|
|
71
|
-
return
|
|
72
|
-
css: [baseWrapperStyles, shouldApplyStopColor && stopColorStyles, size && sizeStyles[size]],
|
|
49
|
+
return /*#__PURE__*/React.createElement("span", (0, _extends2.default)({
|
|
73
50
|
"data-testid": testId
|
|
74
51
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
75
52
|
,
|
|
76
|
-
style: (
|
|
53
|
+
style: (_ref2 = {}, (0, _defineProperty2.default)(_ref2, CSS_VAR_COLOR, iconColor), (0, _defineProperty2.default)(_ref2, CSS_VAR_FILL, textColor), _ref2),
|
|
77
54
|
"aria-label": label ? label : undefined,
|
|
78
55
|
role: label ? 'img' : undefined,
|
|
79
56
|
dangerouslySetInnerHTML: {
|
|
80
57
|
__html: svg
|
|
81
58
|
}
|
|
82
59
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
83
|
-
}, rest
|
|
60
|
+
}, rest, {
|
|
61
|
+
className: (0, _runtime.ax)([styles.root, shouldApplyStopColor && styles.stop, size && styles[size]])
|
|
62
|
+
}));
|
|
84
63
|
};
|
|
85
64
|
var _default = exports.default = Wrapper;
|
package/dist/es2019/constants.js
CHANGED
|
@@ -16,14 +16,6 @@ export const legacyDefaultLogoParams = {
|
|
|
16
16
|
* The props for the <Wrapper /> that takes the svg and turns it into a component.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
export const sizes = {
|
|
20
|
-
xsmall: 16,
|
|
21
|
-
small: 24,
|
|
22
|
-
medium: 32,
|
|
23
|
-
large: 40,
|
|
24
|
-
xlarge: 48
|
|
25
|
-
};
|
|
26
|
-
|
|
27
19
|
/**
|
|
28
20
|
* In order to pass linting rules, these props were renamed to be more descriptive i.e. props renamed to LogoProps and
|
|
29
21
|
* defaultParams to defaultLogoParams. However, this is a breaking change as it is a file with public entry points. The code
|
|
@@ -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,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
|
+
};
|
package/dist/es2019/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,15 @@
|
|
|
1
|
+
._1e0c1o8l{display:inline-block}
|
|
2
|
+
._3se11kw7 >svg{fill:inherit}
|
|
3
|
+
._4t3i1tcg{height:24px}
|
|
4
|
+
._4t3i1ylp{height:40px}
|
|
5
|
+
._4t3i7vkz{height:1pc}
|
|
6
|
+
._4t3ickbl{height:3pc}
|
|
7
|
+
._4t3izwfg{height:2pc}
|
|
8
|
+
._kqswh2mm{position:relative}
|
|
9
|
+
._lswu1xf6{fill:var(--logo-fill)}
|
|
10
|
+
._o5724jg8{white-space:normal}
|
|
11
|
+
._syaz1vry{color:var(--logo-color)}
|
|
12
|
+
._uiztglyw{-webkit-user-select:none;-ms-user-select:none;user-select:none}
|
|
13
|
+
._vc881r31 stop{stop-color:currentColor}
|
|
14
|
+
._vwz4kb7n{line-height:1}
|
|
15
|
+
._zbji1osq >svg{height:100%}
|
package/dist/es2019/wrapper.js
CHANGED
|
@@ -1,41 +1,19 @@
|
|
|
1
|
+
/* wrapper.tsx generated by @compiled/babel-plugin v0.32.2 */
|
|
1
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
|
-
import { css, jsx } from '@emotion/react';
|
|
9
|
-
import { sizes } from './constants';
|
|
3
|
+
import "./wrapper.compiled.css";
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
10
6
|
const CSS_VAR_COLOR = '--logo-color';
|
|
11
7
|
const CSS_VAR_FILL = '--logo-fill';
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
'> svg': {
|
|
22
|
-
height: '100%',
|
|
23
|
-
fill: 'inherit'
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
const stopColorStyles = css({
|
|
27
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
28
|
-
stop: {
|
|
29
|
-
stopColor: 'currentColor'
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
const sizeStyles = Object.entries(sizes).reduce((acc, [key, val]) => {
|
|
33
|
-
acc[key] = css({
|
|
34
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
35
|
-
height: `${val}px`
|
|
36
|
-
});
|
|
37
|
-
return acc;
|
|
38
|
-
}, {});
|
|
8
|
+
const styles = {
|
|
9
|
+
root: "_1e0c1o8l _kqswh2mm _syaz1vry _lswu1xf6 _vwz4kb7n _uiztglyw _o5724jg8 _zbji1osq _3se11kw7",
|
|
10
|
+
stop: "_vc881r31",
|
|
11
|
+
xsmall: "_4t3i7vkz",
|
|
12
|
+
small: "_4t3i1tcg",
|
|
13
|
+
medium: "_4t3izwfg",
|
|
14
|
+
large: "_4t3i1ylp",
|
|
15
|
+
xlarge: "_4t3ickbl"
|
|
16
|
+
};
|
|
39
17
|
|
|
40
18
|
/**
|
|
41
19
|
* __Wrapper__
|
|
@@ -55,8 +33,7 @@ const Wrapper = ({
|
|
|
55
33
|
// Only required for old logos with gradients, which set gradient values to `inherit` when no appearance is provided
|
|
56
34
|
const shouldApplyStopColor = appearance === undefined;
|
|
57
35
|
const testId = userDefinedTestId && `${userDefinedTestId}--wrapper`;
|
|
58
|
-
return
|
|
59
|
-
css: [baseWrapperStyles, shouldApplyStopColor && stopColorStyles, size && sizeStyles[size]],
|
|
36
|
+
return /*#__PURE__*/React.createElement("span", _extends({
|
|
60
37
|
"data-testid": testId
|
|
61
38
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
62
39
|
,
|
|
@@ -70,6 +47,8 @@ const Wrapper = ({
|
|
|
70
47
|
__html: svg
|
|
71
48
|
}
|
|
72
49
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
73
|
-
}, rest
|
|
50
|
+
}, rest, {
|
|
51
|
+
className: ax([styles.root, shouldApplyStopColor && styles.stop, size && styles[size]])
|
|
52
|
+
}));
|
|
74
53
|
};
|
|
75
54
|
export default Wrapper;
|
package/dist/esm/constants.js
CHANGED
|
@@ -16,14 +16,6 @@ export var legacyDefaultLogoParams = {
|
|
|
16
16
|
* The props for the <Wrapper /> that takes the svg and turns it into a component.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
export var sizes = {
|
|
20
|
-
xsmall: 16,
|
|
21
|
-
small: 24,
|
|
22
|
-
medium: 32,
|
|
23
|
-
large: 40,
|
|
24
|
-
xlarge: 48
|
|
25
|
-
};
|
|
26
|
-
|
|
27
19
|
/**
|
|
28
20
|
* In order to pass linting rules, these props were renamed to be more descriptive i.e. props renamed to LogoProps and
|
|
29
21
|
* defaultParams to defaultLogoParams. However, this is a breaking change as it is a file with public entry points. The code
|
|
@@ -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,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,15 @@
|
|
|
1
|
+
._1e0c1o8l{display:inline-block}
|
|
2
|
+
._3se11kw7 >svg{fill:inherit}
|
|
3
|
+
._4t3i1tcg{height:24px}
|
|
4
|
+
._4t3i1ylp{height:40px}
|
|
5
|
+
._4t3i7vkz{height:1pc}
|
|
6
|
+
._4t3ickbl{height:3pc}
|
|
7
|
+
._4t3izwfg{height:2pc}
|
|
8
|
+
._kqswh2mm{position:relative}
|
|
9
|
+
._lswu1xf6{fill:var(--logo-fill)}
|
|
10
|
+
._o5724jg8{white-space:normal}
|
|
11
|
+
._syaz1vry{color:var(--logo-color)}
|
|
12
|
+
._uiztglyw{-webkit-user-select:none;-ms-user-select:none;user-select:none}
|
|
13
|
+
._vc881r31 stop{stop-color:currentColor}
|
|
14
|
+
._vwz4kb7n{line-height:1}
|
|
15
|
+
._zbji1osq >svg{height:100%}
|
package/dist/esm/wrapper.js
CHANGED
|
@@ -1,79 +1,54 @@
|
|
|
1
|
+
/* wrapper.tsx generated by @compiled/babel-plugin v0.32.2 */
|
|
1
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
5
5
|
var _excluded = ["label", "svg", "size", "appearance", "iconColor", "textColor", "testId"];
|
|
6
|
-
|
|
7
|
-
*
|
|
8
|
-
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
|
-
import { css, jsx } from '@emotion/react';
|
|
13
|
-
import { sizes } from './constants';
|
|
6
|
+
import "./wrapper.compiled.css";
|
|
7
|
+
import * as React from 'react';
|
|
8
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
14
9
|
var CSS_VAR_COLOR = '--logo-color';
|
|
15
10
|
var CSS_VAR_FILL = '--logo-fill';
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
'> svg': {
|
|
26
|
-
height: '100%',
|
|
27
|
-
fill: 'inherit'
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
var stopColorStyles = css({
|
|
31
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
32
|
-
stop: {
|
|
33
|
-
stopColor: 'currentColor'
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
var sizeStyles = Object.entries(sizes).reduce(function (acc, _ref) {
|
|
37
|
-
var _ref2 = _slicedToArray(_ref, 2),
|
|
38
|
-
key = _ref2[0],
|
|
39
|
-
val = _ref2[1];
|
|
40
|
-
acc[key] = css({
|
|
41
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
42
|
-
height: "".concat(val, "px")
|
|
43
|
-
});
|
|
44
|
-
return acc;
|
|
45
|
-
}, {});
|
|
11
|
+
var styles = {
|
|
12
|
+
root: "_1e0c1o8l _kqswh2mm _syaz1vry _lswu1xf6 _vwz4kb7n _uiztglyw _o5724jg8 _zbji1osq _3se11kw7",
|
|
13
|
+
stop: "_vc881r31",
|
|
14
|
+
xsmall: "_4t3i7vkz",
|
|
15
|
+
small: "_4t3i1tcg",
|
|
16
|
+
medium: "_4t3izwfg",
|
|
17
|
+
large: "_4t3i1ylp",
|
|
18
|
+
xlarge: "_4t3ickbl"
|
|
19
|
+
};
|
|
46
20
|
|
|
47
21
|
/**
|
|
48
22
|
* __Wrapper__
|
|
49
23
|
*
|
|
50
24
|
* An internal component used by `@atlaskit/logo` to render logo SVGs with correct styles.
|
|
51
25
|
*/
|
|
52
|
-
var Wrapper = function Wrapper(
|
|
53
|
-
var
|
|
54
|
-
var label =
|
|
55
|
-
svg =
|
|
56
|
-
size =
|
|
57
|
-
appearance =
|
|
58
|
-
iconColor =
|
|
59
|
-
textColor =
|
|
60
|
-
userDefinedTestId =
|
|
61
|
-
rest = _objectWithoutProperties(
|
|
26
|
+
var Wrapper = function Wrapper(_ref) {
|
|
27
|
+
var _ref2;
|
|
28
|
+
var label = _ref.label,
|
|
29
|
+
svg = _ref.svg,
|
|
30
|
+
size = _ref.size,
|
|
31
|
+
appearance = _ref.appearance,
|
|
32
|
+
iconColor = _ref.iconColor,
|
|
33
|
+
textColor = _ref.textColor,
|
|
34
|
+
userDefinedTestId = _ref.testId,
|
|
35
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
62
36
|
// Only required for old logos with gradients, which set gradient values to `inherit` when no appearance is provided
|
|
63
37
|
var shouldApplyStopColor = appearance === undefined;
|
|
64
38
|
var testId = userDefinedTestId && "".concat(userDefinedTestId, "--wrapper");
|
|
65
|
-
return
|
|
66
|
-
css: [baseWrapperStyles, shouldApplyStopColor && stopColorStyles, size && sizeStyles[size]],
|
|
39
|
+
return /*#__PURE__*/React.createElement("span", _extends({
|
|
67
40
|
"data-testid": testId
|
|
68
41
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
69
42
|
,
|
|
70
|
-
style: (
|
|
43
|
+
style: (_ref2 = {}, _defineProperty(_ref2, CSS_VAR_COLOR, iconColor), _defineProperty(_ref2, CSS_VAR_FILL, textColor), _ref2),
|
|
71
44
|
"aria-label": label ? label : undefined,
|
|
72
45
|
role: label ? 'img' : undefined,
|
|
73
46
|
dangerouslySetInnerHTML: {
|
|
74
47
|
__html: svg
|
|
75
48
|
}
|
|
76
49
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
77
|
-
}, rest
|
|
50
|
+
}, rest, {
|
|
51
|
+
className: ax([styles.root, shouldApplyStopColor && styles.stop, size && styles[size]])
|
|
52
|
+
}));
|
|
78
53
|
};
|
|
79
54
|
export default Wrapper;
|
|
@@ -14,13 +14,6 @@ export declare const legacyDefaultLogoParams: {
|
|
|
14
14
|
export type WrapperProps = LogoProps & {
|
|
15
15
|
svg: string;
|
|
16
16
|
};
|
|
17
|
-
export declare const sizes: {
|
|
18
|
-
readonly xsmall: 16;
|
|
19
|
-
readonly small: 24;
|
|
20
|
-
readonly medium: 32;
|
|
21
|
-
readonly large: 40;
|
|
22
|
-
readonly xlarge: 48;
|
|
23
|
-
};
|
|
24
17
|
/**
|
|
25
18
|
* In order to pass linting rules, these props were renamed to be more descriptive i.e. props renamed to LogoProps and
|
|
26
19
|
* defaultParams to defaultLogoParams. However, this is a breaking change as it is a file with public entry points. The code
|
|
@@ -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,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;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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/dist/types/wrapper.d.ts
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
/// <reference types="react" />
|
|
6
6
|
import { type WrapperProps } from './constants';
|
|
7
7
|
/**
|
|
8
8
|
* __Wrapper__
|
|
9
9
|
*
|
|
10
10
|
* An internal component used by `@atlaskit/logo` to render logo SVGs with correct styles.
|
|
11
11
|
*/
|
|
12
|
-
declare const Wrapper: ({ label, svg, size, appearance, iconColor, textColor, testId: userDefinedTestId, ...rest }: WrapperProps) =>
|
|
12
|
+
declare const Wrapper: ({ label, svg, size, appearance, iconColor, textColor, testId: userDefinedTestId, ...rest }: WrapperProps) => JSX.Element;
|
|
13
13
|
export default Wrapper;
|
|
@@ -14,13 +14,6 @@ export declare const legacyDefaultLogoParams: {
|
|
|
14
14
|
export type WrapperProps = LogoProps & {
|
|
15
15
|
svg: string;
|
|
16
16
|
};
|
|
17
|
-
export declare const sizes: {
|
|
18
|
-
readonly xsmall: 16;
|
|
19
|
-
readonly small: 24;
|
|
20
|
-
readonly medium: 32;
|
|
21
|
-
readonly large: 40;
|
|
22
|
-
readonly xlarge: 48;
|
|
23
|
-
};
|
|
24
17
|
/**
|
|
25
18
|
* In order to pass linting rules, these props were renamed to be more descriptive i.e. props renamed to LogoProps and
|
|
26
19
|
* defaultParams to defaultLogoParams. However, this is a breaking change as it is a file with public entry points. The code
|
|
@@ -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,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';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
/**
|
|
2
3
|
* @jsxRuntime classic
|
|
3
4
|
* @jsx jsx
|
|
4
5
|
*/
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
6
6
|
import { type WrapperProps } from './constants';
|
|
7
7
|
/**
|
|
8
8
|
* __Wrapper__
|
|
9
9
|
*
|
|
10
10
|
* An internal component used by `@atlaskit/logo` to render logo SVGs with correct styles.
|
|
11
11
|
*/
|
|
12
|
-
declare const Wrapper: ({ label, svg, size, appearance, iconColor, textColor, testId: userDefinedTestId, ...rest }: WrapperProps) =>
|
|
12
|
+
declare const Wrapper: ({ label, svg, size, appearance, iconColor, textColor, testId: userDefinedTestId, ...rest }: WrapperProps) => JSX.Element;
|
|
13
13
|
export default Wrapper;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/logo",
|
|
3
|
-
"version": "
|
|
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/"
|
|
@@ -20,22 +20,24 @@
|
|
|
20
20
|
"team": "Design System Team",
|
|
21
21
|
"website": {
|
|
22
22
|
"name": "Logo",
|
|
23
|
-
"category": "
|
|
23
|
+
"category": "Images and icons"
|
|
24
24
|
},
|
|
25
25
|
"runReact18": true
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@atlaskit/ds-lib": "^3.
|
|
28
|
+
"@atlaskit/ds-lib": "^3.3.0",
|
|
29
29
|
"@atlaskit/theme": "^14.0.0",
|
|
30
|
-
"@atlaskit/tokens": "^2.
|
|
30
|
+
"@atlaskit/tokens": "^2.4.0",
|
|
31
31
|
"@babel/runtime": "^7.0.0",
|
|
32
|
-
"@
|
|
32
|
+
"@compiled/css": "^0.17.1",
|
|
33
|
+
"@compiled/react": "^0.18.1"
|
|
33
34
|
},
|
|
34
35
|
"peerDependencies": {
|
|
35
36
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
38
39
|
"@af/accessibility-testing": "*",
|
|
40
|
+
"@af/integration-testing": "*",
|
|
39
41
|
"@atlaskit/ssr": "*",
|
|
40
42
|
"@atlaskit/visual-regression": "*",
|
|
41
43
|
"@testing-library/react": "^12.1.5",
|