@atlaskit/atlassian-navigation 5.1.5 → 5.1.6

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 (44) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/components/AppSwitcher/index.js +1 -3
  3. package/dist/cjs/components/Help/index.js +0 -1
  4. package/dist/cjs/components/IconButton/index.js +0 -1
  5. package/dist/cjs/components/Notifications/index.js +0 -1
  6. package/dist/cjs/components/PrimaryButton/index.js +0 -2
  7. package/dist/cjs/components/PrimaryDropdownButton/index.js +2 -10
  8. package/dist/cjs/components/ProductHome/custom-product-home.js +0 -1
  9. package/dist/cjs/components/ProductHome/product-home.js +0 -1
  10. package/dist/cjs/components/Profile/index.js +1 -2
  11. package/dist/cjs/components/SkeletonPrimaryButton/index.js +0 -1
  12. package/dist/cjs/controllers/overflow/index.js +1 -1
  13. package/dist/cjs/skeleton-switcher-button.js +11 -14
  14. package/dist/cjs/theme/default-theme.js +0 -1
  15. package/dist/cjs/theme/themes.js +0 -2
  16. package/dist/es2019/components/AppSwitcher/index.js +1 -3
  17. package/dist/es2019/components/Help/index.js +0 -1
  18. package/dist/es2019/components/IconButton/index.js +0 -1
  19. package/dist/es2019/components/Notifications/index.js +0 -1
  20. package/dist/es2019/components/PrimaryButton/index.js +0 -2
  21. package/dist/es2019/components/PrimaryDropdownButton/index.js +1 -9
  22. package/dist/es2019/components/ProductHome/custom-product-home.js +0 -1
  23. package/dist/es2019/components/ProductHome/product-home.js +0 -1
  24. package/dist/es2019/components/Profile/index.js +1 -2
  25. package/dist/es2019/components/SkeletonPrimaryButton/index.js +0 -1
  26. package/dist/es2019/controllers/overflow/index.js +1 -1
  27. package/dist/es2019/skeleton-switcher-button.js +11 -14
  28. package/dist/es2019/theme/default-theme.js +0 -1
  29. package/dist/es2019/theme/themes.js +0 -2
  30. package/dist/esm/components/AppSwitcher/index.js +1 -3
  31. package/dist/esm/components/Help/index.js +0 -1
  32. package/dist/esm/components/IconButton/index.js +0 -1
  33. package/dist/esm/components/Notifications/index.js +0 -1
  34. package/dist/esm/components/PrimaryButton/index.js +0 -2
  35. package/dist/esm/components/PrimaryDropdownButton/index.js +1 -9
  36. package/dist/esm/components/ProductHome/custom-product-home.js +0 -1
  37. package/dist/esm/components/ProductHome/product-home.js +0 -1
  38. package/dist/esm/components/Profile/index.js +1 -2
  39. package/dist/esm/components/SkeletonPrimaryButton/index.js +0 -1
  40. package/dist/esm/controllers/overflow/index.js +1 -1
  41. package/dist/esm/skeleton-switcher-button.js +11 -14
  42. package/dist/esm/theme/default-theme.js +0 -1
  43. package/dist/esm/theme/themes.js +0 -2
  44. package/package.json +11 -14
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/atlassian-navigation
2
2
 
