@atlaskit/logo 14.2.2 → 14.3.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 +7 -0
- package/dist/cjs/index.js +13 -0
- package/dist/cjs/loom-attribution-logo/icon.js +41 -0
- package/dist/cjs/loom-attribution-logo/index.js +19 -0
- package/dist/cjs/loom-attribution-logo/logo.js +64 -0
- package/dist/es2019/index.js +1 -0
- package/dist/es2019/loom-attribution-logo/icon.js +30 -0
- package/dist/es2019/loom-attribution-logo/index.js +2 -0
- package/dist/es2019/loom-attribution-logo/logo.js +71 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loom-attribution-logo/icon.js +33 -0
- package/dist/esm/loom-attribution-logo/index.js +2 -0
- package/dist/esm/loom-attribution-logo/logo.js +56 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/loom-attribution-logo/icon.d.ts +12 -0
- package/dist/types/loom-attribution-logo/index.d.ts +2 -0
- package/dist/types/loom-attribution-logo/logo.d.ts +12 -0
- package/dist/types-ts4.5/index.d.ts +1 -0
- package/dist/types-ts4.5/loom-attribution-logo/icon.d.ts +12 -0
- package/dist/types-ts4.5/loom-attribution-logo/index.d.ts +2 -0
- package/dist/types-ts4.5/loom-attribution-logo/logo.d.ts +12 -0
- package/package.json +3 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/logo
|
|
2
2
|
|
|
3
|
+
## 14.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`a51c26afee964`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a51c26afee964) -
|
|
8
|
+
Adds the loom attribution logo to the logo package.
|
|
9
|
+
|
|
3
10
|
## 14.2.2
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
package/dist/cjs/index.js
CHANGED
|
@@ -225,6 +225,18 @@ Object.defineProperty(exports, "JiraWorkManagementLogo", {
|
|
|
225
225
|
return _jiraWorkManagementLogo.JiraWorkManagementLogo;
|
|
226
226
|
}
|
|
227
227
|
});
|
|
228
|
+
Object.defineProperty(exports, "LoomAttributionIcon", {
|
|
229
|
+
enumerable: true,
|
|
230
|
+
get: function get() {
|
|
231
|
+
return _loomAttributionLogo.LoomAttributionIcon;
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
Object.defineProperty(exports, "LoomAttributionLogo", {
|
|
235
|
+
enumerable: true,
|
|
236
|
+
get: function get() {
|
|
237
|
+
return _loomAttributionLogo.LoomAttributionLogo;
|
|
238
|
+
}
|
|
239
|
+
});
|
|
228
240
|
Object.defineProperty(exports, "LoomIcon", {
|
|
229
241
|
enumerable: true,
|
|
230
242
|
get: function get() {
|
|
@@ -298,6 +310,7 @@ var _jiraProductDiscoveryLogo = require("./jira-product-discovery-logo");
|
|
|
298
310
|
var _jiraServiceManagementLogo = require("./jira-service-management-logo");
|
|
299
311
|
var _jiraSoftwareLogo = require("./jira-software-logo");
|
|
300
312
|
var _jiraWorkManagementLogo = require("./jira-work-management-logo");
|
|
313
|
+
var _loomAttributionLogo = require("./loom-attribution-logo");
|
|
301
314
|
var _loomLogo = require("./loom-logo");
|
|
302
315
|
var _opsgenieLogo = require("./opsgenie-logo");
|
|
303
316
|
var _statuspageLogo = require("./statuspage-logo");
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.LoomAttributionIcon = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _constants = require("../constants");
|
|
10
|
+
var _loomLogo = require("../loom-logo");
|
|
11
|
+
/* eslint-disable max-len */
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* __Loom Attribution icon__
|
|
15
|
+
*
|
|
16
|
+
* The Loom attribution icon without an accompanying wordmark.
|
|
17
|
+
*
|
|
18
|
+
* - [Examples](https://atlassian.design/components/logo/examples)
|
|
19
|
+
* - [Code](https://atlassian.design/components/logo/code)
|
|
20
|
+
* - [Usage](https://atlassian.design/components/logo/usage)
|
|
21
|
+
*/
|
|
22
|
+
var LoomAttributionIcon = exports.LoomAttributionIcon = function LoomAttributionIcon(_ref) {
|
|
23
|
+
var appearance = _ref.appearance,
|
|
24
|
+
_ref$label = _ref.label,
|
|
25
|
+
label = _ref$label === void 0 ? 'Loom Attribution' : _ref$label,
|
|
26
|
+
_ref$size = _ref.size,
|
|
27
|
+
size = _ref$size === void 0 ? _constants.defaultLogoParams.size : _ref$size,
|
|
28
|
+
testId = _ref.testId,
|
|
29
|
+
_ref$iconColor = _ref.iconColor,
|
|
30
|
+
iconColor = _ref$iconColor === void 0 ? _constants.defaultLogoParams.iconColor : _ref$iconColor,
|
|
31
|
+
_ref$textColor = _ref.textColor,
|
|
32
|
+
textColor = _ref$textColor === void 0 ? _constants.defaultLogoParams.textColor : _ref$textColor;
|
|
33
|
+
return /*#__PURE__*/_react.default.createElement(_loomLogo.LoomIcon, {
|
|
34
|
+
appearance: appearance,
|
|
35
|
+
label: label,
|
|
36
|
+
size: size,
|
|
37
|
+
testId: testId,
|
|
38
|
+
iconColor: iconColor,
|
|
39
|
+
textColor: textColor
|
|
40
|
+
});
|
|
41
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "LoomAttributionIcon", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _icon.LoomAttributionIcon;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "LoomAttributionLogo", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _logo.LoomAttributionLogo;
|
|
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.LoomAttributionLogo = 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.getColorsForLoom)(appearance, colorMode);
|
|
25
|
+
}
|
|
26
|
+
return "<svg\n\t\tfill=\"none\"\n\t\theight=\"32\"\n\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\tfocusable=\"false\"\n\t\taria-hidden=\"true\"\n\t\tviewBox=\"0 0 88 32\"\n\t>\n\t\t<path\n\t\t\td=\"M29.488 12.765h-8.983l7.78-4.344-1.544-2.585-7.78 4.344 4.492-7.523-2.674-1.493-4.491 7.522V0H13.2v8.687L8.71 1.164 6.035 2.657l4.49 7.522-7.778-4.343L1.204 8.42l7.779 4.344H0v2.986h8.982l-7.778 4.343 1.543 2.585 7.78-4.342-4.492 7.522 2.674 1.493L13.2 19.83v8.687h3.087v-8.873l4.574 7.663 2.507-1.4-4.575-7.663 7.946 4.437 1.544-2.586-7.779-4.343h8.982v-2.986h.001Zm-14.744 5.552c-2.318 0-4.197-1.817-4.197-4.059s1.88-4.059 4.197-4.059 4.198 1.817 4.198 4.06c0 2.24-1.88 4.058-4.198 4.058\"\n\t\t\tfill=\"".concat(colors.iconColor, "\"\n\t\t/>\n\t\t<path\n\t\t\td=\"M38.379 26.847V10.094h3.18v16.753zm30.503-11.79h3.036v1.438c.646-1.15 2.153-1.773 3.444-1.773 1.602 0 2.893.695 3.49 1.964.932-1.438 2.177-1.964 3.731-1.964 2.175 0 4.256 1.318 4.256 4.48v7.642h-3.084V19.85c0-1.27-.623-2.228-2.081-2.228-1.363 0-2.177 1.054-2.177 2.324v6.9h-3.155V19.85c0-1.27-.646-2.228-2.081-2.228-1.387 0-2.2 1.03-2.2 2.324v6.9h-3.18V15.057Zm-20.134 12.13c-3.582 0-6.176-2.66-6.176-6.234 0-3.517 2.585-6.242 6.176-6.242 3.609 0 6.177 2.75 6.177 6.242 0 3.547-2.596 6.234-6.177 6.234m0-9.59a3.357 3.357 0 0 0 0 6.713 3.357 3.357 0 0 0 0-6.713m12.966 9.59c-3.583 0-6.177-2.66-6.177-6.234 0-3.517 2.586-6.242 6.177-6.242 3.608 0 6.176 2.75 6.176 6.242 0 3.547-2.597 6.234-6.176 6.234m0-9.63a3.397 3.397 0 0 0-3.39 3.395 3.397 3.397 0 0 0 3.39 3.395 3.396 3.396 0 0 0 0-6.79M64.933 5.63c0-1.102-.697-1.522-1.983-1.837-.803-.21-1.018-.368-1.018-.63q0-.473.804-.473c.643 0 1.286.21 1.93.473V1.798a4.5 4.5 0 0 0-1.876-.42c-1.447 0-2.25.682-2.25 1.785 0 1.05.696 1.575 1.928 1.838.804.157 1.072.315 1.072.682 0 .263-.215.473-.804.473a4.46 4.46 0 0 1-2.197-.63v1.417c.483.263 1.233.473 2.197.473 1.5.052 2.197-.683 2.197-1.785Zm16.662-4.067v5.988h1.3V3.007l.542 1.23 1.841 3.368h1.626V1.563h-1.3v3.85l-.488-1.123-1.463-2.727zm-8.056 0h-1.465v6.042h1.465zm-23.981 0v6.042h2.863l.432-1.295h-1.945V1.563zm-5.671 0v1.295h1.604v4.747h1.44V2.858h1.715V1.563zm-2.177 0h-1.802l-2.066 6.042h1.59l.317-1.025a4 4 0 0 0 1.113.162q.556 0 1.113-.162l.318 1.025h1.59zm-.9 3.938a3 3 0 0 1-.743-.108l.742-2.643.742 2.643c-.265.054-.477.108-.742.108Zm16.577-3.938H55.53L53.4 7.605h1.638l.328-1.025q.573.162 1.146.162.574 0 1.147-.162l.328 1.025h1.638l-2.24-6.042Zm-.928 3.938c-.273 0-.546-.054-.765-.108l.765-2.643.764 2.643a3.3 3.3 0 0 1-.764.108m21.98-3.938h-1.857l-2.13 6.042h1.638l.328-1.025q.574.162 1.147.162c.573 0 .764-.054 1.146-.162l.328 1.025h1.638zm-.93 3.938c-.272 0-.545-.054-.763-.108l.764-2.643.765 2.643a3.3 3.3 0 0 1-.765.108Zm-6.894.129c0-1.102-.697-1.522-1.983-1.837-.803-.21-1.018-.368-1.018-.63q0-.473.804-.473c.643 0 1.286.21 1.93.473V1.798a4.5 4.5 0 0 0-1.876-.42c-1.447 0-2.25.682-2.25 1.785 0 1.05.696 1.575 1.928 1.838.804.157 1.072.315 1.072.682 0 .263-.215.473-.804.473-.75 0-1.608-.263-2.197-.63v1.417c.482.263 1.233.473 2.197.473 1.447.052 2.197-.683 2.197-1.785Z\"\n\t\t\tfill=\"").concat(colors.textColor, "\"\n\t\t/>\n\t</svg>");
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* __Loom Attribution logo__
|
|
31
|
+
*
|
|
32
|
+
* The Loom 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 LoomAttributionLogo = exports.LoomAttributionLogo = function LoomAttributionLogo(_ref2) {
|
|
39
|
+
var appearance = _ref2.appearance,
|
|
40
|
+
_ref2$label = _ref2.label,
|
|
41
|
+
label = _ref2$label === void 0 ? 'Loom Attribution' : _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/es2019/index.js
CHANGED
|
@@ -11,6 +11,7 @@ export { JiraProductDiscoveryIcon, JiraProductDiscoveryLogo } from './jira-produ
|
|
|
11
11
|
export { JiraServiceManagementIcon, JiraServiceManagementLogo } from './jira-service-management-logo';
|
|
12
12
|
export { JiraSoftwareIcon, JiraSoftwareLogo } from './jira-software-logo';
|
|
13
13
|
export { JiraWorkManagementLogo, JiraWorkManagementIcon } from './jira-work-management-logo';
|
|
14
|
+
export { LoomAttributionIcon, LoomAttributionLogo } from './loom-attribution-logo';
|
|
14
15
|
export { LoomIcon, LoomLogo } from './loom-logo';
|
|
15
16
|
export { OpsgenieIcon, OpsgenieLogo } from './opsgenie-logo';
|
|
16
17
|
export { StatuspageIcon, StatuspageLogo } from './statuspage-logo';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* eslint-disable max-len */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { defaultLogoParams } from '../constants';
|
|
4
|
+
import { LoomIcon } from '../loom-logo';
|
|
5
|
+
/**
|
|
6
|
+
* __Loom Attribution icon__
|
|
7
|
+
*
|
|
8
|
+
* The Loom attribution icon without an accompanying wordmark.
|
|
9
|
+
*
|
|
10
|
+
* - [Examples](https://atlassian.design/components/logo/examples)
|
|
11
|
+
* - [Code](https://atlassian.design/components/logo/code)
|
|
12
|
+
* - [Usage](https://atlassian.design/components/logo/usage)
|
|
13
|
+
*/
|
|
14
|
+
export const LoomAttributionIcon = ({
|
|
15
|
+
appearance,
|
|
16
|
+
label = 'Loom Attribution',
|
|
17
|
+
size = defaultLogoParams.size,
|
|
18
|
+
testId,
|
|
19
|
+
iconColor = defaultLogoParams.iconColor,
|
|
20
|
+
textColor = defaultLogoParams.textColor
|
|
21
|
+
}) => {
|
|
22
|
+
return /*#__PURE__*/React.createElement(LoomIcon, {
|
|
23
|
+
appearance: appearance,
|
|
24
|
+
label: label,
|
|
25
|
+
size: size,
|
|
26
|
+
testId: testId,
|
|
27
|
+
iconColor: iconColor,
|
|
28
|
+
textColor: textColor
|
|
29
|
+
});
|
|
30
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/* eslint-disable max-len */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { useThemeObserver } from '@atlaskit/tokens';
|
|
4
|
+
import { defaultLogoParams } from '../constants';
|
|
5
|
+
import { getColorsForLoom } 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 = getColorsForLoom(appearance, colorMode);
|
|
18
|
+
}
|
|
19
|
+
return `<svg
|
|
20
|
+
fill="none"
|
|
21
|
+
height="32"
|
|
22
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
23
|
+
focusable="false"
|
|
24
|
+
aria-hidden="true"
|
|
25
|
+
viewBox="0 0 88 32"
|
|
26
|
+
>
|
|
27
|
+
<path
|
|
28
|
+
d="M29.488 12.765h-8.983l7.78-4.344-1.544-2.585-7.78 4.344 4.492-7.523-2.674-1.493-4.491 7.522V0H13.2v8.687L8.71 1.164 6.035 2.657l4.49 7.522-7.778-4.343L1.204 8.42l7.779 4.344H0v2.986h8.982l-7.778 4.343 1.543 2.585 7.78-4.342-4.492 7.522 2.674 1.493L13.2 19.83v8.687h3.087v-8.873l4.574 7.663 2.507-1.4-4.575-7.663 7.946 4.437 1.544-2.586-7.779-4.343h8.982v-2.986h.001Zm-14.744 5.552c-2.318 0-4.197-1.817-4.197-4.059s1.88-4.059 4.197-4.059 4.198 1.817 4.198 4.06c0 2.24-1.88 4.058-4.198 4.058"
|
|
29
|
+
fill="${colors.iconColor}"
|
|
30
|
+
/>
|
|
31
|
+
<path
|
|
32
|
+
d="M38.379 26.847V10.094h3.18v16.753zm30.503-11.79h3.036v1.438c.646-1.15 2.153-1.773 3.444-1.773 1.602 0 2.893.695 3.49 1.964.932-1.438 2.177-1.964 3.731-1.964 2.175 0 4.256 1.318 4.256 4.48v7.642h-3.084V19.85c0-1.27-.623-2.228-2.081-2.228-1.363 0-2.177 1.054-2.177 2.324v6.9h-3.155V19.85c0-1.27-.646-2.228-2.081-2.228-1.387 0-2.2 1.03-2.2 2.324v6.9h-3.18V15.057Zm-20.134 12.13c-3.582 0-6.176-2.66-6.176-6.234 0-3.517 2.585-6.242 6.176-6.242 3.609 0 6.177 2.75 6.177 6.242 0 3.547-2.596 6.234-6.177 6.234m0-9.59a3.357 3.357 0 0 0 0 6.713 3.357 3.357 0 0 0 0-6.713m12.966 9.59c-3.583 0-6.177-2.66-6.177-6.234 0-3.517 2.586-6.242 6.177-6.242 3.608 0 6.176 2.75 6.176 6.242 0 3.547-2.597 6.234-6.176 6.234m0-9.63a3.397 3.397 0 0 0-3.39 3.395 3.397 3.397 0 0 0 3.39 3.395 3.396 3.396 0 0 0 0-6.79M64.933 5.63c0-1.102-.697-1.522-1.983-1.837-.803-.21-1.018-.368-1.018-.63q0-.473.804-.473c.643 0 1.286.21 1.93.473V1.798a4.5 4.5 0 0 0-1.876-.42c-1.447 0-2.25.682-2.25 1.785 0 1.05.696 1.575 1.928 1.838.804.157 1.072.315 1.072.682 0 .263-.215.473-.804.473a4.46 4.46 0 0 1-2.197-.63v1.417c.483.263 1.233.473 2.197.473 1.5.052 2.197-.683 2.197-1.785Zm16.662-4.067v5.988h1.3V3.007l.542 1.23 1.841 3.368h1.626V1.563h-1.3v3.85l-.488-1.123-1.463-2.727zm-8.056 0h-1.465v6.042h1.465zm-23.981 0v6.042h2.863l.432-1.295h-1.945V1.563zm-5.671 0v1.295h1.604v4.747h1.44V2.858h1.715V1.563zm-2.177 0h-1.802l-2.066 6.042h1.59l.317-1.025a4 4 0 0 0 1.113.162q.556 0 1.113-.162l.318 1.025h1.59zm-.9 3.938a3 3 0 0 1-.743-.108l.742-2.643.742 2.643c-.265.054-.477.108-.742.108Zm16.577-3.938H55.53L53.4 7.605h1.638l.328-1.025q.573.162 1.146.162.574 0 1.147-.162l.328 1.025h1.638l-2.24-6.042Zm-.928 3.938c-.273 0-.546-.054-.765-.108l.765-2.643.764 2.643a3.3 3.3 0 0 1-.764.108m21.98-3.938h-1.857l-2.13 6.042h1.638l.328-1.025q.574.162 1.147.162c.573 0 .764-.054 1.146-.162l.328 1.025h1.638zm-.93 3.938c-.272 0-.545-.054-.763-.108l.764-2.643.765 2.643a3.3 3.3 0 0 1-.765.108Zm-6.894.129c0-1.102-.697-1.522-1.983-1.837-.803-.21-1.018-.368-1.018-.63q0-.473.804-.473c.643 0 1.286.21 1.93.473V1.798a4.5 4.5 0 0 0-1.876-.42c-1.447 0-2.25.682-2.25 1.785 0 1.05.696 1.575 1.928 1.838.804.157 1.072.315 1.072.682 0 .263-.215.473-.804.473-.75 0-1.608-.263-2.197-.63v1.417c.482.263 1.233.473 2.197.473 1.447.052 2.197-.683 2.197-1.785Z"
|
|
33
|
+
fill="${colors.textColor}"
|
|
34
|
+
/>
|
|
35
|
+
</svg>`;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* __Loom Attribution logo__
|
|
40
|
+
*
|
|
41
|
+
* The Loom logo with both the wordmark and the icon combined.
|
|
42
|
+
*
|
|
43
|
+
* - [Examples](https://atlassian.design/components/logo/examples)
|
|
44
|
+
* - [Code](https://atlassian.design/components/logo/code)
|
|
45
|
+
* - [Usage](https://atlassian.design/components/logo/usage)
|
|
46
|
+
*/
|
|
47
|
+
export const LoomAttributionLogo = ({
|
|
48
|
+
appearance,
|
|
49
|
+
label = 'Loom Attribution',
|
|
50
|
+
size = defaultLogoParams.size,
|
|
51
|
+
testId,
|
|
52
|
+
iconColor = defaultLogoParams.iconColor,
|
|
53
|
+
textColor = defaultLogoParams.textColor
|
|
54
|
+
}) => {
|
|
55
|
+
const {
|
|
56
|
+
colorMode
|
|
57
|
+
} = useThemeObserver();
|
|
58
|
+
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
59
|
+
appearance: appearance,
|
|
60
|
+
label: label,
|
|
61
|
+
iconColor: iconColor,
|
|
62
|
+
size: size,
|
|
63
|
+
svg: svg({
|
|
64
|
+
appearance,
|
|
65
|
+
iconColor,
|
|
66
|
+
textColor
|
|
67
|
+
}, colorMode),
|
|
68
|
+
testId: testId,
|
|
69
|
+
textColor: textColor
|
|
70
|
+
});
|
|
71
|
+
};
|
package/dist/esm/index.js
CHANGED
|
@@ -11,6 +11,7 @@ export { JiraProductDiscoveryIcon, JiraProductDiscoveryLogo } from './jira-produ
|
|
|
11
11
|
export { JiraServiceManagementIcon, JiraServiceManagementLogo } from './jira-service-management-logo';
|
|
12
12
|
export { JiraSoftwareIcon, JiraSoftwareLogo } from './jira-software-logo';
|
|
13
13
|
export { JiraWorkManagementLogo, JiraWorkManagementIcon } from './jira-work-management-logo';
|
|
14
|
+
export { LoomAttributionIcon, LoomAttributionLogo } from './loom-attribution-logo';
|
|
14
15
|
export { LoomIcon, LoomLogo } from './loom-logo';
|
|
15
16
|
export { OpsgenieIcon, OpsgenieLogo } from './opsgenie-logo';
|
|
16
17
|
export { StatuspageIcon, StatuspageLogo } from './statuspage-logo';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* eslint-disable max-len */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { defaultLogoParams } from '../constants';
|
|
4
|
+
import { LoomIcon } from '../loom-logo';
|
|
5
|
+
/**
|
|
6
|
+
* __Loom Attribution icon__
|
|
7
|
+
*
|
|
8
|
+
* The Loom attribution icon without an accompanying wordmark.
|
|
9
|
+
*
|
|
10
|
+
* - [Examples](https://atlassian.design/components/logo/examples)
|
|
11
|
+
* - [Code](https://atlassian.design/components/logo/code)
|
|
12
|
+
* - [Usage](https://atlassian.design/components/logo/usage)
|
|
13
|
+
*/
|
|
14
|
+
export var LoomAttributionIcon = function LoomAttributionIcon(_ref) {
|
|
15
|
+
var appearance = _ref.appearance,
|
|
16
|
+
_ref$label = _ref.label,
|
|
17
|
+
label = _ref$label === void 0 ? 'Loom Attribution' : _ref$label,
|
|
18
|
+
_ref$size = _ref.size,
|
|
19
|
+
size = _ref$size === void 0 ? defaultLogoParams.size : _ref$size,
|
|
20
|
+
testId = _ref.testId,
|
|
21
|
+
_ref$iconColor = _ref.iconColor,
|
|
22
|
+
iconColor = _ref$iconColor === void 0 ? defaultLogoParams.iconColor : _ref$iconColor,
|
|
23
|
+
_ref$textColor = _ref.textColor,
|
|
24
|
+
textColor = _ref$textColor === void 0 ? defaultLogoParams.textColor : _ref$textColor;
|
|
25
|
+
return /*#__PURE__*/React.createElement(LoomIcon, {
|
|
26
|
+
appearance: appearance,
|
|
27
|
+
label: label,
|
|
28
|
+
size: size,
|
|
29
|
+
testId: testId,
|
|
30
|
+
iconColor: iconColor,
|
|
31
|
+
textColor: textColor
|
|
32
|
+
});
|
|
33
|
+
};
|
|
@@ -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 { getColorsForLoom } 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 = getColorsForLoom(appearance, colorMode);
|
|
17
|
+
}
|
|
18
|
+
return "<svg\n\t\tfill=\"none\"\n\t\theight=\"32\"\n\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\tfocusable=\"false\"\n\t\taria-hidden=\"true\"\n\t\tviewBox=\"0 0 88 32\"\n\t>\n\t\t<path\n\t\t\td=\"M29.488 12.765h-8.983l7.78-4.344-1.544-2.585-7.78 4.344 4.492-7.523-2.674-1.493-4.491 7.522V0H13.2v8.687L8.71 1.164 6.035 2.657l4.49 7.522-7.778-4.343L1.204 8.42l7.779 4.344H0v2.986h8.982l-7.778 4.343 1.543 2.585 7.78-4.342-4.492 7.522 2.674 1.493L13.2 19.83v8.687h3.087v-8.873l4.574 7.663 2.507-1.4-4.575-7.663 7.946 4.437 1.544-2.586-7.779-4.343h8.982v-2.986h.001Zm-14.744 5.552c-2.318 0-4.197-1.817-4.197-4.059s1.88-4.059 4.197-4.059 4.198 1.817 4.198 4.06c0 2.24-1.88 4.058-4.198 4.058\"\n\t\t\tfill=\"".concat(colors.iconColor, "\"\n\t\t/>\n\t\t<path\n\t\t\td=\"M38.379 26.847V10.094h3.18v16.753zm30.503-11.79h3.036v1.438c.646-1.15 2.153-1.773 3.444-1.773 1.602 0 2.893.695 3.49 1.964.932-1.438 2.177-1.964 3.731-1.964 2.175 0 4.256 1.318 4.256 4.48v7.642h-3.084V19.85c0-1.27-.623-2.228-2.081-2.228-1.363 0-2.177 1.054-2.177 2.324v6.9h-3.155V19.85c0-1.27-.646-2.228-2.081-2.228-1.387 0-2.2 1.03-2.2 2.324v6.9h-3.18V15.057Zm-20.134 12.13c-3.582 0-6.176-2.66-6.176-6.234 0-3.517 2.585-6.242 6.176-6.242 3.609 0 6.177 2.75 6.177 6.242 0 3.547-2.596 6.234-6.177 6.234m0-9.59a3.357 3.357 0 0 0 0 6.713 3.357 3.357 0 0 0 0-6.713m12.966 9.59c-3.583 0-6.177-2.66-6.177-6.234 0-3.517 2.586-6.242 6.177-6.242 3.608 0 6.176 2.75 6.176 6.242 0 3.547-2.597 6.234-6.176 6.234m0-9.63a3.397 3.397 0 0 0-3.39 3.395 3.397 3.397 0 0 0 3.39 3.395 3.396 3.396 0 0 0 0-6.79M64.933 5.63c0-1.102-.697-1.522-1.983-1.837-.803-.21-1.018-.368-1.018-.63q0-.473.804-.473c.643 0 1.286.21 1.93.473V1.798a4.5 4.5 0 0 0-1.876-.42c-1.447 0-2.25.682-2.25 1.785 0 1.05.696 1.575 1.928 1.838.804.157 1.072.315 1.072.682 0 .263-.215.473-.804.473a4.46 4.46 0 0 1-2.197-.63v1.417c.483.263 1.233.473 2.197.473 1.5.052 2.197-.683 2.197-1.785Zm16.662-4.067v5.988h1.3V3.007l.542 1.23 1.841 3.368h1.626V1.563h-1.3v3.85l-.488-1.123-1.463-2.727zm-8.056 0h-1.465v6.042h1.465zm-23.981 0v6.042h2.863l.432-1.295h-1.945V1.563zm-5.671 0v1.295h1.604v4.747h1.44V2.858h1.715V1.563zm-2.177 0h-1.802l-2.066 6.042h1.59l.317-1.025a4 4 0 0 0 1.113.162q.556 0 1.113-.162l.318 1.025h1.59zm-.9 3.938a3 3 0 0 1-.743-.108l.742-2.643.742 2.643c-.265.054-.477.108-.742.108Zm16.577-3.938H55.53L53.4 7.605h1.638l.328-1.025q.573.162 1.146.162.574 0 1.147-.162l.328 1.025h1.638l-2.24-6.042Zm-.928 3.938c-.273 0-.546-.054-.765-.108l.765-2.643.764 2.643a3.3 3.3 0 0 1-.764.108m21.98-3.938h-1.857l-2.13 6.042h1.638l.328-1.025q.574.162 1.147.162c.573 0 .764-.054 1.146-.162l.328 1.025h1.638zm-.93 3.938c-.272 0-.545-.054-.763-.108l.764-2.643.765 2.643a3.3 3.3 0 0 1-.765.108Zm-6.894.129c0-1.102-.697-1.522-1.983-1.837-.803-.21-1.018-.368-1.018-.63q0-.473.804-.473c.643 0 1.286.21 1.93.473V1.798a4.5 4.5 0 0 0-1.876-.42c-1.447 0-2.25.682-2.25 1.785 0 1.05.696 1.575 1.928 1.838.804.157 1.072.315 1.072.682 0 .263-.215.473-.804.473-.75 0-1.608-.263-2.197-.63v1.417c.482.263 1.233.473 2.197.473 1.447.052 2.197-.683 2.197-1.785Z\"\n\t\t\tfill=\"").concat(colors.textColor, "\"\n\t\t/>\n\t</svg>");
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* __Loom Attribution logo__
|
|
23
|
+
*
|
|
24
|
+
* The Loom 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 LoomAttributionLogo = function LoomAttributionLogo(_ref2) {
|
|
31
|
+
var appearance = _ref2.appearance,
|
|
32
|
+
_ref2$label = _ref2.label,
|
|
33
|
+
label = _ref2$label === void 0 ? 'Loom Attribution' : _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/types/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export { JiraProductDiscoveryIcon, JiraProductDiscoveryLogo } from './jira-produ
|
|
|
12
12
|
export { JiraServiceManagementIcon, JiraServiceManagementLogo, } from './jira-service-management-logo';
|
|
13
13
|
export { JiraSoftwareIcon, JiraSoftwareLogo } from './jira-software-logo';
|
|
14
14
|
export { JiraWorkManagementLogo, JiraWorkManagementIcon } from './jira-work-management-logo';
|
|
15
|
+
export { LoomAttributionIcon, LoomAttributionLogo } from './loom-attribution-logo';
|
|
15
16
|
export { LoomIcon, LoomLogo } from './loom-logo';
|
|
16
17
|
export { OpsgenieIcon, OpsgenieLogo } from './opsgenie-logo';
|
|
17
18
|
export { StatuspageIcon, StatuspageLogo } from './statuspage-logo';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { LogoProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* __Loom Attribution icon__
|
|
5
|
+
*
|
|
6
|
+
* The Loom attribution 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 LoomAttributionIcon: ({ 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
|
+
* __Loom Attribution logo__
|
|
5
|
+
*
|
|
6
|
+
* The Loom 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 LoomAttributionLogo: ({ appearance, label, size, testId, iconColor, textColor, }: LogoProps) => JSX.Element;
|
|
@@ -12,6 +12,7 @@ export { JiraProductDiscoveryIcon, JiraProductDiscoveryLogo } from './jira-produ
|
|
|
12
12
|
export { JiraServiceManagementIcon, JiraServiceManagementLogo, } from './jira-service-management-logo';
|
|
13
13
|
export { JiraSoftwareIcon, JiraSoftwareLogo } from './jira-software-logo';
|
|
14
14
|
export { JiraWorkManagementLogo, JiraWorkManagementIcon } from './jira-work-management-logo';
|
|
15
|
+
export { LoomAttributionIcon, LoomAttributionLogo } from './loom-attribution-logo';
|
|
15
16
|
export { LoomIcon, LoomLogo } from './loom-logo';
|
|
16
17
|
export { OpsgenieIcon, OpsgenieLogo } from './opsgenie-logo';
|
|
17
18
|
export { StatuspageIcon, StatuspageLogo } from './statuspage-logo';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { LogoProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* __Loom Attribution icon__
|
|
5
|
+
*
|
|
6
|
+
* The Loom attribution 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 LoomAttributionIcon: ({ 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
|
+
* __Loom Attribution logo__
|
|
5
|
+
*
|
|
6
|
+
* The Loom 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 LoomAttributionLogo: ({ appearance, label, size, testId, iconColor, textColor, }: LogoProps) => JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/logo",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.3.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/"
|
|
@@ -16,10 +16,6 @@
|
|
|
16
16
|
"atlaskit:src": "src/index.tsx",
|
|
17
17
|
"atlassian": {
|
|
18
18
|
"team": "Design System Team",
|
|
19
|
-
"productPushConsumption": [
|
|
20
|
-
"jira"
|
|
21
|
-
],
|
|
22
|
-
"releaseModel": "continuous",
|
|
23
19
|
"website": {
|
|
24
20
|
"name": "Logo",
|
|
25
21
|
"category": "Components"
|
|
@@ -27,9 +23,9 @@
|
|
|
27
23
|
"runReact18": true
|
|
28
24
|
},
|
|
29
25
|
"dependencies": {
|
|
30
|
-
"@atlaskit/ds-lib": "^2.
|
|
26
|
+
"@atlaskit/ds-lib": "^2.6.0",
|
|
31
27
|
"@atlaskit/theme": "^13.0.0",
|
|
32
|
-
"@atlaskit/tokens": "^1.
|
|
28
|
+
"@atlaskit/tokens": "^1.61.0",
|
|
33
29
|
"@babel/runtime": "^7.0.0",
|
|
34
30
|
"@emotion/react": "^11.7.1"
|
|
35
31
|
},
|