@atlaskit/atlassian-navigation 1.1.3 → 1.3.0

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 (37) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/dist/cjs/common/constants.js +1 -1
  3. package/dist/cjs/components/AtlassianNavigation/styles.js +25 -17
  4. package/dist/cjs/components/IconButton/styles.js +3 -3
  5. package/dist/cjs/components/PrimaryButton/styles.js +3 -3
  6. package/dist/cjs/components/PrimaryItemsContainer/index.js +6 -11
  7. package/dist/cjs/components/PrimaryItemsContainer/styles.js +1 -12
  8. package/dist/cjs/components/ProductHome/index.js +4 -4
  9. package/dist/cjs/components/ProductHome/styles.js +1 -1
  10. package/dist/cjs/components/Search/styles.js +1 -1
  11. package/dist/cjs/controllers/overflow/index.js +1 -1
  12. package/dist/cjs/index.js +26 -26
  13. package/dist/cjs/theme/defaultTheme.js +52 -48
  14. package/dist/cjs/theme/index.js +8 -8
  15. package/dist/cjs/theme/themeGenerator.js +1 -1
  16. package/dist/cjs/theme/themeHelpers.js +1 -1
  17. package/dist/cjs/theme/themes.js +2 -0
  18. package/dist/cjs/version.json +1 -1
  19. package/dist/es2019/components/AtlassianNavigation/styles.js +20 -12
  20. package/dist/es2019/components/IconButton/styles.js +2 -2
  21. package/dist/es2019/components/PrimaryButton/styles.js +2 -2
  22. package/dist/es2019/components/PrimaryItemsContainer/index.js +6 -11
  23. package/dist/es2019/components/PrimaryItemsContainer/styles.js +0 -10
  24. package/dist/es2019/theme/defaultTheme.js +52 -48
  25. package/dist/es2019/theme/themes.js +2 -0
  26. package/dist/es2019/version.json +1 -1
  27. package/dist/esm/components/AtlassianNavigation/styles.js +23 -14
  28. package/dist/esm/components/IconButton/styles.js +2 -2
  29. package/dist/esm/components/PrimaryButton/styles.js +2 -2
  30. package/dist/esm/components/PrimaryItemsContainer/index.js +6 -11
  31. package/dist/esm/components/PrimaryItemsContainer/styles.js +0 -10
  32. package/dist/esm/theme/defaultTheme.js +52 -48
  33. package/dist/esm/theme/themes.js +2 -0
  34. package/dist/esm/version.json +1 -1
  35. package/dist/types/components/AtlassianNavigation/styles.d.ts +0 -11
  36. package/dist/types/components/IconButton/types.d.ts +21 -0
  37. package/package.json +6 -13
package/CHANGELOG.md CHANGED
@@ -1,5 +1,60 @@
1
1
  # @atlaskit/atlassian-navigation
2
2
 