3
+ ## 5.1.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#142181](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/142181)
8
+ [`d6934885b334e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d6934885b334e) -
9
+ Fixed some new icons that were enabled with the incorrect feature flag.
10
+
3
11
  ## 5.1.5
4
12
 
5
13
  ### Patch Changes
@@ -67,7 +67,6 @@ var AppSwitcher = exports.AppSwitcher = /*#__PURE__*/(0, _react.forwardRef)(func
67
67
  testId: testId,
68
68
  tooltip: tooltip
69
69
  // These are all explicit, leaving it in just in case
70
- // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
71
70
  }, rest));
72
71
  });
73
72
 
@@ -113,10 +112,9 @@ var AppSwitcherNav4 = exports.AppSwitcherNav4 = /*#__PURE__*/(0, _react.forwardR
113
112
  testId: testId,
114
113
  tooltip: tooltip
115
114
  // These are all explicit, leaving it in just in case
116
- // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
117
115
  }, rest));
118
116
  });
119
117
 
120
118
  // exists only to extract props
121
- // eslint-disable-next-line @repo/internal/react/use-noop, import/no-anonymous-default-export
119
+ // eslint-disable-next-line import/no-anonymous-default-export
122
120
  var _default = exports.default = function _default(props) {};
@@ -73,7 +73,6 @@ var Help = exports.Help = /*#__PURE__*/(0, _react.forwardRef)(function (props, r
73
73
  tooltip: tooltip,
74
74
  isTooltipAnnouncementDisabled: true
75
75
  // These are all explicit, leaving it in just in case
76
- // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
77
76
  }, rest));
78
77
  return badge ? /*#__PURE__*/_react.default.createElement(_BadgeContainer.BadgeContainer, {
79
78
  id: HELP_NOTIFICATION_BADGE_ID,
@@ -71,7 +71,6 @@ var IconButton = exports.IconButton = /*#__PURE__*/(0, _react.forwardRef)(functi
71
71
  ,
72
72
  theme: theme || (0, _styles.getIconButtonTheme)(themeFromContext)
73
73
  // These are all explicit, leaving it in just in case
74
- // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
75
74
  }, rest));
76
75
  if (tooltip) {
77
76
  return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
@@ -75,6 +75,5 @@ var Notifications = exports.Notifications = /*#__PURE__*/(0, _react.forwardRef)(
75
75
  tooltip: tooltip,
76
76
  isTooltipAnnouncementDisabled: true
77
77
  // These are all explicit, leaving it in just in case
78
- // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
79
78
  }, rest)));
80
79
  });
@@ -71,7 +71,6 @@ var PrimaryButton = exports.PrimaryButton = /*#__PURE__*/(0, _react.forwardRef)(
71
71
  rest = (0, _objectWithoutProperties2.default)(props, _excluded);
72
72
  var themeFromContext = (0, _theme.useTheme)();
73
73
  var button = (0, _react2.jsx)("div", {
74
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
75
74
  style: (0, _defineProperty2.default)((0, _defineProperty2.default)({}, VAR_BUTTON_SELECTED_COLOR, themeFromContext.mode.primaryButton.selected.color), VAR_BUTTON_SELECTED_BORDER_COLOR, themeFromContext.mode.primaryButton.selected.borderColor),
76
75
  css: [buttonBaseStyles, isHighlighted && buttonHighlightedStyles],
77
76
  role: "listitem",
@@ -88,7 +87,6 @@ var PrimaryButton = exports.PrimaryButton = /*#__PURE__*/(0, _react.forwardRef)(
88
87
  ,
89
88
  theme: theme || (0, _styles.getPrimaryButtonTheme)(themeFromContext)
90
89
  // These are all explicit, leaving it in just in case
91
- // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
92
90
  }, rest), children));
93
91
  if (tooltip) {
94
92
  return (0, _react2.jsx)(_tooltip.default, {
@@ -9,9 +9,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
9
9
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
10
  var _react = require("react");
11
11
  var _react2 = require("@emotion/react");
12
- var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/utility/chevron-down"));
13
- var _chevronDown2 = _interopRequireDefault(require("@atlaskit/icon/utility/migration/chevron-down"));
14
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
+ var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/utility/migration/chevron-down"));
15
13
  var _PrimaryButton = require("../PrimaryButton");
16
14
  var _excluded = ["component", "isHighlighted", "isLoading", "onClick", "testId", "theme", "tooltip"];
17
15
  /**
@@ -39,12 +37,7 @@ var PrimaryDropdownButton = exports.PrimaryDropdownButton = /*#__PURE__*/(0, _re
39
37
  rest = (0, _objectWithoutProperties2.default)(props, _excluded);
40
38
  return (0, _react2.jsx)(_PrimaryButton.PrimaryButton, (0, _extends2.default)({
41
39
  component: component,
42
- iconAfter:
43
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
44
- (0, _platformFeatureFlags.fg)('platform-component-visual-refresh') ? (0, _react2.jsx)(_chevronDown.default, {
45
- label: "",
46
- color: "currentColor"
47
- }) : (0, _react2.jsx)(_chevronDown2.default, {
40
+ iconAfter: (0, _react2.jsx)(_chevronDown.default, {
48
41
  LEGACY_margin: "0 ".concat("var(--ds-space-negative-050, -4px)", " 0 ", "var(--ds-space-negative-100, -8px)"),
49
42
  color: "currentColor",
50
43
  label: ""
@@ -59,6 +52,5 @@ var PrimaryDropdownButton = exports.PrimaryDropdownButton = /*#__PURE__*/(0, _re
59
52
  theme: theme,
60
53
  tooltip: tooltip
61
54
  // These are mostly explicit, leaving it in just in case
62
- // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
63
55
  }, rest));
64
56
  });
@@ -155,7 +155,6 @@ var CustomProductHome = function CustomProductHome(props) {
155
155
  "data-testid": testId && "".concat(testId, "-icon"),
156
156
  "data-vc": "custom-product-home-icon"
157
157
  })), siteTitle && (0, _react2.jsx)("div", {
158
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
159
158
  style: {
160
159
  borderRight: theme.mode.productHome.borderRight
161
160
  },
@@ -188,7 +188,6 @@ var ProductHome = function ProductHome(_ref) {
188
188
  ,
189
189
  appearance: (0, _platformFeatureFlags.fg)('platform-team25-app-icon-tiles') ? 'brand' : undefined
190
190
  }))), siteTitle && (0, _react2.jsx)("div", {
191
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
192
191
  style: {
193
192
  borderRight: theme.mode.productHome.borderRight
194
193
  },
@@ -69,10 +69,9 @@ var Profile = exports.Profile = /*#__PURE__*/(0, _react.forwardRef)(function (pr
69
69
  tooltip: tooltip,
70
70
  isTooltipAnnouncementDisabled: true
71
71
  // These are mostly explicit, leaving it in just in case
72
- // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
73
72
  }, rest)));
74
73
  });
75
74
 
76
75
  // This exists only to extract props.
77
- // eslint-disable-next-line @repo/internal/react/use-noop, import/no-anonymous-default-export
76
+ // eslint-disable-next-line import/no-anonymous-default-export
78
77
  var _default = exports.default = function _default(props) {};
@@ -52,7 +52,6 @@ var isHighlightedStyles = (0, _react.css)({
52
52
  var isHighlightedAndDropdownButtonStyles = (0, _react.css)({
53
53
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
54
54
  '&:before': {
55
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
56
55
  insetInlineEnd: -10
57
56
  }
58
57
  });
@@ -147,5 +147,5 @@ var useOverflowController = exports.useOverflowController = function useOverflow
147
147
  };
148
148
 
149
149
  // Used to extract props for useOverflowStatus();
150
- // eslint-disable-next-line @repo/internal/react/use-noop, import/no-anonymous-default-export
150
+ // eslint-disable-next-line import/no-anonymous-default-export
151
151
  var _default = exports.default = function _default(props) {};
@@ -64,20 +64,17 @@ var SkeletonSwitcherButton = exports.SkeletonSwitcherButton = function SkeletonS
64
64
  label = _ref$label === void 0 ? '' : _ref$label,
65
65
  testId = _ref.testId;
66
66
  var theme = (0, _theme.useTheme)();
67
- return (
68
- // eslint-disable-next-line @atlaskit/design-system/no-html-button
69
- (0, _react.jsx)("button", {
70
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
71
- style: theme.mode.iconButton.default,
72
- "data-testid": testId,
73
- css: skeletonSwitcherButtonStyles,
74
- type: "button"
75
- }, (0, _react.jsx)(_appSwitcher2.default, {
76
- color: "currentColor",
77
- spacing: "spacious",
78
- label: label
79
- }))
80
- );
67
+ return (0, _react.jsx)("button", {
68
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
69
+ style: theme.mode.iconButton.default,
70
+ "data-testid": testId,
71
+ css: skeletonSwitcherButtonStyles,
72
+ type: "button"
73
+ }, (0, _react.jsx)(_appSwitcher2.default, {
74
+ color: "currentColor",
75
+ spacing: "spacious",
76
+ label: label
77
+ }));
81
78
  };
82
79
 
83
80
  /**
@@ -76,7 +76,6 @@ var defaultTheme = {
76
76
  color: "var(--ds-text, ".concat(_colors.N700, ")"),
77
77
  borderRight: "1px solid ".concat("var(--ds-border, ".concat((0, _themeHelpers.hexToRGBA)(_colors.N200, 0.3), ")")),
78
78
  // TODO: replace with token after brand refresh
79
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
80
79
  iconColor: '#357DE8',
81
80
  textColor: "var(--ds-text, ".concat(_colors.N700, ")")
82
81
  },
@@ -9,9 +9,7 @@ var _defaultTheme = require("./default-theme");
9
9
  var _themeGenerator = require("./theme-generator");
10
10
  var atlassianTheme = exports.atlassianTheme = (0, _themeGenerator.generateTheme)({
11
11
  name: _defaultTheme.DEFAULT_THEME_NAME,
12
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
13
12
  backgroundColor: _colors.N0,
14
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
15
13
  highlightColor: _colors.B400
16
14
  });
17
15
  var defaultTheme = exports.defaultTheme = atlassianTheme;
@@ -56,7 +56,6 @@ export const AppSwitcher = /*#__PURE__*/forwardRef((props, ref) => {
56
56
  testId: testId,
57
57
  tooltip: tooltip
58
58
  // These are all explicit, leaving it in just in case
59
- // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
60
59
  }, rest));
61
60
  });
62
61
 
@@ -104,10 +103,9 @@ export const AppSwitcherNav4 = /*#__PURE__*/forwardRef((props, ref) => {
104
103
  testId: testId,
105
104
  tooltip: tooltip
106
105
  // These are all explicit, leaving it in just in case
107
- // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
108
106
  }, rest));
109
107
  });
110
108
 
111
109
  // exists only to extract props
112
- // eslint-disable-next-line @repo/internal/react/use-noop, import/no-anonymous-default-export
110
+ // eslint-disable-next-line import/no-anonymous-default-export
113
111
  export default (props => {});
@@ -66,7 +66,6 @@ export const Help = /*#__PURE__*/forwardRef((props, ref) => {
66
66
  tooltip: tooltip,
67
67
  isTooltipAnnouncementDisabled: true
68
68
  // These are all explicit, leaving it in just in case
69
- // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
70
69
  }, rest));
71
70
  return badge ? /*#__PURE__*/React.createElement(BadgeContainer, {
72
71
  id: HELP_NOTIFICATION_BADGE_ID,
@@ -60,7 +60,6 @@ export const IconButton = /*#__PURE__*/forwardRef((props, ref) => {
60
60
  ,
61
61
  theme: theme || getIconButtonTheme(themeFromContext)
62
62
  // These are all explicit, leaving it in just in case
63
- // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
64
63
  }, rest));
65
64
  if (tooltip) {
66
65
  return /*#__PURE__*/React.createElement(Tooltip, {
@@ -65,6 +65,5 @@ export const Notifications = /*#__PURE__*/forwardRef((props, ref) => {
65
65
  tooltip: tooltip,
66
66
  isTooltipAnnouncementDisabled: true
67
67
  // These are all explicit, leaving it in just in case
68
- // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
69
68
  }, rest)));
70
69
  });
@@ -64,7 +64,6 @@ export const PrimaryButton = /*#__PURE__*/forwardRef((props, ref) => {
64
64
  } = props;
65
65
  const themeFromContext = useTheme();
66
66
  const button = jsx("div", {
67
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
68
67
  style: {
69
68
  [VAR_BUTTON_SELECTED_COLOR]: themeFromContext.mode.primaryButton.selected.color,
70
69
  [VAR_BUTTON_SELECTED_BORDER_COLOR]: themeFromContext.mode.primaryButton.selected.borderColor
@@ -84,7 +83,6 @@ export const PrimaryButton = /*#__PURE__*/forwardRef((props, ref) => {
84
83
  ,
85
84
  theme: theme || getPrimaryButtonTheme(themeFromContext)
86
85
  // These are all explicit, leaving it in just in case
87
- // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
88
86
  }, rest), children));
89
87
  if (tooltip) {
90
88
  return jsx(Tooltip, {
@@ -7,9 +7,7 @@ import { forwardRef } from 'react';
7
7
 
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
9
  import { jsx } from '@emotion/react';
10
- import ChevronIcon from '@atlaskit/icon/utility/chevron-down';
11
10
  import ChevronIconMigration from '@atlaskit/icon/utility/migration/chevron-down';
12
- import { fg } from '@atlaskit/platform-feature-flags';
13
11
  import { PrimaryButton } from '../PrimaryButton';
14
12
  /**
15
13
  * __Primary dropdown button__
@@ -33,12 +31,7 @@ export const PrimaryDropdownButton = /*#__PURE__*/forwardRef((props, ref) => {
33
31
  } = props;
34
32
  return jsx(PrimaryButton, _extends({
35
33
  component: component,
36
- iconAfter:
37
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
38
- fg('platform-component-visual-refresh') ? jsx(ChevronIcon, {
39
- label: "",
40
- color: "currentColor"
41
- }) : jsx(ChevronIconMigration, {
34
+ iconAfter: jsx(ChevronIconMigration, {
42
35
  LEGACY_margin: `0 ${"var(--ds-space-negative-050, -4px)"} 0 ${"var(--ds-space-negative-100, -8px)"}`,
43
36
  color: "currentColor",
44
37
  label: ""
@@ -53,6 +46,5 @@ export const PrimaryDropdownButton = /*#__PURE__*/forwardRef((props, ref) => {
53
46
  theme: theme,
54
47
  tooltip: tooltip
55
48
  // These are mostly explicit, leaving it in just in case
56
- // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
57
49
  }, rest));
58
50
  });
@@ -165,7 +165,6 @@ const CustomProductHome = props => {
165
165
  "data-testid": testId && `${testId}-icon`,
166
166
  "data-vc": "custom-product-home-icon"
167
167
  })), siteTitle && jsx("div", {
168
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
169
168
  style: {
170
169
  borderRight: theme.mode.productHome.borderRight
171
170
  },
@@ -197,7 +197,6 @@ const ProductHome = ({
197
197
  ,
198
198
  appearance: fg('platform-team25-app-icon-tiles') ? 'brand' : undefined
199
199
  }))), siteTitle && jsx("div", {
200
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
201
200
  style: {
202
201
  borderRight: theme.mode.productHome.borderRight
203
202
  },
@@ -59,10 +59,9 @@ export const Profile = /*#__PURE__*/forwardRef((props, ref) => {
59
59
  tooltip: tooltip,
60
60
  isTooltipAnnouncementDisabled: true
61
61
  // These are mostly explicit, leaving it in just in case
62
- // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
63
62
  }, rest)));
64
63
  });
65
64
 
66
65
  // This exists only to extract props.
67
- // eslint-disable-next-line @repo/internal/react/use-noop, import/no-anonymous-default-export
66
+ // eslint-disable-next-line import/no-anonymous-default-export
68
67
  export default (props => {});
@@ -44,7 +44,6 @@ const isHighlightedStyles = css({
44
44
  const isHighlightedAndDropdownButtonStyles = css({
45
45
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
46
46
  '&:before': {
47
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
48
47
  insetInlineEnd: -10
49
48
  }
50
49
  });
@@ -122,5 +122,5 @@ export const useOverflowController = nodes => {
122
122
  };
123
123
 
124
124
  // Used to extract props for useOverflowStatus();
125
- // eslint-disable-next-line @repo/internal/react/use-noop, import/no-anonymous-default-export
125
+ // eslint-disable-next-line import/no-anonymous-default-export
126
126
  export default (props => {});
@@ -56,20 +56,17 @@ export const SkeletonSwitcherButton = ({
56
56
  testId
57
57
  }) => {
58
58
  const theme = useTheme();
59
- return (
60
- // eslint-disable-next-line @atlaskit/design-system/no-html-button
61
- jsx("button", {
62
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
63
- style: theme.mode.iconButton.default,
64
- "data-testid": testId,
65
- css: skeletonSwitcherButtonStyles,
66
- type: "button"
67
- }, jsx(AppSwitcherIcon, {
68
- color: "currentColor",
69
- spacing: "spacious",
70
- label: label
71
- }))
72
- );
59
+ return jsx("button", {
60
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
61
+ style: theme.mode.iconButton.default,
62
+ "data-testid": testId,
63
+ css: skeletonSwitcherButtonStyles,
64
+ type: "button"
65
+ }, jsx(AppSwitcherIcon, {
66
+ color: "currentColor",
67
+ spacing: "spacious",
68
+ label: label
69
+ }));
73
70
  };
74
71
 
75
72
  /**
@@ -70,7 +70,6 @@ const defaultTheme = {
70
70
  color: `var(--ds-text, ${N700})`,
71
71
  borderRight: `1px solid ${`var(--ds-border, ${hexToRGBA(N200, 0.3)})`}`,
72
72
  // TODO: replace with token after brand refresh
73
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
74
73
  iconColor: '#357DE8',
75
74
  textColor: `var(--ds-text, ${N700})`
76
75
  },
@@ -3,9 +3,7 @@ import { DEFAULT_THEME_NAME } from './default-theme';
3
3
  import { generateTheme } from './theme-generator';
4
4
  export const atlassianTheme = generateTheme({
5
5
  name: DEFAULT_THEME_NAME,
6
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
7
6
  backgroundColor: N0,
8
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
9
7
  highlightColor: B400
10
8
  });
11
9
  export const defaultTheme = atlassianTheme;
@@ -57,7 +57,6 @@ export var AppSwitcher = /*#__PURE__*/forwardRef(function (props, ref) {
57
57
  testId: testId,
58
58
  tooltip: tooltip
59
59
  // These are all explicit, leaving it in just in case
60
- // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
61
60
  }, rest));
62
61
  });
63
62
 
@@ -103,10 +102,9 @@ export var AppSwitcherNav4 = /*#__PURE__*/forwardRef(function (props, ref) {
103
102
  testId: testId,
104
103
  tooltip: tooltip
105
104
  // These are all explicit, leaving it in just in case
106
- // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
107
105
  }, rest));
108
106
  });
109
107
 
110
108
  // exists only to extract props
111
- // eslint-disable-next-line @repo/internal/react/use-noop, import/no-anonymous-default-export
109
+ // eslint-disable-next-line import/no-anonymous-default-export
112
110
  export default (function (props) {});
@@ -63,7 +63,6 @@ export var Help = /*#__PURE__*/forwardRef(function (props, ref) {
63
63
  tooltip: tooltip,
64
64
  isTooltipAnnouncementDisabled: true
65
65
  // These are all explicit, leaving it in just in case
66
- // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
67
66
  }, rest));
68
67
  return badge ? /*#__PURE__*/React.createElement(BadgeContainer, {
69
68
  id: HELP_NOTIFICATION_BADGE_ID,
@@ -61,7 +61,6 @@ export var IconButton = /*#__PURE__*/forwardRef(function (props, ref) {
61
61
  ,
62
62
  theme: theme || getIconButtonTheme(themeFromContext)
63
63
  // These are all explicit, leaving it in just in case
64
- // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
65
64
  }, rest));
66
65
  if (tooltip) {
67
66
  return /*#__PURE__*/React.createElement(Tooltip, {
@@ -65,6 +65,5 @@ export var Notifications = /*#__PURE__*/forwardRef(function (props, ref) {
65
65
  tooltip: tooltip,
66
66
  isTooltipAnnouncementDisabled: true
67
67
  // These are all explicit, leaving it in just in case
68
- // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
69
68
  }, rest)));
70
69
  });
@@ -65,7 +65,6 @@ export var PrimaryButton = /*#__PURE__*/forwardRef(function (props, ref) {
65
65
  rest = _objectWithoutProperties(props, _excluded);
66
66
  var themeFromContext = useTheme();
67
67
  var button = jsx("div", {
68
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
69
68
  style: _defineProperty(_defineProperty({}, VAR_BUTTON_SELECTED_COLOR, themeFromContext.mode.primaryButton.selected.color), VAR_BUTTON_SELECTED_BORDER_COLOR, themeFromContext.mode.primaryButton.selected.borderColor),
70
69
  css: [buttonBaseStyles, isHighlighted && buttonHighlightedStyles],
71
70
  role: "listitem",
@@ -82,7 +81,6 @@ export var PrimaryButton = /*#__PURE__*/forwardRef(function (props, ref) {
82
81
  ,
83
82
  theme: theme || getPrimaryButtonTheme(themeFromContext)
84
83
  // These are all explicit, leaving it in just in case
85
- // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
86
84
  }, rest), children));
87
85
  if (tooltip) {
88
86
  return jsx(Tooltip, {
@@ -9,9 +9,7 @@ import { forwardRef } from 'react';
9
9
 
10
10
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
11
  import { jsx } from '@emotion/react';
12
- import ChevronIcon from '@atlaskit/icon/utility/chevron-down';
13
12
  import ChevronIconMigration from '@atlaskit/icon/utility/migration/chevron-down';
14
- import { fg } from '@atlaskit/platform-feature-flags';
15
13
  import { PrimaryButton } from '../PrimaryButton';
16
14
  /**
17
15
  * __Primary dropdown button__
@@ -33,12 +31,7 @@ export var PrimaryDropdownButton = /*#__PURE__*/forwardRef(function (props, ref)
33
31
  rest = _objectWithoutProperties(props, _excluded);
34
32
  return jsx(PrimaryButton, _extends({
35
33
  component: component,
36
- iconAfter:
37
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
38
- fg('platform-component-visual-refresh') ? jsx(ChevronIcon, {
39
- label: "",
40
- color: "currentColor"
41
- }) : jsx(ChevronIconMigration, {
34
+ iconAfter: jsx(ChevronIconMigration, {
42
35
  LEGACY_margin: "0 ".concat("var(--ds-space-negative-050, -4px)", " 0 ", "var(--ds-space-negative-100, -8px)"),
43
36
  color: "currentColor",
44
37
  label: ""
@@ -53,6 +46,5 @@ export var PrimaryDropdownButton = /*#__PURE__*/forwardRef(function (props, ref)
53
46
  theme: theme,
54
47
  tooltip: tooltip
55
48
  // These are mostly explicit, leaving it in just in case
56
- // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
57
49
  }, rest));
58
50
  });
@@ -149,7 +149,6 @@ var CustomProductHome = function CustomProductHome(props) {
149
149
  "data-testid": testId && "".concat(testId, "-icon"),
150
150
  "data-vc": "custom-product-home-icon"
151
151
  })), siteTitle && jsx("div", {
152
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
153
152
  style: {
154
153
  borderRight: theme.mode.productHome.borderRight
155
154
  },
@@ -182,7 +182,6 @@ var ProductHome = function ProductHome(_ref) {
182
182
  ,
183
183
  appearance: fg('platform-team25-app-icon-tiles') ? 'brand' : undefined
184
184
  }))), siteTitle && jsx("div", {
185
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
186
185
  style: {
187
186
  borderRight: theme.mode.productHome.borderRight
188
187
  },
@@ -59,10 +59,9 @@ export var Profile = /*#__PURE__*/forwardRef(function (props, ref) {
59
59
  tooltip: tooltip,
60
60
  isTooltipAnnouncementDisabled: true
61
61
  // These are mostly explicit, leaving it in just in case
62
- // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
63
62
  }, rest)));
64
63
  });
65
64
 
66
65
  // This exists only to extract props.
67
- // eslint-disable-next-line @repo/internal/react/use-noop, import/no-anonymous-default-export
66
+ // eslint-disable-next-line import/no-anonymous-default-export
68
67
  export default (function (props) {});
@@ -47,7 +47,6 @@ var isHighlightedStyles = css({
47
47
  var isHighlightedAndDropdownButtonStyles = css({
48
48
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
49
49
  '&:before': {
50
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
51
50
  insetInlineEnd: -10
52
51
  }
53
52
  });
@@ -137,5 +137,5 @@ export var useOverflowController = function useOverflowController(nodes) {
137
137
  };
138
138
 
139
139
  // Used to extract props for useOverflowStatus();
140
- // eslint-disable-next-line @repo/internal/react/use-noop, import/no-anonymous-default-export
140
+ // eslint-disable-next-line import/no-anonymous-default-export
141
141
  export default (function (props) {});
@@ -56,20 +56,17 @@ export var SkeletonSwitcherButton = function SkeletonSwitcherButton(_ref) {
56
56
  label = _ref$label === void 0 ? '' : _ref$label,
57
57
  testId = _ref.testId;
58
58
  var theme = useTheme();
59
- return (
60
- // eslint-disable-next-line @atlaskit/design-system/no-html-button
61
- jsx("button", {
62
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
63
- style: theme.mode.iconButton.default,
64
- "data-testid": testId,
65
- css: skeletonSwitcherButtonStyles,
66
- type: "button"
67
- }, jsx(AppSwitcherIcon, {
68
- color: "currentColor",
69
- spacing: "spacious",
70
- label: label
71
- }))
72
- );
59
+ return jsx("button", {
60
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
61
+ style: theme.mode.iconButton.default,
62
+ "data-testid": testId,
63
+ css: skeletonSwitcherButtonStyles,
64
+ type: "button"
65
+ }, jsx(AppSwitcherIcon, {
66
+ color: "currentColor",
67
+ spacing: "spacious",
68
+ label: label
69
+ }));
73
70
  };
74
71
 
75
72
  /**
@@ -70,7 +70,6 @@ var defaultTheme = {
70
70
  color: "var(--ds-text, ".concat(N700, ")"),
71
71
  borderRight: "1px solid ".concat("var(--ds-border, ".concat(hexToRGBA(N200, 0.3), ")")),
72
72
  // TODO: replace with token after brand refresh
73
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
74
73
  iconColor: '#357DE8',
75
74
  textColor: "var(--ds-text, ".concat(N700, ")")
76
75
  },
@@ -3,9 +3,7 @@ import { DEFAULT_THEME_NAME } from './default-theme';
3
3
  import { generateTheme } from './theme-generator';
4
4
  export var atlassianTheme = generateTheme({
5
5
  name: DEFAULT_THEME_NAME,
6
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
7
6
  backgroundColor: N0,
8
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
9
7
  highlightColor: B400
10
8
  });
11
9
  export var defaultTheme = atlassianTheme;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "5.1.5",
3
+ "version": "5.1.6",
4
4
  "description": "A horizontal navigation component for Atlassian products.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -48,13 +48,13 @@
48
48
  "@atlaskit/analytics-namespaced-context": "^7.0.0",
49
49
  "@atlaskit/button": "^23.0.0",
50
50
  "@atlaskit/ds-lib": "^4.0.0",
51
- "@atlaskit/icon": "^25.5.0",
51
+ "@atlaskit/icon": "^25.6.0",
52
52
  "@atlaskit/logo": "^16.0.0",
53
53
  "@atlaskit/platform-feature-flags": "^1.1.0",
54
- "@atlaskit/popup": "^4.0.0",
55
- "@atlaskit/primitives": "^14.3.0",
54
+ "@atlaskit/popup": "^4.1.0",
55
+ "@atlaskit/primitives": "^14.4.0",
56
56
  "@atlaskit/theme": "^18.0.0",
57
- "@atlaskit/tokens": "^4.7.0",
57
+ "@atlaskit/tokens": "^4.8.0",
58
58
  "@atlaskit/tooltip": "^20.0.0",
59
59
  "@atlaskit/width-detector": "^5.0.0",
60
60
  "@babel/runtime": "^7.0.0",
@@ -66,16 +66,16 @@
66
66
  "react": "^18.2.0"
67
67
  },
68
68
  "devDependencies": {
69
- "@af/accessibility-testing": "^2.0.0",
70
- "@af/integration-testing": "^0.5.0",
71
- "@af/visual-regression": "^1.3.0",
69
+ "@af/accessibility-testing": "workspace:^",
70
+ "@af/integration-testing": "workspace:^",
71
+ "@af/visual-regression": "workspace:^",
72
72
  "@atlaskit/analytics-next": "^11.0.0",
73
73
  "@atlaskit/atlassian-notifications": "^0.7.0",
74
74
  "@atlaskit/avatar": "^25.0.0",
75
75
  "@atlaskit/badge": "^18.1.0",
76
76
  "@atlaskit/docs": "^10.0.0",
77
77
  "@atlaskit/drawer": "^10.1.0",
78
- "@atlaskit/dropdown-menu": "^14.0.0",
78
+ "@atlaskit/dropdown-menu": "^14.1.0",
79
79
  "@atlaskit/form": "^12.0.0",
80
80
  "@atlaskit/menu": "^3.2.0",
81
81
  "@atlaskit/notification-indicator": "^10.0.0",
@@ -84,8 +84,8 @@
84
84
  "@atlaskit/spinner": "^18.0.0",
85
85
  "@atlaskit/temp-nav-app-icons": "^0.7.0",
86
86
  "@atlaskit/textfield": "^8.0.0",
87
- "@atlaskit/visual-regression": "^0.10.0",
88
- "@atlassian/switcher": "^35.20.0",
87
+ "@atlaskit/visual-regression": "workspace:^",
88
+ "@atlassian/switcher": "^35.22.0",
89
89
  "@atlassian/switcher-test-utils": "^4.1.0",
90
90
  "@testing-library/react": "^13.4.0",
91
91
  "@testing-library/react-hooks": "^8.0.1",
@@ -118,9 +118,6 @@
118
118
  },
119
119
  "homepage": "https://atlassian.design/components/atlassian-navigation/",
120
120
  "platform-feature-flags": {
121
- "platform-component-visual-refresh": {
122
- "type": "boolean"
123
- },
124
121
  "platform-team25-app-icon-tiles": {
125
122
  "type": "boolean"
126
123
  }