@atlaskit/atlassian-navigation 2.6.6 → 2.6.8

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 (47) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/components/Create/skeleton.js +2 -2
  3. package/dist/cjs/components/IconButton/skeleton.js +1 -1
  4. package/dist/cjs/components/IconButton/styles.js +1 -1
  5. package/dist/cjs/components/PrimaryButton/index.js +2 -2
  6. package/dist/cjs/components/PrimaryButton/skeleton.js +1 -1
  7. package/dist/cjs/components/PrimaryItemsContainerV2/index.js +3 -3
  8. package/dist/cjs/components/ProductHome/custom-product-home.js +1 -1
  9. package/dist/cjs/components/ProductHome/product-home.js +2 -2
  10. package/dist/cjs/components/ProductHome/skeleton.js +3 -3
  11. package/dist/cjs/components/Search/index.js +3 -3
  12. package/dist/cjs/components/Search/skeleton.js +1 -1
  13. package/dist/cjs/components/SkeletonCreateButton/index.js +3 -3
  14. package/dist/cjs/components/SkeletonIconButton/index.js +2 -2
  15. package/dist/cjs/components/SkeletonPrimaryButton/index.js +5 -5
  16. package/dist/cjs/version.json +1 -1
  17. package/dist/es2019/components/Create/skeleton.js +2 -2
  18. package/dist/es2019/components/IconButton/skeleton.js +1 -1
  19. package/dist/es2019/components/IconButton/styles.js +1 -1
  20. package/dist/es2019/components/PrimaryButton/index.js +2 -2
  21. package/dist/es2019/components/PrimaryButton/skeleton.js +1 -1
  22. package/dist/es2019/components/PrimaryItemsContainerV2/index.js +2 -2
  23. package/dist/es2019/components/ProductHome/custom-product-home.js +1 -1
  24. package/dist/es2019/components/ProductHome/product-home.js +2 -2
  25. package/dist/es2019/components/ProductHome/skeleton.js +3 -3
  26. package/dist/es2019/components/Search/index.js +3 -3
  27. package/dist/es2019/components/Search/skeleton.js +1 -1
  28. package/dist/es2019/components/SkeletonCreateButton/index.js +3 -3
  29. package/dist/es2019/components/SkeletonIconButton/index.js +2 -2
  30. package/dist/es2019/components/SkeletonPrimaryButton/index.js +5 -5
  31. package/dist/es2019/version.json +1 -1
  32. package/dist/esm/components/Create/skeleton.js +2 -2
  33. package/dist/esm/components/IconButton/skeleton.js +1 -1
  34. package/dist/esm/components/IconButton/styles.js +1 -1
  35. package/dist/esm/components/PrimaryButton/index.js +2 -2
  36. package/dist/esm/components/PrimaryButton/skeleton.js +1 -1
  37. package/dist/esm/components/PrimaryItemsContainerV2/index.js +2 -2
  38. package/dist/esm/components/ProductHome/custom-product-home.js +1 -1
  39. package/dist/esm/components/ProductHome/product-home.js +2 -2
  40. package/dist/esm/components/ProductHome/skeleton.js +3 -3
  41. package/dist/esm/components/Search/index.js +3 -3
  42. package/dist/esm/components/Search/skeleton.js +1 -1
  43. package/dist/esm/components/SkeletonCreateButton/index.js +3 -3
  44. package/dist/esm/components/SkeletonIconButton/index.js +2 -2
  45. package/dist/esm/components/SkeletonPrimaryButton/index.js +5 -5
  46. package/dist/esm/version.json +1 -1
  47. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/atlassian-navigation
2
2
 
