@atlaskit/atlassian-navigation 2.3.3 → 2.3.5

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 (140) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/common/constants.js +12 -4
  3. package/dist/cjs/common/styles.js +0 -4
  4. package/dist/cjs/components/AppSwitcher/index.js +4 -16
  5. package/dist/cjs/components/AtlassianNavigation/index.js +23 -28
  6. package/dist/cjs/components/AtlassianNavigation/skeleton.js +15 -24
  7. package/dist/cjs/components/BadgeContainer/index.js +6 -7
  8. package/dist/cjs/components/Create/index.js +12 -24
  9. package/dist/cjs/components/Create/skeleton.js +4 -11
  10. package/dist/cjs/components/Create/styles.js +2 -9
  11. package/dist/cjs/components/Help/index.js +4 -20
  12. package/dist/cjs/components/IconButton/index.js +5 -20
  13. package/dist/cjs/components/IconButton/skeleton.js +6 -16
  14. package/dist/cjs/components/IconButton/styles.js +2 -9
  15. package/dist/cjs/components/Notifications/index.js +3 -15
  16. package/dist/cjs/components/PrimaryButton/index.js +8 -22
  17. package/dist/cjs/components/PrimaryButton/skeleton.js +4 -7
  18. package/dist/cjs/components/PrimaryButton/styles.js +2 -9
  19. package/dist/cjs/components/PrimaryDropdownButton/index.js +2 -8
  20. package/dist/cjs/components/PrimaryItemsContainer/index.js +16 -28
  21. package/dist/cjs/components/PrimaryItemsContainer/skeleton.js +4 -8
  22. package/dist/cjs/components/ProductHome/custom-product-home.js +14 -30
  23. package/dist/cjs/components/ProductHome/index.js +0 -3
  24. package/dist/cjs/components/ProductHome/product-home.js +20 -36
  25. package/dist/cjs/components/ProductHome/skeleton.js +3 -12
  26. package/dist/cjs/components/ProductHome/utils.js +0 -4
  27. package/dist/cjs/components/Profile/index.js +3 -6
  28. package/dist/cjs/components/Profile/skeleton.js +0 -6
  29. package/dist/cjs/components/Search/index.js +23 -37
  30. package/dist/cjs/components/Search/skeleton.js +4 -11
  31. package/dist/cjs/components/Settings/index.js +1 -12
  32. package/dist/cjs/components/SignIn/index.js +3 -12
  33. package/dist/cjs/components/SignIn/skeleton.js +0 -6
  34. package/dist/cjs/components/SkeletonCreateButton/index.js +3 -6
  35. package/dist/cjs/components/SkeletonIconButton/index.js +3 -6
  36. package/dist/cjs/components/SkeletonPrimaryButton/index.js +7 -18
  37. package/dist/cjs/controllers/overflow/index.js +27 -56
  38. package/dist/cjs/index.js +0 -16
  39. package/dist/cjs/skeleton-help-button.js +2 -11
  40. package/dist/cjs/skeleton-notification-button.js +1 -7
  41. package/dist/cjs/skeleton-settings-button.js +1 -7
  42. package/dist/cjs/skeleton-switcher-button.js +1 -7
  43. package/dist/cjs/skeleton.js +0 -4
  44. package/dist/cjs/theme/default-theme.js +4 -8
  45. package/dist/cjs/theme/index.js +0 -5
  46. package/dist/cjs/theme/theme-generator.js +7 -21
  47. package/dist/cjs/theme/theme-helpers.js +2 -27
  48. package/dist/cjs/theme/theme-provider.js +1 -4
  49. package/dist/cjs/theme/themes.js +0 -4
  50. package/dist/cjs/theme/use-theme.js +0 -4
  51. package/dist/cjs/version.json +1 -1
  52. package/dist/es2019/common/constants.js +6 -1
  53. package/dist/es2019/components/AppSwitcher/index.js +3 -3
  54. package/dist/es2019/components/AtlassianNavigation/index.js +6 -4
  55. package/dist/es2019/components/AtlassianNavigation/skeleton.js +4 -3
  56. package/dist/es2019/components/BadgeContainer/index.js +3 -2
  57. package/dist/es2019/components/Create/index.js +5 -5
  58. package/dist/es2019/components/Create/skeleton.js +3 -2
  59. package/dist/es2019/components/Create/styles.js +4 -2
  60. package/dist/es2019/components/Help/index.js +1 -1
  61. package/dist/es2019/components/IconButton/index.js +2 -4
  62. package/dist/es2019/components/IconButton/skeleton.js +3 -2
  63. package/dist/es2019/components/IconButton/styles.js +4 -2
  64. package/dist/es2019/components/Notifications/index.js +1 -1
  65. package/dist/es2019/components/PrimaryButton/index.js +3 -5
  66. package/dist/es2019/components/PrimaryButton/skeleton.js +4 -2
  67. package/dist/es2019/components/PrimaryButton/styles.js +4 -2
  68. package/dist/es2019/components/PrimaryDropdownButton/index.js +1 -2
  69. package/dist/es2019/components/PrimaryItemsContainer/index.js +5 -4
  70. package/dist/es2019/components/PrimaryItemsContainer/skeleton.js +3 -2
  71. package/dist/es2019/components/ProductHome/custom-product-home.js +3 -7
  72. package/dist/es2019/components/ProductHome/product-home.js +3 -7
  73. package/dist/es2019/components/ProductHome/skeleton.js +4 -2
  74. package/dist/es2019/components/ProductHome/utils.js +0 -2
  75. package/dist/es2019/components/Profile/index.js +3 -3
  76. package/dist/es2019/components/Profile/skeleton.js +3 -2
  77. package/dist/es2019/components/Search/index.js +21 -13
  78. package/dist/es2019/components/Search/skeleton.js +3 -2
  79. package/dist/es2019/components/Settings/index.js +0 -1
  80. package/dist/es2019/components/SignIn/index.js +2 -3
  81. package/dist/es2019/components/SignIn/skeleton.js +3 -2
  82. package/dist/es2019/components/SkeletonCreateButton/index.js +1 -1
  83. package/dist/es2019/components/SkeletonIconButton/index.js +1 -1
  84. package/dist/es2019/components/SkeletonPrimaryButton/index.js +3 -2
  85. package/dist/es2019/controllers/overflow/index.js +15 -24
  86. package/dist/es2019/skeleton-help-button.js +0 -1
  87. package/dist/es2019/skeleton-notification-button.js +0 -1
  88. package/dist/es2019/skeleton-settings-button.js +0 -1
  89. package/dist/es2019/skeleton-switcher-button.js +0 -1
  90. package/dist/es2019/theme/default-theme.js +4 -5
  91. package/dist/es2019/theme/theme-generator.js +6 -8
  92. package/dist/es2019/theme/theme-helpers.js +4 -11
  93. package/dist/es2019/theme/theme-provider.js +4 -3
  94. package/dist/es2019/version.json +1 -1
  95. package/dist/esm/common/constants.js +6 -1
  96. package/dist/esm/components/AppSwitcher/index.js +4 -5
  97. package/dist/esm/components/AtlassianNavigation/index.js +22 -20
  98. package/dist/esm/components/AtlassianNavigation/skeleton.js +14 -13
  99. package/dist/esm/components/BadgeContainer/index.js +5 -4
  100. package/dist/esm/components/Create/index.js +11 -12
  101. package/dist/esm/components/Create/skeleton.js +3 -3
  102. package/dist/esm/components/Create/styles.js +2 -6
  103. package/dist/esm/components/Help/index.js +4 -6
  104. package/dist/esm/components/IconButton/index.js +5 -8
  105. package/dist/esm/components/IconButton/skeleton.js +6 -10
  106. package/dist/esm/components/IconButton/styles.js +2 -6
  107. package/dist/esm/components/Notifications/index.js +3 -4
  108. package/dist/esm/components/PrimaryButton/index.js +8 -12
  109. package/dist/esm/components/PrimaryButton/skeleton.js +4 -2
  110. package/dist/esm/components/PrimaryButton/styles.js +2 -6
  111. package/dist/esm/components/PrimaryDropdownButton/index.js +1 -2
  112. package/dist/esm/components/PrimaryItemsContainer/index.js +15 -17
  113. package/dist/esm/components/PrimaryItemsContainer/skeleton.js +3 -2
  114. package/dist/esm/components/ProductHome/custom-product-home.js +14 -21
  115. package/dist/esm/components/ProductHome/product-home.js +20 -27
  116. package/dist/esm/components/ProductHome/skeleton.js +4 -7
  117. package/dist/esm/components/ProductHome/utils.js +0 -2
  118. package/dist/esm/components/Profile/index.js +3 -3
  119. package/dist/esm/components/Profile/skeleton.js +3 -2
  120. package/dist/esm/components/Search/index.js +24 -27
  121. package/dist/esm/components/Search/skeleton.js +3 -3
  122. package/dist/esm/components/Settings/index.js +1 -3
  123. package/dist/esm/components/SignIn/index.js +3 -5
  124. package/dist/esm/components/SignIn/skeleton.js +3 -2
  125. package/dist/esm/components/SkeletonCreateButton/index.js +2 -2
  126. package/dist/esm/components/SkeletonIconButton/index.js +2 -2
  127. package/dist/esm/components/SkeletonPrimaryButton/index.js +7 -13
  128. package/dist/esm/controllers/overflow/index.js +27 -40
  129. package/dist/esm/skeleton-help-button.js +2 -5
  130. package/dist/esm/skeleton-notification-button.js +1 -2
  131. package/dist/esm/skeleton-settings-button.js +1 -2
  132. package/dist/esm/skeleton-switcher-button.js +1 -2
  133. package/dist/esm/theme/default-theme.js +4 -5
  134. package/dist/esm/theme/theme-generator.js +7 -14
  135. package/dist/esm/theme/theme-helpers.js +2 -15
  136. package/dist/esm/theme/theme-provider.js +4 -3
  137. package/dist/esm/version.json +1 -1
  138. package/dist/types/common/constants.d.ts +5 -0
  139. package/package.json +3 -3
  140. package/report.api.md +14 -1
