@atlaskit/logo 14.0.0 → 14.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlaskit/logo
2
2
 
3
+ ## 14.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#110670](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110670)
8
+ [`c733254a2dd6e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c733254a2dd6e) -
9
+ Explicitly set jsxRuntime to classic via pragma comments in order to avoid issues where jsxRuntime
10
+ is implicitly set to automatic.
11
+
3
12
  ## 14.0.0
4
13
 
5
14
  ### Major Changes
@@ -59,7 +68,7 @@
59
68
 
60
69
  - [#96639](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96639)
61
70
  [`f6cdb5e53e81`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f6cdb5e53e81) -
62
- Add support for React 18.
71
+ Add support for React 18 in non-strict mode.
63
72
 
64
73
  ## 13.15.4
65
74
 
package/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Logo
2
2
 
3
- A logo is a visual representation of a brand or product. It can be a word or an image, or a combination of both.
3
+ A logo is a visual representation of a brand or product. It can be a word or an image, or a
4
+ combination of both.
4
5
 
5
6
  ## Installation
6
7
 
@@ -1,90 +1,80 @@
1
1
  import {
2
- type API,
3
- type ASTPath,
4
- type FileInfo,
5
- type ImportDeclaration,
6
- type ImportSpecifier,
7
- type Options,
2
+ type API,
3
+ type ASTPath,
4
+ type FileInfo,
5
+ type ImportDeclaration,
6
+ type ImportSpecifier,
7
+ type Options,
8
8
  } from 'jscodeshift';
9
9
 
10
10
  import { addCommentBefore } from './utils';
11
11
 
12
12
  const replacementMapping: { [name: string]: string } = {
13
- Props: 'LogoProps',
14
- DefaultProps: 'defaultLogoParams',
15
- JiraCoreIcon: 'JiraWorkManagementIcon',
16
- JiraCoreLogo: 'JiraWorkManagementLogo',
17
- JiraCoreWordmark: 'JiraWorkManagementWordmark',
18
- JiraServiceDeskIcon: 'JiraServiceManagementIcon',
19
- JiraServiceDeskLogo: 'JiraServiceManagementLogo',
20
- JiraServiceDeskWordmark: 'JiraServiceManagementWordmark',
21
- OpsGenieIcon: 'OpsgenieIcon',
22
- OpsGenieIconLogo: 'OpsgenieIconLogo',
23
- OpsGenieIconWordmark: 'OpsgenieIconWordmark',
24
- StrideIcon: 'NO_ALTERNATIVE_COMPONENT',
25
- StrideLogo: 'NO_ALTERNATIVE_COMPONENT',
26
- StrideWordmark: 'NO_ALTERNATIVE_COMPONENT',
27
- HipchatIcon: 'NO_ALTERNATIVE_COMPONENT',
28
- HipchatLogo: 'NO_ALTERNATIVE_COMPONENT',
29
- HipchatWordmark: 'NO_ALTERNATIVE_COMPONENT',
13
+ Props: 'LogoProps',
14
+ DefaultProps: 'defaultLogoParams',
15
+ JiraCoreIcon: 'JiraWorkManagementIcon',
16
+ JiraCoreLogo: 'JiraWorkManagementLogo',
17
+ JiraCoreWordmark: 'JiraWorkManagementWordmark',
18
+ JiraServiceDeskIcon: 'JiraServiceManagementIcon',
19
+ JiraServiceDeskLogo: 'JiraServiceManagementLogo',
20
+ JiraServiceDeskWordmark: 'JiraServiceManagementWordmark',
21
+ OpsGenieIcon: 'OpsgenieIcon',
22
+ OpsGenieIconLogo: 'OpsgenieIconLogo',
23
+ OpsGenieIconWordmark: 'OpsgenieIconWordmark',
24
+ StrideIcon: 'NO_ALTERNATIVE_COMPONENT',
25
+ StrideLogo: 'NO_ALTERNATIVE_COMPONENT',
26
+ StrideWordmark: 'NO_ALTERNATIVE_COMPONENT',
27
+ HipchatIcon: 'NO_ALTERNATIVE_COMPONENT',
28
+ HipchatLogo: 'NO_ALTERNATIVE_COMPONENT',
29
+ HipchatWordmark: 'NO_ALTERNATIVE_COMPONENT',
30
30
  };
31
31
 
32
- export default function transform(
33
- file: FileInfo,
34
- { jscodeshift: j }: API,
35
- options: Options,
36
- ) {
37
- const source = j(file.source);
38
- const target = source
39
- .find(j.ImportDeclaration)
40
- .filter((path: ASTPath<ImportDeclaration>) => {
41
- const value = path.node.source.value as string;
42
- return value.includes('@atlaskit/logo');
43
- });
44
- const logoImports = target.find(j.ImportSpecifier);
32
+ export default function transform(file: FileInfo, { jscodeshift: j }: API, options: Options) {
33
+ const source = j(file.source);
34
+ const target = source.find(j.ImportDeclaration).filter((path: ASTPath<ImportDeclaration>) => {
35
+ const value = path.node.source.value as string;
36
+ return value.includes('@atlaskit/logo');
37
+ });
38
+ const logoImports = target.find(j.ImportSpecifier);
45
39
 
46
- if (!logoImports.length) {
47
- // Returns original source file, untouched and unformatted
48
- return file.source;
49
- }
40
+ if (!logoImports.length) {
41
+ // Returns original source file, untouched and unformatted
42
+ return file.source;
43
+ }
50
44
 
51
- logoImports.forEach((path: ASTPath<ImportSpecifier>) => {
52
- const foundKey = Object.keys(replacementMapping).find(
53
- (key) => key === path.node.imported.name,
54
- );
45
+ logoImports.forEach((path: ASTPath<ImportSpecifier>) => {
46
+ const foundKey = Object.keys(replacementMapping).find((key) => key === path.node.imported.name);
55
47
 
56
- if (!foundKey || !replacementMapping[foundKey] || !path.node.local) {
57
- return;
58
- }
59
- // add comment for logo component that don't have alternatives
60
- if (replacementMapping[foundKey] === 'NO_ALTERNATIVE_COMPONENT') {
61
- addCommentBefore(
62
- j,
63
- target,
64
- `This file uses the @atlaskit/logo \`${foundKey}\`
48
+ if (!foundKey || !replacementMapping[foundKey] || !path.node.local) {
49
+ return;
50
+ }
51
+ // add comment for logo component that don't have alternatives
52
+ if (replacementMapping[foundKey] === 'NO_ALTERNATIVE_COMPONENT') {
53
+ addCommentBefore(
54
+ j,
55
+ target,
56
+ `This file uses the @atlaskit/logo \`${foundKey}\`
65
57
  which will be removed with no alternative in the next major version.`,
66
- );
67
- return;
68
- }
58
+ );
59
+ return;
60
+ }
69
61
 