3
+ ## 1.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`9d4ca6e23da`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d4ca6e23da) - [ux] New create-dropdown-menu package for Create dropdown button
8
+
9
+ ## 1.2.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [`a2f953f3814`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a2f953f3814) - Previously the `ensure-design-token-usage` eslint rule contained all checks relating to token use. This has now been split up into two separate rules:
14
+
15
+ `ensure-design-token-usage` now covers:
16
+
17
+ - `legacyElevation` — warns about old usages of the elevation mixins or styles, which instead should use the `card` or `overlay` tokens.
18
+ - `hardCodedColor` — warns about use of hard-coded colors such as `color: colors.B100`, which instead should be wrapped in a `token()` call. This covers the majority of cases in existing codebases when first adopting tokens.
19
+
20
+ `no-unsafe-design-token-usage` (new) covers the remaining rules:
21
+
22
+ - `directTokenUsage` — warns against using the CSS Custom Property name that is output in the browser by the `token()` call.
23
+ Eg. directly using `var(--ds-accent-subtleBlue)` is bad.
24
+ - `staticToken` — warns when tokens aren't used inline. Inlining the token usages helps with static analysis, which unlocks future improvements.
25
+ Eg. pulling the token out into a const like `css={ color: token(primaryButtonText) }` is bad.
26
+ - `invalidToken` — warns when using a token that doesn't exist (not one that's been renamed, see the next point).
27
+ - `tokenRenamed` — warns when using a token that's been renamed in a subsequent release.
28
+ - `tokenFallbackEnforced` — warns if a fallback for the token call is not provided.
29
+ Eg. call with the fallback like this `token('color.background.disabled', N10)` instead of `token('color.background.disabled')`.
30
+ - `tokenFallbackRestricted` — the opposite of `tokenFallbackEnforced`.
31
+ Eg. do not pass in a fallback like this `token('color.background.disabled', N10)` and instead only include the token `token('color.background.disabled')`.
32
+
33
+ Upgrading — some instances of `\\eslint-disable` may need to be changed to the new rule. If you have failing lint rules after only bumping this package then switch those ignores to use `no-unsafe-design-token-usage` instead.
34
+
35
+ - [`22fb31312eb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/22fb31312eb) - Fixes unmounted component state update warnings for AtlassianNavigation
36
+ - [`f460cc7c411`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f460cc7c411) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving bundle size.
37
+ - Updated dependencies
38
+
39
+ ## 1.2.1
40
+
41
+ ### Patch Changes
42
+
43
+ - [`bb54a699e54`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bb54a699e54) - [ux] Fixes a bug where a previously removed gradient positioned ::after primary actions was still rendered. Also fixes a bug where this gradient rendered incorrectly on Safari.
44
+
45
+ ## 1.2.0
46
+
47
+ ### Minor Changes
48
+
49
+ - [`c9986657899`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c9986657899) - Instrumented atlassian-navigation with the new theming package, @atlaskit/tokens.
50
+
51
+ New tokens will be visible only in applications configured to use the new Tokens API (currently in alpha). These changes are intended to be interoperable with the legacy theme implementation. Legacy dark mode users should expect no visual or breaking changes.
52
+
53
+ ### Patch Changes
54
+
55
+ - [`f791fab1bfa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f791fab1bfa) - Added missing `components` and `onBlur` props to the props type used by secondary actions. These were already available but were not documented.
56
+ - Updated dependencies
57
+
3
58
  ## 1.1.3
4
59
 
5
60
  ### Patch Changes
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.CREATE_BREAKPOINT = exports.PRODUCT_HOME_BREAKPOINT = exports.HORIZONTAL_GLOBAL_NAV_HEIGHT = void 0;
6
+ exports.PRODUCT_HOME_BREAKPOINT = exports.HORIZONTAL_GLOBAL_NAV_HEIGHT = exports.CREATE_BREAKPOINT = void 0;
7
7
  var HORIZONTAL_GLOBAL_NAV_HEIGHT = 56;
8
8
  exports.HORIZONTAL_GLOBAL_NAV_HEIGHT = HORIZONTAL_GLOBAL_NAV_HEIGHT;
9
9
  var PRODUCT_HOME_BREAKPOINT = 1280;
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.bottomShadow = exports.rightCSS = exports.leftCSS = exports.containerCSS = void 0;
8
+ exports.rightCSS = exports.leftCSS = exports.containerCSS = void 0;
9
9
 
10
10
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
11
 
@@ -25,7 +25,7 @@ var gridSize = (0, _constants.gridSize)();
25
25
 
26
26
  var containerCSS = function containerCSS(_ref) {
27
27
  var navigation = _ref.mode.navigation;
28
- return _objectSpread(_objectSpread({
28
+ return _objectSpread({
29
29
  alignItems: 'center',
30
30
  boxSizing: 'border-box',
31
31
  display: 'flex',
@@ -34,8 +34,28 @@ var containerCSS = function containerCSS(_ref) {
34
34
  paddingLeft: gridSize * 1.5,
35
35
  paddingRight: gridSize * 1.5,
36
36
  height: _constants2.HORIZONTAL_GLOBAL_NAV_HEIGHT,
37
- position: 'relative'
38
- }, bottomShadow), navigation);
37
+ position: 'relative',
38
+ '[data-theme="light"] &, [data-theme="dark"] &': {
39
+ // eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
40
+ borderBottom: "1px solid ".concat("var(--ds-border-neutral, #091E4224)"),
41
+ // TODO: (DSP-2087) Remove the below once tokens have launched
42
+ '&::after': {
43
+ content: 'none'
44
+ }
45
+ },
46
+ // TODO: (DSP-2087) Remove the below once tokens have launched
47
+ '&::after': {
48
+ content: '""',
49
+ position: 'absolute',
50
+ left: 0,
51
+ right: 0,
52
+ top: '100%',
53
+ height: gridSize / 2,
54
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
55
+ background: "linear-gradient(180deg, ".concat(_colors.N40A, " 0, ").concat(_colors.N40A, " 1px, ").concat(_colors.N30A, " 1px, ").concat((0, _theme.hexToRGBA)( // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
56
+ _colors.N900, 0), " 4px)")
57
+ }
58
+ }, navigation);
39
59
  };
40
60
 
41
61
  exports.containerCSS = containerCSS;
@@ -59,16 +79,4 @@ var rightCSS = {
59
79
  marginRight: gridSize / 2
60
80
  }
61
81
  };