@@ -2,9 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  var _excluded = ["iconAlt", "iconUrl", "logoAlt", "logoUrl", "href", "onClick", "siteTitle", "onMouseDown", "testId", "logoMaxWidth"];
5
-
6
5
  var _css3;
7
-
8
6
  /** @jsx jsx */
9
7
  import { Fragment } from 'react';
10
8
  import { css, jsx } from '@emotion/react';
@@ -84,6 +82,7 @@ var siteTitleStyles = css({
84
82
  paddingRight: gridSize * 2,
85
83
  alignItems: 'center'
86
84
  });
85
+
87
86
  /**
88
87
  * __Custom product home__
89
88
  *
@@ -92,32 +91,27 @@ var siteTitleStyles = css({
92
91
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#custom-product-home)
93
92
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
94
93
  */
95
-
96
94
  var CustomProductHome = function CustomProductHome(props) {
97
95
  var _productHomeButtonDyn;
98
-
99
96
  var iconAlt = props.iconAlt,
100
- iconUrl = props.iconUrl,
101
- logoAlt = props.logoAlt,
102
- logoUrl = props.logoUrl,
103
- href = props.href,
104
- onClick = props.onClick,
105
- siteTitle = props.siteTitle,
106
- onMouseDown = props.onMouseDown,
107
- testId = props.testId,
108
- _props$logoMaxWidth = props.logoMaxWidth,
109
- logoMaxWidth = _props$logoMaxWidth === void 0 ? 260 : _props$logoMaxWidth,
110
- rest = _objectWithoutProperties(props, _excluded);
111
-
97
+ iconUrl = props.iconUrl,
98
+ logoAlt = props.logoAlt,
99
+ logoUrl = props.logoUrl,
100
+ href = props.href,
101
+ onClick = props.onClick,
102
+ siteTitle = props.siteTitle,
103
+ onMouseDown = props.onMouseDown,
104
+ testId = props.testId,
105
+ _props$logoMaxWidth = props.logoMaxWidth,
106
+ logoMaxWidth = _props$logoMaxWidth === void 0 ? 260 : _props$logoMaxWidth,
107
+ rest = _objectWithoutProperties(props, _excluded);
112
108
  var theme = useTheme();
113
109
  var primaryButton = theme.mode.primaryButton;
114
110
  var Tag = getTag(onClick, href);
115
-
116
111
  var preventFocusRing = function preventFocusRing(event) {
117
112
  event.preventDefault();
118
113
  onMouseDown && onMouseDown(event);
119
114
  };
120
-
121
115
  var productHomeButtonDynamicStyles = (_productHomeButtonDyn = {}, _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_ACTIVE, primaryButton.active.color), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE, primaryButton.active.backgroundColor), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_ACTIVE, primaryButton.active.boxShadow), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_FOCUS, primaryButton.focus.color), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_FOCUS, primaryButton.focus.backgroundColor), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_FOCUS, primaryButton.focus.boxShadow), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_HOVER, primaryButton.hover.color), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER, primaryButton.hover.backgroundColor), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_HOVER, primaryButton.hover.boxShadow), _productHomeButtonDyn);
