@atlaskit/navigation-system 5.10.2 → 5.11.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 CHANGED
@@ -1,5 +1,29 @@
1
1
  # @atlassian/navigation-system
2
2
 
3
+ ## 5.11.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`64bc203524295`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/64bc203524295) -
8
+ Adds a patch behind the feature flag `platform-dst-nav-app-icon-height-fix`, enforcing a
9
+ max-height on AppLogo to prevent custom App Logos from extending beyond the edges of the
10
+ container. This flag will be cleaned up in an upcoming release.
11
+
12
+ ## 5.11.0
13
+
14
+ ### Minor Changes
15
+
16
+ - [`f6629e6a4f5ef`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f6629e6a4f5ef) -
17
+ The chevron icon in `FlyoutMenuItemTrigger` now uses `currentColor`, instead of the `color.icon`
18
+ color token. It will now inherit the same color that the menu item label uses.
19
+
20
+ This change was previously behind the feature gate `platform_dst_flyout_menu_item_chevron_color`,
21
+ which has now been cleaned up.
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies
26
+
3
27
  ## 5.10.2
4
28
 
5
29
  ### Patch Changes
@@ -13,7 +13,6 @@ var React = _react;
13
13
  var _runtime = require("@compiled/react/runtime");
14
14
  var _mergeRefs = _interopRequireDefault(require("@atlaskit/ds-lib/merge-refs"));
15
15
  var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/core/chevron-right"));
16
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
16
  var _experimental = require("@atlaskit/popup/experimental");
18
17
  var _menuItem = require("../menu-item");
19
18
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
@@ -51,7 +50,7 @@ var FlyoutMenuItemTrigger = exports.FlyoutMenuItemTrigger = /*#__PURE__*/(0, _re
51
50
  className: (0, _runtime.ax)([elemAfterStyles.root])
52
51
  }, /*#__PURE__*/React.createElement(_chevronRight.default, {
53
52
  label: "",
54
- color: (0, _platformFeatureFlags.fg)('platform_dst_flyout_menu_item_chevron_color') ? 'currentColor' : "var(--ds-icon, #292A2E)",
53
+ color: "currentColor",
55
54
  size: "small"
56
55
  })),
57
56
  onClick: onClick,
@@ -13,6 +13,7 @@
13
13
  ._4t3izwfg{height:2pc}
14
14
  ._5jyqglyw._5jyqglyw{text-decoration-line:none}
15
15
  ._ahbq1b66{margin-inline-start:var(--ds-space-050,4px)}
16
+ ._c71l1tcg{max-height:24px}
16
17
  ._mrqmnqa1._mrqmnqa1{text-decoration-style:solid}
17
18
  ._p12f1osq{max-width:100%}
18
19
  ._p12f1tcg{max-width:24px}
@@ -11,6 +11,7 @@ require("./app-logo.compiled.css");
11
11
  var _runtime = require("@compiled/react/runtime");
12
12
  var _react = _interopRequireWildcard(require("react"));
13
13
  var _react2 = require("@compiled/react");
14
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
15
  var _compiled = require("@atlaskit/primitives/compiled");
15
16
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
16
17
  var _useIsFhsEnabled = require("../../fhs-rollout/use-is-fhs-enabled");
@@ -29,7 +30,8 @@ var logoWrapperStyles = {
29
30
  };
30
31
  var iconContainerStyles = {
31
32
  root: "_1reo15vq _18m915vq _1e0c1txw _p12f1tcg",
32
- fullHeightSidebar: "_1o9zidpf"
33
+ fullHeightSidebar: "_1o9zidpf",
34
+ maxHeightStyles: "_c71l1tcg"
33
35
  };