70
- // replace the import with mapping name
71
- const newLogoImport: ImportSpecifier = j.importSpecifier(
72
- j.identifier(replacementMapping[foundKey]),
73
- // if aliased import exist, keep the alias name unchanged, i.e.
74
- // before: import { JiraCoreLogo as JCLogo } from '@atlaskit/logo';
75
- // after: import { JiraWorkManagementLogo as JCLogo } from '@atlaskit/logo';
76
- // otherwise alias the import using the original name, i.e.
77
- // before: import { JiraCoreLogo } from '@atlaskit/logo';
78
- // after: import { JiraWorkManagementLogo as JiraCoreLogo } from '@atlaskit/logo';
79
- j.identifier(
80
- path.node.local.name !== path.node.imported.name
81
- ? path.node.local.name
82
- : foundKey,
83
- ),
84
- );
62
+ // replace the import with mapping name
63
+ const newLogoImport: ImportSpecifier = j.importSpecifier(
64
+ j.identifier(replacementMapping[foundKey]),
65
+ // if aliased import exist, keep the alias name unchanged, i.e.
66
+ // before: import { JiraCoreLogo as JCLogo } from '@atlaskit/logo';
67
+ // after: import { JiraWorkManagementLogo as JCLogo } from '@atlaskit/logo';
68
+ // otherwise alias the import using the original name, i.e.
69
+ // before: import { JiraCoreLogo } from '@atlaskit/logo';
70
+ // after: import { JiraWorkManagementLogo as JiraCoreLogo } from '@atlaskit/logo';
71
+ j.identifier(
72
+ path.node.local.name !== path.node.imported.name ? path.node.local.name : foundKey,
73
+ ),
74
+ );
85
75
 
