@atlaskit/atlassian-navigation 5.6.10 → 5.6.11

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,13 @@
1
1
  # @atlaskit/atlassian-navigation
2
2
 
3
+ ## 5.6.11
4
+
5
+ ### Patch Changes
6
+
7
+ - [`7aef1e49e90ea`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7aef1e49e90ea) -
8
+ Removes redundant fallback color values via @atlaskit/theme
9
+ - Updated dependencies
10
+
3
11
  ## 5.6.10
4
12
 
5
13
  ### Patch Changes
@@ -9,7 +9,6 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
  var _react2 = require("@emotion/react");
11
11
  var _analyticsNamespacedContext = require("@atlaskit/analytics-namespaced-context");
12
- var _colors = require("@atlaskit/theme/colors");
13
12
  var _constants = require("../../common/constants");
14
13
  var _theme = require("../../theme");
15
14
  var _PrimaryItemsContainer = require("../PrimaryItemsContainer");
@@ -29,7 +28,7 @@ var containerStyles = (0, _react2.css)({
29
28
  alignItems: 'center',
30
29
  justifyContent: 'space-between',
31
30
  flexShrink: 0,
32
- borderBlockEnd: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, ".concat(_colors.N30, ")")),
31
+ borderBlockEnd: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)"),
33
32
  paddingInlineEnd: "var(--ds-space-150, 12px)",
34
33
  paddingInlineStart: "var(--ds-space-150, 12px)"
35
34
  });
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.NavigationSkeleton = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _react2 = require("@emotion/react");
10
- var _colors = require("@atlaskit/theme/colors");
11
10
  var _constants = require("../../common/constants");
12
11
  var _theme = require("../../theme");
13
12
  var _skeleton = require("../IconButton/skeleton");
@@ -31,7 +30,7 @@ var containerStyles = (0, _react2.css)({
31
30
  alignItems: 'center',
32
31
  justifyContent: 'space-between',
33
32
  flexShrink: 0,
34
- borderBlockEnd: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, ".concat(_colors.N30, ")")),
33
+ borderBlockEnd: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)"),
35
34
  paddingInlineEnd: "var(--ds-space-150, 12px)",
36
35
  paddingInlineStart: "var(--ds-space-150, 12px)"
37
36
  });
@@ -11,7 +11,6 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
11
11
  var _react = _interopRequireWildcard(require("react"));
12
12
  var _react2 = require("@emotion/react");
13
13
  var _popup = _interopRequireDefault(require("@atlaskit/popup"));
14
- var _colors = require("@atlaskit/theme/colors");
15
14
  var _widthDetector = require("@atlaskit/width-detector");
16
15
  var _overflow = require("../../controllers/overflow");
17
16
  var _PrimaryDropdownButton = require("../PrimaryDropdownButton");
@@ -45,7 +44,7 @@ var widthObserverContainerStyles = (0, _react2.css)({
45
44
  flexShrink: 1
46
45
  });
47
46
  var overflowItemsStyles = (0, _react2.css)({
48
- color: "var(--ds-text, ".concat(_colors.N700, ")")
47
+ color: "var(--ds-text, #292A2E)"
49
48
  });
50
49
 
51
50
  // Internal only
@@ -11,7 +11,6 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
11
11
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
12
12
  var _react = _interopRequireWildcard(require("react"));
13
13
  var _react2 = require("@emotion/react");
14
- var _colors = require("@atlaskit/theme/colors");
15
14
  var _constants = require("../../common/constants");
16
15
  var _theme = require("../../theme");
17
16
  var _utils = require("./utils");
