@atlaskit/logo 19.10.3 → 19.10.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/logo
2
2
 
3
+ ## 19.10.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`22bf79dbdcdca`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/22bf79dbdcdca) -
8
+ Internal changes to remove unnecessary token fallbacks and imports from `@atlaskit/theme`
9
+
10
+ ## 19.10.4
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 19.10.3
4
17
 
5
18
  ### 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, ".concat(_colors.N800, ")");
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,
@@ -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-servco or platform-logo-rebrand feature flag.
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-servco') || (0, _platformFeatureFlags.fg)('platform-logo-rebrand') || shouldUseNewLogoDesign) {
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'
@@ -1,4 +1,4 @@
1
- /* icon-wrapper.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* icon-wrapper.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* logo-wrapper.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* logo-wrapper.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  /* eslint-disable @atlaskit/ui-styling-standard/no-imported-style-values */
3
3
  "use strict";
4
4
 
@@ -1,4 +1,4 @@
1
- /* wrapper.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* wrapper.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -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, N800 } from '@atlaskit/theme/colors';
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 = `var(--ds-text, ${N800})`;
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-servco or platform-logo-rebrand feature flag.
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-servco') || fg('platform-logo-rebrand') || shouldUseNewLogoDesign) {
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'
@@ -1,4 +1,4 @@
1
- /* icon-wrapper.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* icon-wrapper.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./icon-wrapper.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* logo-wrapper.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* logo-wrapper.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  /* eslint-disable @atlaskit/ui-styling-standard/no-imported-style-values */
3
3
  import "./logo-wrapper.compiled.css";
4
4
  import * as React from 'react';
@@ -1,4 +1,4 @@
1
- /* wrapper.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* wrapper.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./wrapper.compiled.css";
4
4
  import * as React from 'react';
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, N800 } from '@atlaskit/theme/colors';
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, ".concat(N800, ")");
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,
@@ -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-servco or platform-logo-rebrand feature flag.
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-servco') || fg('platform-logo-rebrand') || shouldUseNewLogoDesign) {
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'
@@ -1,4 +1,4 @@
1
- /* icon-wrapper.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* icon-wrapper.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./icon-wrapper.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* logo-wrapper.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* logo-wrapper.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  /* eslint-disable @atlaskit/ui-styling-standard/no-imported-style-values */
3
3
  import "./logo-wrapper.compiled.css";
4
4
  import * as React from 'react';
@@ -1,4 +1,4 @@
1
- /* wrapper.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* wrapper.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
@@ -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-servco or platform-logo-rebrand feature flag.
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-servco or platform-logo-rebrand feature flag.
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",
3
+ "version": "19.10.5",
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/"
@@ -29,12 +29,12 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@atlaskit/css": "^0.19.0",
32
- "@atlaskit/ds-lib": "^5.3.0",
32
+ "@atlaskit/ds-lib": "^6.0.0",
33
33
  "@atlaskit/platform-feature-flags": "^1.1.0",
34
34
  "@atlaskit/theme": "^22.0.0",
35
- "@atlaskit/tokens": "^11.0.0",
35
+ "@atlaskit/tokens": "^11.4.0",
36
36
  "@babel/runtime": "^7.0.0",
37
- "@compiled/react": "^0.18.6"
37
+ "@compiled/react": "^0.20.0"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "react": "^18.2.0"
@@ -45,17 +45,18 @@
45
45
  "@af/integration-testing": "workspace:^",
46
46
  "@af/visual-regression": "workspace:^",
47
47
  "@atlaskit/code": "^17.4.0",
48
- "@atlaskit/docs": "^11.5.0",
48
+ "@atlaskit/docs": "^11.7.0",
49
49
  "@atlaskit/image": "^3.0.0",
50
50
  "@atlaskit/link": "^3.3.0",
51
- "@atlaskit/primitives": "^18.0.0",
51
+ "@atlaskit/primitives": "^18.1.0",
52
52
  "@atlaskit/section-message": "^8.12.0",
53
- "@atlaskit/select": "^21.7.0",
53
+ "@atlaskit/select": "^21.10.0",
54
54
  "@atlaskit/table": "^0.14.0",
55
55
  "@atlaskit/toggle": "^15.2.0",
56
56
  "@atlassian/codegen": "^0.1.0",
57
57
  "@atlassian/ssr-tests": "workspace:^",
58
- "@atlassian/testing-library": "^0.4.0",
58
+ "@atlassian/structured-docs-types": "workspace:^",
59
+ "@atlassian/testing-library": "^0.5.0",
59
60
  "@testing-library/react": "^16.3.0",
60
61
  "fs-extra": "^4.0.2",
61
62
  "jscodeshift": "^17.0.0",
@@ -99,9 +100,6 @@
99
100
  "platform-logo-rebrand": {
100
101
  "type": "boolean"
101
102
  },
102
- "platform-logo-rebrand-servco": {
103
- "type": "boolean"
104
- },
105
103
  "platform-logo-rebrand-team-eu": {
106
104
  "type": "boolean"
107
105
  },