86
- j(path).replaceWith(newLogoImport);
87
- });
76
+ j(path).replaceWith(newLogoImport);
77
+ });
88
78
 
89
- return source.toSource(options.printOptions);
79
+ return source.toSource(options.printOptions);
90
80
  }
@@ -5,29 +5,29 @@ import transformer from '../13.6.0-rename-imports';
5
5
  const defineInlineTest = require('jscodeshift/dist/testUtils').defineInlineTest;
6
6
 
7
7
  describe('Rename Logo import code-mods', () => {
8
- ['tsx', 'babylon'].forEach((parser) => {
9
- describe(`parser: ${parser}`, () => {
10
- defineInlineTest(
11
- { default: transformer, parser },
12
- {},
13
- `
8
+ ['tsx', 'babylon'].forEach((parser) => {
9
+ describe(`parser: ${parser}`, () => {
10
+ defineInlineTest(
11
+ { default: transformer, parser },
12
+ {},
13
+ `
14
14
  import React from 'react';
15
15
  import { JiraCoreLogo } from '@atlaskit/logo';
16
16
 
17
17
  const Logo = () => (<JiraCoreLogo />);
18
18
  `,
19
- `
19
+ `
20
20
  import React from 'react';
21
21
  import { JiraWorkManagementLogo as JiraCoreLogo } from '@atlaskit/logo';
22
22
 
23
23
  const Logo = () => (<JiraCoreLogo />);
24
24
  `,
25
- 'should alias the import using alternative components',
26
- );
27
- defineInlineTest(
28
- { default: transformer, parser },
29
- {},
30
- `
25
+ 'should alias the import using alternative components',
26
+ );
27
+ defineInlineTest(
28
+ { default: transformer, parser },
29
+ {},
30
+ `
31
31
  import React from 'react';
32
32
  import {
33
33
  AtlassianIcon,
@@ -43,7 +43,7 @@ describe('Rename Logo import code-mods', () => {
43
43
  }
44
44
  const Logo = () => getProductIcon();
45
45
  `,
46
- `
46
+ `
47
47
  import React from 'react';
48
48
  import {
49
49
  AtlassianIcon,
@@ -59,29 +59,29 @@ describe('Rename Logo import code-mods', () => {
59
59
  }
60
60
  const Logo = () => getProductIcon();
61
61
  `,
62
- 'should alias the import using alternative components, and keep other logo components unchanged',
63
- );
64
- defineInlineTest(
65
- { default: transformer, parser },
66
- {},
67
- `
62
+ 'should alias the import using alternative components, and keep other logo components unchanged',
63
+ );
64
+ defineInlineTest(
65
+ { default: transformer, parser },
66
+ {},
67
+ `
68
68
  import React from 'react';
69
69
  import { JiraCoreLogo } from '@atlaskit/logo';
70
70
 
71
71
  const Logo = ({textColor}) => (<JiraCoreLogo textColor={textColor} />);
72
72
  `,
73
- `
73
+ `
74
74
  import React from 'react';
75
75
  import { JiraWorkManagementLogo as JiraCoreLogo } from '@atlaskit/logo';
76
76
 
77
77
  const Logo = ({textColor}) => (<JiraCoreLogo textColor={textColor} />);
78
78
  `,
79
- 'should replace imports with alternative component with props unchanged',
80
- );
81
- defineInlineTest(
82
- { default: transformer, parser },
83
- {},
84
- `
79
+ 'should replace imports with alternative component with props unchanged',
80
+ );
81
+ defineInlineTest(
82
+ { default: transformer, parser },
83
+ {},
84
+ `
85
85
  import React from 'react';
86
86
  import {
87
87
  JiraCoreWordmark,
@@ -90,7 +90,7 @@ describe('Rename Logo import code-mods', () => {
90
90
 
91
91
  const Logo = () => (<><JiraCoreIcon /><JiraCoreWordmark /></>);
92
92
  `,
93
- `
93
+ `
94
94
  import React from 'react';
95
95
  import {
96
96
  JiraWorkManagementWordmark as JiraCoreWordmark,
@@ -99,35 +99,35 @@ describe('Rename Logo import code-mods', () => {
99
99
 
100
100
  const Logo = () => (<><JiraCoreIcon /><JiraCoreWordmark /></>);
101
101
  `,
102
- 'should alias multiple imports using alternative components',
103
- );
104
- defineInlineTest(
105
- { default: transformer, parser },
106
- {},
107
- `
102
+ 'should alias multiple imports using alternative components',
103
+ );
104
+ defineInlineTest(
105
+ { default: transformer, parser },
106
+ {},
107
+ `
108
108
  import React from 'react';
109
109
  import { JiraCoreLogo as JCLogo } from '@atlaskit/logo';
110
110
 
111
111
  const Logo = () => (<JCLogo />);
112
112
  `,
113
- `
113
+ `
114
114
  import React from 'react';
115
115
  import { JiraWorkManagementLogo as JCLogo } from '@atlaskit/logo';
116
116
 
117
117
  const Logo = () => (<JCLogo />);
118
118
  `,
119
- 'should replace aliased import and JSX element with alternative components',
120
- );
121
- defineInlineTest(
122
- { default: transformer, parser },
123
- {},
124
- `
119
+ 'should replace aliased import and JSX element with alternative components',
120
+ );
121
+ defineInlineTest(
122
+ { default: transformer, parser },
123
+ {},
124
+ `
125
125
  import React from 'react';
126
126
  import { StrideIcon } from '@atlaskit/logo';
127
127
 
128
128
  const Logo = () => (<StrideIcon />);
129
129
  `,
130
- `
130
+ `
131
131
  import React from 'react';
132
132
  /* TODO: (from codemod) This file uses the @atlaskit/logo \`StrideIcon\`
133
133
  which will be removed with no alternative in the next major version. */
@@ -135,99 +135,99 @@ describe('Rename Logo import code-mods', () => {
135
135
 
136
136
  const Logo = () => (<StrideIcon />);
137
137
  `,
138
- 'should prompt user when using logo components with no alternatives',
139
- );
140
- defineInlineTest(
141
- { default: transformer, parser },
142
- {},
143
- `
138
+ 'should prompt user when using logo components with no alternatives',
139
+ );
140
+ defineInlineTest(
141
+ { default: transformer, parser },
142
+ {},
143
+ `
144
144
  import React from 'react';
145
145
  import { JiraCoreIcon, HipchatIcon } from '@atlaskit/logo';
146
146
  const Logo = () => (<><JiraCoreIcon /><HipchatIcon /></>);
147
147
  `,
148
- `
148
+ `
149
149
  import React from 'react';
150
150
  /* TODO: (from codemod) This file uses the @atlaskit/logo \`HipchatIcon\`
151
151
  which will be removed with no alternative in the next major version. */
152
152
  import { JiraWorkManagementIcon as JiraCoreIcon, HipchatIcon } from '@atlaskit/logo';
153
153
  const Logo = () => (<><JiraCoreIcon /><HipchatIcon /></>);
154
154
  `,
155
- 'should alias imports using alternative component and propt user when using logo compontns with no alternatives',
156
- );
157
- defineInlineTest(
158
- { default: transformer, parser },
159
- {},
160
- `
155
+ 'should alias imports using alternative component and propt user when using logo compontns with no alternatives',
156
+ );
157
+ defineInlineTest(
158
+ { default: transformer, parser },
159
+ {},
160
+ `
161
161
  import React from 'react';
162
162
 
163
163
  const MyComponent = () => (<div />);
164
164
  `,
165
- `
165
+ `
166
166
  import React from 'react';
167
167
 
168
168
  const MyComponent = () => (<div />);
169
169
  `,
170
- 'should not modify files that are not using @atlaskit/logo',
171
- );
172
- });
173
- describe(`parser: ${parser}`, () => {
174
- defineInlineTest(
175
- { default: transformer, parser },
176
- {},
177
- `
170
+ 'should not modify files that are not using @atlaskit/logo',
171
+ );
172
+ });
173
+ describe(`parser: ${parser}`, () => {
174
+ defineInlineTest(
175
+ { default: transformer, parser },
176
+ {},
177
+ `
178
178
  import React from 'react';
179
179
  import { Props } from '@atlaskit/logo/constants';
180
180
 
181
181
  const ExampleLogoProps = Props;
182
182
  `,
183
- `
183
+ `
184
184
  import React from 'react';
185
185
  import { LogoProps as Props } from '@atlaskit/logo/constants';
186
186
 
187
187
  const ExampleLogoProps = Props;
188
188
  `,
189
- 'should alias the Props import using LogoProps',
190
- );
191
- });
192
- describe(`parser: ${parser}`, () => {
193
- defineInlineTest(
194
- { default: transformer, parser },
195
- {},
196
- `
189
+ 'should alias the Props import using LogoProps',
190
+ );
191
+ });
192
+ describe(`parser: ${parser}`, () => {
193
+ defineInlineTest(
194
+ { default: transformer, parser },
195
+ {},
196
+ `
197
197
  import React from 'react';
198
198
  import { DefaultProps } from '@atlaskit/logo/constants';
199
199
 
200
200
  const ExampleLogoProps = DefaultProps;
201
201
  `,
202
- `
202
+ `
203
203
  import React from 'react';
204
204
  import { defaultLogoParams as DefaultProps } from '@atlaskit/logo/constants';
205
205
 
206
206
  const ExampleLogoProps = DefaultProps;
207
207
  `,
208
- 'should alias the DefaultProps import using defaultLogoParams',
209
- );
210
- });
211
- describe(`parser: ${parser}`, () => {
212
- defineInlineTest(
213
- { default: transformer, parser },
214
- {},
215
- `
208
+ 'should alias the DefaultProps import using defaultLogoParams',
209
+ );
210
+ });
211
+ describe(`parser: ${parser}`, () => {
212
+ defineInlineTest(
213
+ { default: transformer, parser },
214
+ {},
215
+ `
216
216
  import React from 'react';
217
217
  import { JiraCoreIcon } from '@atlaskit/logo';
218
218
  import { DefaultProps } from '@atlaskit/logo/constants';
219
219
 
220
220
  const Logo = (DefaultProps) => (<JiraCoreIcon />);
221
221
  `,
222
- `
222
+ `
223
223
  import React from 'react';
224
224
  import { JiraWorkManagementIcon as JiraCoreIcon } from '@atlaskit/logo';
225
225
  import { defaultLogoParams as DefaultProps } from '@atlaskit/logo/constants';
226
226
 
227
227
  const Logo = (DefaultProps) => (<JiraCoreIcon />);
228
228
  `,
229
- 'should alias imports from both @atlaskit/logo and the /constants entrypoint at the same time',
230
- );
231
- });
232
- });
229
+ 'should alias imports from both @atlaskit/logo and the /constants entrypoint at the same time',
230
+ );
231
+ });
232
+ });
233
233
  });