122
116
  return jsx(Fragment, null, jsx(Tag, _extends({
123
117
  href: href,
@@ -125,8 +119,8 @@ var CustomProductHome = function CustomProductHome(props) {
125
119
  css: productHomeButtonStyles,
126
120
  onClick: onClick,
127
121
  onMouseDown: preventFocusRing,
128
- "data-testid": testId && "".concat(testId, "-container") // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
129
-
122
+ "data-testid": testId && "".concat(testId, "-container")
123
+ // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
130
124
  }, rest), logoUrl && jsx("img", {
131
125
  style: {
132
126
  maxWidth: logoMaxWidth
@@ -151,5 +145,4 @@ var CustomProductHome = function CustomProductHome(props) {
151
145
  "data-testid": testId && "".concat(testId, "-site-title")
152
146
  }, siteTitle));
153
147
  };
154
-
155
148
  export default CustomProductHome;
@@ -2,9 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  var _excluded = ["icon", "logo", "siteTitle", "onClick", "href", "onMouseDown", "testId", "logoMaxWidth"];
5
-
6
5
  var _css;
7
-
8
6
  /** @jsx jsx */
9
7
  import { Fragment } from 'react';
10
8
  import { css, jsx } from '@emotion/react';
@@ -98,6 +96,7 @@ var siteTitleStyles = css({
98
96
  paddingRight: gridSize * 2,
99
97
  alignItems: 'center'
100
98
  });
99
+
101
100
  /**
102
101
  * __Product home__
103
102
  *
@@ -109,39 +108,34 @@ var siteTitleStyles = css({
109
108
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#product-home)
110
109
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
111
110
  */
112
-
113
111
  var ProductHome = function ProductHome(_ref) {
114
112
  var _productHomeButtonDyn;
115
-
116
113
  var Icon = _ref.icon,
117
- Logo = _ref.logo,
118
- siteTitle = _ref.siteTitle,
119
- onClick = _ref.onClick,
120
- href = _ref.href,
121
- onMouseDown = _ref.onMouseDown,
122
- testId = _ref.testId,
123
- _ref$logoMaxWidth = _ref.logoMaxWidth,
124
- logoMaxWidth = _ref$logoMaxWidth === void 0 ? 260 : _ref$logoMaxWidth,
125
- rest = _objectWithoutProperties(_ref, _excluded);
126
-
114
+ Logo = _ref.logo,
115
+ siteTitle = _ref.siteTitle,
116
+ onClick = _ref.onClick,
117
+ href = _ref.href,
118
+ onMouseDown = _ref.onMouseDown,
119
+ testId = _ref.testId,
120
+ _ref$logoMaxWidth = _ref.logoMaxWidth,
121
+ logoMaxWidth = _ref$logoMaxWidth === void 0 ? 260 : _ref$logoMaxWidth,
122
+ rest = _objectWithoutProperties(_ref, _excluded);
127
123
  var theme = useTheme();
128
124
  var primaryButton = theme.mode.primaryButton;
129
125
  var _theme$mode$productHo = theme.mode.productHome,
130
- _theme$mode$productHo2 = _theme$mode$productHo.iconColor,
131
- iconColor = _theme$mode$productHo2 === void 0 ? 'inherit' : _theme$mode$productHo2,
132
- _theme$mode$productHo3 = _theme$mode$productHo.iconGradientStart,
133
- iconGradientStart = _theme$mode$productHo3 === void 0 ? 'inherit' : _theme$mode$productHo3,
134
- _theme$mode$productHo4 = _theme$mode$productHo.iconGradientStop,
135
- iconGradientStop = _theme$mode$productHo4 === void 0 ? 'inherit' : _theme$mode$productHo4,
136
- _theme$mode$productHo5 = _theme$mode$productHo.textColor,
137
- textColor = _theme$mode$productHo5 === void 0 ? theme.mode.productHome.color : _theme$mode$productHo5;
126
+ _theme$mode$productHo2 = _theme$mode$productHo.iconColor,
127
+ iconColor = _theme$mode$productHo2 === void 0 ? 'inherit' : _theme$mode$productHo2,
128
+ _theme$mode$productHo3 = _theme$mode$productHo.iconGradientStart,
129
+ iconGradientStart = _theme$mode$productHo3 === void 0 ? 'inherit' : _theme$mode$productHo3,
130
+ _theme$mode$productHo4 = _theme$mode$productHo.iconGradientStop,
131
+ iconGradientStop = _theme$mode$productHo4 === void 0 ? 'inherit' : _theme$mode$productHo4,
132
+ _theme$mode$productHo5 = _theme$mode$productHo.textColor,
133
+ textColor = _theme$mode$productHo5 === void 0 ? theme.mode.productHome.color : _theme$mode$productHo5;
138
134
  var Tag = getTag(onClick, href);
139
-
140
135
  var preventFocusRing = function preventFocusRing(e) {
141
136
  e.preventDefault();
142
137
  onMouseDown && onMouseDown(e);
143
138
  };
144
-
145
139
  var productHomeButtonDynamicStyles = (_productHomeButtonDyn = {}, _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_ACTIVE, primaryButton.active.color), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE, primaryButton.active.backgroundColor), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_ACTIVE, primaryButton.active.boxShadow), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_FOCUS, primaryButton.focus.color), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_FOCUS, primaryButton.focus.backgroundColor), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_FOCUS, primaryButton.focus.boxShadow), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_HOVER, primaryButton.hover.color), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER, primaryButton.hover.backgroundColor), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_HOVER, primaryButton.hover.boxShadow), _defineProperty(_productHomeButtonDyn, VAR_LOGO_MAX_WIDTH, "".concat(logoMaxWidth, "px")), _productHomeButtonDyn);