62
- exports.rightCSS = rightCSS;
63
- var bottomShadow = {
64
- '&::after': {
65
- content: '""',
66
- position: 'absolute',
67
- left: 0,
68
- right: 0,
69
- top: '100%',
70
- height: gridSize / 2,
71
- background: "linear-gradient(180deg, ".concat(_colors.N40A, " 0, ").concat(_colors.N40A, " 1px, ").concat(_colors.N30A, " 1px, ").concat((0, _theme.hexToRGBA)(_colors.N900, 0), " 4px)")
72
- }
73
- };
74
- exports.bottomShadow = bottomShadow;
82
+ exports.rightCSS = rightCSS;
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.iconButtonSkeletonCSS = exports.getIconButtonTheme = exports.padding = exports.margin = void 0;
8
+ exports.padding = exports.margin = exports.iconButtonSkeletonCSS = exports.getIconButtonTheme = void 0;
9
9
 
10
10
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
11
 
@@ -45,13 +45,13 @@ var getIconButtonTheme = function getIconButtonTheme(_ref) {
45
45
  }, iconButton.default), {}, {
46
46
  ':hover': iconButton.hover,
47
47
  ':focus': iconButton.focus,
48
- // :active doesn't work in FF, becasue we do a
48
+ // :active doesn't work in FF, because we do a
49
49
  // e.preventDefault() on mouse down in Button.
50
50
  // '&&' is required to add more CSS specificity
51
51
  // && it not a valid CSSObject property
52
52
  // @ts-ignore
53
53
  '&&': _objectSpread({}, props.state === 'active' && iconButton.active)
54
- }, props.state === 'selected' && iconButton.active), {}, {
54
+ }, props.state === 'selected' && iconButton.selected), {}, {
55
55
  '> span': {
56
56
  margin: 0
57
57
  }
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.isHighlightedCSS = exports.primaryButtonSkeletonCSS = exports.getPrimaryButtonTheme = exports.padding = exports.margin = exports.buttonHeight = void 0;
8
+ exports.primaryButtonSkeletonCSS = exports.padding = exports.margin = exports.isHighlightedCSS = exports.getPrimaryButtonTheme = exports.buttonHeight = void 0;
9
9
 
10
10
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
11
 
@@ -37,14 +37,14 @@ var getPrimaryButtonTheme = function getPrimaryButtonTheme(_ref) {
37
37
  spinnerStyles = _current.spinnerStyles;
38
38
 
39
39
  return {
40
- buttonStyles: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, buttonStyles), primaryButton.default), props.isSelected && primaryButton.active), {}, {
40
+ buttonStyles: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, buttonStyles), primaryButton.default), props.isSelected && primaryButton.selected), {}, {
41
41
  fontWeight: 500,
42
42
  padding: '0 4px',
43
43
  marginLeft: 0,
44
44
  marginRight: 0,
45
45
  ':hover': primaryButton.hover,
46
46
  ':focus': primaryButton.focus,
47
- // :active doesn't work in FF, becasue we do a
47
+ // :active doesn't work in FF, because we do a
48
48
  // e.preventDefault() on mouse down in Button.
49
49
  // '&&' is required to add more CSS specificity
50
50
  // && it not a valid CSSObject property
@@ -59,16 +59,6 @@ var PrimaryItemsContainer = function PrimaryItemsContainer(_ref) {
59
59
  testId: testId ? "".concat(testId, "-overflow-menu-trigger") : 'overflow-menu-trigger'
60
60
  }, triggerProps), moreLabel);
61
61
  }, [moreLabel, onMoreClick, isMoreOpen, testId]);