@@ -6,30 +6,21 @@ const spacesAndTabs: RegExp = /[ \t]{2,}/g;
6
6
  const lineStartWithSpaces: RegExp = /^[ \t]*/gm;
7
7
 
8
8
  function clean(value: string): string {
9
- return value
10
- .replace(spacesAndTabs, ' ')
11
- .replace(lineStartWithSpaces, '')
12
- .trim();
9
+ return value.replace(spacesAndTabs, ' ').replace(lineStartWithSpaces, '').trim();
13
10
  }
14
11
 
15
- export function addCommentBefore(
16
- j: core.JSCodeshift,
17
- target: Collection<any>,
18
- message: string,
19
- ) {
20
- const content: string = ` TODO: (from codemod) ${clean(message)} `;
21
- target.forEach((path: ASTPath<any>) => {
22
- path.value.comments = path.value.comments || [];
12
+ export function addCommentBefore(j: core.JSCodeshift, target: Collection<any>, message: string) {
13
+ const content: string = ` TODO: (from codemod) ${clean(message)} `;
14
+ target.forEach((path: ASTPath<any>) => {
15
+ path.value.comments = path.value.comments || [];
23
16
 
24
- const exists = path.value.comments.find(
25
- (comment: any) => comment.value === content,
26
- );
17
+ const exists = path.value.comments.find((comment: any) => comment.value === content);
27
18
 
28
- // avoiding duplicates of the same comment
29
- if (exists) {
30
- return;
31
- }
19
+ // avoiding duplicates of the same comment
20
+ if (exists) {
21
+ return;
22
+ }
32
23
 
33
- path.value.comments.push(j.commentBlock(content));
34
- });
24
+ path.value.comments.push(j.commentBlock(content));
25
+ });
35
26
  }
@@ -12,7 +12,11 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
12
12
  var _react = require("@emotion/react");
13
13
  var _constants = require("./constants");
14
14
  var _excluded = ["label", "svg", "size", "appearance", "iconColor", "textColor", "testId"];
15
+ /**
16
+ * @jsxRuntime classic
17
+ */
15
18
  /** @jsx jsx */
19
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
16
20
  var CSS_VAR_COLOR = '--logo-color';
17
21
  var CSS_VAR_FILL = '--logo-fill';
18
22
  var baseWrapperStyles = (0, _react.css)({
@@ -23,14 +27,14 @@ var baseWrapperStyles = (0, _react.css)({
23
27
  lineHeight: 1,
24
28
  userSelect: 'none',
25
29
  whiteSpace: 'normal',
26
- // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
30
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
27
31
  '> svg': {
28
32
  height: '100%',
29
33
  fill: 'inherit'
30
34
  }
31
35
  });
32
36
  var stopColorStyles = (0, _react.css)({
33
- // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
37
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
34
38
  stop: {
35
39
  stopColor: 'currentColor'
36
40
  }
@@ -40,6 +44,7 @@ var sizeStyles = Object.entries(_constants.sizes).reduce(function (acc, _ref) {
40
44
  key = _ref2[0],
41
45
  val = _ref2[1];
42
46
  acc[key] = (0, _react.css)({
47
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
43
48
  height: "".concat(val, "px")
44
49
  });
45
50
  return acc;
@@ -1,6 +1,10 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ /**
3
+ * @jsxRuntime classic
4
+ */
2
5
  /** @jsx jsx */
3
6
 
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
8
  import { css, jsx } from '@emotion/react';
5
9
  import { sizes } from './constants';
6
10
  const CSS_VAR_COLOR = '--logo-color';
@@ -13,20 +17,21 @@ const baseWrapperStyles = css({
13
17
  lineHeight: 1,
14
18
  userSelect: 'none',
15
19
  whiteSpace: 'normal',
16
- // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
20
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
17
21
  '> svg': {
18
22
  height: '100%',
19
23
  fill: 'inherit'
20
24
  }
21
25
  });
22
26
  const stopColorStyles = css({
23
- // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
27
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
24
28
  stop: {
25
29
  stopColor: 'currentColor'
26
30
  }
27
31
  });
28
32
  const sizeStyles = Object.entries(sizes).reduce((acc, [key, val]) => {
29
33
  acc[key] = css({
34
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
30
35
  height: `${val}px`
31
36
  });
32
37
  return acc;
@@ -3,8 +3,12 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
5
5
  var _excluded = ["label", "svg", "size", "appearance", "iconColor", "textColor", "testId"];
6
+ /**
7
+ * @jsxRuntime classic
8
+ */
6
9
  /** @jsx jsx */
7
10
 
11
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
12
  import { css, jsx } from '@emotion/react';
9
13
  import { sizes } from './constants';
10
14
  var CSS_VAR_COLOR = '--logo-color';
@@ -17,14 +21,14 @@ var baseWrapperStyles = css({
17
21
  lineHeight: 1,
18
22
  userSelect: 'none',
19
23
  whiteSpace: 'normal',
20
- // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
24
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
21
25
  '> svg': {
22
26
  height: '100%',
23
27
  fill: 'inherit'
24
28
  }
25
29
  });
26
30
  var stopColorStyles = css({
27
- // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
31
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
28
32
  stop: {
29
33
  stopColor: 'currentColor'
30
34
  }
@@ -34,6 +38,7 @@ var sizeStyles = Object.entries(sizes).reduce(function (acc, _ref) {
34
38
  key = _ref2[0],
35
39
  val = _ref2[1];
36
40
  acc[key] = css({
41
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
37
42
  height: "".concat(val, "px")
38
43
  });
39
44
  return acc;