146
140
  return jsx(Fragment, null, jsx(Tag, _extends({
147
141
  style: productHomeButtonDynamicStyles,
@@ -149,8 +143,8 @@ var ProductHome = function ProductHome(_ref) {
149
143
  href: href,
150
144
  onClick: onClick,
151
145
  onMouseDown: preventFocusRing,
152
- "data-testid": testId && "".concat(testId, "-container") // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
153
-
146
+ "data-testid": testId && "".concat(testId, "-container")
147
+ // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
154
148
  }, rest), jsx("div", {
155
149
  css: [customMaxHeightStyles, productLogoStyles],
156
150
  "data-testid": testId && "".concat(testId, "-logo")
@@ -174,5 +168,4 @@ var ProductHome = function ProductHome(_ref) {
174
168
  "data-testid": testId && "".concat(testId, "-site-title")
175
169
  }, siteTitle));
176
170
  };
177
-
178
171
  export default ProductHome;
@@ -1,8 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
-
3
2
  var _css;
4
-
5
3
  /** @jsx jsx */
4
+
6
5
  import { Fragment } from 'react';
7
6
  import { css, jsx } from '@emotion/react';
8
7
  import { gridSize, PRODUCT_HOME_BREAKPOINT } from '../../common/constants';
@@ -99,22 +98,20 @@ var siteTitleStyles = css({
99
98
  borderRadius: 4,
100
99
  content: '""'
101
100
  }
102
- }); // Not exported to consumers, only used in NavigationSkeleton
103
- // eslint-disable-next-line @repo/internal/react/require-jsdoc
101
+ });
104
102
 