62
-
63
- var WidthObserverRelativeWrapper = function WidthObserverRelativeWrapper() {
64
- return (0, _core.jsx)("div", {
65
- style: _styles.widthObserverContainerStyle
66
- }, (0, _core.jsx)(_widthDetector.WidthObserver, {
67
- offscreen: true,
68
- setWidth: updateWidth
69
- }));
70
- };
71
-
72
62
  var content = (0, _react.useCallback)(function () {
73
63
  return (0, _core.jsx)(_overflow.OverflowProvider, {
74
64
  isVisible: false,
@@ -93,7 +83,12 @@ var PrimaryItemsContainer = function PrimaryItemsContainer(_ref) {
93
83
  onClose: onMoreClose,
94
84
  trigger: trigger,
95
85
  testId: testId ? "".concat(testId, "-overflow-menu-popup") : 'overflow-menu-popup'
96
- }), Create && (0, _core.jsx)(Create, null), (0, _core.jsx)(WidthObserverRelativeWrapper, null));
86
+ }), Create && (0, _core.jsx)(Create, null), (0, _core.jsx)("div", {
87
+ style: _styles.widthObserverContainerStyle
88
+ }, (0, _core.jsx)(_widthDetector.WidthObserver, {
89
+ offscreen: true,
90
+ setWidth: updateWidth
91
+ })));
97
92
  };
98
93
 
99
94
  exports.PrimaryItemsContainer = PrimaryItemsContainer;
@@ -3,12 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.primaryButtonSkeletonCSS = exports.widthObserverContainerStyle = exports.containerCSS = void 0;
6
+ exports.widthObserverContainerStyle = exports.primaryButtonSkeletonCSS = exports.containerCSS = void 0;
7
7
 
8
8
  var _constants = require("@atlaskit/theme/constants");
9
9
 
10
- var _theme = require("../../theme");
11
-
12
10
  var margin = "0 ".concat((0, _constants.gridSize)() / 2, "px");
13
11
 
14
12
  var containerCSS = function containerCSS(_ref) {
@@ -24,15 +22,6 @@ var containerCSS = function containerCSS(_ref) {
24
22
  '& > *': {
25
23
  flexShrink: 0,
26
24
  margin: margin
27
- },
28
- '&::after': {
29
- content: '""',
30
- position: 'absolute',
31
- top: 0,
32
- right: 0,
33
- height: '100%',
34
- width: "".concat((0, _constants.gridSize)() * 3, "px"),
35
- background: "linear-gradient(90deg, ".concat((0, _theme.hexToRGBA)(navigation.backgroundColor, 0), " 0%, ").concat((0, _theme.hexToRGBA)(navigation.backgroundColor, 0.7), " 50%, ").concat((0, _theme.hexToRGBA)(navigation.backgroundColor, 1), " 100%)")
36
25
  }
37
26
  };
38
27
  };