3
+ ## 2.6.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [`37131e3a8ea`](https://bitbucket.org/atlassian/atlassian-frontend/commits/37131e3a8ea) - Uses the Alpha release of our responsive media helpers via either the public `media` export or the internal `UNSAFE_media` export.
8
+ - Updated dependencies
9
+
10
+ ## 2.6.7
11
+
12
+ ### Patch Changes
13
+
14
+ - [`967dd926bfc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/967dd926bfc) - Updates all navigation components to use border/shape tokens. This is a no-op as these tokens are not enabled in product.
15
+ - Updated dependencies
16
+
3
17
  ## 2.6.6
4
18
 
5
19
  ### Patch Changes
@@ -17,8 +17,8 @@ var buttonHeight = "var(--ds-space-400, 32px)";
17
17
  var skeletonStyles = (0, _react2.css)({
18
18
  width: 68,
19
19
  height: buttonHeight,
20
- marginLeft: "var(--ds-space-150, 12px)",
21
- borderRadius: 3,
20
+ borderRadius: "var(--ds-border-radius, 3px)",
21
+ marginInlineStart: "var(--ds-space-150, 12px)",
22
22
  opacity: 0.15
23
23
  });
24
24
  var mobileStyles = (0, _react2.css)((0, _defineProperty2.default)({}, "@media (max-width: ".concat(_constants.CREATE_BREAKPOINT - 1, "px)"), {
@@ -12,7 +12,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
12
12
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } /** @jsx jsx */
13
13
  var buttonHeight = "var(--ds-space-400, 32px)";
14
14
  var skeletonStyles = (0, _react.css)({
15
- borderRadius: '50%',
15
+ borderRadius: "var(--ds-border-radius-circle, 50%)",
16
16
  opacity: 0.15
17
17
  });
18
18
 
@@ -16,7 +16,7 @@ var getIconButtonTheme = function getIconButtonTheme(_ref) {
16
16
  spinnerStyles = _current.spinnerStyles;
17
17
  return {
18
18
  buttonStyles: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, buttonStyles), {}, {
19
- borderRadius: '100%',
19
+ borderRadius: "var(--ds-border-radius-circle, 100%)",
20
20
  display: 'flex',
21
21
  margin: '0 2px',
22
22
  padding: 4,
@@ -38,8 +38,8 @@ var buttonHighlightedStyles = (0, _react2.css)({
38
38
  bottom: 0,
39
39
  left: "var(--ds-space-050, 4px)",
40
40
  backgroundColor: "var(".concat(VAR_BUTTON_SELECTED_BORDER_COLOR, ")"),
41
- borderTopLeftRadius: 1,
42
- borderTopRightRadius: 1,
41
+ borderTopLeftRadius: "var(--ds-border-radius-050, 1px)",
42
+ borderTopRightRadius: "var(--ds-border-radius-050, 1px)",
43
43
  content: '""'
44
44
  }
45
45
  });
@@ -14,7 +14,7 @@ var skeletonStyles = (0, _react.css)({
14
14
  display: 'inline-flex',
15
15
  width: '68px',
16
16
  height: "".concat(buttonHeight - paddingAll * 2.5, "px"),
17
- borderRadius: "var(--ds-radius-100, 4px)",
17
+ borderRadius: "var(--ds-border-radius, 4px)",
18
18
  opacity: 0.15
19
19
  });
20
20
 
@@ -32,12 +32,12 @@ var basePrimaryContainerStyles = (0, _react2.css)({
32
32
  var smallContainerStyles = (0, _react2.css)((0, _defineProperty2.default)({}, _responsive.UNSAFE_media.below.sm, {
33
33
  display: 'flex'
34
34
  }));
35
- var mediumContainerStyles = (0, _react2.css)((_css2 = {}, (0, _defineProperty2.default)(_css2, _responsive.UNSAFE_media.above.sm, {
35
+ var mediumContainerStyles = (0, _react2.css)((_css2 = {}, (0, _defineProperty2.default)(_css2, _responsive.media.above.sm, {
36
36
  display: 'flex'
37
- }), (0, _defineProperty2.default)(_css2, _responsive.UNSAFE_media.above.lg, {
37
+ }), (0, _defineProperty2.default)(_css2, _responsive.media.above.lg, {
38
38
  display: 'none'
39
39
  }), _css2));
40
- var largeContainerStyles = (0, _react2.css)((0, _defineProperty2.default)({}, _responsive.UNSAFE_media.above.lg, {
40
+ var largeContainerStyles = (0, _react2.css)((0, _defineProperty2.default)({}, _responsive.media.above.lg, {
41
41
  display: 'flex'
42
42
  }));
43
43
  var MoreItemsPopup = function MoreItemsPopup(_ref) {
@@ -49,7 +49,7 @@ var productHomeButtonStyles = (0, _react2.css)((_css3 = {
49
49
  alignItems: 'center',
50
50
  background: 'none',
51
51
  border: 0,
52
- borderRadius: 3,
52
+ borderRadius: "var(--ds-border-radius, 3px)",
53
53
  color: 'inherit',
54
54
  cursor: 'pointer',
55
55
  '&::-moz-focus-inner': {
@@ -33,7 +33,7 @@ var productHomeButtonStyles = (0, _react2.css)((_css = {
33
33
  alignItems: 'center',
34
34
  background: 'none',
35
35
  border: 0,
36
- borderRadius: 3,
36
+ borderRadius: "var(--ds-border-radius, 3px)",
37
37
  color: 'inherit',
38
38
  cursor: 'pointer',
39
39
  '&::-moz-focus-inner': {
@@ -55,7 +55,7 @@ var productHomeButtonStyles = (0, _react2.css)((_css = {
55
55
  '&:focus-visible': {
56
56
  backgroundColor: "var(".concat(VAR_PRODUCT_HOME_BACKGROUND_COLOR_FOCUS, ")"),
57
57
  color: "var(".concat(VAR_PRODUCT_HOME_COLOR_FOCUS, ")"),
58
- outline: "2px solid ".concat("var(--ds-border-focused, #4C9AFF)")
58
+ outline: "var(--ds-border-width-100, 2px)".concat(" solid ", "var(--ds-border-focused, #4C9AFF)")
59
59
  },
60
60
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
61
61
  'div&': {
@@ -28,7 +28,7 @@ var productHomeButtonStyles = (0, _react2.css)((_css = {
28
28
  alignItems: 'center',
29
29
  background: 'none',
30
30
  border: 0,
31
- borderRadius: 3,
31
+ borderRadius: "var(--ds-border-radius, 3px)",
32
32
  color: 'inherit',
33
33
  cursor: 'pointer',
34
34
  '&::-moz-focus-inner': {
@@ -80,7 +80,7 @@ var productIconStyles = (0, _react2.css)((0, _defineProperty2.default)({
80
80
  display: 'flex',
81
81
  width: 28,
82
82
  height: 28,
83
- borderRadius: '50%',
83
+ borderRadius: "var(--ds-border-radius-circle, 50%)",
84
84
  opacity: 0.15,
85
85
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
86
86
  '& > *': {
@@ -101,7 +101,7 @@ var siteTitleStyles = (0, _react2.css)({
101
101
  width: '100%',
102
102
  height: 14,
103
103
  backgroundColor: "var(".concat(VAR_SITE_TITLE_BG_COLOR_AFTER, ")"),
104
- borderRadius: 4,
104
+ borderRadius: "var(--ds-border-radius, 4px)",
105
105
  content: '""'
106
106
  }
107
107
  });
@@ -41,7 +41,7 @@ var searchInputStyles = (0, _react2.css)({
41
41
  backgroundColor: "var(".concat(_constants.varSearchBackgroundColor, ")"),
42
42
  border: '2px solid',
43
43
  borderColor: "var(".concat(_constants.varSearchBorderColor, ")"),
44
- borderRadius: 6,
44
+ borderRadius: "var(--ds-border-radius-200, 6px)",
45
45
  color: "var(".concat(_constants.varSearchColor, ")"),
46
46
  fontSize: "".concat(_constants.fontSize, "px"),
47
47
  outline: 'none',
@@ -67,11 +67,11 @@ var SearchComponent = function SearchComponent(props) {
67
67
  var theme = (0, _theme.useTheme)();
68
68
  var search = theme.mode.search;
69
69
  var onChange = function onChange() {
70
- // @ts-ignore
70
+ // @ts-expect-error
71
71
  onClick && onClick.apply(void 0, arguments);
72
72
  };
73
73
  var onInputClick = function onInputClick() {
74
- // @ts-ignore
74
+ // @ts-expect-error
75
75
  onClick && onClick.apply(void 0, arguments);
76
76
  };
77
77
  var searchInputDynamicStyles = (_searchInputDynamicSt = {}, (0, _defineProperty2.default)(_searchInputDynamicSt, _constants.varSearchBackgroundColor, search.default.backgroundColor), (0, _defineProperty2.default)(_searchInputDynamicSt, _constants.varSearchColor, search.default.color), (0, _defineProperty2.default)(_searchInputDynamicSt, _constants.varSearchBorderColor, search.default.borderColor), (0, _defineProperty2.default)(_searchInputDynamicSt, _constants.varSearchFocusBorderColor, search.focus.borderColor), (0, _defineProperty2.default)(_searchInputDynamicSt, _constants.varSearchHoverBackgroundColor, search.hover.backgroundColor), _searchInputDynamicSt);
@@ -25,7 +25,7 @@ var searchInputSkeletonStyles = (0, _react2.css)({
25
25
  width: '220px',
26
26
  height: "var(--ds-space-400, 32px)",
27
27
  padding: "0 ".concat("var(--ds-space-100, 8px)", " 0 ", "var(--ds-space-500, 40px)"),
28
- borderRadius: 6,
28
+ borderRadius: "var(--ds-border-radius-200, 6px)",
29
29
  opacity: 0.15
30
30
  });
31
31
  var searchIconStyles = (0, _react2.css)((0, _defineProperty2.default)({}, "@media (min-width: ".concat(_constants.CREATE_BREAKPOINT, "px)"), {
@@ -13,9 +13,9 @@ var skeletonCreateButtonStyles = (0, _react.css)({
13
13
  padding: "0 ".concat("var(--ds-space-150, 12px)"),
14
14
  alignSelf: 'center',
15
15
  border: 0,
16
- borderRadius: 3,
17
- fontSize: 14,
18
- fontWeight: 500,
16
+ borderRadius: "var(--ds-border-radius, 3px)",
17
+ fontSize: "var(--ds-font-size-100, 14px)",
18
+ fontWeight: "var(--ds-font-weight-medium, 500)",
19
19
  lineHeight: 1,
20
20
  pointerEvents: 'none',
21
21
  ':focus, :active, :hover': {
@@ -13,7 +13,7 @@ var skeletonIconButtonStyles = (0, _react.css)({
13
13
  marginRight: "var(--ds-space-050, 4px)",
14
14
  padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-075, 6px)"),
15
15
  border: 0,
16
- borderRadius: '100%',
16
+ borderRadius: "var(--ds-border-radius-circle, 100%)",
17
17
  pointerEvents: 'none',
18
18
  ':focus, :active, :hover': {
19
19
  appearance: 'none',
@@ -31,7 +31,7 @@ var skeletonIconButtonStyles = (0, _react.css)({
31
31
  '& > img': {
32
32
  width: 24,
33
33
  height: 24,
34
- borderRadius: '100%',
34
+ borderRadius: "var(--ds-border-radius-circle, 100%)",
35
35
  verticalAlign: 'middle'
36
36
  }
37
37
  });
@@ -18,8 +18,8 @@ var primaryButtonSkeletonStyles = (0, _react.css)({
18
18
  position: 'relative',
19
19
  appearance: 'none',
20
20
  border: 0,
21
- fontSize: 14,
22
- fontWeight: 500,
21
+ fontSize: "var(--ds-font-size-100, 14px)",
22
+ fontWeight: "var(--ds-font-weight-medium, 500)",
23
23
  lineHeight: 1,
24
24
  pointerEvents: 'none',
25
25
  ':focus, :active, :hover': {
@@ -38,8 +38,8 @@ var isHighlightedStyles = (0, _react.css)({
38
38
  bottom: 0,
39
39
  left: "var(--ds-space-025, 2px)",
40
40
  backgroundColor: "var(".concat(VAR_PRIMARY_BUTTON_BEFORE_HIGHLIGHTED_BACKGROUND_COLOR, ")"),
41
- borderTopLeftRadius: 1,
42
- borderTopRightRadius: 1,
41
+ borderTopLeftRadius: "var(--ds-border-radius-050, 1px)",
42
+ borderTopRightRadius: "var(--ds-border-radius-050, 1px)",
43
43
  content: '""'
44
44
  }
45
45
  });
@@ -67,7 +67,7 @@ var isDropdownButtonStyles = (0, _react.css)({
67
67
  left: 'calc(100% - 3px)',
68
68
  borderBottom: '2px solid',
69
69
  borderColor: "var(".concat(VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR, ")"),
70
- borderRadius: 1,
70
+ borderRadius: "var(--ds-border-radius-050, 1px)",
71
71
  borderRight: '2px solid',
72
72
  content: '""',
73
73
  opacity: 0.51,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "2.6.6",
3
+ "version": "2.6.8",
4
4
  "sideEffects": false
5
5
  }
@@ -8,8 +8,8 @@ const buttonHeight = "var(--ds-space-400, 32px)";
8
8
  const skeletonStyles = css({
9
9
  width: 68,
10
10
  height: buttonHeight,
11
- marginLeft: "var(--ds-space-150, 12px)",
12
- borderRadius: 3,
11
+ borderRadius: "var(--ds-border-radius, 3px)",
12
+ marginInlineStart: "var(--ds-space-150, 12px)",
13
13
  opacity: 0.15
14
14
  });
15
15
  const mobileStyles = css({
@@ -3,7 +3,7 @@ import { css, jsx } from '@emotion/react';
3
3
  import { useTheme } from '../../theme';
4
4
  const buttonHeight = "var(--ds-space-400, 32px)";
5
5
  const skeletonStyles = css({
6
- borderRadius: '50%',
6
+ borderRadius: "var(--ds-border-radius-circle, 50%)",
7
7
  opacity: 0.15
8
8
  });
9
9
 
@@ -10,7 +10,7 @@ export const getIconButtonTheme = ({
10
10
  return {
11
11
  buttonStyles: {
12
12
  ...buttonStyles,
13
- borderRadius: '100%',
13
+ borderRadius: "var(--ds-border-radius-circle, 100%)",
14
14
  display: 'flex',
15
15
  margin: '0 2px',
16
16
  padding: 4,
@@ -28,8 +28,8 @@ const buttonHighlightedStyles = css({
28
28
  bottom: 0,
29
29
  left: "var(--ds-space-050, 4px)",
30
30
  backgroundColor: `var(${VAR_BUTTON_SELECTED_BORDER_COLOR})`,
31
- borderTopLeftRadius: 1,
32
- borderTopRightRadius: 1,
31
+ borderTopLeftRadius: "var(--ds-border-radius-050, 1px)",
32
+ borderTopRightRadius: "var(--ds-border-radius-050, 1px)",
33
33
  content: '""'
34
34
  }
35
35
  });
@@ -8,7 +8,7 @@ const skeletonStyles = css({
8
8
  display: 'inline-flex',
9
9
  width: '68px',
10
10
  height: `${buttonHeight - paddingAll * 2.5}px`,
11
- borderRadius: "var(--ds-radius-100, 4px)",
11
+ borderRadius: "var(--ds-border-radius, 4px)",
12
12
  opacity: 0.15
13
13
  });
14
14
 
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
3
3
  import React, { memo, useCallback, useMemo, useState } from 'react';
4
4
  import { css, jsx } from '@emotion/react';
5
5
  import Popup from '@atlaskit/popup';
6
- import { UNSAFE_media as media } from '@atlaskit/primitives/responsive';
6
+ import { media, UNSAFE_media } from '@atlaskit/primitives/responsive';
7
7
  import { OverflowProvider } from '../../controllers/overflow';
8
8
  import { PrimaryDropdownButton } from '../PrimaryDropdownButton';
9
9
  const parentContainerStyles = css({
@@ -18,7 +18,7 @@ const basePrimaryContainerStyles = css({
18
18
  });
19
19
  const smallContainerStyles = css({
20
20
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
21
- [media.below.sm]: {
21
+ [UNSAFE_media.below.sm]: {
22
22
  display: 'flex'
23
23
  }
24
24
  });
@@ -42,7 +42,7 @@ const productHomeButtonStyles = css({
42
42
  alignItems: 'center',
43
43
  background: 'none',
44
44
  border: 0,
45
- borderRadius: 3,
45
+ borderRadius: "var(--ds-border-radius, 3px)",
46
46
  color: 'inherit',
47
47
  cursor: 'pointer',
48
48
  '&::-moz-focus-inner': {
@@ -22,7 +22,7 @@ const productHomeButtonStyles = css({
22
22
  alignItems: 'center',
23
23
  background: 'none',
24
24
  border: 0,
25
- borderRadius: 3,
25
+ borderRadius: "var(--ds-border-radius, 3px)",
26
26
  color: 'inherit',
27
27
  cursor: 'pointer',
28
28
  '&::-moz-focus-inner': {
@@ -44,7 +44,7 @@ const productHomeButtonStyles = css({
44
44
  '&:focus-visible': {
45
45
  backgroundColor: `var(${VAR_PRODUCT_HOME_BACKGROUND_COLOR_FOCUS})`,
46
46
  color: `var(${VAR_PRODUCT_HOME_COLOR_FOCUS})`,
47
- outline: `2px solid ${"var(--ds-border-focused, #4C9AFF)"}`
47
+ outline: `${"var(--ds-border-width-100, 2px)"} solid ${"var(--ds-border-focused, #4C9AFF)"}`
48
48
  },
49
49
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
50
50
  'div&': {
@@ -20,7 +20,7 @@ const productHomeButtonStyles = css({
20
20
  alignItems: 'center',
21
21
  background: 'none',
22
22
  border: 0,
23
- borderRadius: 3,
23
+ borderRadius: "var(--ds-border-radius, 3px)",
24
24
  color: 'inherit',
25
25
  cursor: 'pointer',
26
26
  '&::-moz-focus-inner': {
@@ -78,7 +78,7 @@ const productIconStyles = css({
78
78
  display: 'flex',
79
79
  width: 28,
80
80
  height: 28,
81
- borderRadius: '50%',
81
+ borderRadius: "var(--ds-border-radius-circle, 50%)",
82
82
  opacity: 0.15,
83
83
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
84
84
  '& > *': {
@@ -101,7 +101,7 @@ const siteTitleStyles = css({
101
101
  width: '100%',
102
102
  height: 14,
103
103
  backgroundColor: `var(${VAR_SITE_TITLE_BG_COLOR_AFTER})`,
104
- borderRadius: 4,
104
+ borderRadius: "var(--ds-border-radius, 4px)",
105
105
  content: '""'
106
106
  }
107
107
  });
@@ -33,7 +33,7 @@ const searchInputStyles = css({
33
33
  backgroundColor: `var(${varSearchBackgroundColor})`,
34
34
  border: '2px solid',
35
35
  borderColor: `var(${varSearchBorderColor})`,
36
- borderRadius: 6,
36
+ borderRadius: "var(--ds-border-radius-200, 6px)",
37
37
  color: `var(${varSearchColor})`,
38
38
  fontSize: `${fontSize}px`,
39
39
  outline: 'none',
@@ -63,11 +63,11 @@ const SearchComponent = props => {
63
63
  const theme = useTheme();
64
64
  const search = theme.mode.search;
65
65
  const onChange = (...args) => {
66
- // @ts-ignore
66
+ // @ts-expect-error
67
67
  onClick && onClick(...args);
68
68
  };
69
69
  const onInputClick = (...args) => {
70
- // @ts-ignore
70
+ // @ts-expect-error
71
71
  onClick && onClick(...args);
72
72
  };
73
73
  const searchInputDynamicStyles = {
@@ -18,7 +18,7 @@ const searchInputSkeletonStyles = css({
18
18
  width: '220px',
19
19
  height: "var(--ds-space-400, 32px)",
20
20
  padding: `0 ${"var(--ds-space-100, 8px)"} 0 ${"var(--ds-space-500, 40px)"}`,
21
- borderRadius: 6,
21
+ borderRadius: "var(--ds-border-radius-200, 6px)",
22
22
  opacity: 0.15
23
23
  });
24
24
  const searchIconStyles = css({
@@ -6,9 +6,9 @@ const skeletonCreateButtonStyles = css({
6
6
  padding: `0 ${"var(--ds-space-150, 12px)"}`,
7
7
  alignSelf: 'center',
8
8
  border: 0,
9
- borderRadius: 3,
10
- fontSize: 14,
11
- fontWeight: 500,
9
+ borderRadius: "var(--ds-border-radius, 3px)",
10
+ fontSize: "var(--ds-font-size-100, 14px)",
11
+ fontWeight: "var(--ds-font-weight-medium, 500)",
12
12
  lineHeight: 1,
13
13
  pointerEvents: 'none',
14
14
  ':focus, :active, :hover': {
@@ -6,7 +6,7 @@ const skeletonIconButtonStyles = css({
6
6
  marginRight: "var(--ds-space-050, 4px)",
7
7
  padding: `${"var(--ds-space-050, 4px)"} ${"var(--ds-space-075, 6px)"}`,
8
8
  border: 0,
9
- borderRadius: '100%',
9
+ borderRadius: "var(--ds-border-radius-circle, 100%)",
10
10
  pointerEvents: 'none',
11
11
  ':focus, :active, :hover': {
12
12
  appearance: 'none',
@@ -24,7 +24,7 @@ const skeletonIconButtonStyles = css({
24
24
  '& > img': {
25
25
  width: 24,
26
26
  height: 24,
27
- borderRadius: '100%',
27
+ borderRadius: "var(--ds-border-radius-circle, 100%)",
28
28
  verticalAlign: 'middle'
29
29
  }
30
30
  });
@@ -9,8 +9,8 @@ const primaryButtonSkeletonStyles = css({
9
9
  position: 'relative',
10
10
  appearance: 'none',
11
11
  border: 0,
12
- fontSize: 14,
13
- fontWeight: 500,
12
+ fontSize: "var(--ds-font-size-100, 14px)",
13
+ fontWeight: "var(--ds-font-weight-medium, 500)",
14
14
  lineHeight: 1,
15
15
  pointerEvents: 'none',
16
16
  ':focus, :active, :hover': {
@@ -29,8 +29,8 @@ const isHighlightedStyles = css({
29
29
  bottom: 0,
30
30
  left: "var(--ds-space-025, 2px)",
31
31
  backgroundColor: `var(${VAR_PRIMARY_BUTTON_BEFORE_HIGHLIGHTED_BACKGROUND_COLOR})`,
32
- borderTopLeftRadius: 1,
33
- borderTopRightRadius: 1,
32
+ borderTopLeftRadius: "var(--ds-border-radius-050, 1px)",
33
+ borderTopRightRadius: "var(--ds-border-radius-050, 1px)",
34
34
  content: '""'
35
35
  }
36
36
  });
@@ -58,7 +58,7 @@ const isDropdownButtonStyles = css({
58
58
  left: 'calc(100% - 3px)',
59
59
  borderBottom: '2px solid',
60
60
  borderColor: `var(${VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR})`,
61
- borderRadius: 1,
61
+ borderRadius: "var(--ds-border-radius-050, 1px)",
62
62
  borderRight: '2px solid',
63
63
  content: '""',
64
64
  opacity: 0.51,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "2.6.6",
3
+ "version": "2.6.8",
4
4
  "sideEffects": false
5
5
  }
@@ -9,8 +9,8 @@ var buttonHeight = "var(--ds-space-400, 32px)";
9
9
  var skeletonStyles = css({
10
10
  width: 68,
11
11
  height: buttonHeight,
12
- marginLeft: "var(--ds-space-150, 12px)",
13
- borderRadius: 3,
12
+ borderRadius: "var(--ds-border-radius, 3px)",
13
+ marginInlineStart: "var(--ds-space-150, 12px)",
14
14
  opacity: 0.15
15
15
  });
16
16
  var mobileStyles = css(_defineProperty({}, "@media (max-width: ".concat(CREATE_BREAKPOINT - 1, "px)"), {
@@ -6,7 +6,7 @@ import { css, jsx } from '@emotion/react';
6
6
  import { useTheme } from '../../theme';
7
7
  var buttonHeight = "var(--ds-space-400, 32px)";
8
8
  var skeletonStyles = css({
9
- borderRadius: '50%',
9
+ borderRadius: "var(--ds-border-radius-circle, 50%)",
10
10
  opacity: 0.15
11
11
  });
12
12
 
@@ -9,7 +9,7 @@ export var getIconButtonTheme = function getIconButtonTheme(_ref) {
9
9
  spinnerStyles = _current.spinnerStyles;
10
10
  return {
11
11
  buttonStyles: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, buttonStyles), {}, {
12
- borderRadius: '100%',
12
+ borderRadius: "var(--ds-border-radius-circle, 100%)",
13
13
  display: 'flex',
14
14
  margin: '0 2px',
15
15
  padding: 4,
@@ -31,8 +31,8 @@ var buttonHighlightedStyles = css({
31
31
  bottom: 0,
32
32
  left: "var(--ds-space-050, 4px)",
33
33
  backgroundColor: "var(".concat(VAR_BUTTON_SELECTED_BORDER_COLOR, ")"),
34
- borderTopLeftRadius: 1,
35
- borderTopRightRadius: 1,
34
+ borderTopLeftRadius: "var(--ds-border-radius-050, 1px)",
35
+ borderTopRightRadius: "var(--ds-border-radius-050, 1px)",
36
36
  content: '""'
37
37
  }
38
38
  });
@@ -8,7 +8,7 @@ var skeletonStyles = css({
8
8
  display: 'inline-flex',
9
9
  width: '68px',
10
10
  height: "".concat(buttonHeight - paddingAll * 2.5, "px"),
11
- borderRadius: "var(--ds-radius-100, 4px)",
11
+ borderRadius: "var(--ds-border-radius, 4px)",
12
12
  opacity: 0.15
13
13
  });
14
14
 
@@ -6,7 +6,7 @@ var _css2;
6
6
  import React, { memo, useCallback, useMemo, useState } from 'react';
7
7
  import { css, jsx } from '@emotion/react';
8
8
  import Popup from '@atlaskit/popup';
9
- import { UNSAFE_media as media } from '@atlaskit/primitives/responsive';
9
+ import { media, UNSAFE_media } from '@atlaskit/primitives/responsive';
10
10
  import { OverflowProvider } from '../../controllers/overflow';
11
11
  import { PrimaryDropdownButton } from '../PrimaryDropdownButton';
12
12
  var parentContainerStyles = css({
@@ -19,7 +19,7 @@ var basePrimaryContainerStyles = css({
19
19
  minWidth: 0,
20
20
  gap: "var(--ds-space-100, 8px)"
21
21
  });
22
- var smallContainerStyles = css(_defineProperty({}, media.below.sm, {
22
+ var smallContainerStyles = css(_defineProperty({}, UNSAFE_media.below.sm, {
23
23
  display: 'flex'
24
24
  }));
25
25
  var mediumContainerStyles = css((_css2 = {}, _defineProperty(_css2, media.above.sm, {
@@ -42,7 +42,7 @@ var productHomeButtonStyles = css((_css3 = {
42
42
  alignItems: 'center',
43
43
  background: 'none',
44
44
  border: 0,
45
- borderRadius: 3,
45
+ borderRadius: "var(--ds-border-radius, 3px)",
46
46
  color: 'inherit',
47
47
  cursor: 'pointer',
48
48
  '&::-moz-focus-inner': {
@@ -26,7 +26,7 @@ var productHomeButtonStyles = css((_css = {
26
26
  alignItems: 'center',
27
27
  background: 'none',
28
28
  border: 0,
29
- borderRadius: 3,
29
+ borderRadius: "var(--ds-border-radius, 3px)",
30
30
  color: 'inherit',
31
31
  cursor: 'pointer',
32
32
  '&::-moz-focus-inner': {
@@ -48,7 +48,7 @@ var productHomeButtonStyles = css((_css = {
48
48
  '&:focus-visible': {
49
49
  backgroundColor: "var(".concat(VAR_PRODUCT_HOME_BACKGROUND_COLOR_FOCUS, ")"),
50
50
  color: "var(".concat(VAR_PRODUCT_HOME_COLOR_FOCUS, ")"),
51
- outline: "2px solid ".concat("var(--ds-border-focused, #4C9AFF)")
51
+ outline: "var(--ds-border-width-100, 2px)".concat(" solid ", "var(--ds-border-focused, #4C9AFF)")
52
52
  },
53
53
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
54
54
  'div&': {
@@ -22,7 +22,7 @@ var productHomeButtonStyles = css((_css = {
22
22
  alignItems: 'center',
23
23
  background: 'none',
24
24
  border: 0,
25
- borderRadius: 3,
25
+ borderRadius: "var(--ds-border-radius, 3px)",
26
26
  color: 'inherit',
27
27
  cursor: 'pointer',
28
28
  '&::-moz-focus-inner': {
@@ -74,7 +74,7 @@ var productIconStyles = css(_defineProperty({
74
74
  display: 'flex',
75
75
  width: 28,
76
76
  height: 28,
77
- borderRadius: '50%',
77
+ borderRadius: "var(--ds-border-radius-circle, 50%)",
78
78
  opacity: 0.15,
79
79
  // eslint-disable-next-line @repo/internal/styles/no-nested-styles
80
80
  '& > *': {
@@ -95,7 +95,7 @@ var siteTitleStyles = css({
95
95
  width: '100%',
96
96
  height: 14,
97
97
  backgroundColor: "var(".concat(VAR_SITE_TITLE_BG_COLOR_AFTER, ")"),
98
- borderRadius: 4,
98
+ borderRadius: "var(--ds-border-radius, 4px)",
99
99
  content: '""'
100
100
  }
101
101
  });
@@ -34,7 +34,7 @@ var searchInputStyles = css({
34
34
  backgroundColor: "var(".concat(varSearchBackgroundColor, ")"),
35
35
  border: '2px solid',
36
36
  borderColor: "var(".concat(varSearchBorderColor, ")"),
37
- borderRadius: 6,
37
+ borderRadius: "var(--ds-border-radius-200, 6px)",
38
38
  color: "var(".concat(varSearchColor, ")"),
39
39
  fontSize: "".concat(fontSize, "px"),
40
40
  outline: 'none',
@@ -60,11 +60,11 @@ var SearchComponent = function SearchComponent(props) {
60
60
  var theme = useTheme();
61
61
  var search = theme.mode.search;
62
62
  var onChange = function onChange() {
63
- // @ts-ignore
63
+ // @ts-expect-error
64
64
  onClick && onClick.apply(void 0, arguments);
65
65
  };
66
66
  var onInputClick = function onInputClick() {
67
- // @ts-ignore
67
+ // @ts-expect-error
68
68
  onClick && onClick.apply(void 0, arguments);
69
69
  };
70
70
  var searchInputDynamicStyles = (_searchInputDynamicSt = {}, _defineProperty(_searchInputDynamicSt, varSearchBackgroundColor, search.default.backgroundColor), _defineProperty(_searchInputDynamicSt, varSearchColor, search.default.color), _defineProperty(_searchInputDynamicSt, varSearchBorderColor, search.default.borderColor), _defineProperty(_searchInputDynamicSt, varSearchFocusBorderColor, search.focus.borderColor), _defineProperty(_searchInputDynamicSt, varSearchHoverBackgroundColor, search.hover.backgroundColor), _searchInputDynamicSt);
@@ -17,7 +17,7 @@ var searchInputSkeletonStyles = css({
17
17
  width: '220px',
18
18
  height: "var(--ds-space-400, 32px)",
19
19
  padding: "0 ".concat("var(--ds-space-100, 8px)", " 0 ", "var(--ds-space-500, 40px)"),
20
- borderRadius: 6,
20
+ borderRadius: "var(--ds-border-radius-200, 6px)",
21
21
  opacity: 0.15
22
22
  });
23
23
  var searchIconStyles = css(_defineProperty({}, "@media (min-width: ".concat(CREATE_BREAKPOINT, "px)"), {
@@ -6,9 +6,9 @@ var skeletonCreateButtonStyles = css({
6
6
  padding: "0 ".concat("var(--ds-space-150, 12px)"),
7
7
  alignSelf: 'center',
8
8
  border: 0,
9
- borderRadius: 3,
10
- fontSize: 14,
11
- fontWeight: 500,
9
+ borderRadius: "var(--ds-border-radius, 3px)",
10
+ fontSize: "var(--ds-font-size-100, 14px)",
11
+ fontWeight: "var(--ds-font-weight-medium, 500)",
12
12
  lineHeight: 1,
13
13
  pointerEvents: 'none',
14
14
  ':focus, :active, :hover': {
@@ -6,7 +6,7 @@ var skeletonIconButtonStyles = css({
6
6
  marginRight: "var(--ds-space-050, 4px)",
7
7
  padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-075, 6px)"),
8
8
  border: 0,
9
- borderRadius: '100%',
9
+ borderRadius: "var(--ds-border-radius-circle, 100%)",
10
10
  pointerEvents: 'none',
11
11
  ':focus, :active, :hover': {
12
12
  appearance: 'none',
@@ -24,7 +24,7 @@ var skeletonIconButtonStyles = css({
24
24
  '& > img': {
25
25
  width: 24,
26
26
  height: 24,
27
- borderRadius: '100%',
27
+ borderRadius: "var(--ds-border-radius-circle, 100%)",
28
28
  verticalAlign: 'middle'
29
29
  }
30
30
  });
@@ -12,8 +12,8 @@ var primaryButtonSkeletonStyles = css({
12
12
  position: 'relative',
13
13
  appearance: 'none',
14
14
  border: 0,
15
- fontSize: 14,
16
- fontWeight: 500,
15
+ fontSize: "var(--ds-font-size-100, 14px)",
16
+ fontWeight: "var(--ds-font-weight-medium, 500)",
17
17
  lineHeight: 1,
18
18
  pointerEvents: 'none',
19
19
  ':focus, :active, :hover': {
@@ -32,8 +32,8 @@ var isHighlightedStyles = css({
32
32
  bottom: 0,
33
33
  left: "var(--ds-space-025, 2px)",
34
34
  backgroundColor: "var(".concat(VAR_PRIMARY_BUTTON_BEFORE_HIGHLIGHTED_BACKGROUND_COLOR, ")"),
35
- borderTopLeftRadius: 1,
36
- borderTopRightRadius: 1,
35
+ borderTopLeftRadius: "var(--ds-border-radius-050, 1px)",
36
+ borderTopRightRadius: "var(--ds-border-radius-050, 1px)",
37
37
  content: '""'
38
38
  }
39
39
  });
@@ -61,7 +61,7 @@ var isDropdownButtonStyles = css({
61
61
  left: 'calc(100% - 3px)',
62
62
  borderBottom: '2px solid',
63
63
  borderColor: "var(".concat(VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR, ")"),
64
- borderRadius: 1,
64
+ borderRadius: "var(--ds-border-radius-050, 1px)",
65
65
  borderRight: '2px solid',
66
66
  content: '""',
67
67
  opacity: 0.51,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "2.6.6",
3
+ "version": "2.6.8",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "2.6.6",
3
+ "version": "2.6.8",
4
4
  "description": "A horizontal navigation component for Atlassian products.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -33,15 +33,15 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@atlaskit/analytics-namespaced-context": "^6.7.0",
36
- "@atlaskit/button": "^16.7.0",
36
+ "@atlaskit/button": "^16.8.0",
37
37
  "@atlaskit/ds-lib": "^2.2.0",
38
38
  "@atlaskit/icon": "^21.12.0",
39
39
  "@atlaskit/logo": "*",
40
40
  "@atlaskit/platform-feature-flags": "^0.2.0",
41
41
  "@atlaskit/popup": "^1.7.0",
42
- "@atlaskit/primitives": "^0.12.0",
42
+ "@atlaskit/primitives": "^0.13.0",
43
43
  "@atlaskit/theme": "^12.5.0",
44
- "@atlaskit/tokens": "^1.5.0",
44
+ "@atlaskit/tokens": "^1.9.0",
45
45
  "@atlaskit/tooltip": "^17.8.0",
46
46
  "@atlaskit/width-detector": "^4.1.0",
47
47
  "@babel/runtime": "^7.0.0",