103
+ // Not exported to consumers, only used in NavigationSkeleton
104
+ // eslint-disable-next-line @repo/internal/react/require-jsdoc
105
105
  export var ProductHomeSkeleton = function ProductHomeSkeleton(_ref) {
106
106
  var _productHomeButtonDyn;
107
-
108
107
  var showSiteName = _ref.showSiteName;
109
108
  var theme = useTheme();
110
109
  var primaryButton = theme.mode.primaryButton;
111
110
  var productHomeButtonDynamicStyles = (_productHomeButtonDyn = {}, _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_ACTIVE, primaryButton.active.color), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE, primaryButton.active.backgroundColor), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_ACTIVE, primaryButton.active.boxShadow), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_FOCUS, primaryButton.focus.color), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_FOCUS, primaryButton.focus.backgroundColor), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_FOCUS, primaryButton.focus.boxShadow), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_HOVER, primaryButton.hover.color), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER, primaryButton.hover.backgroundColor), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_HOVER, primaryButton.hover.boxShadow), _defineProperty(_productHomeButtonDyn, VAR_SITE_TITLE_BG_COLOR_AFTER, theme.mode.skeleton.backgroundColor), _productHomeButtonDyn);
112
-
113
111
  var siteTitleDynamicStyles = _defineProperty({
114
112
  borderRight: theme.mode.productHome.borderRight,
115
113
  opacity: theme.mode.skeleton.opacity
116
114
  }, VAR_SITE_TITLE_BG_COLOR_AFTER, theme.mode.skeleton.backgroundColor);
