@atlaskit/logo 13.10.3 → 13.10.5
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 +12 -0
- package/dist/cjs/atlassian-logo/icon.js +20 -30
- package/dist/cjs/atlassian-logo/index.js +0 -3
- package/dist/cjs/atlassian-logo/logo.js +21 -31
- package/dist/cjs/atlassian-logo/wordmark.js +10 -19
- package/dist/cjs/atlassian-start-logo/index.js +0 -1
- package/dist/cjs/atlassian-start-logo/logo.js +21 -31
- package/dist/cjs/bitbucket-logo/icon.js +20 -30
- package/dist/cjs/bitbucket-logo/index.js +0 -3
- package/dist/cjs/bitbucket-logo/logo.js +21 -31
- package/dist/cjs/bitbucket-logo/wordmark.js +10 -19
- package/dist/cjs/compass-logo/icon.js +20 -30
- package/dist/cjs/compass-logo/index.js +0 -3
- package/dist/cjs/compass-logo/logo.js +21 -31
- package/dist/cjs/compass-logo/wordmark.js +10 -19
- package/dist/cjs/confluence-logo/icon.js +20 -30
- package/dist/cjs/confluence-logo/index.js +0 -3
- package/dist/cjs/confluence-logo/logo.js +21 -31
- package/dist/cjs/confluence-logo/wordmark.js +10 -19
- package/dist/cjs/constants.js +2 -4
- package/dist/cjs/halp-logo/icon.js +20 -30
- package/dist/cjs/halp-logo/index.js +0 -3
- package/dist/cjs/halp-logo/logo.js +21 -31
- package/dist/cjs/halp-logo/wordmark.js +10 -19
- package/dist/cjs/hipchat-logo/icon.js +15 -25
- package/dist/cjs/hipchat-logo/index.js +0 -3
- package/dist/cjs/hipchat-logo/logo.js +15 -25
- package/dist/cjs/hipchat-logo/wordmark.js +14 -23
- package/dist/cjs/index.js +0 -18
- package/dist/cjs/jira-align-logo/icon.js +21 -31
- package/dist/cjs/jira-align-logo/index.js +0 -3
- package/dist/cjs/jira-align-logo/logo.js +21 -31
- package/dist/cjs/jira-align-logo/wordmark.js +10 -19
- package/dist/cjs/jira-core-logo/icon.js +16 -26
- package/dist/cjs/jira-core-logo/index.js +0 -3
- package/dist/cjs/jira-core-logo/logo.js +15 -25
- package/dist/cjs/jira-core-logo/wordmark.js +14 -23
- package/dist/cjs/jira-logo/icon.js +21 -31
- package/dist/cjs/jira-logo/index.js +0 -3
- package/dist/cjs/jira-logo/logo.js +23 -33
- package/dist/cjs/jira-logo/wordmark.js +10 -19
- package/dist/cjs/jira-service-desk-logo/icon.js +16 -26
- package/dist/cjs/jira-service-desk-logo/index.js +0 -3
- package/dist/cjs/jira-service-desk-logo/logo.js +16 -26
- package/dist/cjs/jira-service-desk-logo/wordmark.js +14 -22
- package/dist/cjs/jira-service-management-logo/icon.js +21 -31
- package/dist/cjs/jira-service-management-logo/index.js +0 -3
- package/dist/cjs/jira-service-management-logo/logo.js +21 -31
- package/dist/cjs/jira-service-management-logo/wordmark.js +10 -19
- package/dist/cjs/jira-software-logo/icon.js +20 -30
- package/dist/cjs/jira-software-logo/index.js +0 -3
- package/dist/cjs/jira-software-logo/logo.js +21 -31
- package/dist/cjs/jira-software-logo/wordmark.js +16 -25
- package/dist/cjs/jira-work-management-logo/icon.js +20 -30
- package/dist/cjs/jira-work-management-logo/index.js +0 -3
- package/dist/cjs/jira-work-management-logo/logo.js +21 -31
- package/dist/cjs/jira-work-management-logo/wordmark.js +16 -25
- package/dist/cjs/opsgenie-logo/index.js +0 -6
- package/dist/cjs/opsgenie-logo/new-icon.js +21 -31
- package/dist/cjs/opsgenie-logo/new-logo.js +22 -32
- package/dist/cjs/opsgenie-logo/new-wordmark.js +14 -23
- package/dist/cjs/opsgenie-logo/old-icon.js +14 -25
- package/dist/cjs/opsgenie-logo/old-logo.js +14 -24
- package/dist/cjs/opsgenie-logo/old-wordmark.js +12 -21
- package/dist/cjs/statuspage-logo/icon.js +20 -30
- package/dist/cjs/statuspage-logo/index.js +0 -3
- package/dist/cjs/statuspage-logo/logo.js +21 -31
- package/dist/cjs/statuspage-logo/wordmark.js +16 -25
- package/dist/cjs/stride-logo/icon.js +13 -23
- package/dist/cjs/stride-logo/index.js +0 -3
- package/dist/cjs/stride-logo/logo.js +13 -23
- package/dist/cjs/stride-logo/wordmark.js +12 -21
- package/dist/cjs/trello-logo/icon.js +19 -29
- package/dist/cjs/trello-logo/index.js +0 -3
- package/dist/cjs/trello-logo/logo.js +20 -30
- package/dist/cjs/trello-logo/wordmark.js +16 -25
- package/dist/cjs/utils.js +3 -8
- package/dist/cjs/version.json +1 -1
- package/dist/cjs/wrapper.js +14 -25
- package/dist/es2019/atlassian-logo/icon.js +3 -7
- package/dist/es2019/atlassian-logo/logo.js +3 -7
- package/dist/es2019/atlassian-logo/wordmark.js +1 -5
- package/dist/es2019/atlassian-start-logo/logo.js +3 -7
- package/dist/es2019/bitbucket-logo/icon.js +3 -7
- package/dist/es2019/bitbucket-logo/logo.js +3 -7
- package/dist/es2019/bitbucket-logo/wordmark.js +1 -5
- package/dist/es2019/compass-logo/icon.js +3 -7
- package/dist/es2019/compass-logo/logo.js +3 -7
- package/dist/es2019/compass-logo/wordmark.js +1 -5
- package/dist/es2019/confluence-logo/icon.js +3 -7
- package/dist/es2019/confluence-logo/logo.js +3 -7
- package/dist/es2019/confluence-logo/wordmark.js +1 -5
- package/dist/es2019/constants.js +2 -0
- package/dist/es2019/halp-logo/icon.js +3 -7
- package/dist/es2019/halp-logo/logo.js +3 -7
- package/dist/es2019/halp-logo/wordmark.js +1 -5
- package/dist/es2019/hipchat-logo/icon.js +1 -4
- package/dist/es2019/hipchat-logo/logo.js +1 -4
- package/dist/es2019/hipchat-logo/wordmark.js +1 -4
- package/dist/es2019/jira-align-logo/icon.js +3 -7
- package/dist/es2019/jira-align-logo/logo.js +3 -7
- package/dist/es2019/jira-align-logo/wordmark.js +1 -5
- package/dist/es2019/jira-core-logo/icon.js +1 -4
- package/dist/es2019/jira-core-logo/logo.js +1 -4
- package/dist/es2019/jira-core-logo/wordmark.js +1 -4
- package/dist/es2019/jira-logo/icon.js +3 -7
- package/dist/es2019/jira-logo/logo.js +3 -7
- package/dist/es2019/jira-logo/wordmark.js +1 -5
- package/dist/es2019/jira-service-desk-logo/icon.js +1 -4
- package/dist/es2019/jira-service-desk-logo/logo.js +1 -4
- package/dist/es2019/jira-service-desk-logo/wordmark.js +1 -2
- package/dist/es2019/jira-service-management-logo/icon.js +3 -7
- package/dist/es2019/jira-service-management-logo/logo.js +3 -7
- package/dist/es2019/jira-service-management-logo/wordmark.js +1 -5
- package/dist/es2019/jira-software-logo/icon.js +3 -7
- package/dist/es2019/jira-software-logo/logo.js +3 -7
- package/dist/es2019/jira-software-logo/wordmark.js +1 -5
- package/dist/es2019/jira-work-management-logo/icon.js +3 -7
- package/dist/es2019/jira-work-management-logo/logo.js +3 -7
- package/dist/es2019/jira-work-management-logo/wordmark.js +1 -5
- package/dist/es2019/opsgenie-logo/new-icon.js +3 -7
- package/dist/es2019/opsgenie-logo/new-logo.js +3 -7
- package/dist/es2019/opsgenie-logo/new-wordmark.js +1 -5
- package/dist/es2019/opsgenie-logo/old-icon.js +1 -5
- package/dist/es2019/opsgenie-logo/old-logo.js +1 -4
- package/dist/es2019/opsgenie-logo/old-wordmark.js +1 -4
- package/dist/es2019/statuspage-logo/icon.js +3 -7
- package/dist/es2019/statuspage-logo/logo.js +3 -7
- package/dist/es2019/statuspage-logo/wordmark.js +1 -5
- package/dist/es2019/stride-logo/icon.js +1 -4
- package/dist/es2019/stride-logo/logo.js +1 -4
- package/dist/es2019/stride-logo/wordmark.js +1 -4
- package/dist/es2019/trello-logo/icon.js +3 -7
- package/dist/es2019/trello-logo/logo.js +3 -7
- package/dist/es2019/trello-logo/wordmark.js +1 -5
- package/dist/es2019/utils.js +3 -6
- package/dist/es2019/version.json +1 -1
- package/dist/es2019/wrapper.js +4 -5
- package/dist/esm/atlassian-logo/icon.js +19 -23
- package/dist/esm/atlassian-logo/logo.js +20 -24
- package/dist/esm/atlassian-logo/wordmark.js +9 -13
- package/dist/esm/atlassian-start-logo/logo.js +20 -24
- package/dist/esm/bitbucket-logo/icon.js +19 -23
- package/dist/esm/bitbucket-logo/logo.js +20 -24
- package/dist/esm/bitbucket-logo/wordmark.js +9 -13
- package/dist/esm/compass-logo/icon.js +19 -23
- package/dist/esm/compass-logo/logo.js +20 -24
- package/dist/esm/compass-logo/wordmark.js +9 -13
- package/dist/esm/confluence-logo/icon.js +19 -23
- package/dist/esm/confluence-logo/logo.js +20 -24
- package/dist/esm/confluence-logo/wordmark.js +9 -13
- package/dist/esm/constants.js +2 -0
- package/dist/esm/halp-logo/icon.js +19 -23
- package/dist/esm/halp-logo/logo.js +20 -24
- package/dist/esm/halp-logo/wordmark.js +9 -13
- package/dist/esm/hipchat-logo/icon.js +14 -18
- package/dist/esm/hipchat-logo/logo.js +14 -18
- package/dist/esm/hipchat-logo/wordmark.js +13 -17
- package/dist/esm/jira-align-logo/icon.js +20 -24
- package/dist/esm/jira-align-logo/logo.js +20 -24
- package/dist/esm/jira-align-logo/wordmark.js +9 -13
- package/dist/esm/jira-core-logo/icon.js +15 -19
- package/dist/esm/jira-core-logo/logo.js +14 -18
- package/dist/esm/jira-core-logo/wordmark.js +13 -17
- package/dist/esm/jira-logo/icon.js +20 -24
- package/dist/esm/jira-logo/logo.js +22 -26
- package/dist/esm/jira-logo/wordmark.js +9 -13
- package/dist/esm/jira-service-desk-logo/icon.js +15 -19
- package/dist/esm/jira-service-desk-logo/logo.js +15 -19
- package/dist/esm/jira-service-desk-logo/wordmark.js +13 -15
- package/dist/esm/jira-service-management-logo/icon.js +20 -24
- package/dist/esm/jira-service-management-logo/logo.js +20 -24
- package/dist/esm/jira-service-management-logo/wordmark.js +9 -13
- package/dist/esm/jira-software-logo/icon.js +19 -23
- package/dist/esm/jira-software-logo/logo.js +20 -24
- package/dist/esm/jira-software-logo/wordmark.js +15 -19
- package/dist/esm/jira-work-management-logo/icon.js +19 -23
- package/dist/esm/jira-work-management-logo/logo.js +20 -24
- package/dist/esm/jira-work-management-logo/wordmark.js +15 -19
- package/dist/esm/opsgenie-logo/new-icon.js +20 -24
- package/dist/esm/opsgenie-logo/new-logo.js +21 -25
- package/dist/esm/opsgenie-logo/new-wordmark.js +13 -17
- package/dist/esm/opsgenie-logo/old-icon.js +13 -18
- package/dist/esm/opsgenie-logo/old-logo.js +13 -17
- package/dist/esm/opsgenie-logo/old-wordmark.js +11 -15
- package/dist/esm/statuspage-logo/icon.js +19 -23
- package/dist/esm/statuspage-logo/logo.js +20 -24
- package/dist/esm/statuspage-logo/wordmark.js +15 -19
- package/dist/esm/stride-logo/icon.js +12 -16
- package/dist/esm/stride-logo/logo.js +12 -16
- package/dist/esm/stride-logo/wordmark.js +11 -15
- package/dist/esm/trello-logo/icon.js +18 -22
- package/dist/esm/trello-logo/logo.js +19 -23
- package/dist/esm/trello-logo/wordmark.js +15 -19
- package/dist/esm/utils.js +3 -6
- package/dist/esm/version.json +1 -1
- package/dist/esm/wrapper.js +15 -19
- package/package.json +7 -4
- package/report.api.md +14 -1
package/dist/cjs/wrapper.js
CHANGED
|
@@ -1,24 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.default = void 0;
|
|
9
|
-
|
|
10
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
-
|
|
12
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
|
-
|
|
14
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
15
|
-
|
|
16
11
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
17
|
-
|
|
18
12
|
var _react = require("@emotion/react");
|
|
19
|
-
|
|
20
13
|
var _constants = require("./constants");
|
|
21
|
-
|
|
22
14
|
var _excluded = ["label", "svg", "size", "appearance", "iconGradientStart", "iconGradientStop", "iconColor", "textColor", "testId"];
|
|
23
15
|
var CSS_VAR_COLOR = '--logo-color';
|
|
24
16
|
var CSS_VAR_FILL = '--logo-fill';
|
|
@@ -44,33 +36,31 @@ var stopColorStyles = (0, _react.css)({
|
|
|
44
36
|
});
|
|
45
37
|
var sizeStyles = Object.entries(_constants.sizes).reduce(function (acc, _ref) {
|
|
46
38
|
var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
39
|
+
key = _ref2[0],
|
|
40
|
+
val = _ref2[1];
|
|
50
41
|
acc[key] = (0, _react.css)({
|
|
51
42
|
height: "".concat(val, "px")
|
|
52
43
|
});
|
|
53
44
|
return acc;
|
|
54
45
|
}, {});
|
|
46
|
+
|
|
55
47
|
/**
|
|
56
48
|
* __Wrapper__
|
|
57
49
|
*
|
|
58
50
|
* An internal component used by `@atlaskit/logo` to render logo SVGs with correct styles.
|
|
59
51
|
*/
|
|
60
|
-
|
|
61
52
|
var Wrapper = function Wrapper(_ref3) {
|
|
62
53
|
var _ref4;
|
|
63
|
-
|
|
64
54
|
var label = _ref3.label,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
55
|
+
svg = _ref3.svg,
|
|
56
|
+
size = _ref3.size,
|
|
57
|
+
appearance = _ref3.appearance,
|
|
58
|
+
iconGradientStart = _ref3.iconGradientStart,
|
|
59
|
+
iconGradientStop = _ref3.iconGradientStop,
|
|
60
|
+
iconColor = _ref3.iconColor,
|
|
61
|
+
textColor = _ref3.textColor,
|
|
62
|
+
userDefinedTestId = _ref3.testId,
|
|
63
|
+
rest = (0, _objectWithoutProperties2.default)(_ref3, _excluded);
|
|
74
64
|
var shouldApplyStopColor = iconGradientStart === 'inherit' && iconGradientStop === 'inherit' && appearance === undefined;
|
|
75
65
|
var testId = userDefinedTestId && "".concat(userDefinedTestId, "--wrapper");
|
|
76
66
|
return (0, _react.jsx)("span", (0, _extends2.default)({
|
|
@@ -81,10 +71,9 @@ var Wrapper = function Wrapper(_ref3) {
|
|
|
81
71
|
role: label ? 'img' : undefined,
|
|
82
72
|
dangerouslySetInnerHTML: {
|
|
83
73
|
__html: svg
|
|
84
|
-
}
|
|
85
|
-
|
|
74
|
+
}
|
|
75
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
86
76
|
}, rest));
|
|
87
77
|
};
|
|
88
|
-
|
|
89
78
|
var _default = Wrapper;
|
|
90
79
|
exports.default = _default;
|
|
@@ -4,7 +4,6 @@ import { uid } from 'react-uid';
|
|
|
4
4
|
import { defaultLogoParams } from '../constants';
|
|
5
5
|
import { getColorsFromAppearance } from '../utils';
|
|
6
6
|
import Wrapper from '../wrapper';
|
|
7
|
-
|
|
8
7
|
const svg = ({
|
|
9
8
|
appearance,
|
|
10
9
|
iconGradientStart,
|
|
@@ -15,19 +14,17 @@ const svg = ({
|
|
|
15
14
|
iconGradientStart,
|
|
16
15
|
iconGradientStop,
|
|
17
16
|
iconColor
|
|
18
|
-
};
|
|
17
|
+
};
|
|
18
|
+
// Will be fixed upon removal of deprecated iconGradientStart and
|
|
19
19
|
// iconGradientStop props, or with React 18's useId() hook when we update.
|
|
20
20
|
// eslint-disable-next-line @repo/internal/react/disallow-unstable-values
|
|
21
|
-
|
|
22
21
|
let id = uid({
|
|
23
22
|
iconGradientStart: iconGradientStop
|
|
24
23
|
});
|
|
25
|
-
|
|
26
24
|
if (appearance) {
|
|
27
25
|
colors = getColorsFromAppearance(appearance);
|
|
28
26
|
id = `atlassianIcon-${appearance}`;
|
|
29
27
|
}
|
|
30
|
-
|
|
31
28
|
return `
|
|
32
29
|
<svg viewBox="0 0 32 32" height="32" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true">
|
|
33
30
|
<defs>
|
|
@@ -40,6 +37,7 @@ const svg = ({
|
|
|
40
37
|
<path fill="${colors.iconColor}" d="M15.9343 3.36124C12.6513 8.55622 12.8678 14.2923 15.0324 18.6215C17.1969 22.9506 18.8565 26.2336 18.9647 26.4861C19.0729 26.7386 19.3254 26.8829 19.578 26.8829H27.7312C28.2363 26.8829 28.597 26.3418 28.3445 25.8728C28.3445 25.8728 17.3774 3.93846 17.0887 3.39732C16.8723 2.89225 16.259 2.85618 15.9343 3.36124Z" />
|
|
41
38
|
</svg>`;
|
|
42
39
|
};
|
|
40
|
+
|
|
43
41
|
/**
|
|
44
42
|
* __Atlassian icon__
|
|
45
43
|
*
|
|
@@ -49,8 +47,6 @@ const svg = ({
|
|
|
49
47
|
* - [Code](https://atlassian.design/components/logo/code)
|
|
50
48
|
* - [Usage](https://atlassian.design/components/logo/usage)
|
|
51
49
|
*/
|
|
52
|
-
|
|
53
|
-
|
|
54
50
|
export const AtlassianIcon = ({
|
|
55
51
|
appearance,
|
|
56
52
|
label = 'Atlassian',
|
|
@@ -4,7 +4,6 @@ import { uid } from 'react-uid';
|
|
|
4
4
|
import { defaultLogoParams } from '../constants';
|
|
5
5
|
import { getColorsFromAppearance } from '../utils';
|
|
6
6
|
import Wrapper from '../wrapper';
|
|
7
|
-
|
|
8
7
|
const svg = ({
|
|
9
8
|
appearance,
|
|
10
9
|
iconGradientStart,
|
|
@@ -19,19 +18,17 @@ const svg = ({
|
|
|
19
18
|
textColor,
|
|
20
19
|
// We treat the word "Atlassian" differently to normal product logos, it has a bold brand look
|
|
21
20
|
atlassianLogoTextColor: textColor
|
|
22
|
-
};
|
|
21
|
+
};
|
|
22
|
+
// Will be fixed upon removal of deprecated iconGradientStart and
|
|
23
23
|
// iconGradientStop props, or with React 18's useId() hook when we update.
|
|
24
24
|
// eslint-disable-next-line @repo/internal/react/disallow-unstable-values
|
|
25
|
-
|
|
26
25
|
let id = uid({
|
|
27
26
|
iconGradientStart: iconGradientStop
|
|
28
27
|
});
|
|
29
|
-
|
|
30
28
|
if (appearance) {
|
|
31
29
|
colors = getColorsFromAppearance(appearance);
|
|
32
30
|
id = `atlassianLogo-${appearance}`;
|
|
33
31
|
}
|
|
34
|
-
|
|
35
32
|
return `
|
|
36
33
|
<svg viewBox="0 0 190 32" height="32" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true">
|
|
37
34
|
<defs>
|
|
@@ -55,6 +52,7 @@ const svg = ({
|
|
|
55
52
|
</g>
|
|
56
53
|
</svg>`;
|
|
57
54
|
};
|
|
55
|
+
|
|
58
56
|
/**
|
|
59
57
|
* __Atlassian logo__
|
|
60
58
|
*
|
|
@@ -64,8 +62,6 @@ const svg = ({
|
|
|
64
62
|
* - [Code](https://atlassian.design/components/logo/code)
|
|
65
63
|
* - [Usage](https://atlassian.design/components/logo/usage)
|
|
66
64
|
*/
|
|
67
|
-
|
|
68
|
-
|
|
69
65
|
export const AtlassianLogo = ({
|
|
70
66
|
appearance,
|
|
71
67
|
label = 'Atlassian',
|
|
@@ -3,7 +3,6 @@ import React from 'react';
|
|
|
3
3
|
import { defaultLogoParams } from '../constants';
|
|
4
4
|
import { getColorsFromAppearance } from '../utils';
|
|
5
5
|
import Wrapper from '../wrapper';
|
|
6
|
-
|
|
7
6
|
const svg = ({
|
|
8
7
|
appearance,
|
|
9
8
|
textColor
|
|
@@ -13,11 +12,9 @@ const svg = ({
|
|
|
13
12
|
// We treat the word "Atlassian" differently to normal product logos
|
|
14
13
|
atlassianLogoTextColor: textColor
|
|
15
14
|
};
|
|
16
|
-
|
|
17
15
|
if (appearance) {
|
|
18
16
|
colors = getColorsFromAppearance(appearance);
|
|
19
17
|
}
|
|
20
|
-
|
|
21
18
|
return `
|
|
22
19
|
<svg viewBox="0 0 158 32" height="32" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true">>
|
|
23
20
|
<g stroke="none" stroke-width="1" fill-rule="nonzero" fill="${colors.atlassianLogoTextColor}">
|
|
@@ -33,6 +30,7 @@ const svg = ({
|
|
|
33
30
|
</g>
|
|
34
31
|
</svg>`;
|
|
35
32
|
};
|
|
33
|
+
|
|
36
34
|
/**
|
|
37
35
|
* __Atlassian wordmark__
|
|
38
36
|
*
|
|
@@ -42,8 +40,6 @@ const svg = ({
|
|
|
42
40
|
* - [Code](https://atlassian.design/components/logo/code)
|
|
43
41
|
* - [Usage](https://atlassian.design/components/logo/usage)
|
|
44
42
|
*/
|
|
45
|
-
|
|
46
|
-
|
|
47
43
|
export const AtlassianWordmark = ({
|
|
48
44
|
appearance,
|
|
49
45
|
label = 'Atlassian',
|
|
@@ -4,7 +4,6 @@ import { uid } from 'react-uid';
|
|
|
4
4
|
import { defaultLogoParams } from '../constants';
|
|
5
5
|
import { getColorsFromAppearance } from '../utils';
|
|
6
6
|
import Wrapper from '../wrapper';
|
|
7
|
-
|
|
8
7
|
const svg = ({
|
|
9
8
|
appearance,
|
|
10
9
|
iconGradientStart,
|
|
@@ -19,19 +18,17 @@ const svg = ({
|
|
|
19
18
|
textColor,
|
|
20
19
|
// We treat the word "Atlassian" differently to normal product logos, it has a bold brand look
|
|
21
20
|
atlassianLogoTextColor: textColor
|
|
22
|
-
};
|
|
21
|
+
};
|
|
22
|
+
// Will be fixed upon removal of deprecated iconGradientStart and
|
|
23
23
|
// iconGradientStop props, or with React 18's useId() hook when we update.
|
|
24
24
|
// eslint-disable-next-line @repo/internal/react/disallow-unstable-values
|
|
25
|
-
|
|
26
25
|
let id = uid({
|
|
27
26
|
iconGradientStart: iconGradientStop
|
|
28
27
|
});
|
|
29
|
-
|
|
30
28
|
if (appearance) {
|
|
31
29
|
colors = getColorsFromAppearance(appearance);
|
|
32
30
|
id = `atlassianLogo-${appearance}`;
|
|
33
31
|
}
|
|
34
|
-
|
|
35
32
|
return `
|
|
36
33
|
<svg fill="none" viewBox="0 0 270 32" height="32" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"2>
|
|
37
34
|
<defs>
|
|
@@ -73,6 +70,7 @@ const svg = ({
|
|
|
73
70
|
</g>
|
|
74
71
|
</svg>`;
|
|
75
72
|
};
|
|
73
|
+
|
|
76
74
|
/**
|
|
77
75
|
* __Atlassian start logo__
|
|
78
76
|
*
|
|
@@ -82,8 +80,6 @@ const svg = ({
|
|
|
82
80
|
* - [Code](https://atlassian.design/components/logo/code)
|
|
83
81
|
* - [Usage](https://atlassian.design/components/logo/usage)
|
|
84
82
|
*/
|
|
85
|
-
|
|
86
|
-
|
|
87
83
|
export const AtlassianStartLogo = ({
|
|
88
84
|
appearance,
|
|
89
85
|
label = 'Atlassian Start',
|
|
@@ -4,7 +4,6 @@ import { uid } from 'react-uid';
|
|
|
4
4
|
import { defaultLogoParams } from '../constants';
|
|
5
5
|
import { getColorsFromAppearance } from '../utils';
|
|
6
6
|
import Wrapper from '../wrapper';
|
|
7
|
-
|
|
8
7
|
const svg = ({
|
|
9
8
|
appearance,
|
|
10
9
|
iconGradientStart,
|
|
@@ -15,19 +14,17 @@ const svg = ({
|
|
|
15
14
|
iconGradientStart,
|
|
16
15
|
iconGradientStop,
|
|
17
16
|
iconColor
|
|
18
|
-
};
|
|
17
|
+
};
|
|
18
|
+
// Will be fixed upon removal of deprecated iconGradientStart and
|
|
19
19
|
// iconGradientStop props, or with React 18's useId() hook when we update.
|
|
20
20
|
// eslint-disable-next-line @repo/internal/react/disallow-unstable-values
|
|
21
|
-
|
|
22
21
|
let id = uid({
|
|
23
22
|
iconGradientStart: iconGradientStop
|
|
24
23
|
});
|
|
25
|
-
|
|
26
24
|
if (appearance) {
|
|
27
25
|
colors = getColorsFromAppearance(appearance);
|
|
28
26
|
id = `bitbucketIcon-${appearance}`;
|
|
29
27
|
}
|
|
30
|
-
|
|
31
28
|
return `
|
|
32
29
|
<svg viewBox="0 0 32 32" height="32" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true">
|
|
33
30
|
<defs>
|
|
@@ -42,6 +39,7 @@ const svg = ({
|
|
|
42
39
|
</g>
|
|
43
40
|
</svg>`;
|
|
44
41
|
};
|
|
42
|
+
|
|
45
43
|
/**
|
|
46
44
|
* __Bitbucket icon__
|
|
47
45
|
*
|
|
@@ -51,8 +49,6 @@ const svg = ({
|
|
|
51
49
|
* - [Code](https://atlassian.design/components/logo/code)
|
|
52
50
|
* - [Usage](https://atlassian.design/components/logo/usage)
|
|
53
51
|
*/
|
|
54
|
-
|
|
55
|
-
|
|
56
52
|
export const BitbucketIcon = ({
|
|
57
53
|
appearance,
|
|
58
54
|
label = 'Bitbucket',
|
|
@@ -4,7 +4,6 @@ import { uid } from 'react-uid';
|
|
|
4
4
|
import { defaultLogoParams } from '../constants';
|
|
5
5
|
import { getColorsFromAppearance } from '../utils';
|
|
6
6
|
import Wrapper from '../wrapper';
|
|
7
|
-
|
|
8
7
|
const svg = ({
|
|
9
8
|
appearance,
|
|
10
9
|
iconGradientStart,
|
|
@@ -17,19 +16,17 @@ const svg = ({
|
|
|
17
16
|
iconGradientStop,
|
|
18
17
|
iconColor,
|
|
19
18
|
textColor
|
|
20
|
-
};
|
|
19
|
+
};
|
|
20
|
+
// Will be fixed upon removal of deprecated iconGradientStart and
|
|
21
21
|
// iconGradientStop props, or with React 18's useId() hook when we update.
|
|
22
22
|
// eslint-disable-next-line @repo/internal/react/disallow-unstable-values
|
|
23
|
-
|
|
24
23
|
let id = uid({
|
|
25
24
|
iconGradientStart: iconGradientStop
|
|
26
25
|
});
|
|
27
|
-
|
|
28
26
|
if (appearance) {
|
|
29
27
|
colors = getColorsFromAppearance(appearance);
|
|
30
28
|
id = `bitbucketLogo-${appearance}`;
|
|
31
29
|
}
|
|
32
|
-
|
|
33
30
|
return `
|
|
34
31
|
<svg viewBox="0 0 137 32" height="32" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true">
|
|
35
32
|
<defs>
|
|
@@ -45,6 +42,7 @@ const svg = ({
|
|
|
45
42
|
</g>
|
|
46
43
|
</svg>`;
|
|
47
44
|
};
|
|
45
|
+
|
|
48
46
|
/**
|
|
49
47
|
* __Bitbucket logo__
|
|
50
48
|
*
|
|
@@ -54,8 +52,6 @@ const svg = ({
|
|
|
54
52
|
* - [Code](https://atlassian.design/components/logo/code)
|
|
55
53
|
* - [Usage](https://atlassian.design/components/logo/usage)
|
|
56
54
|
*/
|
|
57
|
-
|
|
58
|
-
|
|
59
55
|
export const BitbucketLogo = ({
|
|
60
56
|
appearance,
|
|
61
57
|
label = 'Bitbucket',
|
|
@@ -3,7 +3,6 @@ import React from 'react';
|
|
|
3
3
|
import { defaultLogoParams } from '../constants';
|
|
4
4
|
import { getColorsFromAppearance } from '../utils';
|
|
5
5
|
import Wrapper from '../wrapper';
|
|
6
|
-
|
|
7
6
|
const svg = ({
|
|
8
7
|
appearance,
|
|
9
8
|
textColor
|
|
@@ -11,11 +10,9 @@ const svg = ({
|
|
|
11
10
|
let colors = {
|
|
12
11
|
textColor
|
|
13
12
|
};
|
|
14
|
-
|
|
15
13
|
if (appearance) {
|
|
16
14
|
colors = getColorsFromAppearance(appearance);
|
|
17
15
|
}
|
|
18
|
-
|
|
19
16
|
return `
|
|
20
17
|
<svg viewBox="0 0 105 32" height="32" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true">
|
|
21
18
|
<g stroke="none" stroke-width="1" fill-rule="evenodd" fill="${colors.textColor}">
|
|
@@ -23,6 +20,7 @@ const svg = ({
|
|
|
23
20
|
</g>
|
|
24
21
|
</svg>`;
|
|
25
22
|
};
|
|
23
|
+
|
|
26
24
|
/**
|
|
27
25
|
* __Bitbucket wordmark__
|
|
28
26
|
*
|
|
@@ -32,8 +30,6 @@ const svg = ({
|
|
|
32
30
|
* - [Code](https://atlassian.design/components/logo/code)
|
|
33
31
|
* - [Usage](https://atlassian.design/components/logo/usage)
|
|
34
32
|
*/
|
|
35
|
-
|
|
36
|
-
|
|
37
33
|
export const BitbucketWordmark = ({
|
|
38
34
|
appearance,
|
|
39
35
|
label = 'Bitbucket',
|
|
@@ -4,7 +4,6 @@ import { uid } from 'react-uid';
|
|
|
4
4
|
import { defaultLogoParams } from '../constants';
|
|
5
5
|
import { getColorsFromAppearance } from '../utils';
|
|
6
6
|
import Wrapper from '../wrapper';
|
|
7
|
-
|
|
8
7
|
const svg = ({
|
|
9
8
|
appearance,
|
|
10
9
|
iconGradientStart,
|
|
@@ -15,19 +14,17 @@ const svg = ({
|
|
|
15
14
|
iconGradientStart,
|
|
16
15
|
iconGradientStop,
|
|
17
16
|
iconColor
|
|
18
|
-
};
|
|
17
|
+
};
|
|
18
|
+
// Will be fixed upon removal of deprecated iconGradientStart and
|
|
19
19
|
// iconGradientStop props, or with React 18's useId() hook when we update.
|
|
20
20
|
// eslint-disable-next-line @repo/internal/react/disallow-unstable-values
|
|
21
|
-
|
|
22
21
|
let id = uid({
|
|
23
22
|
iconGradientStart: iconGradientStop
|
|
24
23
|
});
|
|
25
|
-
|
|
26
24
|
if (appearance) {
|
|
27
25
|
colors = getColorsFromAppearance(appearance);
|
|
28
26
|
id = `compassIcon-${appearance}`;
|
|
29
27
|
}
|
|
30
|
-
|
|
31
28
|
return `
|
|
32
29
|
<svg
|
|
33
30
|
fill="none"
|
|
@@ -58,6 +55,7 @@ const svg = ({
|
|
|
58
55
|
/>
|
|
59
56
|
</svg>`;
|
|
60
57
|
};
|
|
58
|
+
|
|
61
59
|
/**
|
|
62
60
|
* __Compass icon__
|
|
63
61
|
*
|
|
@@ -67,8 +65,6 @@ const svg = ({
|
|
|
67
65
|
* - [Code](https://atlassian.design/components/logo/code)
|
|
68
66
|
* - [Usage](https://atlassian.design/components/logo/usage)
|
|
69
67
|
*/
|
|
70
|
-
|
|
71
|
-
|
|
72
68
|
export const CompassIcon = ({
|
|
73
69
|
appearance,
|
|
74
70
|
label = 'Compass',
|
|
@@ -4,7 +4,6 @@ import { uid } from 'react-uid';
|
|
|
4
4
|
import { defaultLogoParams } from '../constants';
|
|
5
5
|
import { getColorsFromAppearance } from '../utils';
|
|
6
6
|
import Wrapper from '../wrapper';
|
|
7
|
-
|
|
8
7
|
const svg = ({
|
|
9
8
|
appearance,
|
|
10
9
|
iconGradientStart,
|
|
@@ -17,19 +16,17 @@ const svg = ({
|
|
|
17
16
|
iconGradientStop,
|
|
18
17
|
iconColor,
|
|
19
18
|
textColor
|
|
20
|
-
};
|
|
19
|
+
};
|
|
20
|
+
// Will be fixed upon removal of deprecated iconGradientStart and
|
|
21
21
|
// iconGradientStop props, or with React 18's useId() hook when we update.
|
|
22
22
|
// eslint-disable-next-line @repo/internal/react/disallow-unstable-values
|
|
23
|
-
|
|
24
23
|
let id = uid({
|
|
25
24
|
iconGradientStart: iconGradientStop
|
|
26
25
|
});
|
|
27
|
-
|
|
28
26
|
if (appearance) {
|
|
29
27
|
colors = getColorsFromAppearance(appearance);
|
|
30
28
|
id = `compassLogo-${appearance}`;
|
|
31
29
|
}
|
|
32
|
-
|
|
33
30
|
return `
|
|
34
31
|
<svg
|
|
35
32
|
fill="none"
|
|
@@ -66,6 +63,7 @@ const svg = ({
|
|
|
66
63
|
/>
|
|
67
64
|
</svg>`;
|
|
68
65
|
};
|
|
66
|
+
|
|
69
67
|
/**
|
|
70
68
|
* __Compass logo__
|
|
71
69
|
*
|
|
@@ -75,8 +73,6 @@ const svg = ({
|
|
|
75
73
|
* - [Code](https://atlassian.design/components/logo/code)
|
|
76
74
|
* - [Usage](https://atlassian.design/components/logo/usage)
|
|
77
75
|
*/
|
|
78
|
-
|
|
79
|
-
|
|
80
76
|
export const CompassLogo = ({
|
|
81
77
|
appearance,
|
|
82
78
|
label = 'Compass',
|
|
@@ -3,7 +3,6 @@ import React from 'react';
|
|
|
3
3
|
import { defaultLogoParams } from '../constants';
|
|
4
4
|
import { getColorsFromAppearance } from '../utils';
|
|
5
5
|
import Wrapper from '../wrapper';
|
|
6
|
-
|
|
7
6
|
const svg = ({
|
|
8
7
|
appearance,
|
|
9
8
|
textColor
|
|
@@ -11,11 +10,9 @@ const svg = ({
|
|
|
11
10
|
let colors = {
|
|
12
11
|
textColor
|
|
13
12
|
};
|
|
14
|
-
|
|
15
13
|
if (appearance) {
|
|
16
14
|
colors = getColorsFromAppearance(appearance);
|
|
17
15
|
}
|
|
18
|
-
|
|
19
16
|
return `
|
|
20
17
|
<svg
|
|
21
18
|
fill="none"
|
|
@@ -33,6 +30,7 @@ const svg = ({
|
|
|
33
30
|
/>
|
|
34
31
|
</svg>`;
|
|
35
32
|
};
|
|
33
|
+
|
|
36
34
|
/**
|
|
37
35
|
* __Compass wordmark__
|
|
38
36
|
*
|
|
@@ -42,8 +40,6 @@ const svg = ({
|
|
|
42
40
|
* - [Code](https://atlassian.design/components/logo/code)
|
|
43
41
|
* - [Usage](https://atlassian.design/components/logo/usage)
|
|
44
42
|
*/
|
|
45
|
-
|
|
46
|
-
|
|
47
43
|
export const CompassWordmark = ({
|
|
48
44
|
appearance,
|
|
49
45
|
label = 'Compass',
|
|
@@ -4,7 +4,6 @@ import { uid } from 'react-uid';
|
|
|
4
4
|
import { defaultLogoParams } from '../constants';
|
|
5
5
|
import { getColorsFromAppearance } from '../utils';
|
|
6
6
|
import Wrapper from '../wrapper';
|
|
7
|
-
|
|
8
7
|
const svg = ({
|
|
9
8
|
appearance,
|
|
10
9
|
iconGradientStart,
|
|
@@ -15,19 +14,17 @@ const svg = ({
|
|
|
15
14
|
iconGradientStart,
|
|
16
15
|
iconGradientStop,
|
|
17
16
|
iconColor
|
|
18
|
-
};
|
|
17
|
+
};
|
|
18
|
+
// Will be fixed upon removal of deprecated iconGradientStart and
|
|
19
19
|
// iconGradientStop props, or with React 18's useId() hook when we update.
|
|
20
20
|
// eslint-disable-next-line @repo/internal/react/disallow-unstable-values
|
|
21
|
-
|
|
22
21
|
let id = uid({
|
|
23
22
|
iconGradientStart: iconGradientStop
|
|
24
23
|
});
|
|
25
|
-
|
|
26
24
|
if (appearance) {
|
|
27
25
|
colors = getColorsFromAppearance(appearance);
|
|
28
26
|
id = `confluenceIcon-${appearance}`;
|
|
29
27
|
}
|
|
30
|
-
|
|
31
28
|
return `
|
|
32
29
|
<svg viewBox="0 0 32 32" height="32" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true">
|
|
33
30
|
<defs>
|
|
@@ -46,6 +43,7 @@ const svg = ({
|
|
|
46
43
|
</g>
|
|
47
44
|
</svg>`;
|
|
48
45
|
};
|
|
46
|
+
|
|
49
47
|
/**
|
|
50
48
|
* __Confluence icon__
|
|
51
49
|
*
|
|
@@ -55,8 +53,6 @@ const svg = ({
|
|
|
55
53
|
* - [Code](https://atlassian.design/components/logo/code)
|
|
56
54
|
* - [Usage](https://atlassian.design/components/logo/usage)
|
|
57
55
|
*/
|
|
58
|
-
|
|
59
|
-
|
|
60
56
|
export const ConfluenceIcon = ({
|
|
61
57
|
appearance,
|
|
62
58
|
label = 'Confluence',
|
|
@@ -4,7 +4,6 @@ import { uid } from 'react-uid';
|
|
|
4
4
|
import { defaultLogoParams } from '../constants';
|
|
5
5
|
import { getColorsFromAppearance } from '../utils';
|
|
6
6
|
import Wrapper from '../wrapper';
|
|
7
|
-
|
|
8
7
|
const svg = ({
|
|
9
8
|
appearance,
|
|
10
9
|
iconGradientStart,
|
|
@@ -17,19 +16,17 @@ const svg = ({
|
|
|
17
16
|
iconGradientStop,
|
|
18
17
|
iconColor,
|
|
19
18
|
textColor
|
|
20
|
-
};
|
|
19
|
+
};
|
|
20
|
+
// Will be fixed upon removal of deprecated iconGradientStart and
|
|
21
21
|
// iconGradientStop props, or with React 18's useId() hook when we update.
|
|
22
22
|
// eslint-disable-next-line @repo/internal/react/disallow-unstable-values
|
|
23
|
-
|
|
24
23
|
let id = uid({
|
|
25
24
|
iconGradientStart: iconGradientStop
|
|
26
25
|
});
|
|
27
|
-
|
|
28
26
|
if (appearance) {
|
|
29
27
|
colors = getColorsFromAppearance(appearance);
|
|
30
28
|
id = `confluenceLogo-${appearance}`;
|
|
31
29
|
}
|
|
32
|
-
|
|
33
30
|
return `
|
|
34
31
|
<svg viewBox="0 0 158 32" height="32" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true">
|
|
35
32
|
<defs>
|
|
@@ -49,6 +46,7 @@ const svg = ({
|
|
|
49
46
|
</g>
|
|
50
47
|
</svg>`;
|
|
51
48
|
};
|
|
49
|
+
|
|
52
50
|
/**
|
|
53
51
|
* __Confluence logo__
|
|
54
52
|
*
|
|
@@ -58,8 +56,6 @@ const svg = ({
|
|
|
58
56
|
* - [Code](https://atlassian.design/components/logo/code)
|
|
59
57
|
* - [Usage](https://atlassian.design/components/logo/usage)
|
|
60
58
|
*/
|
|
61
|
-
|
|
62
|
-
|
|
63
59
|
export const ConfluenceLogo = ({
|
|
64
60
|
appearance,
|
|
65
61
|
label = 'Confluence',
|
|
@@ -3,7 +3,6 @@ import React from 'react';
|
|
|
3
3
|
import { defaultLogoParams } from '../constants';
|
|
4
4
|
import { getColorsFromAppearance } from '../utils';
|
|
5
5
|
import Wrapper from '../wrapper';
|
|
6
|
-
|
|
7
6
|
const svg = ({
|
|
8
7
|
appearance,
|
|
9
8
|
textColor
|
|
@@ -11,11 +10,9 @@ const svg = ({
|
|
|
11
10
|
let colors = {
|
|
12
11
|
textColor
|
|
13
12
|
};
|
|
14
|
-
|
|
15
13
|
if (appearance) {
|
|
16
14
|
colors = getColorsFromAppearance(appearance);
|
|
17
15
|
}
|
|
18
|
-
|
|
19
16
|
return `
|
|
20
17
|
<svg viewBox="0 0 126 32" height="32" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true">
|
|
21
18
|
<g stroke="none" stroke-width="1" fill-rule="evenodd" fill="${colors.textColor}">
|
|
@@ -23,6 +20,7 @@ const svg = ({
|
|
|
23
20
|
</g>
|
|
24
21
|
</svg>`;
|
|
25
22
|
};
|
|
23
|
+
|
|
26
24
|
/**
|
|
27
25
|
* __Confluence wordmark__
|
|
28
26
|
*
|
|
@@ -32,8 +30,6 @@ const svg = ({
|
|
|
32
30
|
* - [Code](https://atlassian.design/components/logo/code)
|
|
33
31
|
* - [Usage](https://atlassian.design/components/logo/usage)
|
|
34
32
|
*/
|
|
35
|
-
|
|
36
|
-
|
|
37
33
|
export const ConfluenceWordmark = ({
|
|
38
34
|
appearance,
|
|
39
35
|
label = 'Confluence',
|
package/dist/es2019/constants.js
CHANGED
|
@@ -9,6 +9,7 @@ export const defaultLogoParams = {
|
|
|
9
9
|
size: 'medium',
|
|
10
10
|
textColor: 'currentColor'
|
|
11
11
|
};
|
|
12
|
+
|
|
12
13
|
/**
|
|
13
14
|
* The props for the <Wrapper /> that takes the svg and turns it into a component.
|
|
14
15
|
*/
|
|
@@ -20,6 +21,7 @@ export const sizes = {
|
|
|
20
21
|
large: 40,
|
|
21
22
|
xlarge: 48
|
|
22
23
|
};
|
|
24
|
+
|
|
23
25
|
/**
|
|
24
26
|
* In order to pass linting rules, these props were renamed to be more descriptive i.e. props renamed to LogoProps and
|
|
25
27
|
* defaultParams to defaultLogoParams. However, this is a breaking change as it is a file with public entry points. The code
|