@atlaskit/logo 19.10.4 → 19.10.6
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 +16 -0
- package/dist/cjs/index.js +0 -1
- package/dist/cjs/legacy-logos/utils.js +1 -1
- package/dist/cjs/logo-config.js +2 -2
- package/dist/es2019/index.js +0 -1
- package/dist/es2019/legacy-logos/utils.js +2 -2
- package/dist/es2019/logo-config.js +2 -2
- package/dist/esm/index.js +0 -1
- package/dist/esm/legacy-logos/utils.js +2 -2
- package/dist/esm/logo-config.js +2 -2
- package/dist/types/index.d.ts +0 -1
- package/dist/types/logo-config.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +0 -1
- package/dist/types-ts4.5/logo-config.d.ts +1 -1
- package/logo.docs.tsx +41 -0
- package/package.json +15 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/logo
|
|
2
2
|
|
|
3
|
+
## 19.10.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`02483200273ec`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/02483200273ec) -
|
|
8
|
+
Enrol all Design System UI packages into the React Compiler with platform gating via
|
|
9
|
+
isReactCompilerActivePlatform.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 19.10.5
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [`22bf79dbdcdca`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/22bf79dbdcdca) -
|
|
17
|
+
Internal changes to remove unnecessary token fallbacks and imports from `@atlaskit/theme`
|
|
18
|
+
|
|
3
19
|
## 19.10.4
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/cjs/index.js
CHANGED
|
@@ -947,7 +947,6 @@ var TrelloLogo = exports.TrelloLogo = (0, _logoConfig.createFeatureFlaggedCompon
|
|
|
947
947
|
*
|
|
948
948
|
* Finally, for backwards compatibility, if the prop `shouldUseNewLogoDesign` is set to true, or the following feature flags are set,
|
|
949
949
|
* a tile will be rendered:
|
|
950
|
-
* - `platform-logo-rebrand-servco`
|
|
951
950
|
* - `platform-logo-rebrand`
|
|
952
951
|
*
|
|
953
952
|
* - [Examples](https://atlassian.design/components/logo/examples)
|
|
@@ -13,7 +13,7 @@ var getColorsFromAppearanceOldLogos = exports.getColorsFromAppearanceOldLogos =
|
|
|
13
13
|
iconGradientStart = _colors.B400;
|
|
14
14
|
iconGradientStop = _colors.B200;
|
|
15
15
|
iconColor = _colors.B200;
|
|
16
|
-
textColor = "var(--ds-text,
|
|
16
|
+
textColor = "var(--ds-text, #292A2E)";
|
|
17
17
|
// This is only used for the top level Atlassian wordmark (see AtlassianLogo
|
|
18
18
|
// or AtlassianStartLogo for example), and is only different for the Brand
|
|
19
19
|
// appearance - a bold brand color. For other appearances,
|
package/dist/cjs/logo-config.js
CHANGED
|
@@ -42,7 +42,7 @@ var createFeatureFlaggedComponent = exports.createFeatureFlaggedComponent = func
|
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
* Creates a feature flagged component that renders the legacy logo or the new logo
|
|
45
|
-
* based on the platform-logo-rebrand
|
|
45
|
+
* based on the platform-logo-rebrand feature flag.
|
|
46
46
|
*
|
|
47
47
|
* @param LegacyComponent - The legacy logo component.
|
|
48
48
|
* @param NewComponent - The new logo component.
|
|
@@ -55,7 +55,7 @@ var createFeatureFlaggedServiceCollectionComponent = exports.createFeatureFlagge
|
|
|
55
55
|
var size = _ref2.size,
|
|
56
56
|
shouldUseNewLogoDesign = _ref2.shouldUseNewLogoDesign,
|
|
57
57
|
props = (0, _objectWithoutProperties2.default)(_ref2, _excluded2);
|
|
58
|
-
if ((0, _platformFeatureFlags.fg)('platform-logo-rebrand
|
|
58
|
+
if ((0, _platformFeatureFlags.fg)('platform-logo-rebrand') || shouldUseNewLogoDesign) {
|
|
59
59
|
// Size defaults need to be set, as the temp library had different defaults
|
|
60
60
|
return /*#__PURE__*/_react.default.createElement(NewComponent, (0, _extends2.default)({
|
|
61
61
|
size: size || 'medium'
|
package/dist/es2019/index.js
CHANGED
|
@@ -867,7 +867,6 @@ export const TrelloLogo = createFeatureFlaggedComponent(LegacyTrelloLogo, NewTre
|
|
|
867
867
|
*
|
|
868
868
|
* Finally, for backwards compatibility, if the prop `shouldUseNewLogoDesign` is set to true, or the following feature flags are set,
|
|
869
869
|
* a tile will be rendered:
|
|
870
|
-
* - `platform-logo-rebrand-servco`
|
|
871
870
|
* - `platform-logo-rebrand`
|
|
872
871
|
*
|
|
873
872
|
* - [Examples](https://atlassian.design/components/logo/examples)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B200, B400, N0, N100, N400, N600
|
|
1
|
+
import { B200, B400, N0, N100, N400, N600 } from '@atlaskit/theme/colors';
|
|
2
2
|
// TODO: This is where we need to add tokens for all appearance color values
|
|
3
3
|
export const getColorsFromAppearanceOldLogos = (appearance, colorMode) => {
|
|
4
4
|
let iconGradientStart, iconGradientStop, iconColor, textColor, atlassianLogoTextColor;
|
|
@@ -7,7 +7,7 @@ export const getColorsFromAppearanceOldLogos = (appearance, colorMode) => {
|
|
|
7
7
|
iconGradientStart = B400;
|
|
8
8
|
iconGradientStop = B200;
|
|
9
9
|
iconColor = B200;
|
|
10
|
-
textColor =
|
|
10
|
+
textColor = "var(--ds-text, #292A2E)";
|
|
11
11
|
// This is only used for the top level Atlassian wordmark (see AtlassianLogo
|
|
12
12
|
// or AtlassianStartLogo for example), and is only different for the Brand
|
|
13
13
|
// appearance - a bold brand color. For other appearances,
|
|
@@ -31,7 +31,7 @@ export const createFeatureFlaggedComponent = (LegacyComponent, NewComponent) =>
|
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* Creates a feature flagged component that renders the legacy logo or the new logo
|
|
34
|
-
* based on the platform-logo-rebrand
|
|
34
|
+
* based on the platform-logo-rebrand feature flag.
|
|
35
35
|
*
|
|
36
36
|
* @param LegacyComponent - The legacy logo component.
|
|
37
37
|
* @param NewComponent - The new logo component.
|
|
@@ -45,7 +45,7 @@ export const createFeatureFlaggedServiceCollectionComponent = (LegacyComponent,
|
|
|
45
45
|
shouldUseNewLogoDesign,
|
|
46
46
|
...props
|
|
47
47
|
}) => {
|
|
48
|
-
if (fg('platform-logo-rebrand
|
|
48
|
+
if (fg('platform-logo-rebrand') || shouldUseNewLogoDesign) {
|
|
49
49
|
// Size defaults need to be set, as the temp library had different defaults
|
|
50
50
|
return /*#__PURE__*/React.createElement(NewComponent, _extends({
|
|
51
51
|
size: size || 'medium'
|
package/dist/esm/index.js
CHANGED
|
@@ -937,7 +937,6 @@ var TrelloLogo = createFeatureFlaggedComponent(LegacyTrelloLogo, NewTrelloLogo);
|
|
|
937
937
|
*
|
|
938
938
|
* Finally, for backwards compatibility, if the prop `shouldUseNewLogoDesign` is set to true, or the following feature flags are set,
|
|
939
939
|
* a tile will be rendered:
|
|
940
|
-
* - `platform-logo-rebrand-servco`
|
|
941
940
|
* - `platform-logo-rebrand`
|
|
942
941
|
*
|
|
943
942
|
* - [Examples](https://atlassian.design/components/logo/examples)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B200, B400, N0, N100, N400, N600
|
|
1
|
+
import { B200, B400, N0, N100, N400, N600 } from '@atlaskit/theme/colors';
|
|
2
2
|
// TODO: This is where we need to add tokens for all appearance color values
|
|
3
3
|
export var getColorsFromAppearanceOldLogos = function getColorsFromAppearanceOldLogos(appearance, colorMode) {
|
|
4
4
|
var iconGradientStart, iconGradientStop, iconColor, textColor, atlassianLogoTextColor;
|
|
@@ -7,7 +7,7 @@ export var getColorsFromAppearanceOldLogos = function getColorsFromAppearanceOld
|
|
|
7
7
|
iconGradientStart = B400;
|
|
8
8
|
iconGradientStop = B200;
|
|
9
9
|
iconColor = B200;
|
|
10
|
-
textColor = "var(--ds-text,
|
|
10
|
+
textColor = "var(--ds-text, #292A2E)";
|
|
11
11
|
// This is only used for the top level Atlassian wordmark (see AtlassianLogo
|
|
12
12
|
// or AtlassianStartLogo for example), and is only different for the Brand
|
|
13
13
|
// appearance - a bold brand color. For other appearances,
|
package/dist/esm/logo-config.js
CHANGED
|
@@ -35,7 +35,7 @@ var createFeatureFlaggedComponent = function createFeatureFlaggedComponent(Legac
|
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* Creates a feature flagged component that renders the legacy logo or the new logo
|
|
38
|
-
* based on the platform-logo-rebrand
|
|
38
|
+
* based on the platform-logo-rebrand feature flag.
|
|
39
39
|
*
|
|
40
40
|
* @param LegacyComponent - The legacy logo component.
|
|
41
41
|
* @param NewComponent - The new logo component.
|
|
@@ -49,7 +49,7 @@ var createFeatureFlaggedServiceCollectionComponent = function createFeatureFlagg
|
|
|
49
49
|
var size = _ref2.size,
|
|
50
50
|
shouldUseNewLogoDesign = _ref2.shouldUseNewLogoDesign,
|
|
51
51
|
props = _objectWithoutProperties(_ref2, _excluded2);
|
|
52
|
-
if (fg('platform-logo-rebrand
|
|
52
|
+
if (fg('platform-logo-rebrand') || shouldUseNewLogoDesign) {
|
|
53
53
|
// Size defaults need to be set, as the temp library had different defaults
|
|
54
54
|
return /*#__PURE__*/React.createElement(NewComponent, _extends({
|
|
55
55
|
size: size || 'medium'
|
package/dist/types/index.d.ts
CHANGED
|
@@ -787,7 +787,6 @@ export declare const TrelloLogo: ({ size, shouldUseNewLogoDesign, ...props }: im
|
|
|
787
787
|
*
|
|
788
788
|
* Finally, for backwards compatibility, if the prop `shouldUseNewLogoDesign` is set to true, or the following feature flags are set,
|
|
789
789
|
* a tile will be rendered:
|
|
790
|
-
* - `platform-logo-rebrand-servco`
|
|
791
790
|
* - `platform-logo-rebrand`
|
|
792
791
|
*
|
|
793
792
|
* - [Examples](https://atlassian.design/components/logo/examples)
|
|
@@ -12,7 +12,7 @@ import { type AppIconProps, type AppLogoProps } from './utils/types';
|
|
|
12
12
|
export declare const createFeatureFlaggedComponent: (LegacyComponent: React.ComponentType<LogoProps>, NewComponent: React.ComponentType<AppLogoProps> | React.ComponentType<AppIconProps>) => ({ size, shouldUseNewLogoDesign, ...props }: LogoProps) => React.JSX.Element;
|
|
13
13
|
/**
|
|
14
14
|
* Creates a feature flagged component that renders the legacy logo or the new logo
|
|
15
|
-
* based on the platform-logo-rebrand
|
|
15
|
+
* based on the platform-logo-rebrand feature flag.
|
|
16
16
|
*
|
|
17
17
|
* @param LegacyComponent - The legacy logo component.
|
|
18
18
|
* @param NewComponent - The new logo component.
|
|
@@ -787,7 +787,6 @@ export declare const TrelloLogo: ({ size, shouldUseNewLogoDesign, ...props }: im
|
|
|
787
787
|
*
|
|
788
788
|
* Finally, for backwards compatibility, if the prop `shouldUseNewLogoDesign` is set to true, or the following feature flags are set,
|
|
789
789
|
* a tile will be rendered:
|
|
790
|
-
* - `platform-logo-rebrand-servco`
|
|
791
790
|
* - `platform-logo-rebrand`
|
|
792
791
|
*
|
|
793
792
|
* - [Examples](https://atlassian.design/components/logo/examples)
|
|
@@ -12,7 +12,7 @@ import { type AppIconProps, type AppLogoProps } from './utils/types';
|
|
|
12
12
|
export declare const createFeatureFlaggedComponent: (LegacyComponent: React.ComponentType<LogoProps>, NewComponent: React.ComponentType<AppLogoProps> | React.ComponentType<AppIconProps>) => ({ size, shouldUseNewLogoDesign, ...props }: LogoProps) => React.JSX.Element;
|
|
13
13
|
/**
|
|
14
14
|
* Creates a feature flagged component that renders the legacy logo or the new logo
|
|
15
|
-
* based on the platform-logo-rebrand
|
|
15
|
+
* based on the platform-logo-rebrand feature flag.
|
|
16
16
|
*
|
|
17
17
|
* @param LegacyComponent - The legacy logo component.
|
|
18
18
|
* @param NewComponent - The new logo component.
|
package/logo.docs.tsx
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import path from 'path';
|
|
2
|
+
|
|
3
|
+
import type { ComponentStructuredContentSource } from '@atlassian/structured-docs-types';
|
|
4
|
+
|
|
5
|
+
const documentation: ComponentStructuredContentSource[] = [
|
|
6
|
+
{
|
|
7
|
+
name: 'AtlassianIcon',
|
|
8
|
+
description: 'A component for displaying the Atlassian icon.',
|
|
9
|
+
status: 'general-availability',
|
|
10
|
+
import: {
|
|
11
|
+
name: 'AtlassianIcon',
|
|
12
|
+
package: '@atlaskit/logo',
|
|
13
|
+
type: 'named',
|
|
14
|
+
packagePath: path.resolve(__dirname),
|
|
15
|
+
packageJson: require('./package.json'),
|
|
16
|
+
},
|
|
17
|
+
usageGuidelines: [
|
|
18
|
+
'Use for Atlassian brand representation',
|
|
19
|
+
'Choose appropriate icon variants',
|
|
20
|
+
'Consider icon sizing and placement',
|
|
21
|
+
'Maintain brand consistency',
|
|
22
|
+
],
|
|
23
|
+
accessibilityGuidelines: [
|
|
24
|
+
'Provide appropriate alt text for the icon',
|
|
25
|
+
'Ensure icon visibility and contrast',
|
|
26
|
+
'Consider icon sizing and placement',
|
|
27
|
+
'Use appropriate icon variants',
|
|
28
|
+
],
|
|
29
|
+
examples: [
|
|
30
|
+
{
|
|
31
|
+
name: 'Atlassian Icon',
|
|
32
|
+
description: 'Atlassian Icon example',
|
|
33
|
+
source: path.resolve(__dirname, './examples/ai/atlassian-icon.tsx'),
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
keywords: ['logo', 'brand', 'atlassian', 'identity', 'header'],
|
|
37
|
+
categories: ['brand'],
|
|
38
|
+
},
|
|
39
|
+
];
|
|
40
|
+
|
|
41
|
+
export default documentation;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/logo",
|
|
3
|
-
"version": "19.10.
|
|
3
|
+
"version": "19.10.6",
|
|
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/"
|
|
@@ -21,6 +21,13 @@
|
|
|
21
21
|
},
|
|
22
22
|
"atlaskit:src": "src/index.tsx",
|
|
23
23
|
"atlassian": {
|
|
24
|
+
"react-compiler": {
|
|
25
|
+
"enabled": true,
|
|
26
|
+
"gating": {
|
|
27
|
+
"source": "@atlassian/react-compiler-gating",
|
|
28
|
+
"importSpecifierName": "isReactCompilerActivePlatform"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
24
31
|
"team": "Design System Team",
|
|
25
32
|
"website": {
|
|
26
33
|
"name": "Logo",
|
|
@@ -32,7 +39,7 @@
|
|
|
32
39
|
"@atlaskit/ds-lib": "^6.0.0",
|
|
33
40
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
34
41
|
"@atlaskit/theme": "^22.0.0",
|
|
35
|
-
"@atlaskit/tokens": "^11.
|
|
42
|
+
"@atlaskit/tokens": "^11.4.0",
|
|
36
43
|
"@babel/runtime": "^7.0.0",
|
|
37
44
|
"@compiled/react": "^0.20.0"
|
|
38
45
|
},
|
|
@@ -45,17 +52,19 @@
|
|
|
45
52
|
"@af/integration-testing": "workspace:^",
|
|
46
53
|
"@af/visual-regression": "workspace:^",
|
|
47
54
|
"@atlaskit/code": "^17.4.0",
|
|
48
|
-
"@atlaskit/docs": "^11.
|
|
55
|
+
"@atlaskit/docs": "^11.7.0",
|
|
49
56
|
"@atlaskit/image": "^3.0.0",
|
|
50
57
|
"@atlaskit/link": "^3.3.0",
|
|
51
|
-
"@atlaskit/primitives": "^18.
|
|
58
|
+
"@atlaskit/primitives": "^18.1.0",
|
|
52
59
|
"@atlaskit/section-message": "^8.12.0",
|
|
53
|
-
"@atlaskit/select": "^21.
|
|
60
|
+
"@atlaskit/select": "^21.10.0",
|
|
54
61
|
"@atlaskit/table": "^0.14.0",
|
|
55
62
|
"@atlaskit/toggle": "^15.2.0",
|
|
56
63
|
"@atlassian/codegen": "^0.1.0",
|
|
64
|
+
"@atlassian/react-compiler-gating": "workspace:^",
|
|
57
65
|
"@atlassian/ssr-tests": "workspace:^",
|
|
58
|
-
"@atlassian/
|
|
66
|
+
"@atlassian/structured-docs-types": "workspace:^",
|
|
67
|
+
"@atlassian/testing-library": "^0.5.0",
|
|
59
68
|
"@testing-library/react": "^16.3.0",
|
|
60
69
|
"fs-extra": "^4.0.2",
|
|
61
70
|
"jscodeshift": "^17.0.0",
|
|
@@ -99,9 +108,6 @@
|
|
|
99
108
|
"platform-logo-rebrand": {
|
|
100
109
|
"type": "boolean"
|
|
101
110
|
},
|
|
102
|
-
"platform-logo-rebrand-servco": {
|
|
103
|
-
"type": "boolean"
|
|
104
|
-
},
|
|
105
111
|
"platform-logo-rebrand-team-eu": {
|
|
106
112
|
"type": "boolean"
|
|
107
113
|
},
|