@atlaskit/logo 14.3.4 → 15.0.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/Wrapper/package.json +3 -1
- package/atlas-icon/package.json +3 -1
- package/atlassian-icon/package.json +3 -1
- package/bitbucket-icon/package.json +3 -1
- package/confluence-icon/package.json +3 -1
- package/constants/package.json +3 -1
- package/dist/cjs/constants.js +1 -9
- 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/wrapper.compiled.css +15 -0
- package/dist/es2019/wrapper.js +17 -38
- package/dist/esm/constants.js +0 -8
- 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/wrapper.d.ts +2 -2
- package/dist/types-ts4.5/constants.d.ts +0 -7
- package/dist/types-ts4.5/wrapper.d.ts +2 -2
- package/jira-icon/package.json +3 -1
- package/jira-service-management-icon/package.json +3 -1
- package/jira-software-icon/package.json +3 -1
- package/opsgenie-icon/package.json +3 -1
- package/package.json +10 -6
- package/statuspage-icon/package.json +3 -1
- package/trello-icon/package.json +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/logo
|
|
2
2
|
|
|
3
|
+
## 15.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#170937](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/170937)
|
|
8
|
+
[`2f502fec31157`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2f502fec31157) -
|
|
9
|
+
Migrated from `@emotion/react` to `@compiled/react` in order to improve performance, align with
|
|
10
|
+
the rest of the Atlaskit techstack, and support React 18 Streaming SSR.
|
|
11
|
+
|
|
12
|
+
Please note, in order to use this version of `@atlaskit/logo`, you will need to ensure that your
|
|
13
|
+
bundler is configured to handle `.css` imports correctly. Most bundlers come with built-in support
|
|
14
|
+
for `.css` imports, so you may not need to do anything. If you are using a different bundler,
|
|
15
|
+
please refer to the documentation for that bundler to understand how to handle `.css` imports.
|
|
16
|
+
|
|
17
|
+
## 14.3.5
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- [#165531](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/165531)
|
|
22
|
+
[`57f451bda8919`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/57f451bda8919) -
|
|
23
|
+
Adds side-effect config to support Compiled css extraction in third-party apps
|
|
24
|
+
|
|
3
25
|
## 14.3.4
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/Wrapper/package.json
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
"main": "../dist/cjs/wrapper.js",
|
|
4
4
|
"module": "../dist/esm/wrapper.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/wrapper.js",
|
|
6
|
-
"sideEffects":
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
7
9
|
"types": "../dist/types/wrapper.d.ts",
|
|
8
10
|
"typesVersions": {
|
|
9
11
|
">=4.5 <5.4": {
|
package/atlas-icon/package.json
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
"main": "../dist/cjs/atlas-logo/icon.js",
|
|
4
4
|
"module": "../dist/esm/atlas-logo/icon.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/atlas-logo/icon.js",
|
|
6
|
-
"sideEffects":
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
7
9
|
"types": "../dist/types/atlas-logo/icon.d.ts",
|
|
8
10
|
"typesVersions": {
|
|
9
11
|
">=4.5 <5.4": {
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
"main": "../dist/cjs/atlassian-logo/icon.js",
|
|
4
4
|
"module": "../dist/esm/atlassian-logo/icon.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/atlassian-logo/icon.js",
|
|
6
|
-
"sideEffects":
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
7
9
|
"types": "../dist/types/atlassian-logo/icon.d.ts",
|
|
8
10
|
"typesVersions": {
|
|
9
11
|
">=4.5 <5.4": {
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
"main": "../dist/cjs/bitbucket-logo/icon.js",
|
|
4
4
|
"module": "../dist/esm/bitbucket-logo/icon.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/bitbucket-logo/icon.js",
|
|
6
|
-
"sideEffects":
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
7
9
|
"types": "../dist/types/bitbucket-logo/icon.d.ts",
|
|
8
10
|
"typesVersions": {
|
|
9
11
|
">=4.5 <5.4": {
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
"main": "../dist/cjs/confluence-logo/icon.js",
|
|
4
4
|
"module": "../dist/esm/confluence-logo/icon.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/confluence-logo/icon.js",
|
|
6
|
-
"sideEffects":
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
7
9
|
"types": "../dist/types/confluence-logo/icon.d.ts",
|
|
8
10
|
"typesVersions": {
|
|
9
11
|
">=4.5 <5.4": {
|
package/constants/package.json
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
"main": "../dist/cjs/constants.js",
|
|
4
4
|
"module": "../dist/esm/constants.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/constants.js",
|
|
6
|
-
"sideEffects":
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
7
9
|
"types": "../dist/types/constants.d.ts",
|
|
8
10
|
"typesVersions": {
|
|
9
11
|
">=4.5 <5.4": {
|
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,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,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,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
|
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
|
|
@@ -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/jira-icon/package.json
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
"main": "../dist/cjs/jira-logo/icon.js",
|
|
4
4
|
"module": "../dist/esm/jira-logo/icon.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/jira-logo/icon.js",
|
|
6
|
-
"sideEffects":
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
7
9
|
"types": "../dist/types/jira-logo/icon.d.ts",
|
|
8
10
|
"typesVersions": {
|
|
9
11
|
">=4.5 <5.4": {
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
"main": "../dist/cjs/jira-service-management-logo/icon.js",
|
|
4
4
|
"module": "../dist/esm/jira-service-management-logo/icon.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/jira-service-management-logo/icon.js",
|
|
6
|
-
"sideEffects":
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
7
9
|
"types": "../dist/types/jira-service-management-logo/icon.d.ts",
|
|
8
10
|
"typesVersions": {
|
|
9
11
|
">=4.5 <5.4": {
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
"main": "../dist/cjs/jira-software-logo/icon.js",
|
|
4
4
|
"module": "../dist/esm/jira-software-logo/icon.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/jira-software-logo/icon.js",
|
|
6
|
-
"sideEffects":
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
7
9
|
"types": "../dist/types/jira-software-logo/icon.d.ts",
|
|
8
10
|
"typesVersions": {
|
|
9
11
|
">=4.5 <5.4": {
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
"main": "../dist/cjs/opsgenie-logo/icon.js",
|
|
4
4
|
"module": "../dist/esm/opsgenie-logo/icon.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/opsgenie-logo/icon.js",
|
|
6
|
-
"sideEffects":
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
7
9
|
"types": "../dist/types/opsgenie-logo/icon.d.ts",
|
|
8
10
|
"typesVersions": {
|
|
9
11
|
">=4.5 <5.4": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/logo",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.0.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/"
|
|
@@ -12,28 +12,32 @@
|
|
|
12
12
|
"module": "dist/esm/index.js",
|
|
13
13
|
"module:es2019": "dist/es2019/index.js",
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
|
15
|
-
"sideEffects":
|
|
15
|
+
"sideEffects": [
|
|
16
|
+
"**/*.compiled.css"
|
|
17
|
+
],
|
|
16
18
|
"atlaskit:src": "src/index.tsx",
|
|
17
19
|
"atlassian": {
|
|
18
20
|
"team": "Design System Team",
|
|
19
21
|
"website": {
|
|
20
22
|
"name": "Logo",
|
|
21
|
-
"category": "
|
|
23
|
+
"category": "Images and icons"
|
|
22
24
|
},
|
|
23
25
|
"runReact18": true
|
|
24
26
|
},
|
|
25
27
|
"dependencies": {
|
|
26
|
-
"@atlaskit/ds-lib": "^3.
|
|
28
|
+
"@atlaskit/ds-lib": "^3.3.0",
|
|
27
29
|
"@atlaskit/theme": "^14.0.0",
|
|
28
|
-
"@atlaskit/tokens": "^2.
|
|
30
|
+
"@atlaskit/tokens": "^2.4.0",
|
|
29
31
|
"@babel/runtime": "^7.0.0",
|
|
30
|
-
"@
|
|
32
|
+
"@compiled/css": "^0.17.1",
|
|
33
|
+
"@compiled/react": "^0.18.1"
|
|
31
34
|
},
|
|
32
35
|
"peerDependencies": {
|
|
33
36
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
34
37
|
},
|
|
35
38
|
"devDependencies": {
|
|
36
39
|
"@af/accessibility-testing": "*",
|
|
40
|
+
"@af/integration-testing": "*",
|
|
37
41
|
"@atlaskit/ssr": "*",
|
|
38
42
|
"@atlaskit/visual-regression": "*",
|
|
39
43
|
"@testing-library/react": "^12.1.5",
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
"main": "../dist/cjs/statuspage-logo/icon.js",
|
|
4
4
|
"module": "../dist/esm/statuspage-logo/icon.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/statuspage-logo/icon.js",
|
|
6
|
-
"sideEffects":
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
7
9
|
"types": "../dist/types/statuspage-logo/icon.d.ts",
|
|
8
10
|
"typesVersions": {
|
|
9
11
|
">=4.5 <5.4": {
|
package/trello-icon/package.json
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
"main": "../dist/cjs/trello-logo/icon.js",
|
|
4
4
|
"module": "../dist/esm/trello-logo/icon.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/trello-logo/icon.js",
|
|
6
|
-
"sideEffects":
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
7
9
|
"types": "../dist/types/trello-logo/icon.d.ts",
|
|
8
10
|
"typesVersions": {
|
|
9
11
|
">=4.5 <5.4": {
|