@@ -5,16 +5,16 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- Object.defineProperty(exports, "ProductHome", {
8
+ Object.defineProperty(exports, "CustomProductHome", {
9
9
  enumerable: true,
10
10
  get: function get() {
11
- return _productHome.default;
11
+ return _customProductHome.default;
12
12
  }
13
13
  });
14
- Object.defineProperty(exports, "CustomProductHome", {
14
+ Object.defineProperty(exports, "ProductHome", {
15
15
  enumerable: true,
16
16
  get: function get() {
17
- return _customProductHome.default;
17
+ return _productHome.default;
18
18
  }
19
19
  });
20
20
 
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.customProductLogoCSS = exports.productLogoSkeletonCSS = exports.siteTitleSkeletonCSS = exports.siteTitleCSS = exports.productLogoCSS = exports.customProductIconCSS = exports.productIconSkeletonCSS = exports.productIconCSS = exports.productHomeButtonSkeletonCSS = exports.productHomeButtonCSS = void 0;
8
+ exports.siteTitleSkeletonCSS = exports.siteTitleCSS = exports.productLogoSkeletonCSS = exports.productLogoCSS = exports.productIconSkeletonCSS = exports.productIconCSS = exports.productHomeButtonSkeletonCSS = exports.productHomeButtonCSS = exports.customProductLogoCSS = exports.customProductIconCSS = void 0;
9
9
 
10
10
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
11
 
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.searchInputSkeletonCSS = exports.searchInputIconCSS = exports.searchInputCSS = exports.searchInputContainerCSS = exports.searchIconSkeletonCSS = exports.searchIconCSS = void 0;
8
+ exports.searchInputSkeletonCSS = exports.searchInputIconCSS = exports.searchInputContainerCSS = exports.searchInputCSS = exports.searchIconSkeletonCSS = exports.searchIconCSS = void 0;
9
9
 
10
10
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
11
 
@@ -7,7 +7,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
7
7
  Object.defineProperty(exports, "__esModule", {
8
8
  value: true
9
9
  });
10
- exports.default = exports.useOverflowController = exports.useOverflowStatus = exports.OverflowProvider = void 0;
10
+ exports.useOverflowStatus = exports.useOverflowController = exports.default = exports.OverflowProvider = void 0;
11
11
 
12
12
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
13
13
 
package/dist/cjs/index.js CHANGED
@@ -3,16 +3,16 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "AtlassianNavigation", {
6
+ Object.defineProperty(exports, "AppSwitcher", {
7
7
  enumerable: true,
8
8
  get: function get() {
9
- return _AtlassianNavigation.AtlassianNavigation;
9
+ return _AppSwitcher.AppSwitcher;
10
10
  }
11
11
  });
12
- Object.defineProperty(exports, "AppSwitcher", {
12
+ Object.defineProperty(exports, "AtlassianNavigation", {
13
13
  enumerable: true,
14
14
  get: function get() {
15
- return _AppSwitcher.AppSwitcher;
15
+ return _AtlassianNavigation.AtlassianNavigation;
16
16
  }
17
17
  });
18
18
  Object.defineProperty(exports, "Create", {
@@ -21,40 +21,46 @@ Object.defineProperty(exports, "Create", {
21
21
  return _Create.Create;
22
22
  }
23
23
  });
24
- Object.defineProperty(exports, "Help", {
24
+ Object.defineProperty(exports, "CustomProductHome", {
25
25
  enumerable: true,
26
26
  get: function get() {
27
- return _Help.Help;
27
+ return _ProductHome.CustomProductHome;
28
28
  }
29
29
  });
30
- Object.defineProperty(exports, "Notifications", {
30
+ Object.defineProperty(exports, "HORIZONTAL_GLOBAL_NAV_HEIGHT", {
31
31
  enumerable: true,
32
32
  get: function get() {
33
- return _Notifications.Notifications;
33
+ return _constants.HORIZONTAL_GLOBAL_NAV_HEIGHT;
34
34
  }
35
35
  });
36
- Object.defineProperty(exports, "PrimaryButton", {
36
+ Object.defineProperty(exports, "Help", {
37
37
  enumerable: true,
38
38
  get: function get() {
39
- return _PrimaryButton.PrimaryButton;
39
+ return _Help.Help;
40
40
  }
41
41
  });
42
- Object.defineProperty(exports, "PrimaryDropdownButton", {
42
+ Object.defineProperty(exports, "IconButton", {
43
43
  enumerable: true,
44
44
  get: function get() {
45
- return _PrimaryDropdownButton.PrimaryDropdownButton;
45
+ return _IconButton.IconButton;
46
46
  }
47
47
  });
48
- Object.defineProperty(exports, "IconButton", {
48
+ Object.defineProperty(exports, "Notifications", {
49
49
  enumerable: true,
50
50
  get: function get() {
51
- return _IconButton.IconButton;
51
+ return _Notifications.Notifications;
52
52
  }
53
53
  });
54
- Object.defineProperty(exports, "CustomProductHome", {
54
+ Object.defineProperty(exports, "PrimaryButton", {
55
55
  enumerable: true,
56
56
  get: function get() {
57
- return _ProductHome.CustomProductHome;
57
+ return _PrimaryButton.PrimaryButton;
58
+ }
59
+ });
60
+ Object.defineProperty(exports, "PrimaryDropdownButton", {
61
+ enumerable: true,
62
+ get: function get() {
63
+ return _PrimaryDropdownButton.PrimaryDropdownButton;
58
64
  }
59
65
  });
60
66
  Object.defineProperty(exports, "ProductHome", {
@@ -87,16 +93,10 @@ Object.defineProperty(exports, "SignIn", {
87
93
  return _SignIn.SignIn;
88
94
  }
89
95
  });
90
- Object.defineProperty(exports, "useOverflowStatus", {
91
- enumerable: true,
92
- get: function get() {
93
- return _overflow.useOverflowStatus;
94
- }
95
- });
96
- Object.defineProperty(exports, "HORIZONTAL_GLOBAL_NAV_HEIGHT", {
96
+ Object.defineProperty(exports, "ThemeProvider", {
97
97
  enumerable: true,
98
98
  get: function get() {
99
- return _constants.HORIZONTAL_GLOBAL_NAV_HEIGHT;
99
+ return _theme.ThemeProvider;
100
100
  }
101
101
  });
102
102
  Object.defineProperty(exports, "atlassianTheme", {
@@ -111,10 +111,10 @@ Object.defineProperty(exports, "generateTheme", {
111
111
  return _theme.generateTheme;
112
112
  }
113
113
  });
114
- Object.defineProperty(exports, "ThemeProvider", {
114
+ Object.defineProperty(exports, "useOverflowStatus", {
115
115
  enumerable: true,
116
116
  get: function get() {
117
- return _theme.ThemeProvider;
117
+ return _overflow.useOverflowStatus;
118
118
  }
119
119
  });
120
120
 
@@ -13,24 +13,24 @@ var defaultTheme = {
13
13
  mode: {
14
14
  create: {
15
15
  active: {
16
- color: _colors.N0,
17
- backgroundColor: (0, _themeHelpers.hexToRGBA)(_colors.B400, 0.8),
18
- boxShadow: '0 0 0 2px transparent'
16
+ color: "var(--ds-text-onBold, ".concat(_colors.N0, ")"),
17
+ backgroundColor: "var(--ds-background-boldBrand-pressed, ".concat((0, _themeHelpers.hexToRGBA)(_colors.B400, 0.8), ")"),
18
+ boxShadow: ''
19
19
  },
20
20
  default: {
21
- color: _colors.N0,
22
- backgroundColor: _colors.B400,
23
- boxShadow: '0 0 0 2px transparent'
21
+ color: "var(--ds-text-onBold, ".concat(_colors.N0, ")"),
22
+ backgroundColor: "var(--ds-background-boldBrand-resting, ".concat(_colors.B400, ")"),
23
+ boxShadow: ''
24
24
  },
25
25
  focus: {
26
- color: _colors.N0,
27
- backgroundColor: _colors.B400,
28
- boxShadow: '0 0 0 2px rgb(128,169,230)'
26
+ color: "var(--ds-text-onBold, ".concat(_colors.N0, ")"),
27
+ backgroundColor: "var(--ds-background-boldBrand-resting, ".concat(_colors.B400, ")"),
28
+ boxShadow: "0 0 0 2px ".concat("var(--ds-border-focus, rgb(128,169,230))")
29
29
  },
30
30
  hover: {
31
- color: _colors.N0,
32
- backgroundColor: (0, _themeHelpers.hexToRGBA)(_colors.B400, 0.9),
33
- boxShadow: '0 0 0 2px transparent'
31
+ color: "var(--ds-text-onBold, ".concat(_colors.N0, ")"),
32
+ backgroundColor: "var(--ds-background-boldBrand-hover, ".concat((0, _themeHelpers.hexToRGBA)(_colors.B400, 0.9), ")"),
33
+ boxShadow: ''
34
34
  },
35
35
  selected: {
36
36
  color: '',
@@ -40,88 +40,92 @@ var defaultTheme = {
40
40
  },
41
41
  iconButton: {
42
42
  active: {
43
- color: _colors.B400,
44
- backgroundColor: (0, _themeHelpers.hexToRGBA)(_colors.B50, 0.6),
43
+ color: "var(--ds-text-mediumEmphasis, ".concat(_colors.B400, ")"),
44
+ backgroundColor: "var(--ds-background-subtleNeutral-pressed, ".concat((0, _themeHelpers.hexToRGBA)(_colors.B50, 0.6), ")"),
45
45
  boxShadow: ''
46
46
  },
47
47
  default: {
48
- color: _colors.N600,
48
+ color: "var(--ds-text-mediumEmphasis, ".concat(_colors.N600, ")"),
49
49
  backgroundColor: 'transparent',
50
50
  boxShadow: ''
51
51
  },
52
52
  focus: {
53
- color: _colors.N600,
54
- backgroundColor: (0, _themeHelpers.hexToRGBA)(_colors.B50, 0.5),
55
- boxShadow: "0 0 0 2px ".concat(_colors.B200)
53
+ color: "var(--ds-text-mediumEmphasis, ".concat(_colors.N600, ")"),
54
+ backgroundColor: "var(--ds-background-subtleBrand-hover, ".concat((0, _themeHelpers.hexToRGBA)(_colors.B50, 0.5), ")"),
55
+ boxShadow: "0 0 0 2px ".concat("var(--ds-border-focus, ".concat(_colors.B200, ")"))
56
56
  },
57
57
  hover: {
58
- color: _colors.B400,
59
- backgroundColor: (0, _themeHelpers.hexToRGBA)(_colors.B50, 0.9),
58
+ color: "var(--ds-text-mediumEmphasis, ".concat(_colors.B400, ")"),
59
+ backgroundColor: "var(--ds-background-subtleNeutral-hover, ".concat((0, _themeHelpers.hexToRGBA)(_colors.B50, 0.9), ")"),
60
60
  boxShadow: ''
61
61
  },
62
62
  selected: {
63
- color: '',
64
- backgroundColor: '',
63
+ color: "var(--ds-text-selected)",
64
+ backgroundColor: "var(--ds-background-selected-resting)",
65
65
  boxShadow: ''
66
66
  }
67
67
  },
68
68
  navigation: {
69
- backgroundColor: _colors.N0,
70
- color: _colors.N200
69
+ backgroundColor: "var(--ds-background-default, ".concat(_colors.N0, ")"),
70
+ color: "var(--ds-text-lowEmphasis, ".concat(_colors.N200, ")")
71
71
  },
72
72
  productHome: {
73
- backgroundColor: _colors.B400,
74
- color: _colors.N700,
75
- borderRight: "1px solid ".concat((0, _themeHelpers.hexToRGBA)(_colors.N200, 0.3)),
73
+ backgroundColor: "var(--ds-text-brand, ".concat(_colors.B400, ")"),
74
+ color: "var(--ds-text-highEmphasis, ".concat(_colors.N700, ")"),
75
+ borderRight: "1px solid ".concat("var(--ds-border-neutral, ".concat((0, _themeHelpers.hexToRGBA)(_colors.N200, 0.3), ")")),
76
+ // TODO: (DSP-1256) These colors should be moved into the Logo package
77
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
76
78
  iconGradientStart: _colors.B400,
79
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
77
80
  iconGradientStop: _colors.B200,
81
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
78
82
  iconColor: _colors.B200
79
83
  },
80
84
  primaryButton: {
81
85
  active: {
82
- color: _colors.B400,
83
- backgroundColor: (0, _themeHelpers.hexToRGBA)(_colors.B50, 0.7),
84
- boxShadow: '0 0 0 2px transparent'
86
+ color: "var(--ds-text-mediumEmphasis, ".concat(_colors.B400, ")"),
87
+ backgroundColor: "var(--ds-background-subtleNeutral-pressed, ".concat((0, _themeHelpers.hexToRGBA)(_colors.B50, 0.7), ")"),
88
+ boxShadow: ''
85
89
  },
86
90
  default: {
87
- color: _colors.N600,
91
+ color: "var(--ds-text-mediumEmphasis, ".concat(_colors.N600, ")"),
88
92
  backgroundColor: 'transparent',
89
- boxShadow: '0 0 0 2px transparent'
93
+ boxShadow: ''
90
94
  },
91
95
  focus: {
92
- color: _colors.N600,
96
+ color: "var(--ds-text-mediumEmphasis, ".concat(_colors.N600, ")"),
93
97
  backgroundColor: '',
94
- boxShadow: "0 0 0 2px ".concat(_colors.B200)
98
+ boxShadow: "0 0 0 2px ".concat("var(--ds-border-focus, ".concat(_colors.B200, ")"))
95
99
  },
96
100
  hover: {
97
- color: _colors.B400,
98
- backgroundColor: (0, _themeHelpers.hexToRGBA)(_colors.B50, 0.9),
99
- boxShadow: '0 0 0 2px transparent'
101
+ color: "var(--ds-text-mediumEmphasis, ".concat(_colors.B400, ")"),
102
+ backgroundColor: "var(--ds-background-subtleNeutral-hover, ".concat((0, _themeHelpers.hexToRGBA)(_colors.B50, 0.9), ")"),
103
+ boxShadow: ''
100
104
  },
101
105
  selected: {
102
- color: _colors.B400,
103
- backgroundColor: '',
106
+ color: "var(--ds-text-mediumEmphasis, ".concat(_colors.B400, ")"),
107
+ backgroundColor: "var(--ds-background-selected-resting)",
104
108
  boxShadow: '',
105
- borderColor: _colors.B400,
106
- bordorBottom: "4px solid ".concat(_colors.B400)
109
+ borderColor: "var(--ds-iconBorder-brand, ".concat(_colors.B400, ")"),
110
+ bordorBottom: "4px solid ".concat("var(--ds-iconBorder-brand, ".concat(_colors.B400, ")"))
107
111
  }
108
112
  },
109
113
  search: {
110
114
  default: {
111
- backgroundColor: _colors.N0,
112
- color: _colors.N200,
113
- borderColor: _colors.N40
115
+ backgroundColor: "var(--ds-background-default, ".concat(_colors.N0, ")"),
116
+ color: "var(--ds-text-lowEmphasis, ".concat(_colors.N200, ")"),
117
+ borderColor: "var(--ds-border-neutral, ".concat(_colors.N40, ")")
114
118
  },
115
119
  focus: {
116
- borderColor: _colors.B200
120
+ borderColor: "var(--ds-border-focus, ".concat(_colors.B200, ")")
117
121
  },
118
122
  hover: {
119
- color: _colors.B400,
120
- backgroundColor: (0, _themeHelpers.hexToRGBA)(_colors.B50, 0.9)
123
+ color: "var(--ds-text-brand, ".concat(_colors.B400, ")"),
124
+ backgroundColor: "var(--ds-background-default, ".concat((0, _themeHelpers.hexToRGBA)(_colors.B50, 0.9), ")")
121
125
  }
122
126
  },
123
127
  skeleton: {
124
- backgroundColor: _colors.N20,
128
+ backgroundColor: "var(--ds-background-subtleNeutral-resting, ".concat(_colors.N20, ")"),
125
129
  opacity: 1
126
130
  }
127
131
  }
@@ -3,12 +3,6 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "generateTheme", {
7
- enumerable: true,
8
- get: function get() {
9
- return _themeGenerator.generateTheme;
10
- }
11
- });
12
6
  Object.defineProperty(exports, "ThemeProvider", {
13
7
  enumerable: true,
14
8
  get: function get() {
@@ -27,10 +21,10 @@ Object.defineProperty(exports, "defaultTheme", {
27
21
  return _themes.defaultTheme;
28
22
  }
29
23
  });
30
- Object.defineProperty(exports, "useTheme", {
24
+ Object.defineProperty(exports, "generateTheme", {
31
25
  enumerable: true,
32
26
  get: function get() {
33
- return _useTheme.useTheme;
27
+ return _themeGenerator.generateTheme;
34
28
  }
35
29
  });
36
30
  Object.defineProperty(exports, "hexToRGBA", {
@@ -39,6 +33,12 @@ Object.defineProperty(exports, "hexToRGBA", {
39
33
  return _themeHelpers.hexToRGBA;
40
34
  }
41
35
  });
36
+ Object.defineProperty(exports, "useTheme", {
37
+ enumerable: true,
38
+ get: function get() {
39
+ return _useTheme.useTheme;
40
+ }
41
+ });
42
42
 
43
43
  var _themeGenerator = require("./themeGenerator");
44
44
 
@@ -7,7 +7,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
7
7
  Object.defineProperty(exports, "__esModule", {
8
8
  value: true
9
9
  });
10
- exports.default = exports.generateTheme = void 0;
10
+ exports.generateTheme = exports.default = void 0;
11
11
 
12
12
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
13
13
 
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.getContrastColor = exports.generateTextColor = exports.convertHexShorthand = exports.getBoxShadow = exports.hexToRGBA = void 0;
8
+ exports.hexToRGBA = exports.getContrastColor = exports.getBoxShadow = exports.generateTextColor = exports.convertHexShorthand = void 0;
9
9
 
10
10
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
11
11
 
@@ -13,7 +13,9 @@ var _themeGenerator = require("./themeGenerator");
13
13
 
14
14
  var atlassianTheme = (0, _themeGenerator.generateTheme)({
15
15
  name: _defaultTheme.DEFAULT_THEME_NAME,
16
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
16
17
  backgroundColor: _colors.N0,
18
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
17
19
  highlightColor: _colors.B400
18
20
  });
19
21
  exports.atlassianTheme = atlassianTheme;