@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.
Files changed (197) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/constants.js +2 -0
  3. package/dist/cjs/create-feature-flagged-component.js +38 -0
  4. package/dist/cjs/create-feature-flagged-service-collection-component.js +38 -0
  5. package/dist/cjs/exports/bitbucket-icon.js +2 -2
  6. package/dist/cjs/exports/confluence-icon.js +2 -2
  7. package/dist/cjs/exports/jira-service-management-icon.js +2 -2
  8. package/dist/cjs/exports/opsgenie.js +2 -2
  9. package/dist/cjs/exports/statuspage-icon.js +2 -2
  10. package/dist/cjs/exports/trello-icon.js +2 -2
  11. package/dist/cjs/index.js +86 -83
  12. package/dist/cjs/legacy-logos/atlas/icon.js +2 -2
  13. package/dist/cjs/legacy-logos/atlas/logo.js +2 -2
  14. package/dist/cjs/legacy-logos/atlassian/icon.js +2 -2
  15. package/dist/cjs/legacy-logos/atlassian/logo.js +2 -2
  16. package/dist/cjs/legacy-logos/atlassian-access/icon.js +2 -2
  17. package/dist/cjs/legacy-logos/atlassian-access/logo.js +2 -2
  18. package/dist/cjs/legacy-logos/atlassian-admin/icon.js +2 -2
  19. package/dist/cjs/legacy-logos/atlassian-admin/logo.js +2 -2
  20. package/dist/cjs/legacy-logos/atlassian-administration/icon.js +2 -2
  21. package/dist/cjs/legacy-logos/atlassian-administration/logo.js +2 -2
  22. package/dist/cjs/legacy-logos/atlassian-analytics/icon.js +2 -2
  23. package/dist/cjs/legacy-logos/atlassian-analytics/logo.js +2 -2
  24. package/dist/cjs/legacy-logos/atlassian-marketplace/icon.js +2 -2
  25. package/dist/cjs/legacy-logos/atlassian-marketplace/logo.js +2 -2
  26. package/dist/cjs/legacy-logos/atlassian-start/logo.js +2 -2
  27. package/dist/cjs/legacy-logos/bitbucket/icon.js +2 -2
  28. package/dist/cjs/legacy-logos/bitbucket/logo.js +2 -2
  29. package/dist/cjs/legacy-logos/compass/icon.js +2 -2
  30. package/dist/cjs/legacy-logos/compass/logo.js +2 -2
  31. package/dist/cjs/legacy-logos/confluence/icon.js +2 -2
  32. package/dist/cjs/legacy-logos/confluence/logo.js +2 -2
  33. package/dist/cjs/legacy-logos/focus/icon.js +2 -2
  34. package/dist/cjs/legacy-logos/focus/logo.js +2 -2
  35. package/dist/cjs/legacy-logos/get-colors-from-appearance-old-logos.js +51 -0
  36. package/dist/cjs/legacy-logos/get-colors-from-appearance.js +51 -0
  37. package/dist/cjs/legacy-logos/guard/icon.js +2 -2
  38. package/dist/cjs/legacy-logos/guard/logo.js +2 -2
  39. package/dist/cjs/legacy-logos/jira/icon.js +2 -2
  40. package/dist/cjs/legacy-logos/jira/logo.js +2 -2
  41. package/dist/cjs/legacy-logos/jira-align/icon.js +2 -2
  42. package/dist/cjs/legacy-logos/jira-align/logo.js +2 -2
  43. package/dist/cjs/legacy-logos/jira-product-discovery/icon.js +2 -2
  44. package/dist/cjs/legacy-logos/jira-product-discovery/logo.js +2 -2
  45. package/dist/cjs/legacy-logos/jira-service-management/icon.js +2 -2
  46. package/dist/cjs/legacy-logos/jira-service-management/logo.js +2 -2
  47. package/dist/cjs/legacy-logos/jira-software/icon.js +2 -2
  48. package/dist/cjs/legacy-logos/jira-software/logo.js +2 -2
  49. package/dist/cjs/legacy-logos/jira-work-management/icon.js +2 -2
  50. package/dist/cjs/legacy-logos/jira-work-management/logo.js +2 -2
  51. package/dist/cjs/legacy-logos/opsgenie/icon.js +2 -2
  52. package/dist/cjs/legacy-logos/opsgenie/logo.js +2 -2
  53. package/dist/cjs/legacy-logos/rovo/icon.js +2 -2
  54. package/dist/cjs/legacy-logos/rovo/logo.js +2 -2
  55. package/dist/cjs/legacy-logos/statuspage/icon.js +2 -2
  56. package/dist/cjs/legacy-logos/statuspage/logo.js +2 -2
  57. package/dist/cjs/legacy-logos/trello/icon.js +2 -2
  58. package/dist/cjs/legacy-logos/trello/logo.js +2 -2
  59. package/dist/cjs/legacy-logos/utils.js +15 -91
  60. package/dist/cjs/logo-config.js +38 -78
  61. package/dist/cjs/temp-size-wrapper.js +25 -0
  62. package/dist/es2019/constants.js +2 -0
  63. package/dist/es2019/create-feature-flagged-component.js +30 -0
  64. package/dist/es2019/create-feature-flagged-service-collection-component.js +30 -0
  65. package/dist/es2019/exports/bitbucket-icon.js +1 -1
  66. package/dist/es2019/exports/confluence-icon.js +1 -1
  67. package/dist/es2019/exports/jira-service-management-icon.js +1 -1
  68. package/dist/es2019/exports/opsgenie.js +1 -1
  69. package/dist/es2019/exports/statuspage-icon.js +1 -1
  70. package/dist/es2019/exports/trello-icon.js +1 -1
  71. package/dist/es2019/index.js +4 -1
  72. package/dist/es2019/legacy-logos/atlas/icon.js +1 -1
  73. package/dist/es2019/legacy-logos/atlas/logo.js +1 -1
  74. package/dist/es2019/legacy-logos/atlassian/icon.js +1 -1
  75. package/dist/es2019/legacy-logos/atlassian/logo.js +1 -1
  76. package/dist/es2019/legacy-logos/atlassian-access/icon.js +1 -1
  77. package/dist/es2019/legacy-logos/atlassian-access/logo.js +1 -1
  78. package/dist/es2019/legacy-logos/atlassian-admin/icon.js +1 -1
  79. package/dist/es2019/legacy-logos/atlassian-admin/logo.js +1 -1
  80. package/dist/es2019/legacy-logos/atlassian-administration/icon.js +1 -1
  81. package/dist/es2019/legacy-logos/atlassian-administration/logo.js +1 -1
  82. package/dist/es2019/legacy-logos/atlassian-analytics/icon.js +1 -1
  83. package/dist/es2019/legacy-logos/atlassian-analytics/logo.js +1 -1
  84. package/dist/es2019/legacy-logos/atlassian-marketplace/icon.js +1 -1
  85. package/dist/es2019/legacy-logos/atlassian-marketplace/logo.js +1 -1
  86. package/dist/es2019/legacy-logos/atlassian-start/logo.js +1 -1
  87. package/dist/es2019/legacy-logos/bitbucket/icon.js +1 -1
  88. package/dist/es2019/legacy-logos/bitbucket/logo.js +1 -1
  89. package/dist/es2019/legacy-logos/compass/icon.js +1 -1
  90. package/dist/es2019/legacy-logos/compass/logo.js +1 -1
  91. package/dist/es2019/legacy-logos/confluence/icon.js +1 -1
  92. package/dist/es2019/legacy-logos/confluence/logo.js +1 -1
  93. package/dist/es2019/legacy-logos/focus/icon.js +1 -1
  94. package/dist/es2019/legacy-logos/focus/logo.js +1 -1
  95. package/dist/es2019/legacy-logos/get-colors-from-appearance-old-logos.js +45 -0
  96. package/dist/es2019/legacy-logos/get-colors-from-appearance.js +45 -0
  97. package/dist/es2019/legacy-logos/guard/icon.js +1 -1
  98. package/dist/es2019/legacy-logos/guard/logo.js +1 -1
  99. package/dist/es2019/legacy-logos/jira/icon.js +1 -1
  100. package/dist/es2019/legacy-logos/jira/logo.js +1 -1
  101. package/dist/es2019/legacy-logos/jira-align/icon.js +1 -1
  102. package/dist/es2019/legacy-logos/jira-align/logo.js +1 -1
  103. package/dist/es2019/legacy-logos/jira-product-discovery/icon.js +1 -1
  104. package/dist/es2019/legacy-logos/jira-product-discovery/logo.js +1 -1
  105. package/dist/es2019/legacy-logos/jira-service-management/icon.js +1 -1
  106. package/dist/es2019/legacy-logos/jira-service-management/logo.js +1 -1
  107. package/dist/es2019/legacy-logos/jira-software/icon.js +1 -1
  108. package/dist/es2019/legacy-logos/jira-software/logo.js +1 -1
  109. package/dist/es2019/legacy-logos/jira-work-management/icon.js +1 -1
  110. package/dist/es2019/legacy-logos/jira-work-management/logo.js +1 -1
  111. package/dist/es2019/legacy-logos/opsgenie/icon.js +1 -1
  112. package/dist/es2019/legacy-logos/opsgenie/logo.js +1 -1
  113. package/dist/es2019/legacy-logos/rovo/icon.js +1 -1
  114. package/dist/es2019/legacy-logos/rovo/logo.js +1 -1
  115. package/dist/es2019/legacy-logos/statuspage/icon.js +1 -1
  116. package/dist/es2019/legacy-logos/statuspage/logo.js +1 -1
  117. package/dist/es2019/legacy-logos/trello/icon.js +1 -1
  118. package/dist/es2019/legacy-logos/trello/logo.js +1 -1
  119. package/dist/es2019/legacy-logos/utils.js +4 -91
  120. package/dist/es2019/logo-config.js +15 -73
  121. package/dist/es2019/temp-size-wrapper.js +17 -0
  122. package/dist/esm/constants.js +2 -0
  123. package/dist/esm/create-feature-flagged-component.js +32 -0
  124. package/dist/esm/create-feature-flagged-service-collection-component.js +32 -0
  125. package/dist/esm/exports/bitbucket-icon.js +1 -1
  126. package/dist/esm/exports/confluence-icon.js +1 -1
  127. package/dist/esm/exports/jira-service-management-icon.js +1 -1
  128. package/dist/esm/exports/opsgenie.js +1 -1
  129. package/dist/esm/exports/statuspage-icon.js +1 -1
  130. package/dist/esm/exports/trello-icon.js +1 -1
  131. package/dist/esm/index.js +4 -1
  132. package/dist/esm/legacy-logos/atlas/icon.js +1 -1
  133. package/dist/esm/legacy-logos/atlas/logo.js +1 -1
  134. package/dist/esm/legacy-logos/atlassian/icon.js +1 -1
  135. package/dist/esm/legacy-logos/atlassian/logo.js +1 -1
  136. package/dist/esm/legacy-logos/atlassian-access/icon.js +1 -1
  137. package/dist/esm/legacy-logos/atlassian-access/logo.js +1 -1
  138. package/dist/esm/legacy-logos/atlassian-admin/icon.js +1 -1
  139. package/dist/esm/legacy-logos/atlassian-admin/logo.js +1 -1
  140. package/dist/esm/legacy-logos/atlassian-administration/icon.js +1 -1
  141. package/dist/esm/legacy-logos/atlassian-administration/logo.js +1 -1
  142. package/dist/esm/legacy-logos/atlassian-analytics/icon.js +1 -1
  143. package/dist/esm/legacy-logos/atlassian-analytics/logo.js +1 -1
  144. package/dist/esm/legacy-logos/atlassian-marketplace/icon.js +1 -1
  145. package/dist/esm/legacy-logos/atlassian-marketplace/logo.js +1 -1
  146. package/dist/esm/legacy-logos/atlassian-start/logo.js +1 -1
  147. package/dist/esm/legacy-logos/bitbucket/icon.js +1 -1
  148. package/dist/esm/legacy-logos/bitbucket/logo.js +1 -1
  149. package/dist/esm/legacy-logos/compass/icon.js +1 -1
  150. package/dist/esm/legacy-logos/compass/logo.js +1 -1
  151. package/dist/esm/legacy-logos/confluence/icon.js +1 -1
  152. package/dist/esm/legacy-logos/confluence/logo.js +1 -1
  153. package/dist/esm/legacy-logos/focus/icon.js +1 -1
  154. package/dist/esm/legacy-logos/focus/logo.js +1 -1
  155. package/dist/esm/legacy-logos/get-colors-from-appearance-old-logos.js +45 -0
  156. package/dist/esm/legacy-logos/get-colors-from-appearance.js +45 -0
  157. package/dist/esm/legacy-logos/guard/icon.js +1 -1
  158. package/dist/esm/legacy-logos/guard/logo.js +1 -1
  159. package/dist/esm/legacy-logos/jira/icon.js +1 -1
  160. package/dist/esm/legacy-logos/jira/logo.js +1 -1
  161. package/dist/esm/legacy-logos/jira-align/icon.js +1 -1
  162. package/dist/esm/legacy-logos/jira-align/logo.js +1 -1
  163. package/dist/esm/legacy-logos/jira-product-discovery/icon.js +1 -1
  164. package/dist/esm/legacy-logos/jira-product-discovery/logo.js +1 -1
  165. package/dist/esm/legacy-logos/jira-service-management/icon.js +1 -1
  166. package/dist/esm/legacy-logos/jira-service-management/logo.js +1 -1
  167. package/dist/esm/legacy-logos/jira-software/icon.js +1 -1
  168. package/dist/esm/legacy-logos/jira-software/logo.js +1 -1
  169. package/dist/esm/legacy-logos/jira-work-management/icon.js +1 -1
  170. package/dist/esm/legacy-logos/jira-work-management/logo.js +1 -1
  171. package/dist/esm/legacy-logos/opsgenie/icon.js +1 -1
  172. package/dist/esm/legacy-logos/opsgenie/logo.js +1 -1
  173. package/dist/esm/legacy-logos/rovo/icon.js +1 -1
  174. package/dist/esm/legacy-logos/rovo/logo.js +1 -1
  175. package/dist/esm/legacy-logos/statuspage/icon.js +1 -1
  176. package/dist/esm/legacy-logos/statuspage/logo.js +1 -1
  177. package/dist/esm/legacy-logos/trello/icon.js +1 -1
  178. package/dist/esm/legacy-logos/trello/logo.js +1 -1
  179. package/dist/esm/legacy-logos/utils.js +4 -91
  180. package/dist/esm/logo-config.js +19 -80
  181. package/dist/esm/temp-size-wrapper.js +19 -0
  182. package/dist/types/create-feature-flagged-component.d.ts +12 -0
  183. package/dist/types/create-feature-flagged-service-collection-component.d.ts +12 -0
  184. package/dist/types/legacy-logos/get-colors-from-appearance-old-logos.d.ts +7 -0
  185. package/dist/types/legacy-logos/get-colors-from-appearance.d.ts +5 -0
  186. package/dist/types/legacy-logos/utils.d.ts +2 -12
  187. package/dist/types/logo-config.d.ts +3 -25
  188. package/dist/types/temp-size-wrapper.d.ts +9 -0
  189. package/dist/types-ts4.5/create-feature-flagged-component.d.ts +12 -0
  190. package/dist/types-ts4.5/create-feature-flagged-service-collection-component.d.ts +12 -0
  191. package/dist/types-ts4.5/legacy-logos/get-colors-from-appearance-old-logos.d.ts +7 -0
  192. package/dist/types-ts4.5/legacy-logos/get-colors-from-appearance.d.ts +5 -0
  193. package/dist/types-ts4.5/legacy-logos/utils.d.ts +2 -12
  194. package/dist/types-ts4.5/logo-config.d.ts +3 -25
  195. package/dist/types-ts4.5/temp-size-wrapper.d.ts +9 -0
  196. package/package.json +7 -6
  197. 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 '../utils';
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 '../utils';
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 '../utils';
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 '../utils';
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
- // TODO: This is where we need to add tokens for all appearance color values
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';
@@ -1,72 +1,15 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
1
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- var _excluded = ["size", "shouldUseNewLogoDesign"],
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
- * Creates a feature flagged component that renders the legacy logo or the new logo
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 (_ref3) {
68
- var shouldUseHexLogo = _ref3.shouldUseHexLogo,
69
- props = _objectWithoutProperties(_ref3, _excluded3);
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
- var tempSizeWrapper = function tempSizeWrapper(NewComponent) {
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
+ };
@@ -0,0 +1,5 @@
1
+ export declare const getColorsFromAppearance: (appearance?: string, colorMode?: string) => {
2
+ iconColor: string | undefined;
3
+ textColor: string | undefined;
4
+ atlassianLogoTextColor: string | undefined;
5
+ };
@@ -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
+ };
@@ -0,0 +1,5 @@
1
+ export declare const getColorsFromAppearance: (appearance?: string, colorMode?: string) => {
2
+ iconColor: string | undefined;
3
+ textColor: string | undefined;
4
+ atlassianLogoTextColor: string | undefined;
5
+ };
@@ -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.0",
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": "^23.2.0",
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.4.0",
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.12.0",
60
- "@atlaskit/select": "^21.10.0",
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.5.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
- ]