117
-
118
115
  return jsx(Fragment, null, jsx("div", {
119
116
  style: productHomeButtonDynamicStyles,
120
117
  css: productHomeButtonStyles
@@ -2,10 +2,8 @@ export var getTag = function getTag(onClick, href) {
2
2
  if (href) {
3
3
  return 'a';
4
4
  }
5
-
6
5
  if (onClick) {
7
6
  return 'button';
8
7
  }
9
-
10
8
  return 'div';
11
9
  };
@@ -1,5 +1,4 @@
1
1
  import { IconButton } from '../IconButton';
2
-
3
2
  /**
4
3
  * __Profile__
5
4
  *
@@ -9,7 +8,8 @@ import { IconButton } from '../IconButton';
9
8
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#profile)
10
9
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
11
10
  */
12
- export var Profile = IconButton; // This exists only to extract props.
13
- // eslint-disable-next-line @repo/internal/react/use-noop
11
+ export var Profile = IconButton;
14
12
 
13
+ // This exists only to extract props.
14
+ // eslint-disable-next-line @repo/internal/react/use-noop
15
15
  export default (function (props) {});
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
2
  import { gridSize } from '@atlaskit/theme/constants';
3
- import { IconButtonSkeleton } from '../IconButton/skeleton'; // Not exported to consumers, only used in NavigationSkeleton
4
- // eslint-disable-next-line @repo/internal/react/require-jsdoc
3
+ import { IconButtonSkeleton } from '../IconButton/skeleton';
5
4
 
5
+ // Not exported to consumers, only used in NavigationSkeleton
6
+ // eslint-disable-next-line @repo/internal/react/require-jsdoc
6
7
  export var ProfileSkeleton = function ProfileSkeleton() {
7
8
  return /*#__PURE__*/React.createElement(IconButtonSkeleton, {
8
9
  marginLeft: 6,
@@ -2,16 +2,11 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  var _excluded = ["placeholder", "tooltip", "label", "value"];
5
-
6
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7
-
8
- 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) { _defineProperty(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; }
9
-
10
5
  /** @jsx jsx */
11
6
  import { Fragment } from 'react';
12
7
  import { css, jsx } from '@emotion/react';
13
8
  import SearchIcon from '@atlaskit/icon/glyph/search';
14
- import { CREATE_BREAKPOINT, fontSize, gridSize } from '../../common/constants';
9
+ import { CREATE_BREAKPOINT, fontSize, gridSize, varSearchBackgroundColor, varSearchBorderColor, varSearchColor, varSearchFocusBorderColor, varSearchHoverBackgroundColor } from '../../common/constants';
15
10
  import { useTheme } from '../../theme';
16
11
  import { IconButton } from '../IconButton';
17
12
  var searchInputContainerStyles = css(_defineProperty({
@@ -34,40 +29,43 @@ var searchInputStyles = css({
34
29
  width: '220px',
35
30
  height: "".concat(gridSize * 4, "px"),
36
31
  padding: "0 ".concat(gridSize, "px 0 40px"),
32
+ backgroundColor: "var(".concat(varSearchBackgroundColor, ")"),
37
33
  border: '2px solid',
34
+ borderColor: "var(".concat(varSearchBorderColor, ")"),
38
35
  borderRadius: 6,
36
+ color: "var(".concat(varSearchColor, ")"),
39
37
  fontSize: "".concat(fontSize, "px"),
40
38
  outline: 'none',
41
39
  '::placeholder': {
42
40
  color: 'inherit'
41
+ },
42
+ '&:focus': {
43
+ borderColor: "var(".concat(varSearchFocusBorderColor, ")")
44
+ },
45
+ '&:hover': {
46
+ backgroundColor: "var(".concat(varSearchHoverBackgroundColor, ")")
43
47
  }
44
48
  });
45
49
  var searchIconStyles = css(_defineProperty({}, "@media (min-width: ".concat(CREATE_BREAKPOINT, "px)"), {
46
50
  display: 'none !important'
47
51
  }));
48
-
49
52
  var SearchComponent = function SearchComponent(props) {
53
+ var _searchInputDynamicSt;
50
54
  var onClick = props.onClick,
51
- placeholder = props.placeholder,
52
- label = props.label,
53
- value = props.value;
55
+ placeholder = props.placeholder,
56
+ label = props.label,
57
+ value = props.value;
54
58
  var theme = useTheme();
55
59
  var search = theme.mode.search;
56
-
57
60
  var onChange = function onChange() {
58
61
  // @ts-ignore
59
62
  onClick && onClick.apply(void 0, arguments);
60
63
  };
61
-
62
64
  var onInputClick = function onInputClick() {
63
65
  // @ts-ignore
64
66
  onClick && onClick.apply(void 0, arguments);
65
67
  };
66
-
67
- var searchInputDynamicStyles = _objectSpread(_objectSpread({}, search.default), {}, {
68
- ':focus': search.focus
69
- });
70
-
68
+ 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);
71
69
  return jsx("div", {
72
70
  css: searchInputContainerStyles,
73
71
  role: "search"
@@ -85,6 +83,7 @@ var SearchComponent = function SearchComponent(props) {
85
83
  value: value
86
84
  }));
87
85
  };
86
+
88
87
  /**
89
88
  * __Search__
90
89
  *
@@ -93,28 +92,26 @@ var SearchComponent = function SearchComponent(props) {
93
92
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#search)
94
93
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
95
94
  */
96
-
97
-
98
95
  export var Search = function Search(props) {
99
96
  var placeholder = props.placeholder,
100
- tooltip = props.tooltip,
101
- label = props.label,
102
- value = props.value,
103
- iconButtonProps = _objectWithoutProperties(props, _excluded);
104
-
97
+ tooltip = props.tooltip,
98
+ label = props.label,
99
+ value = props.value,
100
+ iconButtonProps = _objectWithoutProperties(props, _excluded);
105
101
  return jsx(Fragment, null, jsx(SearchComponent, {
106
102
  onClick: iconButtonProps.onClick,
107
103
  placeholder: placeholder,
108
104
  label: label,
109
105
  value: value || ''
110
- }), jsx(IconButton // @ts-ignore Overriding styles is not supported.
106
+ }), jsx(IconButton
107
+ // @ts-ignore Overriding styles is not supported.
111
108
  , _extends({
112
109
  css: searchIconStyles,
113
110
  icon: jsx(SearchIcon, {
114
111
  label: label
115
112
  }),
116
- tooltip: tooltip // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
117
-
113
+ tooltip: tooltip
114
+ // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
118
115
  }, iconButtonProps)));
119
116
  };
120
117
  export default Search;
@@ -1,5 +1,4 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
-
3
2
  /** @jsx jsx */
4
3
  import { Fragment } from 'react';
5
4
  import { css, jsx } from '@emotion/react';
@@ -23,9 +22,10 @@ var searchInputSkeletonStyles = css({
23
22
  });
24
23
  var searchIconStyles = css(_defineProperty({}, "@media (min-width: ".concat(CREATE_BREAKPOINT, "px)"), {
25
24
  display: 'none !important'
26
- })); // Not exported to consumers, only used in NavigationSkeleton
27
- // eslint-disable-next-line @repo/internal/react/require-jsdoc
25
+ }));
28
26
 
27
+ // Not exported to consumers, only used in NavigationSkeleton
28
+ // eslint-disable-next-line @repo/internal/react/require-jsdoc
29
29
  export var SearchSkeleton = function SearchSkeleton() {
30
30
  var theme = useTheme();
31
31
  return jsx(Fragment, null, jsx("div", {
@@ -4,7 +4,6 @@ var _excluded = ["tooltip"];
4
4
  import React, { forwardRef } from 'react';
5
5
  import SettingsIcon from '@atlaskit/icon/glyph/settings';
6
6
  import { IconButton } from '../IconButton';
7
-
8
7
  /**
9
8
  * __Settings__
10
9
  *
@@ -15,8 +14,7 @@ import { IconButton } from '../IconButton';
15
14
  */
16
15
  export var Settings = /*#__PURE__*/forwardRef(function (props, ref) {
17
16
  var tooltip = props.tooltip,
18
- iconButtonProps = _objectWithoutProperties(props, _excluded);
19
-
17
+ iconButtonProps = _objectWithoutProperties(props, _excluded);
20
18
  return /*#__PURE__*/React.createElement(IconButton, _extends({
21
19
  icon: /*#__PURE__*/React.createElement(SettingsIcon, {
22
20
  label: typeof tooltip === 'string' ? tooltip : 'Settings Icon'
@@ -4,7 +4,6 @@ var _excluded = ["tooltip"];
4
4
  import React from 'react';
5
5
  import SignInIcon from '@atlaskit/icon/glyph/sign-in';
6
6
  import { IconButton } from '../IconButton';
7
-
8
7
  /**
9
8
  * __Sign in__
10
9
  *
@@ -15,14 +14,13 @@ import { IconButton } from '../IconButton';
15
14
  */
16
15
  export var SignIn = function SignIn(props) {
17
16
  var tooltip = props.tooltip,
18
- iconButtonProps = _objectWithoutProperties(props, _excluded);
19
-
17
+ iconButtonProps = _objectWithoutProperties(props, _excluded);
20
18
  return /*#__PURE__*/React.createElement(IconButton, _extends({
21
19
  icon: /*#__PURE__*/React.createElement(SignInIcon, {
22
20
  label: typeof tooltip === 'string' ? tooltip : 'Sign-in Icon'
23
21
  }),
24
- tooltip: tooltip // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
25
-
22
+ tooltip: tooltip
23
+ // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
26
24
  }, iconButtonProps));
27
25
  };
28
26
  export default SignIn;
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
2
  import { gridSize } from '@atlaskit/theme/constants';
3
- import { IconButtonSkeleton } from '../IconButton/skeleton'; // Not exported to consumers, only used in NavigationSkeleton
4
- // eslint-disable-next-line @repo/internal/react/require-jsdoc
3
+ import { IconButtonSkeleton } from '../IconButton/skeleton';
5
4
 
5
+ // Not exported to consumers, only used in NavigationSkeleton
6
+ // eslint-disable-next-line @repo/internal/react/require-jsdoc
6
7
  export var SignInSkeleton = function SignInSkeleton() {
7
8
  return /*#__PURE__*/React.createElement(IconButtonSkeleton, {
8
9
  marginLeft: 6,
@@ -21,6 +21,7 @@ var skeletonCreateButtonStyles = css({
21
21
  marginLeft: 12
22
22
  }
23
23
  });
24
+
24
25
  /**
25
26
  * __Skeleton create button__
26
27
  *
@@ -31,10 +32,9 @@ var skeletonCreateButtonStyles = css({
31
32
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
32
33
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
33
34
  */
34
-
35
35
  export var SkeletonCreateButton = function SkeletonCreateButton(_ref) {
36
36
  var text = _ref.text,
37
- testId = _ref.testId;
37
+ testId = _ref.testId;
38
38
  var theme = useTheme();
39
39
  return jsx("button", {
40
40
  style: theme.mode.create.default,
@@ -28,6 +28,7 @@ var skeletonIconButtonStyles = css({
28
28
  verticalAlign: 'middle'
29
29
  }
30
30
  });
31
+
31
32
  /**
32
33
  * __Skeleton icon button__
33
34
  *
@@ -38,10 +39,9 @@ var skeletonIconButtonStyles = css({
38
39
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
39
40
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
40
41
  */
41
-
42
42
  export var SkeletonIconButton = function SkeletonIconButton(_ref) {
43
43
  var children = _ref.children,
44
- testId = _ref.testId;
44
+ testId = _ref.testId;
45
45
  var theme = useTheme();
46
46
  return jsx("button", {
47
47
  style: theme.mode.iconButton.default,
@@ -1,9 +1,6 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
-
3
2
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
-
5
3
  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) { _defineProperty(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; }
6
-
7
4
  /** @jsx jsx */
8
5
  import { css, jsx } from '@emotion/react';
9
6
  import { useTheme } from '../../theme';
@@ -70,6 +67,7 @@ var isDropdownButtonStyles = css({
70
67
  verticalAlign: 'middle'
71
68
  }
72
69
  });
70
+
73
71
  /**
74
72
  * __Skeleton primary button__
75
73
  *
@@ -80,24 +78,20 @@ var isDropdownButtonStyles = css({
80
78
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
81
79
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
82
80
  */
83
-
84
81
  export var SkeletonPrimaryButton = function SkeletonPrimaryButton(_ref) {
85
82
  var _objectSpread2;
86
-
87
83
  var _ref$isDropdownButton = _ref.isDropdownButton,
88
- isDropdownButton = _ref$isDropdownButton === void 0 ? false : _ref$isDropdownButton,
89
- _ref$isHighlighted = _ref.isHighlighted,
90
- isHighlighted = _ref$isHighlighted === void 0 ? false : _ref$isHighlighted,
91
- text = _ref.text,
92
- children = _ref.children,
93
- testId = _ref.testId;
84
+ isDropdownButton = _ref$isDropdownButton === void 0 ? false : _ref$isDropdownButton,
85
+ _ref$isHighlighted = _ref.isHighlighted,
86
+ isHighlighted = _ref$isHighlighted === void 0 ? false : _ref$isHighlighted,
87
+ text = _ref.text,
88
+ children = _ref.children,
89
+ testId = _ref.testId;
94
90
  var theme = useTheme();
95
91
  var primaryButton = theme.mode.primaryButton;
96
-
97
92
  var dynamicStyles = _objectSpread(_objectSpread(_objectSpread({}, primaryButton.default), isHighlighted && {
98
93
  color: primaryButton.selected.color
99
94
  }), {}, (_objectSpread2 = {}, _defineProperty(_objectSpread2, VAR_PRIMARY_BUTTON_BEFORE_HIGHLIGHTED_BACKGROUND_COLOR, primaryButton.selected.borderColor), _defineProperty(_objectSpread2, VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR, isHighlighted ? primaryButton.default.borderColor : primaryButton.default.color), _objectSpread2));
100
-
101
95
  return jsx("button", {
102
96
  type: "button",
103
97
  style: dynamicStyles,