@atlaskit/logo 13.6.0 → 13.7.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 +41 -0
- package/codemods/{14.0.0-rename-imports.ts → 13.6.0-rename-imports.tsx} +7 -5
- package/codemods/__tests__/13.6.0-rename-imports.test.tsx +233 -0
- package/dist/cjs/constants.js +8 -0
- package/dist/cjs/hipchat-logo/icon.js +4 -0
- package/dist/cjs/hipchat-logo/logo.js +4 -0
- package/dist/cjs/hipchat-logo/wordmark.js +3 -0
- package/dist/cjs/jira-core-logo/icon.js +5 -1
- package/dist/cjs/jira-core-logo/logo.js +5 -1
- package/dist/cjs/jira-core-logo/wordmark.js +4 -1
- package/dist/cjs/jira-service-desk-logo/icon.js +5 -1
- package/dist/cjs/jira-service-desk-logo/logo.js +5 -1
- package/dist/cjs/jira-service-desk-logo/wordmark.js +4 -1
- package/dist/cjs/opsgenie-logo/old-icon.js +5 -1
- package/dist/cjs/opsgenie-logo/old-logo.js +2 -3
- package/dist/cjs/opsgenie-logo/old-wordmark.js +4 -1
- package/dist/cjs/stride-logo/icon.js +5 -1
- package/dist/cjs/stride-logo/logo.js +5 -1
- package/dist/cjs/stride-logo/wordmark.js +4 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/constants.js +7 -0
- package/dist/es2019/hipchat-logo/icon.js +4 -0
- package/dist/es2019/hipchat-logo/logo.js +4 -0
- package/dist/es2019/hipchat-logo/wordmark.js +4 -0
- package/dist/es2019/jira-core-logo/icon.js +5 -1
- package/dist/es2019/jira-core-logo/logo.js +5 -1
- package/dist/es2019/jira-core-logo/wordmark.js +5 -1
- package/dist/es2019/jira-service-desk-logo/icon.js +5 -1
- package/dist/es2019/jira-service-desk-logo/logo.js +5 -1
- package/dist/es2019/jira-service-desk-logo/wordmark.js +5 -1
- package/dist/es2019/opsgenie-logo/old-icon.js +5 -1
- package/dist/es2019/opsgenie-logo/old-logo.js +2 -3
- package/dist/es2019/opsgenie-logo/old-wordmark.js +5 -1
- package/dist/es2019/stride-logo/icon.js +5 -1
- package/dist/es2019/stride-logo/logo.js +5 -1
- package/dist/es2019/stride-logo/wordmark.js +5 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/constants.js +7 -0
- package/dist/esm/hipchat-logo/icon.js +4 -0
- package/dist/esm/hipchat-logo/logo.js +4 -0
- package/dist/esm/hipchat-logo/wordmark.js +4 -0
- package/dist/esm/jira-core-logo/icon.js +5 -1
- package/dist/esm/jira-core-logo/logo.js +5 -1
- package/dist/esm/jira-core-logo/wordmark.js +5 -1
- package/dist/esm/jira-service-desk-logo/icon.js +5 -1
- package/dist/esm/jira-service-desk-logo/logo.js +5 -1
- package/dist/esm/jira-service-desk-logo/wordmark.js +5 -1
- package/dist/esm/opsgenie-logo/old-icon.js +5 -1
- package/dist/esm/opsgenie-logo/old-logo.js +2 -3
- package/dist/esm/opsgenie-logo/old-wordmark.js +5 -1
- package/dist/esm/stride-logo/icon.js +5 -1
- package/dist/esm/stride-logo/logo.js +5 -1
- package/dist/esm/stride-logo/wordmark.js +5 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/constants.d.ts +7 -0
- package/dist/types/hipchat-logo/icon.d.ts +3 -0
- package/dist/types/hipchat-logo/logo.d.ts +3 -0
- package/dist/types/hipchat-logo/wordmark.d.ts +3 -0
- package/dist/types/jira-core-logo/icon.d.ts +3 -0
- package/dist/types/jira-core-logo/logo.d.ts +3 -0
- package/dist/types/jira-core-logo/wordmark.d.ts +3 -0
- package/dist/types/jira-service-desk-logo/icon.d.ts +3 -0
- package/dist/types/jira-service-desk-logo/logo.d.ts +3 -0
- package/dist/types/jira-service-desk-logo/wordmark.d.ts +3 -0
- package/dist/types/opsgenie-logo/old-icon.d.ts +3 -0
- package/dist/types/opsgenie-logo/old-logo.d.ts +1 -2
- package/dist/types/opsgenie-logo/old-wordmark.d.ts +3 -0
- package/dist/types/stride-logo/icon.d.ts +3 -0
- package/dist/types/stride-logo/logo.d.ts +3 -0
- package/dist/types/stride-logo/wordmark.d.ts +3 -0
- package/package.json +3 -3
- package/codemods/__tests__/14.0.0-rename-imports.ts +0 -170
|
@@ -11,6 +11,10 @@ var svg = function svg(iconGradientStart, iconGradientStop) {
|
|
|
11
11
|
});
|
|
12
12
|
return "<canvas height=\"32\" width=\"211\" aria-hidden=\"true\"></canvas>\n <svg viewBox=\"0 0 211 32\" xmlns=\"http://www.w3.org/2000/svg\" focusable=\"false\" aria-hidden=\"true\">\n <defs>\n <linearGradient x1=\"38.0412357%\" y1=\"6.63683429%\" x2=\"59.8560262%\" y2=\"63.7778713%\" id=\"".concat(id, "\">\n <stop stop-color=\"").concat(iconGradientStart, "\" ").concat(iconGradientStart === 'inherit' ? 'stop-opacity="0.4"' : '', " offset=\"0%\"></stop>\n <stop stop-color=\"").concat(iconGradientStop, "\" offset=\"100%\"></stop>\n </linearGradient>\n </defs>\n <g stroke=\"none\" stroke-width=\"1\" fill-rule=\"nonzero\">\n <path d=\"M11.191,13.4484211 L17.7175,13.4736842 C18.1019517,13.475472 18.4524969,13.6934048 18.623358,14.0368529 C18.794219,14.3803011 18.7561568,14.7904914 18.525,15.0968421 L8.892,27.9242105 C7.43758041,26.8410282 6.47431921,25.2259563 6.21419504,23.4344131 C5.95407087,21.6428699 6.41839981,19.821665 7.505,18.3715789 L11.191,13.4484211 Z\" fill=\"url(#").concat(id, ")\"></path>\n <path d=\"M7.50183333,18.3715789 L1.01333333,18.3305263 C0.628881593,18.3287385 0.278336389,18.1108058 0.10747538,17.7673576 C-0.0633856302,17.4239094 -0.0253234719,17.0137191 0.205833333,16.7073684 L9.74383333,4 C11.1982529,5.08318232 12.1615141,6.69825426 12.4216383,8.48979744 C12.6817625,10.2813406 12.2174335,12.1025456 11.1308333,13.5526316 L7.50183333,18.3715789 Z\" fill=\"currentColor\"></path>\n <path d=\"M32.07,18.956 C32.07,20.646 31.394,21.842 29.418,21.842 C28.56,21.842 27.702,21.686 27,21.4 L27,23.662 C27.65,23.896 28.586,24.104 29.808,24.104 C33.032,24.104 34.41,21.946 34.41,18.8 L34.41,6.918 L32.07,6.918 L32.07,18.956 Z M37.894,7.568 C37.894,8.556 38.544,9.128 39.454,9.128 C40.364,9.128 41.014,8.556 41.014,7.568 C41.014,6.58 40.364,6.008 39.454,6.008 C38.544,6.008 37.894,6.58 37.894,7.568 Z M38.31,24 L40.546,24 L40.546,11 L38.31,11 L38.31,24 Z M43.926,24 L46.11,24 L46.11,16.33 C46.11,13.574 47.852,12.716 50.712,13.002 L50.712,10.818 C48.164,10.662 46.864,11.754 46.11,13.288 L46.11,11 L43.926,11 L43.926,24 Z M61.45,24 L61.45,21.66 C60.618,23.376 59.058,24.26 57.056,24.26 C53.598,24.26 51.856,21.322 51.856,17.5 C51.856,13.834 53.676,10.74 57.316,10.74 C59.214,10.74 60.67,11.598 61.45,13.288 L61.45,11 L63.686,11 L63.686,24 L61.45,24 Z M54.092,17.5 C54.092,20.62 55.34,22.18 57.654,22.18 C59.656,22.18 61.45,20.906 61.45,18.02 L61.45,16.98 C61.45,14.094 59.812,12.82 57.914,12.82 C55.392,12.82 54.092,14.484 54.092,17.5 Z M82.926,19.294 C82.926,16.226 80.898,15.056 77.284,14.146 C74.268,13.392 73.176,12.69 73.176,11.286 C73.176,9.726 74.502,8.946 76.738,8.946 C78.506,8.946 80.352,9.258 82.068,10.246 L82.068,7.906 C80.898,7.256 79.312,6.658 76.842,6.658 C72.864,6.658 70.836,8.634 70.836,11.286 C70.836,14.094 72.552,15.42 76.4,16.356 C79.65,17.136 80.586,17.942 80.586,19.45 C80.586,20.958 79.624,21.972 77.05,21.972 C74.788,21.972 72.344,21.374 70.758,20.542 L70.758,22.934 C72.084,23.61 73.618,24.26 76.92,24.26 C81.158,24.26 82.926,22.258 82.926,19.294 Z M95.926,23.48 C94.86,24.052 93.222,24.26 91.896,24.26 C87.034,24.26 84.902,21.452 84.902,17.474 C84.902,13.548 87.086,10.74 91.038,10.74 C95.042,10.74 96.654,13.522 96.654,17.474 L96.654,18.488 L87.164,18.488 C87.476,20.698 88.906,22.128 91.974,22.128 C93.482,22.128 94.756,21.842 95.926,21.426 L95.926,23.48 Z M90.934,12.768 C88.568,12.768 87.372,14.302 87.138,16.564 L94.392,16.564 C94.262,14.146 93.17,12.768 90.934,12.768 Z M99.306,24 L101.49,24 L101.49,16.33 C101.49,13.574 103.232,12.716 106.092,13.002 L106.092,10.818 C103.544,10.662 102.244,11.754 101.49,13.288 L101.49,11 L99.306,11 L99.306,24 Z M111.604,24 L114.594,24 L119.638,11 L117.298,11 L113.112,22.102 L108.9,11 L106.56,11 L111.604,24 Z M121.146,7.568 C121.146,8.556 121.796,9.128 122.706,9.128 C123.616,9.128 124.266,8.556 124.266,7.568 C124.266,6.58 123.616,6.008 122.706,6.008 C121.796,6.008 121.146,6.58 121.146,7.568 Z M121.562,24 L123.798,24 L123.798,11 L121.562,11 L121.562,24 Z M136.356,21.66 C135.55,21.946 134.718,22.128 133.392,22.128 C129.986,22.128 128.582,19.996 128.582,17.474 C128.582,14.952 129.96,12.82 133.34,12.82 C134.562,12.82 135.446,13.054 136.278,13.444 L136.278,11.364 C135.264,10.896 134.354,10.74 133.184,10.74 C128.556,10.74 126.398,13.548 126.398,17.474 C126.398,21.452 128.556,24.26 133.184,24.26 C134.38,24.26 135.576,24.078 136.356,23.662 L136.356,21.66 Z M149.148,23.48 C148.082,24.052 146.444,24.26 145.118,24.26 C140.256,24.26 138.124,21.452 138.124,17.474 C138.124,13.548 140.308,10.74 144.26,10.74 C148.264,10.74 149.876,13.522 149.876,17.474 L149.876,18.488 L140.386,18.488 C140.698,20.698 142.128,22.128 145.196,22.128 C146.704,22.128 147.978,21.842 149.148,21.426 L149.148,23.48 Z M144.156,12.768 C141.79,12.768 140.594,14.302 140.36,16.564 L147.614,16.564 C147.484,14.146 146.392,12.768 144.156,12.768 Z M157.572,6.918 L163.864,6.918 C169.402,6.918 172.08,10.376 172.08,15.498 C172.08,20.672 169.376,24 163.864,24 L157.572,24 L157.572,6.918 Z M163.76,9.154 L159.912,9.154 L159.912,21.764 L163.89,21.764 C167.79,21.764 169.74,19.71 169.74,15.576 C169.74,11.416 167.894,9.154 163.76,9.154 Z M185.054,23.48 C183.988,24.052 182.35,24.26 181.024,24.26 C176.162,24.26 174.03,21.452 174.03,17.474 C174.03,13.548 176.214,10.74 180.166,10.74 C184.17,10.74 185.782,13.522 185.782,17.474 L185.782,18.488 L176.292,18.488 C176.604,20.698 178.034,22.128 181.102,22.128 C182.61,22.128 183.884,21.842 185.054,21.426 L185.054,23.48 Z M180.062,12.768 C177.696,12.768 176.5,14.302 176.266,16.564 L183.52,16.564 C183.39,14.146 182.298,12.768 180.062,12.768 Z M197.404,20.464 C197.404,18.202 195.948,17.136 193.062,16.434 C190.67,15.862 190.046,15.29 190.046,14.38 C190.046,13.366 190.93,12.794 192.568,12.794 C193.946,12.794 195.22,13.21 196.78,13.99 L196.78,11.676 C195.818,11.156 194.284,10.74 192.594,10.74 C189.63,10.74 187.888,12.118 187.888,14.38 C187.888,16.512 189.11,17.63 191.996,18.332 C194.466,18.93 195.22,19.502 195.22,20.49 C195.22,21.504 194.336,22.206 192.62,22.206 C190.982,22.206 189.11,21.582 187.992,20.932 L187.992,23.298 C188.98,23.818 190.566,24.26 192.516,24.26 C196,24.26 197.404,22.622 197.404,20.464 Z M202.214,24 L202.214,17.916 L207.934,24 L210.976,24 L204.606,17.396 L210.716,11 L207.804,11 L202.214,17.084 L202.214,5.566 L199.978,5.566 L199.978,24 L202.214,24 Z\" fill=\"inherit\" fill-rule=\"evenodd\"></path>\n </g>\n </svg>");
|
|
13
13
|
};
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated JiraServiceDeskLogo will be removed from atlaskit/logo in the next major release. Please use JiraServiceManagementLogo instead.
|
|
16
|
+
*/
|
|
17
|
+
|
|
14
18
|
|
|
15
19
|
export var JiraServiceDeskLogo = function JiraServiceDeskLogo(_ref) {
|
|
16
20
|
var _ref$iconColor = _ref.iconColor,
|
|
@@ -28,7 +32,7 @@ export var JiraServiceDeskLogo = function JiraServiceDeskLogo(_ref) {
|
|
|
28
32
|
textColor = _ref$textColor === void 0 ? defaultLogoParams.textColor : _ref$textColor;
|
|
29
33
|
|
|
30
34
|
if (process.env.NODE_ENV !== 'production') {
|
|
31
|
-
warnOnce('JiraServiceDeskLogo has been deprecated and will be removed from @atlaskit/logo
|
|
35
|
+
warnOnce('JiraServiceDeskLogo has been deprecated and will be removed from @atlaskit/logo in the next major release. Please use JiraServiceManagementLogo instead.');
|
|
32
36
|
}
|
|
33
37
|
|
|
34
38
|
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
@@ -4,6 +4,10 @@ import warnOnce from '@atlaskit/ds-lib/warn-once';
|
|
|
4
4
|
import { defaultLogoParams } from '../constants';
|
|
5
5
|
import Wrapper from '../wrapper';
|
|
6
6
|
var svg = "<canvas height=\"32\" width=\"185\" aria-hidden=\"true\"></canvas>\n<svg viewBox=\"0 0 185 32\" xmlns=\"http://www.w3.org/2000/svg\" focusable=\"false\" aria-hidden=\"true\">\n <g stroke=\"none\" stroke-width=\"1\" fill-rule=\"evenodd\" fill=\"inherit\">\n <path d=\"M5.07,18.956 C5.07,20.646 4.394,21.842 2.418,21.842 C1.56,21.842 0.702,21.686 9.1038288e-15,21.4 L9.1038288e-15,23.662 C0.65,23.896 1.586,24.104 2.808,24.104 C6.032,24.104 7.41,21.946 7.41,18.8 L7.41,6.918 L5.07,6.918 L5.07,18.956 Z M10.894,7.568 C10.894,8.556 11.544,9.128 12.454,9.128 C13.364,9.128 14.014,8.556 14.014,7.568 C14.014,6.58 13.364,6.008 12.454,6.008 C11.544,6.008 10.894,6.58 10.894,7.568 Z M11.31,24 L13.546,24 L13.546,11 L11.31,11 L11.31,24 Z M16.926,24 L19.11,24 L19.11,16.33 C19.11,13.574 20.852,12.716 23.712,13.002 L23.712,10.818 C21.164,10.662 19.864,11.754 19.11,13.288 L19.11,11 L16.926,11 L16.926,24 Z M34.45,24 L34.45,21.66 C33.618,23.376 32.058,24.26 30.056,24.26 C26.598,24.26 24.856,21.322 24.856,17.5 C24.856,13.834 26.676,10.74 30.316,10.74 C32.214,10.74 33.67,11.598 34.45,13.288 L34.45,11 L36.686,11 L36.686,24 L34.45,24 Z M27.092,17.5 C27.092,20.62 28.34,22.18 30.654,22.18 C32.656,22.18 34.45,20.906 34.45,18.02 L34.45,16.98 C34.45,14.094 32.812,12.82 30.914,12.82 C28.392,12.82 27.092,14.484 27.092,17.5 Z M55.926,19.294 C55.926,16.226 53.898,15.056 50.284,14.146 C47.268,13.392 46.176,12.69 46.176,11.286 C46.176,9.726 47.502,8.946 49.738,8.946 C51.506,8.946 53.352,9.258 55.068,10.246 L55.068,7.906 C53.898,7.256 52.312,6.658 49.842,6.658 C45.864,6.658 43.836,8.634 43.836,11.286 C43.836,14.094 45.552,15.42 49.4,16.356 C52.65,17.136 53.586,17.942 53.586,19.45 C53.586,20.958 52.624,21.972 50.05,21.972 C47.788,21.972 45.344,21.374 43.758,20.542 L43.758,22.934 C45.084,23.61 46.618,24.26 49.92,24.26 C54.158,24.26 55.926,22.258 55.926,19.294 Z M68.926,23.48 C67.86,24.052 66.222,24.26 64.896,24.26 C60.034,24.26 57.902,21.452 57.902,17.474 C57.902,13.548 60.086,10.74 64.038,10.74 C68.042,10.74 69.654,13.522 69.654,17.474 L69.654,18.488 L60.164,18.488 C60.476,20.698 61.906,22.128 64.974,22.128 C66.482,22.128 67.756,21.842 68.926,21.426 L68.926,23.48 Z M63.934,12.768 C61.568,12.768 60.372,14.302 60.138,16.564 L67.392,16.564 C67.262,14.146 66.17,12.768 63.934,12.768 Z M72.306,24 L74.49,24 L74.49,16.33 C74.49,13.574 76.232,12.716 79.092,13.002 L79.092,10.818 C76.544,10.662 75.244,11.754 74.49,13.288 L74.49,11 L72.306,11 L72.306,24 Z M84.604,24 L87.594,24 L92.638,11 L90.298,11 L86.112,22.102 L81.9,11 L79.56,11 L84.604,24 Z M94.146,7.568 C94.146,8.556 94.796,9.128 95.706,9.128 C96.616,9.128 97.266,8.556 97.266,7.568 C97.266,6.58 96.616,6.008 95.706,6.008 C94.796,6.008 94.146,6.58 94.146,7.568 Z M94.562,24 L96.798,24 L96.798,11 L94.562,11 L94.562,24 Z M109.356,21.66 C108.55,21.946 107.718,22.128 106.392,22.128 C102.986,22.128 101.582,19.996 101.582,17.474 C101.582,14.952 102.96,12.82 106.34,12.82 C107.562,12.82 108.446,13.054 109.278,13.444 L109.278,11.364 C108.264,10.896 107.354,10.74 106.184,10.74 C101.556,10.74 99.398,13.548 99.398,17.474 C99.398,21.452 101.556,24.26 106.184,24.26 C107.38,24.26 108.576,24.078 109.356,23.662 L109.356,21.66 Z M122.148,23.48 C121.082,24.052 119.444,24.26 118.118,24.26 C113.256,24.26 111.124,21.452 111.124,17.474 C111.124,13.548 113.308,10.74 117.26,10.74 C121.264,10.74 122.876,13.522 122.876,17.474 L122.876,18.488 L113.386,18.488 C113.698,20.698 115.128,22.128 118.196,22.128 C119.704,22.128 120.978,21.842 122.148,21.426 L122.148,23.48 Z M117.156,12.768 C114.79,12.768 113.594,14.302 113.36,16.564 L120.614,16.564 C120.484,14.146 119.392,12.768 117.156,12.768 Z M130.572,6.918 L136.864,6.918 C142.402,6.918 145.08,10.376 145.08,15.498 C145.08,20.672 142.376,24 136.864,24 L130.572,24 L130.572,6.918 Z M136.76,9.154 L132.912,9.154 L132.912,21.764 L136.89,21.764 C140.79,21.764 142.74,19.71 142.74,15.576 C142.74,11.416 140.894,9.154 136.76,9.154 Z M158.054,23.48 C156.988,24.052 155.35,24.26 154.024,24.26 C149.162,24.26 147.03,21.452 147.03,17.474 C147.03,13.548 149.214,10.74 153.166,10.74 C157.17,10.74 158.782,13.522 158.782,17.474 L158.782,18.488 L149.292,18.488 C149.604,20.698 151.034,22.128 154.102,22.128 C155.61,22.128 156.884,21.842 158.054,21.426 L158.054,23.48 Z M153.062,12.768 C150.696,12.768 149.5,14.302 149.266,16.564 L156.52,16.564 C156.39,14.146 155.298,12.768 153.062,12.768 Z M170.404,20.464 C170.404,18.202 168.948,17.136 166.062,16.434 C163.67,15.862 163.046,15.29 163.046,14.38 C163.046,13.366 163.93,12.794 165.568,12.794 C166.946,12.794 168.22,13.21 169.78,13.99 L169.78,11.676 C168.818,11.156 167.284,10.74 165.594,10.74 C162.63,10.74 160.888,12.118 160.888,14.38 C160.888,16.512 162.11,17.63 164.996,18.332 C167.466,18.93 168.22,19.502 168.22,20.49 C168.22,21.504 167.336,22.206 165.62,22.206 C163.982,22.206 162.11,21.582 160.992,20.932 L160.992,23.298 C161.98,23.818 163.566,24.26 165.516,24.26 C169,24.26 170.404,22.622 170.404,20.464 Z M175.214,24 L175.214,17.916 L180.934,24 L183.976,24 L177.606,17.396 L183.716,11 L180.804,11 L175.214,17.084 L175.214,5.566 L172.978,5.566 L172.978,24 L175.214,24 Z\"></path>\n </g>\n</svg>";
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated JiraServiceDeskWordmark will be removed from atlaskit/logo in the next major release. Please use JiraServiceManagementWordmark instead.
|
|
9
|
+
*/
|
|
10
|
+
|
|
7
11
|
export var JiraServiceDeskWordmark = function JiraServiceDeskWordmark(_ref) {
|
|
8
12
|
var _ref$iconColor = _ref.iconColor,
|
|
9
13
|
iconColor = _ref$iconColor === void 0 ? defaultLogoParams.iconColor : _ref$iconColor,
|
|
@@ -20,7 +24,7 @@ export var JiraServiceDeskWordmark = function JiraServiceDeskWordmark(_ref) {
|
|
|
20
24
|
textColor = _ref$textColor === void 0 ? defaultLogoParams.textColor : _ref$textColor;
|
|
21
25
|
|
|
22
26
|
if (process.env.NODE_ENV !== 'production') {
|
|
23
|
-
warnOnce('JiraServiceDeskWordmark has been deprecated and will be removed from @atlaskit/logo
|
|
27
|
+
warnOnce('JiraServiceDeskWordmark has been deprecated and will be removed from @atlaskit/logo in the next major release. Please use JiraServiceManagementWordmark instead.');
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
@@ -16,6 +16,10 @@ var svg = function svg(iconGradientStart, iconGradientStop) {
|
|
|
16
16
|
* This is because it casing it incorrect, it should be Opsgenie, not OpsGenie.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated OpsGenieIcon is incorrectly cased and will be removed from atlaskit/logo in the next major release. Please use OpsgenieIcon (no capital 'g') instead.
|
|
21
|
+
*/
|
|
22
|
+
|
|
19
23
|
|
|
20
24
|
export var OpsGenieIcon = function OpsGenieIcon(_ref) {
|
|
21
25
|
var _ref$iconColor = _ref.iconColor,
|
|
@@ -31,7 +35,7 @@ export var OpsGenieIcon = function OpsGenieIcon(_ref) {
|
|
|
31
35
|
textColor = _ref$textColor === void 0 ? defaultLogoParams.textColor : _ref$textColor;
|
|
32
36
|
|
|
33
37
|
if (process.env.NODE_ENV !== 'production') {
|
|
34
|
-
warnOnce('OpsGenieIcon will be renamed to OpsgenieIcon
|
|
38
|
+
warnOnce('OpsGenieIcon will be renamed to OpsgenieIcon in the next major release. Please use OpsgenieIcon instead.');
|
|
35
39
|
}
|
|
36
40
|
|
|
37
41
|
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
@@ -12,8 +12,7 @@ var svg = function svg(iconGradientStart, iconGradientStop) {
|
|
|
12
12
|
return "<canvas height=\"32\" width=\"133\" aria-hidden=\"true\"></canvas>\n <svg viewBox=\"0 0 133 32\" xmlns=\"http://www.w3.org/2000/svg\" focusable=\"false\" aria-hidden=\"true\">\n <defs>\n <linearGradient id=\"".concat(id, "-1\" x1=\"50%\" x2=\"50%\" y1=\"0%\" y2=\"100%\">\n <stop\n offset=\"0%\"\n stop-color=\"").concat(iconGradientStop, "\"\n />\n <stop\n offset=\"82%\"\n stop-color=\"").concat(iconGradientStart, "\"\n ").concat(iconGradientStart === 'inherit' ? 'stop-opacity="0.4"' : '', "\n />\n </linearGradient>\n <linearGradient id=\"").concat(id, "-2\" x1=\"7.133%\" x2=\"50%\" y1=\"13.352%\" y2=\"58.228%\">\n <stop\n offset=\"0%\"\n stop-color=\"").concat(iconGradientStop, "\"\n />\n <stop\n stop-color=\"").concat(iconGradientStart, "\"\n ").concat(iconGradientStart === 'inherit' ? 'stop-opacity="0.4"' : '', "\n offset=\"100%\"\n />\n </linearGradient>\n </defs>\n <g fill-rule=\"evenodd\">\n <path fill=\"inherit\" fill-rule=\"nonzero\" d=\"M27,14.9963259 C27,9.84140338 29.9575,6.22438088 35.2484675,6.22438088 C40.539435,6.22438088 43.4880625,9.84436088 43.4880625,14.9963259 C43.4880625,20.1985684 40.5305625,23.8422084 35.263255,23.8422084 C29.9959475,23.8422084 27,20.1956109 27,14.9963259 Z M29.34234,14.9963259 C29.34234,18.6133484 31.03403,21.6063384 35.25734,21.6063384 C39.48065,21.6063384 41.1220625,18.6133484 41.1220625,14.9963259 C41.1220625,11.4473259 39.4303725,8.46320838 35.239595,8.46320838 C31.0488175,8.46320838 29.34234,11.4561984 29.34234,14.9963259 Z M48.7050925,21.2928434 L48.7050925,28.6570184 L46.466265,28.6570184 L46.466265,10.5719059 L48.7050925,10.5719059 L48.7050925,12.9142459 C49.53615,11.1959384 51.1006675,10.3116459 53.102895,10.3116459 C56.56317,10.3116459 58.308095,13.2514009 58.308095,17.0754484 C58.308095,20.7457059 56.486275,23.8422084 52.842635,23.8422084 C50.94392,23.8422084 49.4858725,22.9845334 48.7050925,21.2928434 Z M52.50548,12.3937259 C50.500295,12.3937259 48.7050925,13.6684084 48.7050925,16.5578859 L48.7050925,17.5989259 C48.7050925,20.4854459 50.3435475,21.7601284 52.2540925,21.7601284 C54.77684,21.7601284 56.07814,20.0950559 56.07814,17.0754484 C56.0692675,13.9552859 54.8212025,12.3937259 52.50548,12.3937259 Z M64.99796,23.8422084 C63.4334449,23.8787499 61.881995,23.5496237 60.46707,22.8810209 L60.46707,20.5150209 C61.8881071,21.303432 63.4771215,21.740487 65.1014725,21.7897034 C66.81978,21.7897034 67.7040725,21.0887759 67.7040725,20.0713959 C67.7040725,19.0540159 66.94991,18.5098359 64.47744,17.9124209 C61.5879625,17.2085359 60.3635575,16.0906009 60.3635575,13.9582434 C60.3635575,11.6927984 62.1084825,10.3146034 65.074855,10.3146034 C66.5257548,10.2930388 67.96137,10.6131901 69.2656325,11.2491734 L69.2656325,13.5678534 C67.7040725,12.7870734 66.42939,12.3848534 65.0482375,12.3848534 C63.4097825,12.3848534 62.52549,12.9556509 62.52549,13.9730309 C62.52549,14.8839409 63.1495225,15.4517809 65.5450975,16.0284934 C68.4316175,16.7294209 69.889665,17.8029934 69.889665,20.0625234 C69.889665,22.2037534 68.4848525,23.8422084 64.99796,23.8422084 Z M81.7581125,21.2396084 C80.9240975,22.9579159 79.3625375,23.8422084 77.3573525,23.8422084 C73.923695,23.8422084 72.2053875,20.9024534 72.2053875,17.0754484 C72.2053875,13.4081484 74.00059,10.3116459 77.62057,10.3116459 C79.519285,10.3116459 80.9773325,11.1693209 81.76107,12.8610109 L81.76107,10.5719059 L83.9466625,10.5719059 L83.9466625,22.4019059 C83.9466625,26.2289109 82.15146,28.8048934 77.49044,28.8048934 C75.9171438,28.849884 74.3485221,28.6124873 72.858995,28.1039659 L72.858995,25.9154159 C74.315222,26.4191931 75.8431618,26.6848349 77.38397,26.7021109 C80.63722,26.7021109 81.7581125,24.9601434 81.7581125,22.5379509 L81.7581125,21.2396084 Z M77.957725,21.7601284 C79.9599525,21.7601284 81.7581125,20.4854459 81.7581125,17.5989259 L81.7581125,16.5578859 C81.7581125,13.6684084 80.1167,12.3937259 78.2091125,12.3937259 C75.6834075,12.3937259 74.3821075,14.0587984 74.3821075,17.0754484 C74.39098,20.1956109 75.6420025,21.7601284 77.957725,21.7601284 Z M93.5467075,23.8422084 C88.6786625,23.8422084 86.546305,21.0325834 86.546305,17.0399584 C86.546305,13.1094409 88.7318975,10.2998159 92.6890325,10.2998159 C96.696445,10.2998159 98.308282,13.0828234 98.308282,17.0399584 L98.308282,18.0662109 L88.8087925,18.0662109 C89.1222875,20.2784209 90.5537175,21.7098509 93.6236025,21.7098509 C94.9737094,21.7089885 96.313149,21.4707325 97.580737,21.0059659 L97.580737,23.0762159 C96.51308,23.6351834 94.874625,23.8422084 93.5467075,23.8422084 Z M88.7851325,16.1527084 L96.045795,16.1527084 C95.915665,13.7305159 94.82139,12.3523209 92.5825625,12.3523209 C90.2165625,12.3404909 89.0335625,13.8754334 88.7851325,16.1408784 L88.7851325,16.1527084 Z M112.025168,23.5819484 L109.78634,23.5819484 L109.78634,15.7238709 C109.78634,13.3815309 108.848813,12.3404909 106.716455,12.3404909 C104.646205,12.3404909 103.202945,13.7186859 103.202945,16.3479034 L103.202945,23.5819484 L100.964118,23.5819484 L100.964118,10.5689484 L103.202945,10.5689484 L103.202945,12.7013059 C104.015399,11.1952365 105.603045,10.2712035 107.31387,10.3086884 C110.30686,10.3086884 112.025168,12.3789384 112.025168,15.9545559 L112.025168,23.5819484 Z M116.29284,5.57373088 C116.715541,5.54348282 117.130549,5.69826386 117.430208,5.99792296 C117.729867,6.29758207 117.884648,6.71258978 117.8544,7.13529088 C117.8544,7.99771665 117.155266,8.69685088 116.29284,8.69685088 C115.430414,8.69685088 114.73128,7.99771665 114.73128,7.13529088 C114.701032,6.71258978 114.855813,6.29758207 115.155472,5.99792296 C115.455131,5.69826386 115.870139,5.54348282 116.29284,5.57373088 Z M115.148287,10.5719059 L117.387115,10.5719059 L117.387115,23.5849059 L115.148287,23.5849059 L115.148287,10.5719059 Z M127.510637,23.8422084 C122.642592,23.8422084 120.510235,21.0325834 120.510235,17.0399584 C120.510235,13.1094409 122.695827,10.2998159 126.650005,10.2998159 C130.657417,10.2998159 132.269255,13.0828234 132.269255,17.0399584 L132.269255,18.0662109 L122.772722,18.0662109 C123.086217,20.2784209 124.517647,21.7098509 127.587532,21.7098509 C128.937639,21.7089885 130.277079,21.4707325 131.544667,21.0059659 L131.544667,23.0762159 C130.47701,23.6351834 128.838555,23.8422084 127.510637,23.8422084 Z M122.749062,16.1408784 L130.012682,16.1408784 C129.882552,13.7186859 128.788277,12.3404909 126.54945,12.3404909 C124.177535,12.3404909 122.982705,13.8754334 122.749062,16.1408784 Z\"/>\n <circle cx=\"10.055\" cy=\"10\" r=\"6\" fill=\"url(#").concat(id, "-1)\" fill-rule=\"nonzero\"/>\n <path fill=\"url(#").concat(id, "-2)\" fill-rule=\"nonzero\" d=\"M9.5466546,27.8535048 C5.6443752,25.3649677 2.39856217,21.9735337 0.0835689575,17.9658651 C-0.0952202525,17.6419027 0.0222963675,17.2343451 0.346122097,17.0553085 L0.374053287,17.0553085 L4.8989053,14.8208136 C5.2162202,14.6649408 5.6000426,14.7822878 5.7759446,15.088953 C8.0603155,18.9171632 11.4349681,21.9767185 15.4680659,23.876104 C13.9786912,25.3786979 12.3282342,26.7125519 10.5465911,27.8535048 C10.2398972,28.0418894 9.8533485,28.0418894 9.5466546,27.8535048 Z\"/>\n <path fill=\"currentColor\" fill-rule=\"nonzero\" d=\"M10.5633498,27.8535048 C14.4667513,25.3663345 17.7128569,21.9745949 20.0264354,17.9658651 C20.2034083,17.6413306 20.0894039,17.23488 19.7694685,17.0497222 L19.7359511,17.0497222 L15.2055128,14.8152274 C14.8898394,14.6599316 14.5078288,14.7774733 14.3340598,15.0833668 C12.0472876,18.9191667 8.663628,21.9817774 4.6195935,23.876104 C6.11093,25.3787865 7.7632469,26.7126296 9.5466546,27.8535048 C9.8574084,28.0488317 10.252596,28.0488317 10.5633498,27.8535048 Z\"/>\n </g>\n </svg>");
|
|
13
13
|
};
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
* @deprecated This has been deprecated as it is in the incorrect casing. It is meant to be Opsgenie logo.
|
|
15
|
+
* @deprecated OpsGenieLogo is incorrectly cased and will be removed from atlaskit/logo in the next major release. Please use OpsgenieLogo (no capital 'g') instead.
|
|
17
16
|
*/
|
|
18
17
|
|
|
19
18
|
|
|
@@ -31,7 +30,7 @@ export var OpsGenieLogo = function OpsGenieLogo(_ref) {
|
|
|
31
30
|
textColor = _ref$textColor === void 0 ? defaultLogoParams.textColor : _ref$textColor;
|
|
32
31
|
|
|
33
32
|
if (process.env.NODE_ENV !== 'production') {
|
|
34
|
-
warnOnce('OpsGenieLogo will be renamed to OpsgenieLogo
|
|
33
|
+
warnOnce('OpsGenieLogo will be renamed to OpsgenieLogo in the next major release. Please use OpsgenieLogo instead.');
|
|
35
34
|
}
|
|
36
35
|
|
|
37
36
|
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
@@ -4,6 +4,10 @@ import warnOnce from '@atlaskit/ds-lib/warn-once';
|
|
|
4
4
|
import { defaultLogoParams } from '../constants';
|
|
5
5
|
import Wrapper from '../wrapper';
|
|
6
6
|
var svg = "<canvas height=\"32\" width=\"148\" aria-hidden=\"true\"></canvas>\n<svg viewBox=\"0 0 148 32\" xmlns=\"http://www.w3.org/2000/svg\" focusable=\"false\" aria-hidden=\"true\">\n <g fill-rule=\"evenodd\" fill=\"inherit\">\n <path d=\"M0 14.996c0-5.155 2.958-8.772 8.248-8.772 5.291 0 8.24 3.62 8.24 8.772 0 5.203-2.957 8.846-8.225 8.846C2.996 23.842 0 20.196 0 14.996zm2.342 0c0 3.617 1.692 6.61 5.915 6.61 4.224 0 5.865-2.993 5.865-6.61 0-3.549-1.692-6.533-5.882-6.533-4.191 0-5.898 2.993-5.898 6.533zm19.363 6.297v7.364h-2.239V10.572h2.24v2.342c.83-1.718 2.395-2.602 4.397-2.602 3.46 0 5.205 2.94 5.205 6.763 0 3.67-1.822 6.767-5.465 6.767-1.9 0-3.357-.857-4.138-2.55zm3.8-8.9c-2.005 0-3.8 1.275-3.8 4.165v1.04c0 2.887 1.639 4.162 3.55 4.162 2.522 0 3.823-1.665 3.823-4.685-.009-3.12-1.257-4.681-3.573-4.681zm12.493 11.45a10.056 10.056 0 0 1-4.53-.962v-2.366A10.189 10.189 0 0 0 38.1 21.79c1.719 0 2.603-.701 2.603-1.719 0-1.017-.754-1.561-3.227-2.159-2.889-.703-4.113-1.821-4.113-3.954 0-2.265 1.744-3.643 4.71-3.643a9.248 9.248 0 0 1 4.192.934v2.319c-1.562-.78-2.837-1.183-4.218-1.183-1.638 0-2.523.57-2.523 1.588 0 .91.625 1.479 3.02 2.055 2.887.701 4.345 1.775 4.345 4.035 0 2.14-1.405 3.78-4.892 3.78zm16.76-2.603c-.834 1.718-2.395 2.602-4.4 2.602-3.434 0-5.153-2.94-5.153-6.767 0-3.667 1.796-6.763 5.416-6.763 1.898 0 3.356.857 4.14 2.549v-2.29h2.186v11.83c0 3.828-1.796 6.404-6.457 6.404a13.17 13.17 0 0 1-4.631-.701v-2.189c1.456.504 2.984.77 4.525.787 3.253 0 4.374-1.742 4.374-4.164V21.24zm-3.8.52c2.002 0 3.8-1.275 3.8-4.161v-1.041c0-2.89-1.641-4.164-3.549-4.164-2.526 0-3.827 1.665-3.827 4.681.009 3.12 1.26 4.685 3.576 4.685zm15.589 2.082c-4.868 0-7-2.81-7-6.802 0-3.93 2.185-6.74 6.142-6.74 4.007 0 5.62 2.783 5.62 6.74v1.026h-9.5c.313 2.212 1.745 3.644 4.815 3.644 1.35-.001 2.69-.24 3.957-.704v2.07c-1.068.56-2.706.766-4.034.766zm-4.762-7.69h7.26c-.13-2.421-1.224-3.8-3.462-3.8-2.366-.012-3.55 1.523-3.798 3.789v.012zm23.24 7.43h-2.239v-7.858c0-2.342-.937-3.384-3.07-3.384-2.07 0-3.513 1.379-3.513 4.008v7.234h-2.239V10.569h2.239V12.7a4.558 4.558 0 0 1 4.11-2.392c2.994 0 4.712 2.07 4.712 5.646v7.627zm4.268-18.008a1.461 1.461 0 0 1 1.561 1.561 1.562 1.562 0 1 1-3.123 0 1.461 1.461 0 0 1 1.562-1.561zm-1.145 4.998h2.24v13.013h-2.24V10.572zm12.363 13.27c-4.868 0-7-2.81-7-6.802 0-3.93 2.185-6.74 6.139-6.74 4.007 0 5.62 2.783 5.62 6.74v1.026h-9.497c.313 2.212 1.745 3.644 4.815 3.644 1.35-.001 2.69-.24 3.957-.704v2.07c-1.068.56-2.706.766-4.034.766zm-4.762-7.701h7.264c-.13-2.422-1.225-3.8-3.464-3.8-2.371 0-3.566 1.534-3.8 3.8z\" />\n </g>\n</svg>";
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated OpsGenieWordmark is incorrectly cased and will be removed from atlaskit/logo in the next major release. Please use OpsgenieLogo (no capital 'g') instead.
|
|
9
|
+
*/
|
|
10
|
+
|
|
7
11
|
export var OpsGenieWordmark = function OpsGenieWordmark(_ref) {
|
|
8
12
|
var _ref$iconColor = _ref.iconColor,
|
|
9
13
|
iconColor = _ref$iconColor === void 0 ? defaultLogoParams.iconColor : _ref$iconColor,
|
|
@@ -18,7 +22,7 @@ export var OpsGenieWordmark = function OpsGenieWordmark(_ref) {
|
|
|
18
22
|
textColor = _ref$textColor === void 0 ? defaultLogoParams.textColor : _ref$textColor;
|
|
19
23
|
|
|
20
24
|
if (process.env.NODE_ENV !== 'production') {
|
|
21
|
-
warnOnce('OpsGenieWordmark will be renamed to OpsgenieWordmark
|
|
25
|
+
warnOnce('OpsGenieWordmark will be renamed to OpsgenieWordmark in the next major release. Please use OpsgenieWordmark instead.');
|
|
22
26
|
}
|
|
23
27
|
|
|
24
28
|
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
@@ -11,6 +11,10 @@ var svg = function svg(iconGradientStart, iconGradientStop) {
|
|
|
11
11
|
});
|
|
12
12
|
return "<canvas height=\"32\" width=\"32\" aria-hidden=\"true\"></canvas>\n <svg viewBox=\"0 0 32 32\" xmlns=\"http://www.w3.org/2000/svg\" focusable=\"false\" aria-hidden=\"true\">\n <defs>\n <linearGradient x1=\"62.272%\" x2=\"15.737%\" y1=\"26.041%\" y2=\"68.741%\" id=\"".concat(id, "\">\n <stop stop-color=\"").concat(iconGradientStart, "\" ").concat(iconGradientStart === 'inherit' ? 'stop-opacity="0.4"' : '', " offset=\"18%\"></stop>\n <stop stop-color=\"").concat(iconGradientStop, "\" offset=\"100%\"></stop>\n </linearGradient>\n </defs>\n <g stroke=\"none\" stroke-width=\"1\" fill-rule=\"nonzero\">\n <path fill-rule=\"nonzero\" d=\"M10.6584152,4 L10.6584152,8.39679183 C10.6584152,14.48435 7.60464338,16.8346351 3.71947823,17.1903755 C3.30945638,17.231579 2.99793812,17.5777104 3.00000321,17.9897922 C3.00000321,19.6285964 3.00000321,23.5017703 3.00000321,25.1845425 C2.9996704,25.4044035 3.08990281,25.6146964 3.24947191,25.7659467 C3.40904102,25.9171971 3.62385939,25.9960518 3.84338782,25.9839592 C13.572289,25.4883208 19.4320134,18.3895005 19.4320134,9.57593146 L19.459993,9.57593146 L19.459993,4 L10.6584152,4 Z\" fill=\"url(#").concat(id, ")\"></path>\n <path fill-rule=\"nonzero\" d=\"M30.1816696,24.829953 L19.8806163,4 L10.6588351,4 L21.5394976,25.3336133 C21.7449071,25.7337742 22.1569759,25.9853368 22.6067778,25.9851739 L29.4741467,25.9851739 C29.7493704,25.982283 30.0037535,25.8380195 30.1475068,25.6033038 C30.29126,25.3685881 30.304166,25.0764302 30.1816696,24.829953 Z\" fill=\"currentColor\"></path>\n </g>\n </svg>");
|
|
13
13
|
};
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated StrideIcon will be removed from atlaskit/logo in the next major release.
|
|
16
|
+
*/
|
|
17
|
+
|
|
14
18
|
|
|
15
19
|
export var StrideIcon = function StrideIcon(_ref) {
|
|
16
20
|
var _ref$iconColor = _ref.iconColor,
|
|
@@ -26,7 +30,7 @@ export var StrideIcon = function StrideIcon(_ref) {
|
|
|
26
30
|
textColor = _ref$textColor === void 0 ? defaultLogoParams.textColor : _ref$textColor;
|
|
27
31
|
|
|
28
32
|
if (process.env.NODE_ENV !== 'production') {
|
|
29
|
-
warnOnce('StrideIcon has been deprecated and will be removed from @atlaskit/logo
|
|
33
|
+
warnOnce('StrideIcon has been deprecated and will be removed from @atlaskit/logo in the next major release.');
|
|
30
34
|
}
|
|
31
35
|
|
|
32
36
|
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
@@ -11,6 +11,10 @@ var svg = function svg(iconGradientStart, iconGradientStop) {
|
|
|
11
11
|
});
|
|
12
12
|
return "<canvas height=\"32\" width=\"97\" aria-hidden=\"true\"></canvas>\n <svg viewBox=\"0 0 97 32\" xmlns=\"http://www.w3.org/2000/svg\" focusable=\"false\" aria-hidden=\"true\">\n <defs>\n <linearGradient x1=\"76.0077856%\" y1=\"30.8164837%\" x2=\"3.20549956%\" y2=\"70.7051948%\" id=\"".concat(id, "\">\n <stop stop-color=\"").concat(iconGradientStart, "\" ").concat(iconGradientStart === 'inherit' ? 'stop-opacity="0.4"' : '', " offset=\"18%\"></stop>\n <stop stop-color=\"").concat(iconGradientStop, "\" offset=\"100%\"></stop>\n </linearGradient>\n </defs>\n <g stroke=\"none\" stroke-width=\"1\" fill-rule=\"nonzero\">\n <path d=\"M44.1672398,19.2931423 C44.1672398,16.225334 42.1393665,15.0554071 38.5255923,14.145464 C35.5097807,13.3915111 34.4178489,12.6895549 34.4178489,11.2856426 C34.4178489,9.7257401 35.7437661,8.94578883 37.9796264,8.94578883 C39.7475159,8.94578883 41.5934006,9.25776934 43.3092934,10.2457076 L43.3092934,7.90585381 C42.1393665,7.25589442 40.5534656,6.65793178 38.0836199,6.65793178 C34.1058684,6.65793178 32.0779951,8.63380832 32.0779951,11.2856426 C32.0779951,14.0934672 33.7938879,15.4193844 37.6416475,16.3553259 C40.8914445,17.1352772 41.827386,17.9412268 41.827386,19.4491326 C41.827386,20.9570384 40.8654461,21.970975 38.2916069,21.970975 C36.0297482,21.970975 33.5859009,21.3730124 32,20.5410644 L32,22.9329149 C33.3259172,23.6088727 34.8598213,24.2588321 38.161615,24.2588321 C42.3993503,24.2588321 44.1672398,22.2569572 44.1672398,19.2931423 Z M50.0168743,19.891105 L50.0168743,13.0795306 L53.4746583,13.0795306 L53.4746583,10.9996605 L50.0168743,10.9996605 L50.0168743,8.24383269 L47.8330108,8.24383269 L47.8330108,10.9996605 L45.7271423,10.9996605 L45.7271423,13.0795306 L47.8330108,13.0795306 L47.8330108,19.9431017 C47.8330108,22.3609507 49.1849263,23.9988483 51.9667525,23.9988483 C52.6427103,23.9988483 53.0846826,23.8948548 53.4746583,23.7908613 L53.4746583,21.6329961 C53.0846826,21.7109913 52.5907135,21.8149848 52.070746,21.8149848 C50.6928321,21.8149848 50.0168743,21.0350335 50.0168743,19.891105 Z M56.3344796,23.9988483 L58.5183431,23.9988483 L58.5183431,16.3293275 C58.5183431,13.5734997 60.2602343,12.7155533 63.1200556,13.0015354 L63.1200556,10.8176719 C60.5722148,10.6616816 59.272296,11.7536134 58.5183431,13.2875176 L58.5183431,10.9996605 L56.3344796,10.9996605 L56.3344796,23.9988483 Z M64.6279614,7.56787492 C64.6279614,8.5558132 65.2779208,9.12777746 66.187864,9.12777746 C67.0978071,9.12777746 67.7477665,8.5558132 67.7477665,7.56787492 C67.7477665,6.57993665 67.0978071,6.00797239 66.187864,6.00797239 C65.2779208,6.00797239 64.6279614,6.57993665 64.6279614,7.56787492 Z M65.0439354,23.9988483 L67.2797957,23.9988483 L67.2797957,10.9996605 L65.0439354,10.9996605 L65.0439354,23.9988483 Z M79.4730339,23.9988483 L79.4730339,21.6589945 C78.6410859,23.3748873 77.0811833,24.2588321 75.0793084,24.2588321 C71.6215245,24.2588321 69.8796333,21.3210156 69.8796333,17.4992544 C69.8796333,13.8334835 71.6995196,10.7396768 75.3392922,10.7396768 C77.2371736,10.7396768 78.6930826,11.5976231 79.4730339,13.2875176 L79.4730339,5.566 L81.7088942,5.566 L81.7088942,23.9988483 L79.4730339,23.9988483 Z M72.1154936,17.4992544 C72.1154936,20.6190595 73.3634156,22.178962 75.6772711,22.178962 C77.679146,22.178962 79.4730339,20.9050416 79.4730339,18.0192219 L79.4730339,16.9792869 C79.4730339,14.0934672 77.8351362,12.8195468 75.9372548,12.8195468 C73.4154124,12.8195468 72.1154936,14.4834428 72.1154936,17.4992544 Z M95.332043,23.4788808 C94.2661096,24.0508451 92.628212,24.2588321 91.3022948,24.2588321 C86.4405986,24.2588321 84.3087318,21.4510075 84.3087318,17.473256 C84.3087318,13.5475013 86.4925953,10.7396768 90.4443484,10.7396768 C94.4480983,10.7396768 96.0599976,13.5215029 96.0599976,17.473256 L96.0599976,18.4871927 L86.5705905,18.4871927 C86.882571,20.6970546 88.3124816,22.1269653 91.3802899,22.1269653 C92.8881957,22.1269653 94.1621161,21.8409831 95.332043,21.4250091 L95.332043,23.4788808 Z M90.3403549,12.7675501 C87.9745027,12.7675501 86.7785775,14.3014542 86.5445921,16.5633129 L93.7981389,16.5633129 C93.668147,14.145464 92.5762152,12.7675501 90.3403549,12.7675501 Z\" fill=\"inherit\" fill-rule=\"evenodd\"></path>\n <path d=\"M6.66434783,6 L6.66434783,10.0267857 C6.66434783,15.6020536 4.00695652,17.7545536 0.626086957,18.0803571 C0.269286057,18.1180932 -0.00179704222,18.4350964 -1.9308116e-16,18.8125 C-1.9308116e-16,20.3133929 -1.9308116e-16,23.860625 -1.9308116e-16,25.4017857 C-0.000289607564,25.6031446 0.0782306046,25.7957406 0.217087594,25.9342627 C0.355944583,26.0727847 0.542879466,26.1450036 0.733913043,26.1339286 C9.2,25.68 14.2991304,19.1785714 14.2991304,11.1066964 L14.3234783,11.1066964 L14.3234783,6 L6.66434783,6 Z\" fill=\"url(#").concat(id, ")\"></path>\n <path d=\"M23.6521739,25.0759821 L14.6886957,6 L6.66434783,6 L16.1321739,25.5372321 C16.3109114,25.9036978 16.6694737,26.1340777 17.0608696,26.1339286 L23.0365217,26.1339286 C23.2760081,26.1312811 23.49736,25.9991651 23.6224471,25.7842135 C23.7475342,25.5692619 23.7587644,25.301705 23.6521739,25.0759821 Z\" fill=\"currentColor\"></path>\n </g>\n </svg>");
|
|
13
13
|
};
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated StrideLogo will be removed from atlaskit/logo in the next major release.
|
|
16
|
+
*/
|
|
17
|
+
|
|
14
18
|
|
|
15
19
|
export var StrideLogo = function StrideLogo(_ref) {
|
|
16
20
|
var _ref$iconColor = _ref.iconColor,
|
|
@@ -26,7 +30,7 @@ export var StrideLogo = function StrideLogo(_ref) {
|
|
|
26
30
|
textColor = _ref$textColor === void 0 ? defaultLogoParams.textColor : _ref$textColor;
|
|
27
31
|
|
|
28
32
|
if (process.env.NODE_ENV !== 'production') {
|
|
29
|
-
warnOnce('StrideLogo has been deprecated and will be removed from @atlaskit/logo
|
|
33
|
+
warnOnce('StrideLogo has been deprecated and will be removed from @atlaskit/logo in the next major release.');
|
|
30
34
|
}
|
|
31
35
|
|
|
32
36
|
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
@@ -4,6 +4,10 @@ import warnOnce from '@atlaskit/ds-lib/warn-once';
|
|
|
4
4
|
import { defaultLogoParams } from '../constants';
|
|
5
5
|
import Wrapper from '../wrapper';
|
|
6
6
|
var svg = "<canvas height=\"32\" width=\"65\" aria-hidden=\"true\"></canvas>\n<svg viewBox=\"0 0 65 32\" xmlns=\"http://www.w3.org/2000/svg\" focusable=\"false\" aria-hidden=\"true\">\n <g stroke=\"none\" stroke-width=\"1\" fill-rule=\"evenodd\" fill=\"inherit\">\n <path d=\"M12.1672398,19.2931423 C12.1672398,16.225334 10.1393665,15.0554071 6.52559228,14.145464 C3.50978071,13.3915111 2.41784893,12.6895549 2.41784893,11.2856426 C2.41784893,9.7257401 3.74376609,8.94578883 5.9796264,8.94578883 C7.74751594,8.94578883 9.59340061,9.25776934 11.3092934,10.2457076 L11.3092934,7.90585381 C10.1393665,7.25589442 8.55346558,6.65793178 6.0836199,6.65793178 C2.10586843,6.65793178 0.0779951269,8.63380832 0.0779951269,11.2856426 C0.0779951269,14.0934672 1.79388792,15.4193844 5.64164751,16.3553259 C8.89144447,17.1352772 9.82738599,17.9412268 9.82738599,19.4491326 C9.82738599,20.9570384 8.86544609,21.970975 6.2916069,21.970975 C4.02974822,21.970975 1.58590091,21.3730124 1.55431223e-14,20.5410644 L1.55431223e-14,22.9329149 C1.32591716,23.6088727 2.85982132,24.2588321 6.16161502,24.2588321 C10.3993503,24.2588321 12.1672398,22.2569572 12.1672398,19.2931423 Z M18.0168743,19.891105 L18.0168743,13.0795306 L21.4746583,13.0795306 L21.4746583,10.9996605 L18.0168743,10.9996605 L18.0168743,8.24383269 L15.8330108,8.24383269 L15.8330108,10.9996605 L13.7271423,10.9996605 L13.7271423,13.0795306 L15.8330108,13.0795306 L15.8330108,19.9431017 C15.8330108,22.3609507 17.1849263,23.9988483 19.9667525,23.9988483 C20.6427103,23.9988483 21.0846826,23.8948548 21.4746583,23.7908613 L21.4746583,21.6329961 C21.0846826,21.7109913 20.5907135,21.8149848 20.070746,21.8149848 C18.6928321,21.8149848 18.0168743,21.0350335 18.0168743,19.891105 Z M24.3344796,23.9988483 L26.5183431,23.9988483 L26.5183431,16.3293275 C26.5183431,13.5734997 28.2602343,12.7155533 31.1200556,13.0015354 L31.1200556,10.8176719 C28.5722148,10.6616816 27.272296,11.7536134 26.5183431,13.2875176 L26.5183431,10.9996605 L24.3344796,10.9996605 L24.3344796,23.9988483 Z M32.6279614,7.56787492 C32.6279614,8.5558132 33.2779208,9.12777746 34.187864,9.12777746 C35.0978071,9.12777746 35.7477665,8.5558132 35.7477665,7.56787492 C35.7477665,6.57993665 35.0978071,6.00797239 34.187864,6.00797239 C33.2779208,6.00797239 32.6279614,6.57993665 32.6279614,7.56787492 Z M33.0439354,23.9988483 L35.2797957,23.9988483 L35.2797957,10.9996605 L33.0439354,10.9996605 L33.0439354,23.9988483 Z M47.4730339,23.9988483 L47.4730339,21.6589945 C46.6410859,23.3748873 45.0811833,24.2588321 43.0793084,24.2588321 C39.6215245,24.2588321 37.8796333,21.3210156 37.8796333,17.4992544 C37.8796333,13.8334835 39.6995196,10.7396768 43.3392922,10.7396768 C45.2371736,10.7396768 46.6930826,11.5976231 47.4730339,13.2875176 L47.4730339,5.566 L49.7088942,5.566 L49.7088942,23.9988483 L47.4730339,23.9988483 Z M40.1154936,17.4992544 C40.1154936,20.6190595 41.3634156,22.178962 43.6772711,22.178962 C45.679146,22.178962 47.4730339,20.9050416 47.4730339,18.0192219 L47.4730339,16.9792869 C47.4730339,14.0934672 45.8351362,12.8195468 43.9372548,12.8195468 C41.4154124,12.8195468 40.1154936,14.4834428 40.1154936,17.4992544 Z M63.332043,23.4788808 C62.2661096,24.0508451 60.628212,24.2588321 59.3022948,24.2588321 C54.4405986,24.2588321 52.3087318,21.4510075 52.3087318,17.473256 C52.3087318,13.5475013 54.4925953,10.7396768 58.4443484,10.7396768 C62.4480983,10.7396768 64.0599976,13.5215029 64.0599976,17.473256 L64.0599976,18.4871927 L54.5705905,18.4871927 C54.882571,20.6970546 56.3124816,22.1269653 59.3802899,22.1269653 C60.8881957,22.1269653 62.1621161,21.8409831 63.332043,21.4250091 L63.332043,23.4788808 Z M58.3403549,12.7675501 C55.9745027,12.7675501 54.7785775,14.3014542 54.5445921,16.5633129 L61.7981389,16.5633129 C61.668147,14.145464 60.5762152,12.7675501 58.3403549,12.7675501 Z\"></path>\n </g>\n</svg>";
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated StrideWordmark will be removed from atlaskit/logo in the next major release.
|
|
9
|
+
*/
|
|
10
|
+
|
|
7
11
|
export var StrideWordmark = function StrideWordmark(_ref) {
|
|
8
12
|
var _ref$iconColor = _ref.iconColor,
|
|
9
13
|
iconColor = _ref$iconColor === void 0 ? defaultLogoParams.iconColor : _ref$iconColor,
|
|
@@ -18,7 +22,7 @@ export var StrideWordmark = function StrideWordmark(_ref) {
|
|
|
18
22
|
textColor = _ref$textColor === void 0 ? defaultLogoParams.textColor : _ref$textColor;
|
|
19
23
|
|
|
20
24
|
if (process.env.NODE_ENV !== 'production') {
|
|
21
|
-
warnOnce('StrideWordmark has been deprecated and will be removed from @atlaskit/logo
|
|
25
|
+
warnOnce('StrideWordmark has been deprecated and will be removed from @atlaskit/logo in the next major release.');
|
|
22
26
|
}
|
|
23
27
|
|
|
24
28
|
return /*#__PURE__*/React.createElement(Wrapper, {
|
package/dist/esm/version.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LogoProps } from './types';
|
|
2
|
+
export type { LogoProps };
|
|
2
3
|
/**
|
|
3
4
|
* These are the default parameters for LogoProps if the user does not specify values.
|
|
4
5
|
*/
|
|
@@ -26,5 +27,11 @@ export declare const sizes: {
|
|
|
26
27
|
* still work despite `LogoProps` being in a different types.tsx file.
|
|
27
28
|
*
|
|
28
29
|
*/
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated This has been renamed, please import `LogoProps` instead.
|
|
32
|
+
*/
|
|
29
33
|
export declare type Props = LogoProps;
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated This has been renamed, please import `defaultLogoParams` instead.
|
|
36
|
+
*/
|
|
30
37
|
export declare const DefaultProps: Partial<LogoProps>;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { LogoProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated HipchatIcon will be removed from @atlaskit/logo in the next major release.
|
|
5
|
+
*/
|
|
3
6
|
export declare const HipchatIcon: ({ iconColor, iconGradientStart, iconGradientStop, label, size, testId, textColor, }: LogoProps) => JSX.Element;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { LogoProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated HipchatLogo will be removed from @atlaskit/logo in the next major release.
|
|
5
|
+
*/
|
|
3
6
|
export declare const HipchatLogo: ({ iconColor, iconGradientStart, iconGradientStop, label, size, testId, textColor, }: LogoProps) => JSX.Element;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { LogoProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated HipchatWordmark will be removed from @atlaskit/logo in the next major release.
|
|
5
|
+
*/
|
|
3
6
|
export declare const HipchatWordmark: ({ iconColor, iconGradientStart, iconGradientStop, label, size, testId, textColor, }: LogoProps) => JSX.Element;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { LogoProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated JiraCoreIcon will be removed from @atlaskit/logo in the next major release. Please use JiraWorkManagementIcon instead.
|
|
5
|
+
*/
|
|
3
6
|
export declare const JiraCoreIcon: ({ iconColor, iconGradientStart, iconGradientStop, label, size, testId, textColor, }: LogoProps) => JSX.Element;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { LogoProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated JiraCoreLogo will be removed from @atlaskit/logo in the next major release. Please use JiraWorkManagementLogo instead.
|
|
5
|
+
*/
|
|
3
6
|
export declare const JiraCoreLogo: ({ iconColor, iconGradientStart, iconGradientStop, label, size, testId, textColor, }: LogoProps) => JSX.Element;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { LogoProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated JiraCoreWordmark will be removed from @atlaskit/logo in the next major release. Please use JiraWorkManagementWordmark instead.
|
|
5
|
+
*/
|
|
3
6
|
export declare const JiraCoreWordmark: ({ iconColor, iconGradientStart, iconGradientStop, label, size, testId, textColor, }: LogoProps) => JSX.Element;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { LogoProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated JiraServiceDeskIcon will be removed from atlaskit/logo in the next major release. Please use JiraServiceManagementIcon instead.
|
|
5
|
+
*/
|
|
3
6
|
export declare const JiraServiceDeskIcon: ({ iconColor, iconGradientStart, iconGradientStop, label, size, testId, textColor, }: LogoProps) => JSX.Element;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { LogoProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated JiraServiceDeskLogo will be removed from atlaskit/logo in the next major release. Please use JiraServiceManagementLogo instead.
|
|
5
|
+
*/
|
|
3
6
|
export declare const JiraServiceDeskLogo: ({ iconColor, iconGradientStart, iconGradientStop, label, size, testId, textColor, }: LogoProps) => JSX.Element;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { LogoProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated JiraServiceDeskWordmark will be removed from atlaskit/logo in the next major release. Please use JiraServiceManagementWordmark instead.
|
|
5
|
+
*/
|
|
3
6
|
export declare const JiraServiceDeskWordmark: ({ iconColor, iconGradientStart, iconGradientStop, label, size, testId, textColor, }: LogoProps) => JSX.Element;
|
|
@@ -4,4 +4,7 @@ import { LogoProps } from '../types';
|
|
|
4
4
|
* This is the old OpsGenieIcon that was meant to be deprecated but was never removed.
|
|
5
5
|
* This is because it casing it incorrect, it should be Opsgenie, not OpsGenie.
|
|
6
6
|
*/
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated OpsGenieIcon is incorrectly cased and will be removed from atlaskit/logo in the next major release. Please use OpsgenieIcon (no capital 'g') instead.
|
|
9
|
+
*/
|
|
7
10
|
export declare const OpsGenieIcon: ({ iconColor, iconGradientStart, iconGradientStop, size, testId, textColor, }: LogoProps) => JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { LogoProps } from '../types';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
* @deprecated This has been deprecated as it is in the incorrect casing. It is meant to be Opsgenie logo.
|
|
4
|
+
* @deprecated OpsGenieLogo is incorrectly cased and will be removed from atlaskit/logo in the next major release. Please use OpsgenieLogo (no capital 'g') instead.
|
|
6
5
|
*/
|
|
7
6
|
export declare const OpsGenieLogo: ({ iconColor, iconGradientStart, iconGradientStop, size, testId, textColor, }: LogoProps) => JSX.Element;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { LogoProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated OpsGenieWordmark is incorrectly cased and will be removed from atlaskit/logo in the next major release. Please use OpsgenieLogo (no capital 'g') instead.
|
|
5
|
+
*/
|
|
3
6
|
export declare const OpsGenieWordmark: ({ iconColor, iconGradientStart, iconGradientStop, size, testId, textColor, }: LogoProps) => JSX.Element;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { LogoProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated StrideIcon will be removed from atlaskit/logo in the next major release.
|
|
5
|
+
*/
|
|
3
6
|
export declare const StrideIcon: ({ iconColor, iconGradientStart, iconGradientStop, size, testId, textColor, }: LogoProps) => JSX.Element;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { LogoProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated StrideLogo will be removed from atlaskit/logo in the next major release.
|
|
5
|
+
*/
|
|
3
6
|
export declare const StrideLogo: ({ iconColor, iconGradientStart, iconGradientStop, size, testId, textColor, }: LogoProps) => JSX.Element;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { LogoProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated StrideWordmark will be removed from atlaskit/logo in the next major release.
|
|
5
|
+
*/
|
|
3
6
|
export declare const StrideWordmark: ({ iconColor, iconGradientStart, iconGradientStop, size, testId, textColor, }: LogoProps) => JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/logo",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.7.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/"
|
|
7
7
|
},
|
|
8
|
-
"repository": "https://bitbucket.org/atlassian/atlassian-frontend",
|
|
8
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
9
9
|
"author": "Atlassian Pty Ltd",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"main": "dist/cjs/index.js",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@atlaskit/docs": "*",
|
|
56
56
|
"@atlaskit/radio": "^5.3.2",
|
|
57
57
|
"@atlaskit/section-message": "^6.1.0",
|
|
58
|
-
"@atlaskit/select": "^15.
|
|
58
|
+
"@atlaskit/select": "^15.3.0",
|
|
59
59
|
"@atlaskit/ssr": "*",
|
|
60
60
|
"@atlaskit/theme": "^12.1.0",
|
|
61
61
|
"@atlaskit/visual-regression": "*",
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
jest.autoMockOff();
|
|
2
|
-
|
|
3
|
-
import transformer from '../14.0.0-rename-imports';
|
|
4
|
-
|
|
5
|
-
const defineInlineTest = require('jscodeshift/dist/testUtils').defineInlineTest;
|
|
6
|
-
|
|
7
|
-
describe('Logo code-mods', () => {
|
|
8
|
-
defineInlineTest(
|
|
9
|
-
{ default: transformer, parser: 'tsx' },
|
|
10
|
-
{},
|
|
11
|
-
`
|
|
12
|
-
import React from 'react';
|
|
13
|
-
import { JiraCoreLogo } from '@atlaskit/logo';
|
|
14
|
-
|
|
15
|
-
const Logo = () => (<JiraCoreLogo />);
|
|
16
|
-
`,
|
|
17
|
-
`
|
|
18
|
-
import React from 'react';
|
|
19
|
-
import { JiraWorkManagementLogo as JiraCoreLogo } from '@atlaskit/logo';
|
|
20
|
-
|
|
21
|
-
const Logo = () => (<JiraCoreLogo />);
|
|
22
|
-
`,
|
|
23
|
-
'should alias the import using alternative components',
|
|
24
|
-
);
|
|
25
|
-
defineInlineTest(
|
|
26
|
-
{ default: transformer, parser: 'tsx' },
|
|
27
|
-
{},
|
|
28
|
-
`
|
|
29
|
-
import React from 'react';
|
|
30
|
-
import {
|
|
31
|
-
AtlassianIcon,
|
|
32
|
-
JiraCoreLogo
|
|
33
|
-
} from '@atlaskit/logo';
|
|
34
|
-
const getProductIcon = (productId: string) => {
|
|
35
|
-
switch (productId) {
|
|
36
|
-
case 'jira-core':
|
|
37
|
-
return JiraCoreIcon;
|
|
38
|
-
default:
|
|
39
|
-
return AtlassianIcon;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
const Logo = () => getProductIcon();
|
|
43
|
-
`,
|
|
44
|
-
`
|
|
45
|
-
import React from 'react';
|
|
46
|
-
import {
|
|
47
|
-
AtlassianIcon,
|
|
48
|
-
JiraWorkManagementLogo as JiraCoreLogo
|
|
49
|
-
} from '@atlaskit/logo';
|
|
50
|
-
const getProductIcon = (productId: string) => {
|
|
51
|
-
switch (productId) {
|
|
52
|
-
case 'jira-core':
|
|
53
|
-
return JiraCoreIcon;
|
|
54
|
-
default:
|
|
55
|
-
return AtlassianIcon;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
const Logo = () => getProductIcon();
|
|
59
|
-
`,
|
|
60
|
-
'should alias the import using alternative components, and keep other logo components unchanged',
|
|
61
|
-
);
|
|
62
|
-
defineInlineTest(
|
|
63
|
-
{ default: transformer, parser: 'tsx' },
|
|
64
|
-
{},
|
|
65
|
-
`
|
|
66
|
-
import React from 'react';
|
|
67
|
-
import { JiraCoreLogo } from '@atlaskit/logo';
|
|
68
|
-
|
|
69
|
-
const Logo = ({textColor}) => (<JiraCoreLogo textColor={textColor} />);
|
|
70
|
-
`,
|
|
71
|
-
`
|
|
72
|
-
import React from 'react';
|
|
73
|
-
import { JiraWorkManagementLogo as JiraCoreLogo } from '@atlaskit/logo';
|
|
74
|
-
|
|
75
|
-
const Logo = ({textColor}) => (<JiraCoreLogo textColor={textColor} />);
|
|
76
|
-
`,
|
|
77
|
-
'should replace imports with alternative component with props unchanged',
|
|
78
|
-
);
|
|
79
|
-
defineInlineTest(
|
|
80
|
-
{ default: transformer, parser: 'tsx' },
|
|
81
|
-
{},
|
|
82
|
-
`
|
|
83
|
-
import React from 'react';
|
|
84
|
-
import {
|
|
85
|
-
JiraCoreWordmark,
|
|
86
|
-
JiraCoreIcon
|
|
87
|
-
} from '@atlaskit/logo';
|
|
88
|
-
|
|
89
|
-
const Logo = () => (<><JiraCoreIcon /><JiraCoreWordmark /></>);
|
|
90
|
-
`,
|
|
91
|
-
`
|
|
92
|
-
import React from 'react';
|
|
93
|
-
import {
|
|
94
|
-
JiraWorkManagementWordmark as JiraCoreWordmark,
|
|
95
|
-
JiraWorkManagementIcon as JiraCoreIcon
|
|
96
|
-
} from '@atlaskit/logo';
|
|
97
|
-
|
|
98
|
-
const Logo = () => (<><JiraCoreIcon /><JiraCoreWordmark /></>);
|
|
99
|
-
`,
|
|
100
|
-
'should alias multiple imports using alternative components',
|
|
101
|
-
);
|
|
102
|
-
defineInlineTest(
|
|
103
|
-
{ default: transformer, parser: 'tsx' },
|
|
104
|
-
{},
|
|
105
|
-
`
|
|
106
|
-
import React from 'react';
|
|
107
|
-
import { JiraCoreLogo as JCLogo } from '@atlaskit/logo';
|
|
108
|
-
|
|
109
|
-
const Logo = () => (<JCLogo />);
|
|
110
|
-
`,
|
|
111
|
-
`
|
|
112
|
-
import React from 'react';
|
|
113
|
-
import { JiraWorkManagementLogo as JCLogo } from '@atlaskit/logo';
|
|
114
|
-
|
|
115
|
-
const Logo = () => (<JCLogo />);
|
|
116
|
-
`,
|
|
117
|
-
'should replace aliased import and JSX element with alternative components',
|
|
118
|
-
);
|
|
119
|
-
defineInlineTest(
|
|
120
|
-
{ default: transformer, parser: 'tsx' },
|
|
121
|
-
{},
|
|
122
|
-
`
|
|
123
|
-
import React from 'react';
|
|
124
|
-
import { StrideIcon } from '@atlaskit/logo';
|
|
125
|
-
|
|
126
|
-
const Logo = () => (<StrideIcon />);
|
|
127
|
-
`,
|
|
128
|
-
`
|
|
129
|
-
import React from 'react';
|
|
130
|
-
/* TODO: (from codemod) This file uses the @atlaskit/logo \`StrideIcon\`
|
|
131
|
-
has now been removed with no alternative. */
|
|
132
|
-
import { StrideIcon } from '@atlaskit/logo';
|
|
133
|
-
|
|
134
|
-
const Logo = () => (<StrideIcon />);
|
|
135
|
-
`,
|
|
136
|
-
'should prompt user when using logo components with no alternatives',
|
|
137
|
-
);
|
|
138
|
-
defineInlineTest(
|
|
139
|
-
{ default: transformer, parser: 'tsx' },
|
|
140
|
-
{},
|
|
141
|
-
`
|
|
142
|
-
import React from 'react';
|
|
143
|
-
import { JiraCoreIcon, HipchatIcon } from '@atlaskit/logo';
|
|
144
|
-
const Logo = () => (<><JiraCoreIcon /><HipchatIcon /></>);
|
|
145
|
-
`,
|
|
146
|
-
`
|
|
147
|
-
import React from 'react';
|
|
148
|
-
/* TODO: (from codemod) This file uses the @atlaskit/logo \`HipchatIcon\`
|
|
149
|
-
has now been removed with no alternative. */
|
|
150
|
-
import { JiraWorkManagementIcon as JiraCoreIcon, HipchatIcon } from '@atlaskit/logo';
|
|
151
|
-
const Logo = () => (<><JiraCoreIcon /><HipchatIcon /></>);
|
|
152
|
-
`,
|
|
153
|
-
'should alias imports using alternative component and propt user when using logo compontns with no alternatives',
|
|
154
|
-
);
|
|
155
|
-
defineInlineTest(
|
|
156
|
-
{ default: transformer, parser: 'tsx' },
|
|
157
|
-
{},
|
|
158
|
-
`
|
|
159
|
-
import React from 'react';
|
|
160
|
-
|
|
161
|
-
const MyComponent = () => (<div />);
|
|
162
|
-
`,
|
|
163
|
-
`
|
|
164
|
-
import React from 'react';
|
|
165
|
-
|
|
166
|
-
const MyComponent = () => (<div />);
|
|
167
|
-
`,
|
|
168
|
-
'should not modify files that are not using @atlaskit/logo',
|
|
169
|
-
);
|
|
170
|
-
});
|