@atlaskit/logo 20.1.0 → 20.1.1
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 +6 -0
- package/dist/cjs/constants.js +2 -0
- package/dist/cjs/create-feature-flagged-component.js +38 -0
- package/dist/cjs/create-feature-flagged-service-collection-component.js +38 -0
- package/dist/cjs/exports/bitbucket-icon.js +2 -2
- package/dist/cjs/exports/confluence-icon.js +2 -2
- package/dist/cjs/exports/jira-service-management-icon.js +2 -2
- package/dist/cjs/exports/opsgenie.js +2 -2
- package/dist/cjs/exports/statuspage-icon.js +2 -2
- package/dist/cjs/exports/trello-icon.js +2 -2
- package/dist/cjs/index.js +86 -83
- package/dist/cjs/legacy-logos/atlas/icon.js +2 -2
- package/dist/cjs/legacy-logos/atlas/logo.js +2 -2
- package/dist/cjs/legacy-logos/atlassian/icon.js +2 -2
- package/dist/cjs/legacy-logos/atlassian/logo.js +2 -2
- package/dist/cjs/legacy-logos/atlassian-access/icon.js +2 -2
- package/dist/cjs/legacy-logos/atlassian-access/logo.js +2 -2
- package/dist/cjs/legacy-logos/atlassian-admin/icon.js +2 -2
- package/dist/cjs/legacy-logos/atlassian-admin/logo.js +2 -2
- package/dist/cjs/legacy-logos/atlassian-administration/icon.js +2 -2
- package/dist/cjs/legacy-logos/atlassian-administration/logo.js +2 -2
- package/dist/cjs/legacy-logos/atlassian-analytics/icon.js +2 -2
- package/dist/cjs/legacy-logos/atlassian-analytics/logo.js +2 -2
- package/dist/cjs/legacy-logos/atlassian-marketplace/icon.js +2 -2
- package/dist/cjs/legacy-logos/atlassian-marketplace/logo.js +2 -2
- package/dist/cjs/legacy-logos/atlassian-start/logo.js +2 -2
- package/dist/cjs/legacy-logos/bitbucket/icon.js +2 -2
- package/dist/cjs/legacy-logos/bitbucket/logo.js +2 -2
- package/dist/cjs/legacy-logos/compass/icon.js +2 -2
- package/dist/cjs/legacy-logos/compass/logo.js +2 -2
- package/dist/cjs/legacy-logos/confluence/icon.js +2 -2
- package/dist/cjs/legacy-logos/confluence/logo.js +2 -2
- package/dist/cjs/legacy-logos/focus/icon.js +2 -2
- package/dist/cjs/legacy-logos/focus/logo.js +2 -2
- package/dist/cjs/legacy-logos/get-colors-from-appearance-old-logos.js +51 -0
- package/dist/cjs/legacy-logos/get-colors-from-appearance.js +51 -0
- package/dist/cjs/legacy-logos/guard/icon.js +2 -2
- package/dist/cjs/legacy-logos/guard/logo.js +2 -2
- package/dist/cjs/legacy-logos/jira/icon.js +2 -2
- package/dist/cjs/legacy-logos/jira/logo.js +2 -2
- package/dist/cjs/legacy-logos/jira-align/icon.js +2 -2
- package/dist/cjs/legacy-logos/jira-align/logo.js +2 -2
- package/dist/cjs/legacy-logos/jira-product-discovery/icon.js +2 -2
- package/dist/cjs/legacy-logos/jira-product-discovery/logo.js +2 -2
- package/dist/cjs/legacy-logos/jira-service-management/icon.js +2 -2
- package/dist/cjs/legacy-logos/jira-service-management/logo.js +2 -2
- package/dist/cjs/legacy-logos/jira-software/icon.js +2 -2
- package/dist/cjs/legacy-logos/jira-software/logo.js +2 -2
- package/dist/cjs/legacy-logos/jira-work-management/icon.js +2 -2
- package/dist/cjs/legacy-logos/jira-work-management/logo.js +2 -2
- package/dist/cjs/legacy-logos/opsgenie/icon.js +2 -2
- package/dist/cjs/legacy-logos/opsgenie/logo.js +2 -2
- package/dist/cjs/legacy-logos/rovo/icon.js +2 -2
- package/dist/cjs/legacy-logos/rovo/logo.js +2 -2
- package/dist/cjs/legacy-logos/statuspage/icon.js +2 -2
- package/dist/cjs/legacy-logos/statuspage/logo.js +2 -2
- package/dist/cjs/legacy-logos/trello/icon.js +2 -2
- package/dist/cjs/legacy-logos/trello/logo.js +2 -2
- package/dist/cjs/legacy-logos/utils.js +15 -91
- package/dist/cjs/logo-config.js +38 -78
- package/dist/cjs/temp-size-wrapper.js +25 -0
- package/dist/es2019/constants.js +2 -0
- package/dist/es2019/create-feature-flagged-component.js +30 -0
- package/dist/es2019/create-feature-flagged-service-collection-component.js +30 -0
- package/dist/es2019/exports/bitbucket-icon.js +1 -1
- package/dist/es2019/exports/confluence-icon.js +1 -1
- package/dist/es2019/exports/jira-service-management-icon.js +1 -1
- package/dist/es2019/exports/opsgenie.js +1 -1
- package/dist/es2019/exports/statuspage-icon.js +1 -1
- package/dist/es2019/exports/trello-icon.js +1 -1
- package/dist/es2019/index.js +4 -1
- package/dist/es2019/legacy-logos/atlas/icon.js +1 -1
- package/dist/es2019/legacy-logos/atlas/logo.js +1 -1
- package/dist/es2019/legacy-logos/atlassian/icon.js +1 -1
- package/dist/es2019/legacy-logos/atlassian/logo.js +1 -1
- package/dist/es2019/legacy-logos/atlassian-access/icon.js +1 -1
- package/dist/es2019/legacy-logos/atlassian-access/logo.js +1 -1
- package/dist/es2019/legacy-logos/atlassian-admin/icon.js +1 -1
- package/dist/es2019/legacy-logos/atlassian-admin/logo.js +1 -1
- package/dist/es2019/legacy-logos/atlassian-administration/icon.js +1 -1
- package/dist/es2019/legacy-logos/atlassian-administration/logo.js +1 -1
- package/dist/es2019/legacy-logos/atlassian-analytics/icon.js +1 -1
- package/dist/es2019/legacy-logos/atlassian-analytics/logo.js +1 -1
- package/dist/es2019/legacy-logos/atlassian-marketplace/icon.js +1 -1
- package/dist/es2019/legacy-logos/atlassian-marketplace/logo.js +1 -1
- package/dist/es2019/legacy-logos/atlassian-start/logo.js +1 -1
- package/dist/es2019/legacy-logos/bitbucket/icon.js +1 -1
- package/dist/es2019/legacy-logos/bitbucket/logo.js +1 -1
- package/dist/es2019/legacy-logos/compass/icon.js +1 -1
- package/dist/es2019/legacy-logos/compass/logo.js +1 -1
- package/dist/es2019/legacy-logos/confluence/icon.js +1 -1
- package/dist/es2019/legacy-logos/confluence/logo.js +1 -1
- package/dist/es2019/legacy-logos/focus/icon.js +1 -1
- package/dist/es2019/legacy-logos/focus/logo.js +1 -1
- package/dist/es2019/legacy-logos/get-colors-from-appearance-old-logos.js +45 -0
- package/dist/es2019/legacy-logos/get-colors-from-appearance.js +45 -0
- package/dist/es2019/legacy-logos/guard/icon.js +1 -1
- package/dist/es2019/legacy-logos/guard/logo.js +1 -1
- package/dist/es2019/legacy-logos/jira/icon.js +1 -1
- package/dist/es2019/legacy-logos/jira/logo.js +1 -1
- package/dist/es2019/legacy-logos/jira-align/icon.js +1 -1
- package/dist/es2019/legacy-logos/jira-align/logo.js +1 -1
- package/dist/es2019/legacy-logos/jira-product-discovery/icon.js +1 -1
- package/dist/es2019/legacy-logos/jira-product-discovery/logo.js +1 -1
- package/dist/es2019/legacy-logos/jira-service-management/icon.js +1 -1
- package/dist/es2019/legacy-logos/jira-service-management/logo.js +1 -1
- package/dist/es2019/legacy-logos/jira-software/icon.js +1 -1
- package/dist/es2019/legacy-logos/jira-software/logo.js +1 -1
- package/dist/es2019/legacy-logos/jira-work-management/icon.js +1 -1
- package/dist/es2019/legacy-logos/jira-work-management/logo.js +1 -1
- package/dist/es2019/legacy-logos/opsgenie/icon.js +1 -1
- package/dist/es2019/legacy-logos/opsgenie/logo.js +1 -1
- package/dist/es2019/legacy-logos/rovo/icon.js +1 -1
- package/dist/es2019/legacy-logos/rovo/logo.js +1 -1
- package/dist/es2019/legacy-logos/statuspage/icon.js +1 -1
- package/dist/es2019/legacy-logos/statuspage/logo.js +1 -1
- package/dist/es2019/legacy-logos/trello/icon.js +1 -1
- package/dist/es2019/legacy-logos/trello/logo.js +1 -1
- package/dist/es2019/legacy-logos/utils.js +4 -91
- package/dist/es2019/logo-config.js +15 -73
- package/dist/es2019/temp-size-wrapper.js +17 -0
- package/dist/esm/constants.js +2 -0
- package/dist/esm/create-feature-flagged-component.js +32 -0
- package/dist/esm/create-feature-flagged-service-collection-component.js +32 -0
- package/dist/esm/exports/bitbucket-icon.js +1 -1
- package/dist/esm/exports/confluence-icon.js +1 -1
- package/dist/esm/exports/jira-service-management-icon.js +1 -1
- package/dist/esm/exports/opsgenie.js +1 -1
- package/dist/esm/exports/statuspage-icon.js +1 -1
- package/dist/esm/exports/trello-icon.js +1 -1
- package/dist/esm/index.js +4 -1
- package/dist/esm/legacy-logos/atlas/icon.js +1 -1
- package/dist/esm/legacy-logos/atlas/logo.js +1 -1
- package/dist/esm/legacy-logos/atlassian/icon.js +1 -1
- package/dist/esm/legacy-logos/atlassian/logo.js +1 -1
- package/dist/esm/legacy-logos/atlassian-access/icon.js +1 -1
- package/dist/esm/legacy-logos/atlassian-access/logo.js +1 -1
- package/dist/esm/legacy-logos/atlassian-admin/icon.js +1 -1
- package/dist/esm/legacy-logos/atlassian-admin/logo.js +1 -1
- package/dist/esm/legacy-logos/atlassian-administration/icon.js +1 -1
- package/dist/esm/legacy-logos/atlassian-administration/logo.js +1 -1
- package/dist/esm/legacy-logos/atlassian-analytics/icon.js +1 -1
- package/dist/esm/legacy-logos/atlassian-analytics/logo.js +1 -1
- package/dist/esm/legacy-logos/atlassian-marketplace/icon.js +1 -1
- package/dist/esm/legacy-logos/atlassian-marketplace/logo.js +1 -1
- package/dist/esm/legacy-logos/atlassian-start/logo.js +1 -1
- package/dist/esm/legacy-logos/bitbucket/icon.js +1 -1
- package/dist/esm/legacy-logos/bitbucket/logo.js +1 -1
- package/dist/esm/legacy-logos/compass/icon.js +1 -1
- package/dist/esm/legacy-logos/compass/logo.js +1 -1
- package/dist/esm/legacy-logos/confluence/icon.js +1 -1
- package/dist/esm/legacy-logos/confluence/logo.js +1 -1
- package/dist/esm/legacy-logos/focus/icon.js +1 -1
- package/dist/esm/legacy-logos/focus/logo.js +1 -1
- package/dist/esm/legacy-logos/get-colors-from-appearance-old-logos.js +45 -0
- package/dist/esm/legacy-logos/get-colors-from-appearance.js +45 -0
- package/dist/esm/legacy-logos/guard/icon.js +1 -1
- package/dist/esm/legacy-logos/guard/logo.js +1 -1
- package/dist/esm/legacy-logos/jira/icon.js +1 -1
- package/dist/esm/legacy-logos/jira/logo.js +1 -1
- package/dist/esm/legacy-logos/jira-align/icon.js +1 -1
- package/dist/esm/legacy-logos/jira-align/logo.js +1 -1
- package/dist/esm/legacy-logos/jira-product-discovery/icon.js +1 -1
- package/dist/esm/legacy-logos/jira-product-discovery/logo.js +1 -1
- package/dist/esm/legacy-logos/jira-service-management/icon.js +1 -1
- package/dist/esm/legacy-logos/jira-service-management/logo.js +1 -1
- package/dist/esm/legacy-logos/jira-software/icon.js +1 -1
- package/dist/esm/legacy-logos/jira-software/logo.js +1 -1
- package/dist/esm/legacy-logos/jira-work-management/icon.js +1 -1
- package/dist/esm/legacy-logos/jira-work-management/logo.js +1 -1
- package/dist/esm/legacy-logos/opsgenie/icon.js +1 -1
- package/dist/esm/legacy-logos/opsgenie/logo.js +1 -1
- package/dist/esm/legacy-logos/rovo/icon.js +1 -1
- package/dist/esm/legacy-logos/rovo/logo.js +1 -1
- package/dist/esm/legacy-logos/statuspage/icon.js +1 -1
- package/dist/esm/legacy-logos/statuspage/logo.js +1 -1
- package/dist/esm/legacy-logos/trello/icon.js +1 -1
- package/dist/esm/legacy-logos/trello/logo.js +1 -1
- package/dist/esm/legacy-logos/utils.js +4 -91
- package/dist/esm/logo-config.js +19 -80
- package/dist/esm/temp-size-wrapper.js +19 -0
- package/dist/types/create-feature-flagged-component.d.ts +12 -0
- package/dist/types/create-feature-flagged-service-collection-component.d.ts +12 -0
- package/dist/types/legacy-logos/get-colors-from-appearance-old-logos.d.ts +7 -0
- package/dist/types/legacy-logos/get-colors-from-appearance.d.ts +5 -0
- package/dist/types/legacy-logos/utils.d.ts +2 -12
- package/dist/types/logo-config.d.ts +3 -25
- package/dist/types/temp-size-wrapper.d.ts +9 -0
- package/dist/types-ts4.5/create-feature-flagged-component.d.ts +12 -0
- package/dist/types-ts4.5/create-feature-flagged-service-collection-component.d.ts +12 -0
- package/dist/types-ts4.5/legacy-logos/get-colors-from-appearance-old-logos.d.ts +7 -0
- package/dist/types-ts4.5/legacy-logos/get-colors-from-appearance.d.ts +5 -0
- package/dist/types-ts4.5/legacy-logos/utils.d.ts +2 -12
- package/dist/types-ts4.5/logo-config.d.ts +3 -25
- package/dist/types-ts4.5/temp-size-wrapper.d.ts +9 -0
- package/package.json +7 -6
- package/offerings.json +0 -28
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { useThemeObserver } from '@atlaskit/tokens';
|
|
3
3
|
import { defaultLogoParams } from '../../constants';
|
|
4
4
|
import Wrapper from '../../wrapper';
|
|
5
|
-
import { getColorsFromAppearance } from '../
|
|
5
|
+
import { getColorsFromAppearance } from '../get-colors-from-appearance';
|
|
6
6
|
var svg = function svg(_ref, colorMode) {
|
|
7
7
|
var appearance = _ref.appearance,
|
|
8
8
|
iconColor = _ref.iconColor;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { useThemeObserver } from '@atlaskit/tokens';
|
|
3
3
|
import { defaultLogoParams } from '../../constants';
|
|
4
4
|
import Wrapper from '../../wrapper';
|
|
5
|
-
import { getColorsFromAppearance } from '../
|
|
5
|
+
import { getColorsFromAppearance } from '../get-colors-from-appearance';
|
|
6
6
|
var svg = function svg(_ref, colorMode) {
|
|
7
7
|
var appearance = _ref.appearance,
|
|
8
8
|
iconColor = _ref.iconColor,
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { useThemeObserver } from '@atlaskit/tokens';
|
|
3
3
|
import { defaultLogoParams } from '../../constants';
|
|
4
4
|
import Wrapper from '../../wrapper';
|
|
5
|
-
import { getColorsFromAppearance } from '../
|
|
5
|
+
import { getColorsFromAppearance } from '../get-colors-from-appearance';
|
|
6
6
|
var svg = function svg(_ref, colorMode) {
|
|
7
7
|
var appearance = _ref.appearance,
|
|
8
8
|
iconColor = _ref.iconColor;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { useThemeObserver } from '@atlaskit/tokens';
|
|
3
3
|
import { defaultLogoParams } from '../../constants';
|
|
4
4
|
import Wrapper from '../../wrapper';
|
|
5
|
-
import { getColorsFromAppearance } from '../
|
|
5
|
+
import { getColorsFromAppearance } from '../get-colors-from-appearance';
|
|
6
6
|
var svg = function svg(_ref, colorMode) {
|
|
7
7
|
var appearance = _ref.appearance,
|
|
8
8
|
iconColor = _ref.iconColor,
|
|
@@ -1,93 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export var getColorsFromAppearanceOldLogos = function getColorsFromAppearanceOldLogos(appearance, colorMode) {
|
|
3
|
-
var iconGradientStart, iconGradientStop, iconColor, textColor, atlassianLogoTextColor;
|
|
4
|
-
switch (appearance) {
|
|
5
|
-
case 'brand':
|
|
6
|
-
iconGradientStart = '#0052CC';
|
|
7
|
-
iconGradientStop = '#2684FF';
|
|
8
|
-
iconColor = '#2684FF';
|
|
9
|
-
textColor = "var(--ds-text, #292A2E)";
|
|
10
|
-
// This is only used for the top level Atlassian wordmark (see AtlassianLogo
|
|
11
|
-
// or AtlassianStartLogo for example), and is only different for the Brand
|
|
12
|
-
// appearance - a bold brand color. For other appearances,
|
|
13
|
-
// atlassianLogoTextColor is the same as textColor.
|
|
14
|
-
atlassianLogoTextColor = '#0052CC';
|
|
15
|
-
break;
|
|
16
|
-
case 'neutral':
|
|
17
|
-
iconGradientStart = '#344563';
|
|
18
|
-
iconGradientStop = '#7A869A';
|
|
19
|
-
iconColor = '#7A869A';
|
|
20
|
-
textColor = '#505F79';
|
|
21
|
-
atlassianLogoTextColor = '#505F79';
|
|
22
|
-
break;
|
|
23
|
-
case 'inverse':
|
|
24
|
-
iconGradientStart = '#FFFFFF66';
|
|
25
|
-
iconGradientStop = '#FFFFFF';
|
|
26
|
-
iconColor = '#FFFFFF';
|
|
27
|
-
textColor = '#FFFFFF';
|
|
28
|
-
atlassianLogoTextColor = '#FFFFFF';
|
|
29
|
-
break;
|
|
30
|
-
}
|
|
31
|
-
if (colorMode === 'dark' && appearance === 'inverse') {
|
|
32
|
-
iconGradientStart = '#161A1D66';
|
|
33
|
-
iconGradientStop = '#161A1D';
|
|
34
|
-
iconColor = '#161A1D';
|
|
35
|
-
textColor = '#161A1D';
|
|
36
|
-
atlassianLogoTextColor = '#161A1D';
|
|
37
|
-
}
|
|
38
|
-
return {
|
|
39
|
-
iconGradientStart: iconGradientStart,
|
|
40
|
-
iconGradientStop: iconGradientStop,
|
|
41
|
-
iconColor: iconColor,
|
|
42
|
-
textColor: textColor,
|
|
43
|
-
atlassianLogoTextColor: atlassianLogoTextColor
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
export var getColorsFromAppearance = function getColorsFromAppearance(appearance, colorMode) {
|
|
47
|
-
var iconColor, textColor, atlassianLogoTextColor;
|
|
48
|
-
if (colorMode === 'dark') {
|
|
49
|
-
switch (appearance) {
|
|
50
|
-
case 'brand':
|
|
51
|
-
iconColor = '#357DE8';
|
|
52
|
-
textColor = '#E2E3E4';
|
|
53
|
-
atlassianLogoTextColor = '#357DE8';
|
|
54
|
-
break;
|
|
55
|
-
case 'neutral':
|
|
56
|
-
iconColor = '#96999E';
|
|
57
|
-
textColor = '#BFC1C4';
|
|
58
|
-
atlassianLogoTextColor = '#96999E';
|
|
59
|
-
break;
|
|
60
|
-
case 'inverse':
|
|
61
|
-
iconColor = '#101214';
|
|
62
|
-
textColor = '#101214';
|
|
63
|
-
atlassianLogoTextColor = '#101214';
|
|
64
|
-
break;
|
|
65
|
-
}
|
|
66
|
-
} else {
|
|
67
|
-
switch (appearance) {
|
|
68
|
-
case 'brand':
|
|
69
|
-
iconColor = '#1868DB';
|
|
70
|
-
textColor = '#101214';
|
|
71
|
-
atlassianLogoTextColor = '#1868DB';
|
|
72
|
-
break;
|
|
73
|
-
case 'neutral':
|
|
74
|
-
iconColor = '#6C6F77';
|
|
75
|
-
textColor = '#3B3D42';
|
|
76
|
-
atlassianLogoTextColor = '#6C6F77';
|
|
77
|
-
break;
|
|
78
|
-
case 'inverse':
|
|
79
|
-
iconColor = '#FFFFFF';
|
|
80
|
-
textColor = '#FFFFFF';
|
|
81
|
-
atlassianLogoTextColor = '#FFFFFF';
|
|
82
|
-
break;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
return {
|
|
86
|
-
iconColor: iconColor,
|
|
87
|
-
textColor: textColor,
|
|
88
|
-
atlassianLogoTextColor: atlassianLogoTextColor
|
|
89
|
-
};
|
|
90
|
-
};
|
|
1
|
+
import { getColorsFromAppearance } from './get-colors-from-appearance';
|
|
91
2
|
export var getColorsForLoom = function getColorsForLoom(appearance, colorMode) {
|
|
92
3
|
var iconColor = getColorsFromAppearance(appearance, colorMode).iconColor;
|
|
93
4
|
var textColor = getColorsFromAppearance(appearance, colorMode).textColor;
|
|
@@ -110,4 +21,6 @@ export var getColorsForLoom = function getColorsForLoom(appearance, colorMode) {
|
|
|
110
21
|
iconColor: iconColor,
|
|
111
22
|
textColor: textColor
|
|
112
23
|
};
|
|
113
|
-
};
|
|
24
|
+
};
|
|
25
|
+
export { getColorsFromAppearanceOldLogos } from './get-colors-from-appearance-old-logos';
|
|
26
|
+
export { getColorsFromAppearance } from './get-colors-from-appearance';
|
package/dist/esm/logo-config.js
CHANGED
|
@@ -1,72 +1,15 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["
|
|
4
|
-
_excluded2 = ["size", "shouldUseNewLogoDesign"],
|
|
5
|
-
_excluded3 = ["shouldUseHexLogo"],
|
|
6
|
-
_excluded4 = ["size"];
|
|
2
|
+
var _excluded = ["shouldUseHexLogo"];
|
|
7
3
|
import React from 'react';
|
|
8
4
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
* based on the platform-logo-rebrand feature flag.
|
|
12
|
-
*
|
|
13
|
-
* @param LegacyComponent - The legacy logo component.
|
|
14
|
-
* @param NewComponent - The new logo component.
|
|
15
|
-
* @returns A feature flagged component that renders the legacy logo or the new logo.
|
|
16
|
-
*/
|
|
17
|
-
var createFeatureFlaggedComponent = function createFeatureFlaggedComponent(LegacyComponent, NewComponent) {
|
|
18
|
-
// Note: textColor and iconColor aren't supported on all new logos
|
|
19
|
-
// These props will be deprecated in the future
|
|
20
|
-
return function (_ref) {
|
|
21
|
-
var size = _ref.size,
|
|
22
|
-
shouldUseNewLogoDesign = _ref.shouldUseNewLogoDesign,
|
|
23
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
24
|
-
if (fg('platform-logo-rebrand') || shouldUseNewLogoDesign) {
|
|
25
|
-
// Size defaults need to be set, as the temp library had different defaults
|
|
26
|
-
return /*#__PURE__*/React.createElement(NewComponent, _extends({
|
|
27
|
-
size: size || 'medium'
|
|
28
|
-
}, props));
|
|
29
|
-
}
|
|
30
|
-
return /*#__PURE__*/React.createElement(LegacyComponent, _extends({
|
|
31
|
-
size: size
|
|
32
|
-
}, props));
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Creates a feature flagged component that renders the legacy logo or the new logo
|
|
38
|
-
* based on the platform-logo-rebrand feature flag.
|
|
39
|
-
*
|
|
40
|
-
* @param LegacyComponent - The legacy logo component.
|
|
41
|
-
* @param NewComponent - The new logo component.
|
|
42
|
-
* @returns A feature flagged component that renders the legacy logo or the new logo.
|
|
43
|
-
*/
|
|
44
|
-
export { createFeatureFlaggedComponent };
|
|
45
|
-
var createFeatureFlaggedServiceCollectionComponent = function createFeatureFlaggedServiceCollectionComponent(LegacyComponent, NewComponent) {
|
|
46
|
-
// Note: textColor and iconColor aren't supported on all new logos
|
|
47
|
-
// These props will be deprecated in the future
|
|
48
|
-
return function (_ref2) {
|
|
49
|
-
var size = _ref2.size,
|
|
50
|
-
shouldUseNewLogoDesign = _ref2.shouldUseNewLogoDesign,
|
|
51
|
-
props = _objectWithoutProperties(_ref2, _excluded2);
|
|
52
|
-
if (fg('platform-logo-rebrand') || shouldUseNewLogoDesign) {
|
|
53
|
-
// Size defaults need to be set, as the temp library had different defaults
|
|
54
|
-
return /*#__PURE__*/React.createElement(NewComponent, _extends({
|
|
55
|
-
size: size || 'medium'
|
|
56
|
-
}, props));
|
|
57
|
-
}
|
|
58
|
-
return /*#__PURE__*/React.createElement(LegacyComponent, _extends({
|
|
59
|
-
size: size
|
|
60
|
-
}, props));
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
export { createFeatureFlaggedServiceCollectionComponent };
|
|
5
|
+
import { createFeatureFlaggedServiceCollectionComponent } from './create-feature-flagged-service-collection-component';
|
|
6
|
+
import { tempSizeWrapper } from './temp-size-wrapper';
|
|
64
7
|
var createFeatureFlaggedRovoComponent = function createFeatureFlaggedRovoComponent(LegacyComponent, NewComponent, NewHexComponent) {
|
|
65
8
|
var RovoHexWrapped = tempSizeWrapper(NewHexComponent);
|
|
66
9
|
var RovoServiceCollectionWrapped = createFeatureFlaggedServiceCollectionComponent(LegacyComponent, NewComponent);
|
|
67
|
-
return function (
|
|
68
|
-
var shouldUseHexLogo =
|
|
69
|
-
props = _objectWithoutProperties(
|
|
10
|
+
return function (_ref) {
|
|
11
|
+
var shouldUseHexLogo = _ref.shouldUseHexLogo,
|
|
12
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
70
13
|
// Return hex logo if feature flag enabled. Otherwise revert to old set of components
|
|
71
14
|
if (fg('platform-logo-rebrand-rovo-hex') || shouldUseHexLogo) {
|
|
72
15
|
return /*#__PURE__*/React.createElement(RovoHexWrapped, props);
|
|
@@ -75,23 +18,8 @@ var createFeatureFlaggedRovoComponent = function createFeatureFlaggedRovoCompone
|
|
|
75
18
|
}
|
|
76
19
|
};
|
|
77
20
|
};
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Creates a wrapper around the new logo or icon component to ensure it receives the correct default (medium) size prop.
|
|
81
|
-
*
|
|
82
|
-
* @param NewComponent - The new logo or icon component.
|
|
83
|
-
*/
|
|
84
21
|
export { createFeatureFlaggedRovoComponent };
|
|
85
|
-
|
|
86
|
-
return function (_ref4) {
|
|
87
|
-
var size = _ref4.size,
|
|
88
|
-
props = _objectWithoutProperties(_ref4, _excluded4);
|
|
89
|
-
return /*#__PURE__*/React.createElement(NewComponent, _extends({
|
|
90
|
-
size: size || 'medium'
|
|
91
|
-
}, props));
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
export { tempSizeWrapper };
|
|
22
|
+
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
95
23
|
export var logoDocsSchema = [
|
|
96
24
|
// Program logos
|
|
97
25
|
{
|
|
@@ -325,27 +253,38 @@ export var logoDocsSchema = [
|
|
|
325
253
|
skipExample: true,
|
|
326
254
|
deprecated: true
|
|
327
255
|
}];
|
|
256
|
+
|
|
257
|
+
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
328
258
|
export var PROGRAM_LOGO_DOCS_ORDER = logoDocsSchema.filter(function (logo) {
|
|
329
259
|
return logo.category === 'program' && !logo.skipExample;
|
|
330
260
|
}).map(function (logo) {
|
|
331
261
|
return logo.name;
|
|
332
262
|
});
|
|
263
|
+
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
333
264
|
export var APP_LOGO_DOCS_ORDER = logoDocsSchema.filter(function (logo) {
|
|
334
265
|
return logo.category === 'app' && !logo.skipExample;
|
|
335
266
|
}).map(function (logo) {
|
|
336
267
|
return logo.name;
|
|
337
268
|
});
|
|
269
|
+
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
338
270
|
export var AGENT_LOGO_DOCS_ORDER = logoDocsSchema.filter(function (logo) {
|
|
339
271
|
return logo.category === 'agent' && !logo.skipExample;
|
|
340
272
|
}).map(function (logo) {
|
|
341
273
|
return logo.name;
|
|
342
274
|
}) || [];
|
|
275
|
+
|
|
276
|
+
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
343
277
|
export var LEGACY_ONLY_LOGOS = logoDocsSchema.filter(function (logo) {
|
|
344
278
|
return logo.type === 'legacy';
|
|
345
279
|
});
|
|
280
|
+
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
346
281
|
export var SHARED_LOGOS = logoDocsSchema.filter(function (logo) {
|
|
347
282
|
return logo.type === 'migration';
|
|
348
283
|
});
|
|
284
|
+
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
349
285
|
export var NEW_ONLY_LOGOS = logoDocsSchema.filter(function (logo) {
|
|
350
286
|
return logo.type === 'new';
|
|
351
|
-
});
|
|
287
|
+
});
|
|
288
|
+
export { createFeatureFlaggedComponent } from './create-feature-flagged-component';
|
|
289
|
+
export { createFeatureFlaggedServiceCollectionComponent } from './create-feature-flagged-service-collection-component';
|
|
290
|
+
export { tempSizeWrapper } from './temp-size-wrapper';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["size"];
|
|
4
|
+
import React from 'react';
|
|
5
|
+
/**
|
|
6
|
+
* Creates a wrapper around the new logo or icon component to ensure it receives the correct default (medium) size prop.
|
|
7
|
+
*
|
|
8
|
+
* @param NewComponent - The new logo or icon component.
|
|
9
|
+
*/
|
|
10
|
+
var tempSizeWrapper = function tempSizeWrapper(NewComponent) {
|
|
11
|
+
return function (_ref) {
|
|
12
|
+
var size = _ref.size,
|
|
13
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
14
|
+
return /*#__PURE__*/React.createElement(NewComponent, _extends({
|
|
15
|
+
size: size || 'medium'
|
|
16
|
+
}, props));
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export { tempSizeWrapper };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type LogoProps } from './types';
|
|
3
|
+
import { type AppIconProps, type AppLogoProps } from './utils/types';
|
|
4
|
+
/**
|
|
5
|
+
* Creates a feature flagged component that renders the legacy logo or the new logo
|
|
6
|
+
* based on the platform-logo-rebrand feature flag.
|
|
7
|
+
*
|
|
8
|
+
* @param LegacyComponent - The legacy logo component.
|
|
9
|
+
* @param NewComponent - The new logo component.
|
|
10
|
+
* @returns A feature flagged component that renders the legacy logo or the new logo.
|
|
11
|
+
*/
|
|
12
|
+
export declare const createFeatureFlaggedComponent: (LegacyComponent: React.ComponentType<LogoProps>, NewComponent: React.ComponentType<AppLogoProps> | React.ComponentType<AppIconProps>) => ({ size, shouldUseNewLogoDesign, ...props }: LogoProps) => React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type LogoProps } from './types';
|
|
3
|
+
import { type AppIconProps, type AppLogoProps } from './utils/types';
|
|
4
|
+
/**
|
|
5
|
+
* Creates a feature flagged component that renders the legacy logo or the new logo
|
|
6
|
+
* based on the platform-logo-rebrand feature flag.
|
|
7
|
+
*
|
|
8
|
+
* @param LegacyComponent - The legacy logo component.
|
|
9
|
+
* @param NewComponent - The new logo component.
|
|
10
|
+
* @returns A feature flagged component that renders the legacy logo or the new logo.
|
|
11
|
+
*/
|
|
12
|
+
export declare const createFeatureFlaggedServiceCollectionComponent: (LegacyComponent: React.ComponentType<LogoProps>, NewComponent: React.ComponentType<AppLogoProps> | React.ComponentType<AppIconProps>) => ({ size, shouldUseNewLogoDesign, ...props }: LogoProps) => React.JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const getColorsFromAppearanceOldLogos: (appearance?: string, colorMode?: string) => {
|
|
2
|
+
iconGradientStart: string | undefined;
|
|
3
|
+
iconGradientStop: string | undefined;
|
|
4
|
+
iconColor: string | undefined;
|
|
5
|
+
textColor: string | undefined;
|
|
6
|
+
atlassianLogoTextColor: string | undefined;
|
|
7
|
+
};
|
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
export declare const getColorsFromAppearanceOldLogos: (appearance?: string, colorMode?: string) => {
|
|
2
|
-
iconGradientStart: string | undefined;
|
|
3
|
-
iconGradientStop: string | undefined;
|
|
4
|
-
iconColor: string | undefined;
|
|
5
|
-
textColor: string | undefined;
|
|
6
|
-
atlassianLogoTextColor: string | undefined;
|
|
7
|
-
};
|
|
8
|
-
export declare const getColorsFromAppearance: (appearance?: string, colorMode?: string) => {
|
|
9
|
-
iconColor: string | undefined;
|
|
10
|
-
textColor: string | undefined;
|
|
11
|
-
atlassianLogoTextColor: string | undefined;
|
|
12
|
-
};
|
|
13
1
|
export declare const getColorsForLoom: (appearance?: string, colorMode?: string) => {
|
|
14
2
|
iconColor: string | undefined;
|
|
15
3
|
textColor: string | undefined;
|
|
16
4
|
};
|
|
5
|
+
export { getColorsFromAppearanceOldLogos } from './get-colors-from-appearance-old-logos';
|
|
6
|
+
export { getColorsFromAppearance } from './get-colors-from-appearance';
|
|
@@ -1,24 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type LogoProps } from './types';
|
|
3
3
|
import { type AppIconProps, type AppLogoProps } from './utils/types';
|
|
4
|
-
/**
|
|
5
|
-
* Creates a feature flagged component that renders the legacy logo or the new logo
|
|
6
|
-
* based on the platform-logo-rebrand feature flag.
|
|
7
|
-
*
|
|
8
|
-
* @param LegacyComponent - The legacy logo component.
|
|
9
|
-
* @param NewComponent - The new logo component.
|
|
10
|
-
* @returns A feature flagged component that renders the legacy logo or the new logo.
|
|
11
|
-
*/
|
|
12
|
-
export declare const createFeatureFlaggedComponent: (LegacyComponent: React.ComponentType<LogoProps>, NewComponent: React.ComponentType<AppLogoProps> | React.ComponentType<AppIconProps>) => ({ size, shouldUseNewLogoDesign, ...props }: LogoProps) => React.JSX.Element;
|
|
13
|
-
/**
|
|
14
|
-
* Creates a feature flagged component that renders the legacy logo or the new logo
|
|
15
|
-
* based on the platform-logo-rebrand feature flag.
|
|
16
|
-
*
|
|
17
|
-
* @param LegacyComponent - The legacy logo component.
|
|
18
|
-
* @param NewComponent - The new logo component.
|
|
19
|
-
* @returns A feature flagged component that renders the legacy logo or the new logo.
|
|
20
|
-
*/
|
|
21
|
-
export declare const createFeatureFlaggedServiceCollectionComponent: (LegacyComponent: React.ComponentType<LogoProps>, NewComponent: React.ComponentType<AppLogoProps> | React.ComponentType<AppIconProps>) => ({ size, shouldUseNewLogoDesign, ...props }: LogoProps) => React.JSX.Element;
|
|
22
4
|
export declare const createFeatureFlaggedRovoComponent: (LegacyComponent: React.ComponentType<LogoProps>, NewComponent: React.ComponentType<AppLogoProps> | React.ComponentType<AppIconProps>, NewHexComponent: React.ComponentType<AppLogoProps> | React.ComponentType<AppIconProps>) => ({ shouldUseHexLogo, ...props }: LogoProps & {
|
|
23
5
|
/**
|
|
24
6
|
* When the feature flag `platform-logo-rebrand-rovo-hex` is set to false, this flag changes the rovo logo to a tile.
|
|
@@ -30,12 +12,6 @@ export declare const createFeatureFlaggedRovoComponent: (LegacyComponent: React.
|
|
|
30
12
|
*/
|
|
31
13
|
shouldUseHexLogo?: boolean;
|
|
32
14
|
}) => React.JSX.Element;
|
|
33
|
-
/**
|
|
34
|
-
* Creates a wrapper around the new logo or icon component to ensure it receives the correct default (medium) size prop.
|
|
35
|
-
*
|
|
36
|
-
* @param NewComponent - The new logo or icon component.
|
|
37
|
-
*/
|
|
38
|
-
export declare const tempSizeWrapper: (NewComponent: React.ComponentType<AppLogoProps> | React.ComponentType<AppIconProps>) => ({ size, ...props }: LogoProps) => React.JSX.Element;
|
|
39
15
|
type LogoDocsSchema = {
|
|
40
16
|
name: string;
|
|
41
17
|
type: 'legacy' | 'migration' | 'new' | 'rovo-hex';
|
|
@@ -51,4 +27,6 @@ export declare const AGENT_LOGO_DOCS_ORDER: string[];
|
|
|
51
27
|
export declare const LEGACY_ONLY_LOGOS: LogoDocsSchema[];
|
|
52
28
|
export declare const SHARED_LOGOS: LogoDocsSchema[];
|
|
53
29
|
export declare const NEW_ONLY_LOGOS: LogoDocsSchema[];
|
|
54
|
-
export {};
|
|
30
|
+
export { createFeatureFlaggedComponent } from './create-feature-flagged-component';
|
|
31
|
+
export { createFeatureFlaggedServiceCollectionComponent } from './create-feature-flagged-service-collection-component';
|
|
32
|
+
export { tempSizeWrapper } from './temp-size-wrapper';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type LogoProps } from './types';
|
|
3
|
+
import { type AppIconProps, type AppLogoProps } from './utils/types';
|
|
4
|
+
/**
|
|
5
|
+
* Creates a wrapper around the new logo or icon component to ensure it receives the correct default (medium) size prop.
|
|
6
|
+
*
|
|
7
|
+
* @param NewComponent - The new logo or icon component.
|
|
8
|
+
*/
|
|
9
|
+
export declare const tempSizeWrapper: (NewComponent: React.ComponentType<AppLogoProps> | React.ComponentType<AppIconProps>) => ({ size, ...props }: LogoProps) => React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type LogoProps } from './types';
|
|
3
|
+
import { type AppIconProps, type AppLogoProps } from './utils/types';
|
|
4
|
+
/**
|
|
5
|
+
* Creates a feature flagged component that renders the legacy logo or the new logo
|
|
6
|
+
* based on the platform-logo-rebrand feature flag.
|
|
7
|
+
*
|
|
8
|
+
* @param LegacyComponent - The legacy logo component.
|
|
9
|
+
* @param NewComponent - The new logo component.
|
|
10
|
+
* @returns A feature flagged component that renders the legacy logo or the new logo.
|
|
11
|
+
*/
|
|
12
|
+
export declare const createFeatureFlaggedComponent: (LegacyComponent: React.ComponentType<LogoProps>, NewComponent: React.ComponentType<AppLogoProps> | React.ComponentType<AppIconProps>) => ({ size, shouldUseNewLogoDesign, ...props }: LogoProps) => React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type LogoProps } from './types';
|
|
3
|
+
import { type AppIconProps, type AppLogoProps } from './utils/types';
|
|
4
|
+
/**
|
|
5
|
+
* Creates a feature flagged component that renders the legacy logo or the new logo
|
|
6
|
+
* based on the platform-logo-rebrand feature flag.
|
|
7
|
+
*
|
|
8
|
+
* @param LegacyComponent - The legacy logo component.
|
|
9
|
+
* @param NewComponent - The new logo component.
|
|
10
|
+
* @returns A feature flagged component that renders the legacy logo or the new logo.
|
|
11
|
+
*/
|
|
12
|
+
export declare const createFeatureFlaggedServiceCollectionComponent: (LegacyComponent: React.ComponentType<LogoProps>, NewComponent: React.ComponentType<AppLogoProps> | React.ComponentType<AppIconProps>) => ({ size, shouldUseNewLogoDesign, ...props }: LogoProps) => React.JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const getColorsFromAppearanceOldLogos: (appearance?: string, colorMode?: string) => {
|
|
2
|
+
iconGradientStart: string | undefined;
|
|
3
|
+
iconGradientStop: string | undefined;
|
|
4
|
+
iconColor: string | undefined;
|
|
5
|
+
textColor: string | undefined;
|
|
6
|
+
atlassianLogoTextColor: string | undefined;
|
|
7
|
+
};
|
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
export declare const getColorsFromAppearanceOldLogos: (appearance?: string, colorMode?: string) => {
|
|
2
|
-
iconGradientStart: string | undefined;
|
|
3
|
-
iconGradientStop: string | undefined;
|
|
4
|
-
iconColor: string | undefined;
|
|
5
|
-
textColor: string | undefined;
|
|
6
|
-
atlassianLogoTextColor: string | undefined;
|
|
7
|
-
};
|
|
8
|
-
export declare const getColorsFromAppearance: (appearance?: string, colorMode?: string) => {
|
|
9
|
-
iconColor: string | undefined;
|
|
10
|
-
textColor: string | undefined;
|
|
11
|
-
atlassianLogoTextColor: string | undefined;
|
|
12
|
-
};
|
|
13
1
|
export declare const getColorsForLoom: (appearance?: string, colorMode?: string) => {
|
|
14
2
|
iconColor: string | undefined;
|
|
15
3
|
textColor: string | undefined;
|
|
16
4
|
};
|
|
5
|
+
export { getColorsFromAppearanceOldLogos } from './get-colors-from-appearance-old-logos';
|
|
6
|
+
export { getColorsFromAppearance } from './get-colors-from-appearance';
|
|
@@ -1,24 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type LogoProps } from './types';
|
|
3
3
|
import { type AppIconProps, type AppLogoProps } from './utils/types';
|
|
4
|
-
/**
|
|
5
|
-
* Creates a feature flagged component that renders the legacy logo or the new logo
|
|
6
|
-
* based on the platform-logo-rebrand feature flag.
|
|
7
|
-
*
|
|
8
|
-
* @param LegacyComponent - The legacy logo component.
|
|
9
|
-
* @param NewComponent - The new logo component.
|
|
10
|
-
* @returns A feature flagged component that renders the legacy logo or the new logo.
|
|
11
|
-
*/
|
|
12
|
-
export declare const createFeatureFlaggedComponent: (LegacyComponent: React.ComponentType<LogoProps>, NewComponent: React.ComponentType<AppLogoProps> | React.ComponentType<AppIconProps>) => ({ size, shouldUseNewLogoDesign, ...props }: LogoProps) => React.JSX.Element;
|
|
13
|
-
/**
|
|
14
|
-
* Creates a feature flagged component that renders the legacy logo or the new logo
|
|
15
|
-
* based on the platform-logo-rebrand feature flag.
|
|
16
|
-
*
|
|
17
|
-
* @param LegacyComponent - The legacy logo component.
|
|
18
|
-
* @param NewComponent - The new logo component.
|
|
19
|
-
* @returns A feature flagged component that renders the legacy logo or the new logo.
|
|
20
|
-
*/
|
|
21
|
-
export declare const createFeatureFlaggedServiceCollectionComponent: (LegacyComponent: React.ComponentType<LogoProps>, NewComponent: React.ComponentType<AppLogoProps> | React.ComponentType<AppIconProps>) => ({ size, shouldUseNewLogoDesign, ...props }: LogoProps) => React.JSX.Element;
|
|
22
4
|
export declare const createFeatureFlaggedRovoComponent: (LegacyComponent: React.ComponentType<LogoProps>, NewComponent: React.ComponentType<AppLogoProps> | React.ComponentType<AppIconProps>, NewHexComponent: React.ComponentType<AppLogoProps> | React.ComponentType<AppIconProps>) => ({ shouldUseHexLogo, ...props }: LogoProps & {
|
|
23
5
|
/**
|
|
24
6
|
* When the feature flag `platform-logo-rebrand-rovo-hex` is set to false, this flag changes the rovo logo to a tile.
|
|
@@ -30,12 +12,6 @@ export declare const createFeatureFlaggedRovoComponent: (LegacyComponent: React.
|
|
|
30
12
|
*/
|
|
31
13
|
shouldUseHexLogo?: boolean;
|
|
32
14
|
}) => React.JSX.Element;
|
|
33
|
-
/**
|
|
34
|
-
* Creates a wrapper around the new logo or icon component to ensure it receives the correct default (medium) size prop.
|
|
35
|
-
*
|
|
36
|
-
* @param NewComponent - The new logo or icon component.
|
|
37
|
-
*/
|
|
38
|
-
export declare const tempSizeWrapper: (NewComponent: React.ComponentType<AppLogoProps> | React.ComponentType<AppIconProps>) => ({ size, ...props }: LogoProps) => React.JSX.Element;
|
|
39
15
|
type LogoDocsSchema = {
|
|
40
16
|
name: string;
|
|
41
17
|
type: 'legacy' | 'migration' | 'new' | 'rovo-hex';
|
|
@@ -51,4 +27,6 @@ export declare const AGENT_LOGO_DOCS_ORDER: string[];
|
|
|
51
27
|
export declare const LEGACY_ONLY_LOGOS: LogoDocsSchema[];
|
|
52
28
|
export declare const SHARED_LOGOS: LogoDocsSchema[];
|
|
53
29
|
export declare const NEW_ONLY_LOGOS: LogoDocsSchema[];
|
|
54
|
-
export {};
|
|
30
|
+
export { createFeatureFlaggedComponent } from './create-feature-flagged-component';
|
|
31
|
+
export { createFeatureFlaggedServiceCollectionComponent } from './create-feature-flagged-service-collection-component';
|
|
32
|
+
export { tempSizeWrapper } from './temp-size-wrapper';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type LogoProps } from './types';
|
|
3
|
+
import { type AppIconProps, type AppLogoProps } from './utils/types';
|
|
4
|
+
/**
|
|
5
|
+
* Creates a wrapper around the new logo or icon component to ensure it receives the correct default (medium) size prop.
|
|
6
|
+
*
|
|
7
|
+
* @param NewComponent - The new logo or icon component.
|
|
8
|
+
*/
|
|
9
|
+
export declare const tempSizeWrapper: (NewComponent: React.ComponentType<AppLogoProps> | React.ComponentType<AppIconProps>) => ({ size, ...props }: LogoProps) => React.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/logo",
|
|
3
|
-
"version": "20.1.
|
|
3
|
+
"version": "20.1.1",
|
|
4
4
|
"description": "A logo is a visual representation of a brand or app. It can be a word, an image, or a combination of both.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@atlaskit/css": "^0.19.0",
|
|
39
39
|
"@atlaskit/ds-lib": "^7.0.0",
|
|
40
40
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
41
|
-
"@atlaskit/theme": "^
|
|
41
|
+
"@atlaskit/theme": "^24.0.0",
|
|
42
42
|
"@atlaskit/tokens": "^13.0.0",
|
|
43
43
|
"@babel/runtime": "^7.0.0",
|
|
44
44
|
"@compiled/react": "^0.20.0"
|
|
@@ -51,25 +51,26 @@
|
|
|
51
51
|
"@af/formatting": "workspace:^",
|
|
52
52
|
"@af/integration-testing": "workspace:^",
|
|
53
53
|
"@af/visual-regression": "workspace:^",
|
|
54
|
-
"@atlaskit/code": "^17.
|
|
54
|
+
"@atlaskit/code": "^17.5.0",
|
|
55
55
|
"@atlaskit/docs": "^11.8.0",
|
|
56
56
|
"@atlaskit/image": "^3.0.0",
|
|
57
57
|
"@atlaskit/link": "^3.4.0",
|
|
58
58
|
"@atlaskit/primitives": "^19.0.0",
|
|
59
|
-
"@atlaskit/section-message": "^8.
|
|
60
|
-
"@atlaskit/select": "^21.
|
|
59
|
+
"@atlaskit/section-message": "^8.13.0",
|
|
60
|
+
"@atlaskit/select": "^21.12.0",
|
|
61
61
|
"@atlaskit/table": "^0.15.0",
|
|
62
62
|
"@atlaskit/toggle": "^15.6.0",
|
|
63
63
|
"@atlassian/codegen": "^0.2.0",
|
|
64
64
|
"@atlassian/react-compiler-gating": "workspace:^",
|
|
65
65
|
"@atlassian/ssr-tests": "workspace:^",
|
|
66
66
|
"@atlassian/structured-docs-types": "workspace:^",
|
|
67
|
-
"@atlassian/testing-library": "^0.
|
|
67
|
+
"@atlassian/testing-library": "^0.6.0",
|
|
68
68
|
"@testing-library/react": "^16.3.0",
|
|
69
69
|
"fs-extra": "^4.0.2",
|
|
70
70
|
"jscodeshift": "^17.0.0",
|
|
71
71
|
"lodash": "^4.17.21",
|
|
72
72
|
"pkg-dir": "^4.2.0",
|
|
73
|
+
"react": "^18.2.0",
|
|
73
74
|
"react-dom": "^18.2.0",
|
|
74
75
|
"svgo": "patch:svgo@npm%3A3.3.0#~/.yarn/patches/svgo-npm-3.3.0-253da0cdd6.patch",
|
|
75
76
|
"ts-node": "^10.9.1"
|
package/offerings.json
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"name": "AtlassianIcon",
|
|
4
|
-
"package": "@atlaskit/logo",
|
|
5
|
-
"import": {
|
|
6
|
-
"name": "AtlassianIcon",
|
|
7
|
-
"package": "@atlaskit/logo",
|
|
8
|
-
"type": "named"
|
|
9
|
-
},
|
|
10
|
-
"keywords": ["logo", "brand", "atlassian", "identity", "header"],
|
|
11
|
-
"categories": ["brand"],
|
|
12
|
-
"shortDescription": "A component for displaying the Atlassian icon.",
|
|
13
|
-
"status": "general-availability",
|
|
14
|
-
"accessibilityGuidelines": [
|
|
15
|
-
"Provide appropriate alt text for the icon",
|
|
16
|
-
"Ensure icon visibility and contrast",
|
|
17
|
-
"Consider icon sizing and placement",
|
|
18
|
-
"Use appropriate icon variants"
|
|
19
|
-
],
|
|
20
|
-
"usageGuidelines": [
|
|
21
|
-
"Use for Atlassian brand representation",
|
|
22
|
-
"Choose appropriate icon variants",
|
|
23
|
-
"Consider icon sizing and placement",
|
|
24
|
-
"Maintain brand consistency"
|
|
25
|
-
],
|
|
26
|
-
"examples": ["./examples/ai/atlassian-icon.tsx"]
|
|
27
|
-
}
|
|
28
|
-
]
|