34
36
  var logoTextStyles = {
35
37
  root: "_1bsb1ris _p12fnklw _uiztglyw _y4tiv77o _1e0cglyw _10y418uv"
@@ -79,7 +81,7 @@ var AppLogo = exports.AppLogo = function AppLogo(_ref) {
79
81
  alignBlock: "center",
80
82
  xcss: (0, _react2.cx)(logoWrapperStyles.root, isFhsEnabled && logoWrapperStyles.fullHeightSidebar)
81
83
  }, /*#__PURE__*/_react.default.createElement("div", {
82
- className: (0, _runtime.ax)([iconContainerStyles.root, isFhsEnabled && iconContainerStyles.fullHeightSidebar])
84
+ className: (0, _runtime.ax)([iconContainerStyles.root, isFhsEnabled && iconContainerStyles.fullHeightSidebar, (0, _platformFeatureFlags.fg)('platform-dst-nav-app-icon-height-fix') && iconContainerStyles.maxHeightStyles])
83
85
  }, /*#__PURE__*/_react.default.createElement(_logoRenderer.LogoRenderer
84
86
  // Top nav always uses the new logo design
85
87
  , {
@@ -5,7 +5,6 @@ import { ax, ix } from "@compiled/react/runtime";
5
5
  import { forwardRef } from 'react';
6
6
  import mergeRefs from '@atlaskit/ds-lib/merge-refs';
7
7
  import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
8
- import { fg } from '@atlaskit/platform-feature-flags';
9
8
  import { PopupTrigger } from '@atlaskit/popup/experimental';
10
9
  import { MenuItemBase } from '../menu-item';
11
10
  const elemAfterStyles = {
@@ -42,7 +41,7 @@ export const FlyoutMenuItemTrigger = /*#__PURE__*/forwardRef(({
42
41
  className: ax([elemAfterStyles.root])
43
42
  }, /*#__PURE__*/React.createElement(ChevronRightIcon, {
44
43
  label: "",
45
- color: fg('platform_dst_flyout_menu_item_chevron_color') ? 'currentColor' : "var(--ds-icon, #292A2E)",
44
+ color: "currentColor",
46
45
  size: "small"
47
46
  })),
48
47
  onClick: onClick,
@@ -13,6 +13,7 @@
13
13
  ._4t3izwfg{height:2pc}
14
14
  ._5jyqglyw._5jyqglyw{text-decoration-line:none}
15
15
  ._ahbq1b66{margin-inline-start:var(--ds-space-050,4px)}
16
+ ._c71l1tcg{max-height:24px}
16
17
  ._mrqmnqa1._mrqmnqa1{text-decoration-style:solid}
17
18
  ._p12f1osq{max-width:100%}
18
19
  ._p12f1tcg{max-width:24px}
@@ -3,6 +3,7 @@ import "./app-logo.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useCallback, useRef } from 'react';
5
5
  import { cx } from '@compiled/react';
6
+ import { fg } from '@atlaskit/platform-feature-flags';
6
7
  import { Anchor, Inline, Text } from '@atlaskit/primitives/compiled';
7
8
  import Tooltip from '@atlaskit/tooltip';
8
9
  import { useIsFhsEnabled } from '../../fhs-rollout/use-is-fhs-enabled';
@@ -20,7 +21,8 @@ const logoWrapperStyles = {
20
21
  };
21
22
  const iconContainerStyles = {
22
23
  root: "_1reo15vq _18m915vq _1e0c1txw _p12f1tcg",
23
- fullHeightSidebar: "_1o9zidpf"
24
+ fullHeightSidebar: "_1o9zidpf",
25
+ maxHeightStyles: "_c71l1tcg"
24
26
  };
25
27
  const logoTextStyles = {
26
28
  root: "_1bsb1ris _p12fnklw _uiztglyw _y4tiv77o _1e0cglyw _10y418uv"
@@ -71,7 +73,7 @@ export const AppLogo = ({
71
73
  alignBlock: "center",
72
74
  xcss: cx(logoWrapperStyles.root, isFhsEnabled && logoWrapperStyles.fullHeightSidebar)
73
75
  }, /*#__PURE__*/React.createElement("div", {
74
- className: ax([iconContainerStyles.root, isFhsEnabled && iconContainerStyles.fullHeightSidebar])
76
+ className: ax([iconContainerStyles.root, isFhsEnabled && iconContainerStyles.fullHeightSidebar, fg('platform-dst-nav-app-icon-height-fix') && iconContainerStyles.maxHeightStyles])
75
77
  }, /*#__PURE__*/React.createElement(LogoRenderer
76
78
  // Top nav always uses the new logo design
77
79
  , {
@@ -5,7 +5,6 @@ import { ax, ix } from "@compiled/react/runtime";
5
5
  import { forwardRef } from 'react';
6
6
  import mergeRefs from '@atlaskit/ds-lib/merge-refs';
7
7
  import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
8
- import { fg } from '@atlaskit/platform-feature-flags';
9
8
  import { PopupTrigger } from '@atlaskit/popup/experimental';
10
9
  import { MenuItemBase } from '../menu-item';
11
10
  var elemAfterStyles = {
@@ -42,7 +41,7 @@ export var FlyoutMenuItemTrigger = /*#__PURE__*/forwardRef(function (_ref, forwa
42
41
  className: ax([elemAfterStyles.root])
43
42
  }, /*#__PURE__*/React.createElement(ChevronRightIcon, {
44
43
  label: "",
45
- color: fg('platform_dst_flyout_menu_item_chevron_color') ? 'currentColor' : "var(--ds-icon, #292A2E)",
44
+ color: "currentColor",
46
45
  size: "small"
47
46
  })),
48
47
  onClick: onClick,
@@ -13,6 +13,7 @@
13
13
  ._4t3izwfg{height:2pc}
14
14
  ._5jyqglyw._5jyqglyw{text-decoration-line:none}
15
15
  ._ahbq1b66{margin-inline-start:var(--ds-space-050,4px)}
16
+ ._c71l1tcg{max-height:24px}
16
17
  ._mrqmnqa1._mrqmnqa1{text-decoration-style:solid}
17
18
  ._p12f1osq{max-width:100%}
18
19
  ._p12f1tcg{max-width:24px}
@@ -3,6 +3,7 @@ import "./app-logo.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useCallback, useRef } from 'react';
5
5
  import { cx } from '@compiled/react';
6
+ import { fg } from '@atlaskit/platform-feature-flags';
6
7
  import { Anchor, Inline, Text } from '@atlaskit/primitives/compiled';
7
8
  import Tooltip from '@atlaskit/tooltip';
8
9
  import { useIsFhsEnabled } from '../../fhs-rollout/use-is-fhs-enabled';
@@ -20,7 +21,8 @@ var logoWrapperStyles = {
20
21
  };
21
22
  var iconContainerStyles = {
22
23
  root: "_1reo15vq _18m915vq _1e0c1txw _p12f1tcg",
23
- fullHeightSidebar: "_1o9zidpf"
24
+ fullHeightSidebar: "_1o9zidpf",
25
+ maxHeightStyles: "_c71l1tcg"
24
26
  };
25
27
  var logoTextStyles = {
26
28
  root: "_1bsb1ris _p12fnklw _uiztglyw _y4tiv77o _1e0cglyw _10y418uv"
@@ -70,7 +72,7 @@ export var AppLogo = function AppLogo(_ref) {
70
72
  alignBlock: "center",
71
73
  xcss: cx(logoWrapperStyles.root, isFhsEnabled && logoWrapperStyles.fullHeightSidebar)
72
74
  }, /*#__PURE__*/React.createElement("div", {
73
- className: ax([iconContainerStyles.root, isFhsEnabled && iconContainerStyles.fullHeightSidebar])
75
+ className: ax([iconContainerStyles.root, isFhsEnabled && iconContainerStyles.fullHeightSidebar, fg('platform-dst-nav-app-icon-height-fix') && iconContainerStyles.maxHeightStyles])
74
76
  }, /*#__PURE__*/React.createElement(LogoRenderer
75
77
  // Top nav always uses the new logo design
76
78
  , {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/navigation-system",
3
- "version": "5.10.2",
3
+ "version": "5.11.1",
4
4
  "description": "The latest navigation system for Atlassian apps.",
5
5
  "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
6
6
  "author": "Atlassian Pty Ltd",
@@ -179,9 +179,6 @@
179
179
  "team25-eu-jira-logo-updates-csm-jsm": {
180
180
  "type": "boolean"
181
181
  },
182
- "platform_dst_flyout_menu_item_chevron_color": {
183
- "type": "boolean"
184
- },
185
182
  "platform_themed_button_use_icon_renderer": {
186
183
  "type": "boolean"
187
184
  },
@@ -190,6 +187,9 @@
190
187
  },
191
188
  "platform-dst-buttonmenuitem-selected-state-support": {
192
189
  "type": "boolean"
190
+ },
191
+ "platform-dst-nav-app-icon-height-fix": {
192
+ "type": "boolean"
193
193
  }
194
194
  },
195
195
  "homepage": "https://atlassian.design/components/navigation-system"