@@ -78,7 +77,7 @@ var productHomeButtonStyles = (0, _react2.css)((0, _defineProperty2.default)((0,
78
77
  '&:focus-visible': {
79
78
  backgroundColor: "var(".concat(VAR_PRODUCT_HOME_BACKGROUND_COLOR_FOCUS, ")"),
80
79
  color: "var(".concat(VAR_PRODUCT_HOME_COLOR_FOCUS, ")"),
81
- outline: "var(--ds-border-width-focused, 2px)".concat(" solid ", "var(--ds-border-focused, ".concat(_colors.B200, ")"))
80
+ outline: "var(--ds-border-width-focused, 2px)".concat(" solid ", "var(--ds-border-focused, #4688EC)")
82
81
  },
83
82
  // eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
84
83
  'div&': {
@@ -12,7 +12,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
12
12
  var _react = _interopRequireWildcard(require("react"));
13
13
  var _react2 = require("@emotion/react");
14
14
  var _compiled = require("@atlaskit/primitives/compiled");
15
- var _colors = require("@atlaskit/theme/colors");
16
15
  var _constants = require("../../common/constants");
17
16
  var _theme = require("../../theme");
18
17
  var _utils = require("../../utils");
@@ -163,7 +162,7 @@ var AppHome = exports.AppHome = function AppHome(_ref) {
163
162
  // The default theme is set at module scope and immediately used in context.
164
163
  // To allow the feature flag to switch the logo color at runtime, we also detect the original hardcoded
165
164
  // values and override them to undefined.
166
- if (iconColor === '#357DE8' && textColor === "var(--ds-text, ".concat(_colors.N700, ")")) {
165
+ if (iconColor === '#357DE8' && textColor === "var(--ds-text, #292A2E)") {
167
166
  iconColor = undefined;
168
167
  textColor = undefined;
169
168
  }
@@ -243,7 +242,7 @@ var ProductHome = function ProductHome(_ref2) {
243
242
  textColor = _theme$mode$productHo6 === void 0 ? undefined : _theme$mode$productHo6;
244
243
 
245
244
  // If the theme returns the default Atlassian theme, rely on the Logo default behaviour instead
246
- if (iconColor === '#357DE8' && textColor === "var(--ds-text, ".concat(_colors.N700, ")")) {
245
+ if (iconColor === '#357DE8' && textColor === "var(--ds-text, #292A2E)") {
247
246
  iconColor = undefined;
248
247
  textColor = undefined;
249
248
  }
@@ -4,29 +4,27 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.defaultThemeBrandRefresh = exports.default = exports.DEFAULT_THEME_NAME = void 0;
7
- var _colors = require("@atlaskit/theme/colors");
8
- var _themeHelpers = require("./theme-helpers");
9
7
  var defaultTheme = {
10
8
  mode: {
11
9
  create: {
12
10
  active: {
13
- color: "var(--ds-text-inverse, ".concat(_colors.N0, ")"),
14
- backgroundColor: "var(--ds-background-brand-bold-pressed, ".concat((0, _themeHelpers.hexToRGBA)(_colors.B400, 0.8), ")"),
11
+ color: "var(--ds-text-inverse, #FFFFFF)",
12
+ backgroundColor: "var(--ds-background-brand-bold-pressed, #144794)",
15
13
  boxShadow: ''
16
14
  },
17
15
  default: {
18
- color: "var(--ds-text-inverse, ".concat(_colors.N0, ")"),
19
- backgroundColor: "var(--ds-background-brand-bold, ".concat(_colors.B400, ")"),
16
+ color: "var(--ds-text-inverse, #FFFFFF)",
17
+ backgroundColor: "var(--ds-background-brand-bold, #1868DB)",
20
18
  boxShadow: ''
21
19
  },
22
20
  focus: {
23
- color: "var(--ds-text-inverse, ".concat(_colors.N0, ")"),
21
+ color: "var(--ds-text-inverse, #FFFFFF)",
24
22
  backgroundColor: '',
25
23
  boxShadow: ''
26
24
  },
27
25
  hover: {
28
- color: "var(--ds-text-inverse, ".concat(_colors.N0, ")"),
29
- backgroundColor: "var(--ds-background-brand-bold-hovered, ".concat((0, _themeHelpers.hexToRGBA)(_colors.B400, 0.9), ")"),
26
+ color: "var(--ds-text-inverse, #FFFFFF)",
27
+ backgroundColor: "var(--ds-background-brand-bold-hovered, #1558BC)",
30
28
  boxShadow: ''
31
29
  },
32
30
  selected: {
@@ -37,97 +35,97 @@ var defaultTheme = {
37
35
  },
38
36
  iconButton: {
39
37
  active: {
40
- color: "var(--ds-text-subtle, ".concat(_colors.B400, ")"),
41
- backgroundColor: "var(--ds-background-neutral-subtle-pressed, ".concat((0, _themeHelpers.hexToRGBA)(_colors.B50, 0.6), ")"),
38
+ color: "var(--ds-text-subtle, #505258)",
39
+ backgroundColor: "var(--ds-background-neutral-subtle-pressed, #0B120E24)",
42
40
  boxShadow: ''
43
41
  },
44
42
  default: {
45
- color: "var(--ds-text-subtle, ".concat(_colors.N600, ")"),
43
+ color: "var(--ds-text-subtle, #505258)",
46
44
  backgroundColor: 'transparent',
47
45
  boxShadow: ''
48
46
  },
49
47
  focus: {
50
- color: "var(--ds-text-subtle, ".concat(_colors.N600, ")"),
48
+ color: "var(--ds-text-subtle, #505258)",
51
49
  backgroundColor: '',
52
50
  boxShadow: ''
53
51
  },
54
52
  hover: {
55
- color: "var(--ds-text-subtle, ".concat(_colors.B400, ")"),
56
- backgroundColor: "var(--ds-background-neutral-subtle-hovered, ".concat((0, _themeHelpers.hexToRGBA)(_colors.B50, 0.9), ")"),
53
+ color: "var(--ds-text-subtle, #505258)",
54
+ backgroundColor: "var(--ds-background-neutral-subtle-hovered, #0515240F)",
57
55
  boxShadow: ''
58
56
  },
59
57
  selected: {
60
- color: "var(--ds-text-selected, ".concat(_colors.B400, ")"),
61
- backgroundColor: "var(--ds-background-selected, ".concat((0, _themeHelpers.hexToRGBA)(_colors.B50, 0.6), ")"),
58
+ color: "var(--ds-text-selected, #1868DB)",
59
+ backgroundColor: "var(--ds-background-selected, #E9F2FE)",
62
60
  boxShadow: ''
63
61
  },
64
62
  selectedHover: {
65
- color: "var(--ds-text-selected, ".concat(_colors.B400, ")"),
66
- backgroundColor: "var(--ds-background-selected-hovered, ".concat((0, _themeHelpers.hexToRGBA)(_colors.B50, 0.6), ")"),
63
+ color: "var(--ds-text-selected, #1868DB)",
64
+ backgroundColor: "var(--ds-background-selected-hovered, #CFE1FD)",
67
65
  boxShadow: ''
68
66
  }
69
67
  },
70
68
  navigation: {
71
- backgroundColor: "var(--ds-surface, ".concat(_colors.N0, ")"),
72
- color: "var(--ds-text-subtlest, ".concat(_colors.N200, ")")
69
+ backgroundColor: "var(--ds-surface, #FFFFFF)",
70
+ color: "var(--ds-text-subtlest, #6B6E76)"
73
71
  },
74
72
  productHome: {
75
- backgroundColor: "var(--ds-text-brand, ".concat(_colors.B400, ")"),
76
- color: "var(--ds-text, ".concat(_colors.N700, ")"),
77
- borderRight: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, ".concat((0, _themeHelpers.hexToRGBA)(_colors.N200, 0.3), ")")),
73
+ backgroundColor: "var(--ds-text-brand, #1868DB)",
74
+ color: "var(--ds-text, #292A2E)",
75
+ borderRight: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)"),
78
76
  // TODO: replace with token after brand refresh
79
77
  iconColor: '#357DE8',
80
- textColor: "var(--ds-text, ".concat(_colors.N700, ")")
78
+ textColor: "var(--ds-text, #292A2E)"
81
79
  },
82
80
  primaryButton: {
83
81
  active: {
84
- color: "var(--ds-text-subtle, ".concat(_colors.B400, ")"),
85
- backgroundColor: "var(--ds-background-neutral-subtle-pressed, ".concat((0, _themeHelpers.hexToRGBA)(_colors.B50, 0.7), ")"),
82
+ color: "var(--ds-text-subtle, #505258)",
83
+ backgroundColor: "var(--ds-background-neutral-subtle-pressed, #0B120E24)",
86
84
  boxShadow: ''
87
85
  },
88
86
  default: {
89
- color: "var(--ds-text-subtle, ".concat(_colors.N600, ")"),
87
+ color: "var(--ds-text-subtle, #505258)",
90
88
  backgroundColor: 'transparent',
91
89
  boxShadow: ''
92
90
  },
93
91
  focus: {
94
- color: "var(--ds-text-subtle, ".concat(_colors.N600, ")"),
92
+ color: "var(--ds-text-subtle, #505258)",
95
93
  backgroundColor: '',
96
94
  boxShadow: ''
97
95
  },
98
96
  hover: {
99
- color: "var(--ds-text-subtle, ".concat(_colors.B400, ")"),
100
- backgroundColor: "var(--ds-background-neutral-subtle-hovered, ".concat((0, _themeHelpers.hexToRGBA)(_colors.B50, 0.9), ")"),
97
+ color: "var(--ds-text-subtle, #505258)",
98
+ backgroundColor: "var(--ds-background-neutral-subtle-hovered, #0515240F)",
101
99
  boxShadow: ''
102
100
  },
103
101
  selected: {
104
- color: "var(--ds-text-selected, ".concat(_colors.B400, ")"),
105
- backgroundColor: "var(--ds-background-selected, ".concat((0, _themeHelpers.hexToRGBA)(_colors.B50, 0.7), ")"),
102
+ color: "var(--ds-text-selected, #1868DB)",
103
+ backgroundColor: "var(--ds-background-selected, #E9F2FE)",
106
104
  boxShadow: '',
107
- borderColor: "var(--ds-border-selected, ".concat(_colors.B400, ")")
105
+ borderColor: "var(--ds-border-selected, #1868DB)"
108
106
  },
109
107
  selectedHover: {
110
- color: "var(--ds-text-selected, ".concat(_colors.B400, ")"),
111
- backgroundColor: "var(--ds-background-selected-hovered, ".concat((0, _themeHelpers.hexToRGBA)(_colors.B50, 0.6), ")"),
108
+ color: "var(--ds-text-selected, #1868DB)",
109
+ backgroundColor: "var(--ds-background-selected-hovered, #CFE1FD)",
112
110
  boxShadow: '',
113
- borderColor: "var(--ds-border-selected, ".concat(_colors.B400, ")")
111
+ borderColor: "var(--ds-border-selected, #1868DB)"
114
112
  }
115
113
  },
116
114
  search: {
117
115
  default: {
118
- backgroundColor: "var(--ds-background-input, ".concat(_colors.N0, ")"),
119
- color: "var(--ds-text-subtlest, ".concat(_colors.N200, ")"),
120
- borderColor: "var(--ds-border-input, ".concat(_colors.N100, ")")
116
+ backgroundColor: "var(--ds-background-input, #FFFFFF)",
117
+ color: "var(--ds-text-subtlest, #6B6E76)",
118
+ borderColor: "var(--ds-border-input, #8C8F97)"
121
119
  },
122
120
  focus: {
123
- borderColor: "var(--ds-border-focused, ".concat(_colors.B200, ")")
121
+ borderColor: "var(--ds-border-focused, #4688EC)"
124
122
  },
125
123
  hover: {
126
- backgroundColor: "var(--ds-background-input-hovered, ".concat(_colors.N0, ")")
124
+ backgroundColor: "var(--ds-background-input-hovered, #F8F8F8)"
127
125
  }
128
126
  },
129
127
  skeleton: {
130
- backgroundColor: "var(--ds-background-neutral, ".concat(_colors.N20, ")"),
128
+ backgroundColor: "var(--ds-background-neutral, #0515240F)",
131
129
  opacity: 1
132
130
  }
133
131
  }
@@ -8,7 +8,6 @@ import React from 'react';
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
9
  import { css, jsx } from '@emotion/react';
10
10
  import { NavigationAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
11
- import { N30 } from '@atlaskit/theme/colors';
12
11
  import { HORIZONTAL_GLOBAL_NAV_HEIGHT } from '../../common/constants';
13
12
  import { defaultTheme, ThemeProvider } from '../../theme';
14
13
  import { PrimaryItemsContainer } from '../PrimaryItemsContainer';
@@ -21,7 +20,7 @@ const containerStyles = css({
21
20
  alignItems: 'center',
22
21
  justifyContent: 'space-between',
23
22
  flexShrink: 0,
24
- borderBlockEnd: `${"var(--ds-border-width, 1px)"} solid ${`var(--ds-border, ${N30})`}`,
23
+ borderBlockEnd: `${"var(--ds-border-width, 1px)"} solid ${"var(--ds-border, #0B120E24)"}`,
25
24
  paddingInlineEnd: "var(--ds-space-150, 12px)",
26
25
  paddingInlineStart: "var(--ds-space-150, 12px)"
27
26
  });
@@ -6,7 +6,6 @@ import React from 'react';
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
8
  import { css, jsx } from '@emotion/react';
9
- import { N30 } from '@atlaskit/theme/colors';
10
9
  import { HORIZONTAL_GLOBAL_NAV_HEIGHT } from '../../common/constants';
11
10
  import { defaultTheme, ThemeProvider } from '../../theme';
12
11
  import { IconButtonSkeleton } from '../IconButton/skeleton';
@@ -23,7 +22,7 @@ const containerStyles = css({
23
22
  alignItems: 'center',
24
23
  justifyContent: 'space-between',
25
24
  flexShrink: 0,
26
- borderBlockEnd: `${"var(--ds-border-width, 1px)"} solid ${`var(--ds-border, ${N30})`}`,
25
+ borderBlockEnd: `${"var(--ds-border-width, 1px)"} solid ${"var(--ds-border, #0B120E24)"}`,
27
26
  paddingInlineEnd: "var(--ds-space-150, 12px)",
28
27
  paddingInlineStart: "var(--ds-space-150, 12px)"
29
28
  });
@@ -8,7 +8,6 @@ import React, { useCallback, useState } from 'react';
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
9
  import { css, jsx } from '@emotion/react';
10
10
  import Popup from '@atlaskit/popup';
11
- import { N700 } from '@atlaskit/theme/colors';
12
11
  import { WidthObserver } from '@atlaskit/width-detector';
13
12
  import { OverflowProvider, useOverflowController } from '../../controllers/overflow';
14
13
  import { PrimaryDropdownButton } from '../PrimaryDropdownButton';
@@ -34,7 +33,7 @@ const widthObserverContainerStyles = css({
34
33
  flexShrink: 1
35
34
  });
36
35
  const overflowItemsStyles = css({
37
- color: `var(--ds-text, ${N700})`
36
+ color: "var(--ds-text, #292A2E)"
38
37
  });
39
38
 
40
39
  // Internal only
@@ -7,7 +7,6 @@ import React, { Fragment } from 'react';
7
7
 
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
9
  import { css, jsx } from '@emotion/react';
10
- import { B200 } from '@atlaskit/theme/colors';
11
10
  import { PRODUCT_HOME_BREAKPOINT } from '../../common/constants';
12
11
  import { useTheme } from '../../theme';
13
12
  import { getTag } from './utils';
@@ -71,7 +70,7 @@ const productHomeButtonStyles = css({
71
70
  '&:focus-visible': {
72
71
  backgroundColor: `var(${VAR_PRODUCT_HOME_BACKGROUND_COLOR_FOCUS})`,
73
72
  color: `var(${VAR_PRODUCT_HOME_COLOR_FOCUS})`,
74
- outline: `${"var(--ds-border-width-focused, 2px)"} solid ${`var(--ds-border-focused, ${B200})`}`
73
+ outline: `${"var(--ds-border-width-focused, 2px)"} solid ${"var(--ds-border-focused, #4688EC)"}`
75
74
  },
76
75
  // eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
77
76
  'div&': {
@@ -10,7 +10,6 @@ import { css, jsx } from '@emotion/react';
10
10
 
11
11
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
12
12
  import { Inline, Text } from '@atlaskit/primitives/compiled';
13
- import { N700 } from '@atlaskit/theme/colors';
14
13
  import { PRODUCT_HOME_BREAKPOINT } from '../../common/constants';
15
14
  import { useTheme } from '../../theme';
16
15
  import { stripEmptyProperties } from '../../utils';
@@ -162,7 +161,7 @@ export const AppHome = ({
162
161
  // The default theme is set at module scope and immediately used in context.
163
162
  // To allow the feature flag to switch the logo color at runtime, we also detect the original hardcoded
164
163
  // values and override them to undefined.
165
- if (iconColor === '#357DE8' && textColor === `var(--ds-text, ${N700})`) {
164
+ if (iconColor === '#357DE8' && textColor === "var(--ds-text, #292A2E)") {
166
165
  iconColor = undefined;
167
166
  textColor = undefined;
168
167
  }
@@ -251,7 +250,7 @@ const ProductHome = ({
251
250
  } = theme.mode.productHome;
252
251
 
253
252
  // If the theme returns the default Atlassian theme, rely on the Logo default behaviour instead
254
- if (iconColor === '#357DE8' && textColor === `var(--ds-text, ${N700})`) {
253
+ if (iconColor === '#357DE8' && textColor === "var(--ds-text, #292A2E)") {
255
254
  iconColor = undefined;
256
255
  textColor = undefined;
257
256
  }
@@ -1,26 +1,24 @@
1
- import { B200, B400, B50, N0, N100, N20, N200, N600, N700 } from '@atlaskit/theme/colors';
2
- import { hexToRGBA } from './theme-helpers';
3
1
  const defaultTheme = {
4
2
  mode: {
5
3
  create: {
6
4
  active: {
7
- color: `var(--ds-text-inverse, ${N0})`,
8
- backgroundColor: `var(--ds-background-brand-bold-pressed, ${hexToRGBA(B400, 0.8)})`,
5
+ color: "var(--ds-text-inverse, #FFFFFF)",
6
+ backgroundColor: "var(--ds-background-brand-bold-pressed, #144794)",
9
7
  boxShadow: ''
10
8
  },
11
9
  default: {
12
- color: `var(--ds-text-inverse, ${N0})`,
13
- backgroundColor: `var(--ds-background-brand-bold, ${B400})`,
10
+ color: "var(--ds-text-inverse, #FFFFFF)",
11
+ backgroundColor: "var(--ds-background-brand-bold, #1868DB)",
14
12
  boxShadow: ''
15
13
  },
16
14
  focus: {
17
- color: `var(--ds-text-inverse, ${N0})`,
15
+ color: "var(--ds-text-inverse, #FFFFFF)",
18
16
  backgroundColor: '',
19
17
  boxShadow: ''
20
18
  },
21
19
  hover: {
22
- color: `var(--ds-text-inverse, ${N0})`,
23
- backgroundColor: `var(--ds-background-brand-bold-hovered, ${hexToRGBA(B400, 0.9)})`,
20
+ color: "var(--ds-text-inverse, #FFFFFF)",
21
+ backgroundColor: "var(--ds-background-brand-bold-hovered, #1558BC)",
24
22
  boxShadow: ''
25
23
  },
26
24
  selected: {
@@ -31,97 +29,97 @@ const defaultTheme = {
31
29
  },
32
30
  iconButton: {
33
31
  active: {
34
- color: `var(--ds-text-subtle, ${B400})`,
35
- backgroundColor: `var(--ds-background-neutral-subtle-pressed, ${hexToRGBA(B50, 0.6)})`,
32
+ color: "var(--ds-text-subtle, #505258)",
33
+ backgroundColor: "var(--ds-background-neutral-subtle-pressed, #0B120E24)",
36
34
  boxShadow: ''
37
35
  },
38
36
  default: {
39
- color: `var(--ds-text-subtle, ${N600})`,
37
+ color: "var(--ds-text-subtle, #505258)",
40
38
  backgroundColor: 'transparent',
41
39
  boxShadow: ''
42
40
  },
43
41
  focus: {
44
- color: `var(--ds-text-subtle, ${N600})`,
42
+ color: "var(--ds-text-subtle, #505258)",
45
43
  backgroundColor: '',
46
44
  boxShadow: ''
47
45
  },
48
46
  hover: {
49
- color: `var(--ds-text-subtle, ${B400})`,
50
- backgroundColor: `var(--ds-background-neutral-subtle-hovered, ${hexToRGBA(B50, 0.9)})`,
47
+ color: "var(--ds-text-subtle, #505258)",
48
+ backgroundColor: "var(--ds-background-neutral-subtle-hovered, #0515240F)",
51
49
  boxShadow: ''
52
50
  },
53
51
  selected: {
54
- color: `var(--ds-text-selected, ${B400})`,
55
- backgroundColor: `var(--ds-background-selected, ${hexToRGBA(B50, 0.6)})`,
52
+ color: "var(--ds-text-selected, #1868DB)",
53
+ backgroundColor: "var(--ds-background-selected, #E9F2FE)",
56
54
  boxShadow: ''
57
55
  },
58
56
  selectedHover: {
59
- color: `var(--ds-text-selected, ${B400})`,
60
- backgroundColor: `var(--ds-background-selected-hovered, ${hexToRGBA(B50, 0.6)})`,
57
+ color: "var(--ds-text-selected, #1868DB)",
58
+ backgroundColor: "var(--ds-background-selected-hovered, #CFE1FD)",
61
59
  boxShadow: ''
62
60
  }
63
61
  },
64
62
  navigation: {
65
- backgroundColor: `var(--ds-surface, ${N0})`,
66
- color: `var(--ds-text-subtlest, ${N200})`
63
+ backgroundColor: "var(--ds-surface, #FFFFFF)",
64
+ color: "var(--ds-text-subtlest, #6B6E76)"
67
65
  },
68
66
  productHome: {
69
- backgroundColor: `var(--ds-text-brand, ${B400})`,
70
- color: `var(--ds-text, ${N700})`,
71
- borderRight: `${"var(--ds-border-width, 1px)"} solid ${`var(--ds-border, ${hexToRGBA(N200, 0.3)})`}`,
67
+ backgroundColor: "var(--ds-text-brand, #1868DB)",
68
+ color: "var(--ds-text, #292A2E)",
69
+ borderRight: `${"var(--ds-border-width, 1px)"} solid ${"var(--ds-border, #0B120E24)"}`,
72
70
  // TODO: replace with token after brand refresh
73
71
  iconColor: '#357DE8',
74
- textColor: `var(--ds-text, ${N700})`
72
+ textColor: "var(--ds-text, #292A2E)"
75
73
  },
76
74
  primaryButton: {
77
75
  active: {
78
- color: `var(--ds-text-subtle, ${B400})`,
79
- backgroundColor: `var(--ds-background-neutral-subtle-pressed, ${hexToRGBA(B50, 0.7)})`,
76
+ color: "var(--ds-text-subtle, #505258)",
77
+ backgroundColor: "var(--ds-background-neutral-subtle-pressed, #0B120E24)",
80
78
  boxShadow: ''
81
79
  },
82
80
  default: {
83
- color: `var(--ds-text-subtle, ${N600})`,
81
+ color: "var(--ds-text-subtle, #505258)",
84
82
  backgroundColor: 'transparent',
85
83
  boxShadow: ''
86
84
  },
87
85
  focus: {
88
- color: `var(--ds-text-subtle, ${N600})`,
86
+ color: "var(--ds-text-subtle, #505258)",
89
87
  backgroundColor: '',
90
88
  boxShadow: ''
91
89
  },
92
90
  hover: {
93
- color: `var(--ds-text-subtle, ${B400})`,
94
- backgroundColor: `var(--ds-background-neutral-subtle-hovered, ${hexToRGBA(B50, 0.9)})`,
91
+ color: "var(--ds-text-subtle, #505258)",
92
+ backgroundColor: "var(--ds-background-neutral-subtle-hovered, #0515240F)",
95
93
  boxShadow: ''
96
94
  },
97
95
  selected: {
98
- color: `var(--ds-text-selected, ${B400})`,
99
- backgroundColor: `var(--ds-background-selected, ${hexToRGBA(B50, 0.7)})`,
96
+ color: "var(--ds-text-selected, #1868DB)",
97
+ backgroundColor: "var(--ds-background-selected, #E9F2FE)",
100
98
  boxShadow: '',
101
- borderColor: `var(--ds-border-selected, ${B400})`
99
+ borderColor: "var(--ds-border-selected, #1868DB)"
102
100
  },
103
101
  selectedHover: {
104
- color: `var(--ds-text-selected, ${B400})`,
105
- backgroundColor: `var(--ds-background-selected-hovered, ${hexToRGBA(B50, 0.6)})`,
102
+ color: "var(--ds-text-selected, #1868DB)",
103
+ backgroundColor: "var(--ds-background-selected-hovered, #CFE1FD)",
106
104
  boxShadow: '',
107
- borderColor: `var(--ds-border-selected, ${B400})`
105
+ borderColor: "var(--ds-border-selected, #1868DB)"
108
106
  }
109
107
  },
110
108
  search: {
111
109
  default: {
112
- backgroundColor: `var(--ds-background-input, ${N0})`,
113
- color: `var(--ds-text-subtlest, ${N200})`,
114
- borderColor: `var(--ds-border-input, ${N100})`
110
+ backgroundColor: "var(--ds-background-input, #FFFFFF)",
111
+ color: "var(--ds-text-subtlest, #6B6E76)",
112
+ borderColor: "var(--ds-border-input, #8C8F97)"
115
113
  },
116
114
  focus: {
117
- borderColor: `var(--ds-border-focused, ${B200})`
115
+ borderColor: "var(--ds-border-focused, #4688EC)"
118
116
  },
119
117
  hover: {
120
- backgroundColor: `var(--ds-background-input-hovered, ${N0})`
118
+ backgroundColor: "var(--ds-background-input-hovered, #F8F8F8)"
121
119
  }
122
120
  },
123
121
  skeleton: {
124
- backgroundColor: `var(--ds-background-neutral, ${N20})`,
122
+ backgroundColor: "var(--ds-background-neutral, #0515240F)",
125
123
  opacity: 1
126
124
  }
127
125
  }
@@ -8,7 +8,6 @@ import React from 'react';
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
9
  import { css, jsx } from '@emotion/react';
10
10
  import { NavigationAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
11
- import { N30 } from '@atlaskit/theme/colors';
12
11
  import { HORIZONTAL_GLOBAL_NAV_HEIGHT } from '../../common/constants';
13
12
  import { defaultTheme, ThemeProvider } from '../../theme';
14
13
  import { PrimaryItemsContainer } from '../PrimaryItemsContainer';
@@ -21,7 +20,7 @@ var containerStyles = css({
21
20
  alignItems: 'center',
22
21
  justifyContent: 'space-between',
23
22
  flexShrink: 0,
24
- borderBlockEnd: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, ".concat(N30, ")")),
23
+ borderBlockEnd: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)"),
25
24
  paddingInlineEnd: "var(--ds-space-150, 12px)",
26
25
  paddingInlineStart: "var(--ds-space-150, 12px)"
27
26
  });
@@ -6,7 +6,6 @@ import React from 'react';
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
8
  import { css, jsx } from '@emotion/react';
9
- import { N30 } from '@atlaskit/theme/colors';
10
9
  import { HORIZONTAL_GLOBAL_NAV_HEIGHT } from '../../common/constants';
11
10
  import { defaultTheme, ThemeProvider } from '../../theme';
12
11
  import { IconButtonSkeleton } from '../IconButton/skeleton';
@@ -23,7 +22,7 @@ var containerStyles = css({
23
22
  alignItems: 'center',
24
23
  justifyContent: 'space-between',
25
24
  flexShrink: 0,
26
- borderBlockEnd: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, ".concat(N30, ")")),
25
+ borderBlockEnd: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)"),
27
26
  paddingInlineEnd: "var(--ds-space-150, 12px)",
28
27
  paddingInlineStart: "var(--ds-space-150, 12px)"
29
28
  });
@@ -9,7 +9,6 @@ import React, { useCallback, useState } from 'react';
9
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
10
  import { css, jsx } from '@emotion/react';
11
11
  import Popup from '@atlaskit/popup';
12
- import { N700 } from '@atlaskit/theme/colors';
13
12
  import { WidthObserver } from '@atlaskit/width-detector';
14
13
  import { OverflowProvider, useOverflowController } from '../../controllers/overflow';
15
14
  import { PrimaryDropdownButton } from '../PrimaryDropdownButton';
@@ -35,7 +34,7 @@ var widthObserverContainerStyles = css({
35
34
  flexShrink: 1
36
35
  });
37
36
  var overflowItemsStyles = css({
38
- color: "var(--ds-text, ".concat(N700, ")")
37
+ color: "var(--ds-text, #292A2E)"
39
38
  });
40
39
 
41
40
  // Internal only
@@ -10,7 +10,6 @@ import React, { Fragment } from 'react';
10
10
 
11
11
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
12
12
  import { css, jsx } from '@emotion/react';
13
- import { B200 } from '@atlaskit/theme/colors';
14
13
  import { PRODUCT_HOME_BREAKPOINT } from '../../common/constants';
15
14
  import { useTheme } from '../../theme';
16
15
  import { getTag } from './utils';
@@ -70,7 +69,7 @@ var productHomeButtonStyles = css(_defineProperty(_defineProperty({
70
69
  '&:focus-visible': {
71
70
  backgroundColor: "var(".concat(VAR_PRODUCT_HOME_BACKGROUND_COLOR_FOCUS, ")"),
72
71
  color: "var(".concat(VAR_PRODUCT_HOME_COLOR_FOCUS, ")"),
73
- outline: "var(--ds-border-width-focused, 2px)".concat(" solid ", "var(--ds-border-focused, ".concat(B200, ")"))
72
+ outline: "var(--ds-border-width-focused, 2px)".concat(" solid ", "var(--ds-border-focused, #4688EC)")
74
73
  },
75
74
  // eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
76
75
  'div&': {
@@ -14,7 +14,6 @@ import { css, jsx } from '@emotion/react';
14
14
 
15
15
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
16
16
  import { Inline, Text } from '@atlaskit/primitives/compiled';
17
- import { N700 } from '@atlaskit/theme/colors';
18
17
  import { PRODUCT_HOME_BREAKPOINT } from '../../common/constants';
19
18
  import { useTheme } from '../../theme';
20
19
  import { stripEmptyProperties } from '../../utils';
@@ -156,7 +155,7 @@ export var AppHome = function AppHome(_ref) {
156
155
  // The default theme is set at module scope and immediately used in context.
157
156
  // To allow the feature flag to switch the logo color at runtime, we also detect the original hardcoded
158
157
  // values and override them to undefined.
159
- if (iconColor === '#357DE8' && textColor === "var(--ds-text, ".concat(N700, ")")) {
158
+ if (iconColor === '#357DE8' && textColor === "var(--ds-text, #292A2E)") {
160
159
  iconColor = undefined;
161
160
  textColor = undefined;
162
161
  }
@@ -236,7 +235,7 @@ var ProductHome = function ProductHome(_ref2) {
236
235
  textColor = _theme$mode$productHo6 === void 0 ? undefined : _theme$mode$productHo6;
237
236
 
238
237
  // If the theme returns the default Atlassian theme, rely on the Logo default behaviour instead
239
- if (iconColor === '#357DE8' && textColor === "var(--ds-text, ".concat(N700, ")")) {
238
+ if (iconColor === '#357DE8' && textColor === "var(--ds-text, #292A2E)") {
240
239
  iconColor = undefined;
241
240
  textColor = undefined;
242
241
  }
@@ -1,26 +1,24 @@
1
- import { B200, B400, B50, N0, N100, N20, N200, N600, N700 } from '@atlaskit/theme/colors';
2
- import { hexToRGBA } from './theme-helpers';
3
1
  var defaultTheme = {
4
2
  mode: {
5
3
  create: {
6
4
  active: {
7
- color: "var(--ds-text-inverse, ".concat(N0, ")"),
8
- backgroundColor: "var(--ds-background-brand-bold-pressed, ".concat(hexToRGBA(B400, 0.8), ")"),
5
+ color: "var(--ds-text-inverse, #FFFFFF)",
6
+ backgroundColor: "var(--ds-background-brand-bold-pressed, #144794)",
9
7
  boxShadow: ''
10
8
  },
11
9
  default: {
12
- color: "var(--ds-text-inverse, ".concat(N0, ")"),
13
- backgroundColor: "var(--ds-background-brand-bold, ".concat(B400, ")"),
10
+ color: "var(--ds-text-inverse, #FFFFFF)",
11
+ backgroundColor: "var(--ds-background-brand-bold, #1868DB)",
14
12
  boxShadow: ''
15
13
  },
16
14
  focus: {
17
- color: "var(--ds-text-inverse, ".concat(N0, ")"),
15
+ color: "var(--ds-text-inverse, #FFFFFF)",
18
16
  backgroundColor: '',
19
17
  boxShadow: ''
20
18
  },
21
19
  hover: {
22
- color: "var(--ds-text-inverse, ".concat(N0, ")"),
23
- backgroundColor: "var(--ds-background-brand-bold-hovered, ".concat(hexToRGBA(B400, 0.9), ")"),
20
+ color: "var(--ds-text-inverse, #FFFFFF)",
21
+ backgroundColor: "var(--ds-background-brand-bold-hovered, #1558BC)",
24
22
  boxShadow: ''
25
23
  },
26
24
  selected: {
@@ -31,97 +29,97 @@ var defaultTheme = {
31
29
  },
32
30
  iconButton: {
33
31
  active: {
34
- color: "var(--ds-text-subtle, ".concat(B400, ")"),
35
- backgroundColor: "var(--ds-background-neutral-subtle-pressed, ".concat(hexToRGBA(B50, 0.6), ")"),
32
+ color: "var(--ds-text-subtle, #505258)",
33
+ backgroundColor: "var(--ds-background-neutral-subtle-pressed, #0B120E24)",
36
34
  boxShadow: ''
37
35
  },
38
36
  default: {
39
- color: "var(--ds-text-subtle, ".concat(N600, ")"),
37
+ color: "var(--ds-text-subtle, #505258)",
40
38
  backgroundColor: 'transparent',
41
39
  boxShadow: ''
42
40
  },
43
41
  focus: {
44
- color: "var(--ds-text-subtle, ".concat(N600, ")"),
42
+ color: "var(--ds-text-subtle, #505258)",
45
43
  backgroundColor: '',
46
44
  boxShadow: ''
47
45
  },
48
46
  hover: {
49
- color: "var(--ds-text-subtle, ".concat(B400, ")"),
50
- backgroundColor: "var(--ds-background-neutral-subtle-hovered, ".concat(hexToRGBA(B50, 0.9), ")"),
47
+ color: "var(--ds-text-subtle, #505258)",
48
+ backgroundColor: "var(--ds-background-neutral-subtle-hovered, #0515240F)",
51
49
  boxShadow: ''
52
50
  },
53
51
  selected: {
54
- color: "var(--ds-text-selected, ".concat(B400, ")"),
55
- backgroundColor: "var(--ds-background-selected, ".concat(hexToRGBA(B50, 0.6), ")"),
52
+ color: "var(--ds-text-selected, #1868DB)",
53
+ backgroundColor: "var(--ds-background-selected, #E9F2FE)",
56
54
  boxShadow: ''
57
55
  },
58
56
  selectedHover: {
59
- color: "var(--ds-text-selected, ".concat(B400, ")"),
60
- backgroundColor: "var(--ds-background-selected-hovered, ".concat(hexToRGBA(B50, 0.6), ")"),
57
+ color: "var(--ds-text-selected, #1868DB)",
58
+ backgroundColor: "var(--ds-background-selected-hovered, #CFE1FD)",
61
59
  boxShadow: ''
62
60
  }
63
61
  },
64
62
  navigation: {
65
- backgroundColor: "var(--ds-surface, ".concat(N0, ")"),
66
- color: "var(--ds-text-subtlest, ".concat(N200, ")")
63
+ backgroundColor: "var(--ds-surface, #FFFFFF)",
64
+ color: "var(--ds-text-subtlest, #6B6E76)"
67
65
  },
68
66
  productHome: {
69
- backgroundColor: "var(--ds-text-brand, ".concat(B400, ")"),
70
- color: "var(--ds-text, ".concat(N700, ")"),
71
- borderRight: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, ".concat(hexToRGBA(N200, 0.3), ")")),
67
+ backgroundColor: "var(--ds-text-brand, #1868DB)",
68
+ color: "var(--ds-text, #292A2E)",
69
+ borderRight: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)"),
72
70
  // TODO: replace with token after brand refresh
73
71
  iconColor: '#357DE8',
74
- textColor: "var(--ds-text, ".concat(N700, ")")
72
+ textColor: "var(--ds-text, #292A2E)"
75
73
  },
76
74
  primaryButton: {
77
75
  active: {
78
- color: "var(--ds-text-subtle, ".concat(B400, ")"),
79
- backgroundColor: "var(--ds-background-neutral-subtle-pressed, ".concat(hexToRGBA(B50, 0.7), ")"),
76
+ color: "var(--ds-text-subtle, #505258)",
77
+ backgroundColor: "var(--ds-background-neutral-subtle-pressed, #0B120E24)",
80
78
  boxShadow: ''
81
79
  },
82
80
  default: {
83
- color: "var(--ds-text-subtle, ".concat(N600, ")"),
81
+ color: "var(--ds-text-subtle, #505258)",
84
82
  backgroundColor: 'transparent',
85
83
  boxShadow: ''
86
84
  },
87
85
  focus: {
88
- color: "var(--ds-text-subtle, ".concat(N600, ")"),
86
+ color: "var(--ds-text-subtle, #505258)",
89
87
  backgroundColor: '',
90
88
  boxShadow: ''
91
89
  },
92
90
  hover: {
93
- color: "var(--ds-text-subtle, ".concat(B400, ")"),
94
- backgroundColor: "var(--ds-background-neutral-subtle-hovered, ".concat(hexToRGBA(B50, 0.9), ")"),
91
+ color: "var(--ds-text-subtle, #505258)",
92
+ backgroundColor: "var(--ds-background-neutral-subtle-hovered, #0515240F)",
95
93
  boxShadow: ''
96
94
  },
97
95
  selected: {
98
- color: "var(--ds-text-selected, ".concat(B400, ")"),
99
- backgroundColor: "var(--ds-background-selected, ".concat(hexToRGBA(B50, 0.7), ")"),
96
+ color: "var(--ds-text-selected, #1868DB)",
97
+ backgroundColor: "var(--ds-background-selected, #E9F2FE)",
100
98
  boxShadow: '',
101
- borderColor: "var(--ds-border-selected, ".concat(B400, ")")
99
+ borderColor: "var(--ds-border-selected, #1868DB)"
102
100
  },
103
101
  selectedHover: {
104
- color: "var(--ds-text-selected, ".concat(B400, ")"),
105
- backgroundColor: "var(--ds-background-selected-hovered, ".concat(hexToRGBA(B50, 0.6), ")"),
102
+ color: "var(--ds-text-selected, #1868DB)",
103
+ backgroundColor: "var(--ds-background-selected-hovered, #CFE1FD)",
106
104
  boxShadow: '',
107
- borderColor: "var(--ds-border-selected, ".concat(B400, ")")
105
+ borderColor: "var(--ds-border-selected, #1868DB)"
108
106
  }
109
107
  },
110
108
  search: {
111
109
  default: {
112
- backgroundColor: "var(--ds-background-input, ".concat(N0, ")"),
113
- color: "var(--ds-text-subtlest, ".concat(N200, ")"),
114
- borderColor: "var(--ds-border-input, ".concat(N100, ")")
110
+ backgroundColor: "var(--ds-background-input, #FFFFFF)",
111
+ color: "var(--ds-text-subtlest, #6B6E76)",
112
+ borderColor: "var(--ds-border-input, #8C8F97)"
115
113
  },
116
114
  focus: {
117
- borderColor: "var(--ds-border-focused, ".concat(B200, ")")
115
+ borderColor: "var(--ds-border-focused, #4688EC)"
118
116
  },
119
117
  hover: {
120
- backgroundColor: "var(--ds-background-input-hovered, ".concat(N0, ")")
118
+ backgroundColor: "var(--ds-background-input-hovered, #F8F8F8)"
121
119
  }
122
120
  },
123
121
  skeleton: {
124
- backgroundColor: "var(--ds-background-neutral, ".concat(N20, ")"),
122
+ backgroundColor: "var(--ds-background-neutral, #0515240F)",
125
123
  opacity: 1
126
124
  }
127
125
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "5.6.10",
3
+ "version": "5.6.11",
4
4
  "description": "A horizontal navigation component for Atlassian apps.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"