@atlaskit/atlassian-navigation 5.7.2 → 5.7.3

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 (254) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/afm-cc/tsconfig.json +0 -1
  3. package/afm-products/tsconfig.json +0 -1
  4. package/dist/cjs/common/constants.js +3 -0
  5. package/dist/cjs/components/AppSwitcher/app-switcher-nav4.js +61 -0
  6. package/dist/cjs/components/AppSwitcher/app-switcher.js +79 -0
  7. package/dist/cjs/components/AppSwitcher/index.js +1 -119
  8. package/dist/cjs/components/AtlassianNavigation/index.js +6 -0
  9. package/dist/cjs/components/AtlassianNavigation/skeleton.js +2 -0
  10. package/dist/cjs/components/Create/index.js +2 -0
  11. package/dist/cjs/components/Help/index.js +2 -0
  12. package/dist/cjs/components/IconButton/index.js +1 -0
  13. package/dist/cjs/components/Notifications/index.js +2 -0
  14. package/dist/cjs/components/PrimaryButton/index.js +2 -0
  15. package/dist/cjs/components/PrimaryDropdownButton/index.js +2 -0
  16. package/dist/cjs/components/PrimaryItemsContainer/index.js +5 -4
  17. package/dist/cjs/components/ProductHome/app-home.js +180 -0
  18. package/dist/cjs/components/ProductHome/custom-product-home.js +2 -0
  19. package/dist/cjs/components/ProductHome/product-home.js +21 -110
  20. package/dist/cjs/components/Profile/index.js +2 -0
  21. package/dist/cjs/components/Profile/profile.js +74 -0
  22. package/dist/cjs/components/Search/index.js +2 -0
  23. package/dist/cjs/components/Settings/index.js +2 -0
  24. package/dist/cjs/components/SignIn/index.js +2 -0
  25. package/dist/cjs/controllers/overflow/index.js +2 -0
  26. package/dist/cjs/controllers/overflow/overflow-context.js +16 -0
  27. package/dist/cjs/controllers/overflow/overflow-provider.js +27 -0
  28. package/dist/cjs/controllers/overflow/use-overflow-controller.js +111 -0
  29. package/dist/cjs/controllers/overflow/use-overflow-status.js +20 -0
  30. package/dist/cjs/entry-points/app-switcher.js +4 -3
  31. package/dist/cjs/entry-points/overflow.js +2 -2
  32. package/dist/cjs/entry-points/profile.js +2 -2
  33. package/dist/cjs/entry-points/skeleton-help-button.js +2 -1
  34. package/dist/cjs/index.js +8 -7
  35. package/dist/cjs/nav4-skeleton-help-button.js +33 -0
  36. package/dist/cjs/skeleton-help-button.js +1 -24
  37. package/dist/cjs/skeleton-switcher-button.js +6 -0
  38. package/dist/cjs/theme/atlassian-theme.js +3 -0
  39. package/dist/cjs/theme/convert-hex-shorthand.js +47 -0
  40. package/dist/cjs/theme/default-theme-brand-refresh.js +10 -0
  41. package/dist/cjs/theme/default-theme.js +1 -2
  42. package/dist/cjs/theme/generate-text-color.js +13 -0
  43. package/dist/cjs/theme/get-contrast-color.js +12 -0
  44. package/dist/cjs/theme/hex-to-rgba.js +18 -0
  45. package/dist/cjs/theme/index.js +2 -2
  46. package/dist/cjs/theme/theme-generator.js +22 -13
  47. package/dist/cjs/theme/theme-provider.js +2 -0
  48. package/dist/cjs/theme/themes.js +3 -0
  49. package/dist/es2019/common/constants.js +3 -0
  50. package/dist/es2019/components/AppSwitcher/app-switcher-nav4.js +52 -0
  51. package/dist/es2019/components/AppSwitcher/app-switcher.js +70 -0
  52. package/dist/es2019/components/AppSwitcher/index.js +0 -116
  53. package/dist/es2019/components/AtlassianNavigation/index.js +6 -0
  54. package/dist/es2019/components/AtlassianNavigation/skeleton.js +2 -0
  55. package/dist/es2019/components/Create/index.js +2 -0
  56. package/dist/es2019/components/Help/index.js +2 -0
  57. package/dist/es2019/components/IconButton/index.js +1 -0
  58. package/dist/es2019/components/Notifications/index.js +2 -0
  59. package/dist/es2019/components/PrimaryButton/index.js +2 -0
  60. package/dist/es2019/components/PrimaryDropdownButton/index.js +2 -0
  61. package/dist/es2019/components/PrimaryItemsContainer/index.js +2 -1
  62. package/dist/es2019/components/ProductHome/app-home.js +185 -0
  63. package/dist/es2019/components/ProductHome/custom-product-home.js +2 -0
  64. package/dist/es2019/components/ProductHome/product-home.js +5 -110
  65. package/dist/es2019/components/Profile/index.js +2 -0
  66. package/dist/es2019/components/Profile/profile.js +65 -0
  67. package/dist/es2019/components/Search/index.js +2 -0
  68. package/dist/es2019/components/Settings/index.js +2 -0
  69. package/dist/es2019/components/SignIn/index.js +2 -0
  70. package/dist/es2019/controllers/overflow/index.js +2 -0
  71. package/dist/es2019/controllers/overflow/overflow-context.js +8 -0
  72. package/dist/es2019/controllers/overflow/overflow-provider.js +18 -0
  73. package/dist/es2019/controllers/overflow/use-overflow-controller.js +89 -0
  74. package/dist/es2019/controllers/overflow/use-overflow-status.js +13 -0
  75. package/dist/es2019/entry-points/app-switcher.js +2 -1
  76. package/dist/es2019/entry-points/overflow.js +1 -1
  77. package/dist/es2019/entry-points/profile.js +1 -1
  78. package/dist/es2019/entry-points/skeleton-help-button.js +2 -1
  79. package/dist/es2019/index.js +4 -3
  80. package/dist/es2019/nav4-skeleton-help-button.js +24 -0
  81. package/dist/es2019/skeleton-help-button.js +1 -22
  82. package/dist/es2019/skeleton-switcher-button.js +7 -0
  83. package/dist/es2019/theme/atlassian-theme.js +3 -0
  84. package/dist/es2019/theme/convert-hex-shorthand.js +27 -0
  85. package/dist/es2019/theme/default-theme-brand-refresh.js +3 -0
  86. package/dist/es2019/theme/default-theme.js +0 -1
  87. package/dist/es2019/theme/generate-text-color.js +6 -0
  88. package/dist/es2019/theme/get-contrast-color.js +3 -0
  89. package/dist/es2019/theme/hex-to-rgba.js +8 -0
  90. package/dist/es2019/theme/index.js +1 -1
  91. package/dist/es2019/theme/theme-generator.js +11 -2
  92. package/dist/es2019/theme/theme-provider.js +2 -0
  93. package/dist/es2019/theme/themes.js +3 -0
  94. package/dist/esm/common/constants.js +3 -0
  95. package/dist/esm/components/AppSwitcher/app-switcher-nav4.js +52 -0
  96. package/dist/esm/components/AppSwitcher/app-switcher.js +70 -0
  97. package/dist/esm/components/AppSwitcher/index.js +0 -115
  98. package/dist/esm/components/AtlassianNavigation/index.js +6 -0
  99. package/dist/esm/components/AtlassianNavigation/skeleton.js +2 -0
  100. package/dist/esm/components/Create/index.js +2 -0
  101. package/dist/esm/components/Help/index.js +2 -0
  102. package/dist/esm/components/IconButton/index.js +1 -0
  103. package/dist/esm/components/Notifications/index.js +2 -0
  104. package/dist/esm/components/PrimaryButton/index.js +2 -0
  105. package/dist/esm/components/PrimaryDropdownButton/index.js +2 -0
  106. package/dist/esm/components/PrimaryItemsContainer/index.js +2 -1
  107. package/dist/esm/components/ProductHome/app-home.js +172 -0
  108. package/dist/esm/components/ProductHome/custom-product-home.js +2 -0
  109. package/dist/esm/components/ProductHome/product-home.js +16 -110
  110. package/dist/esm/components/Profile/index.js +2 -0
  111. package/dist/esm/components/Profile/profile.js +65 -0
  112. package/dist/esm/components/Search/index.js +2 -0
  113. package/dist/esm/components/Settings/index.js +2 -0
  114. package/dist/esm/components/SignIn/index.js +2 -0
  115. package/dist/esm/controllers/overflow/index.js +2 -0
  116. package/dist/esm/controllers/overflow/overflow-context.js +8 -0
  117. package/dist/esm/controllers/overflow/overflow-provider.js +19 -0
  118. package/dist/esm/controllers/overflow/use-overflow-controller.js +103 -0
  119. package/dist/esm/controllers/overflow/use-overflow-status.js +15 -0
  120. package/dist/esm/entry-points/app-switcher.js +2 -1
  121. package/dist/esm/entry-points/overflow.js +1 -1
  122. package/dist/esm/entry-points/profile.js +1 -1
  123. package/dist/esm/entry-points/skeleton-help-button.js +2 -1
  124. package/dist/esm/index.js +4 -3
  125. package/dist/esm/nav4-skeleton-help-button.js +26 -0
  126. package/dist/esm/skeleton-help-button.js +0 -23
  127. package/dist/esm/skeleton-switcher-button.js +7 -0
  128. package/dist/esm/theme/atlassian-theme.js +3 -0
  129. package/dist/esm/theme/convert-hex-shorthand.js +40 -0
  130. package/dist/esm/theme/default-theme-brand-refresh.js +3 -0
  131. package/dist/esm/theme/default-theme.js +0 -1
  132. package/dist/esm/theme/generate-text-color.js +6 -0
  133. package/dist/esm/theme/get-contrast-color.js +5 -0
  134. package/dist/esm/theme/hex-to-rgba.js +11 -0
  135. package/dist/esm/theme/index.js +1 -1
  136. package/dist/esm/theme/theme-generator.js +11 -2
  137. package/dist/esm/theme/theme-provider.js +2 -0
  138. package/dist/esm/theme/themes.js +3 -0
  139. package/dist/types/common/constants.d.ts +3 -0
  140. package/dist/types/components/AppSwitcher/app-switcher-nav4.d.ts +6 -0
  141. package/dist/types/components/AppSwitcher/app-switcher.d.ts +14 -0
  142. package/dist/types/components/AppSwitcher/index.d.ts +0 -12
  143. package/dist/types/components/AppSwitcher/types.d.ts +3 -0
  144. package/dist/types/components/AtlassianNavigation/index.d.ts +2 -0
  145. package/dist/types/components/AtlassianNavigation/skeleton.d.ts +2 -0
  146. package/dist/types/components/AtlassianNavigation/types.d.ts +6 -0
  147. package/dist/types/components/Create/index.d.ts +2 -0
  148. package/dist/types/components/Help/index.d.ts +2 -0
  149. package/dist/types/components/IconButton/index.d.ts +1 -0
  150. package/dist/types/components/Notifications/index.d.ts +2 -0
  151. package/dist/types/components/PrimaryButton/index.d.ts +2 -0
  152. package/dist/types/components/PrimaryDropdownButton/index.d.ts +2 -0
  153. package/dist/types/components/ProductHome/app-home.d.ts +20 -0
  154. package/dist/types/components/ProductHome/custom-product-home.d.ts +2 -0
  155. package/dist/types/components/ProductHome/product-home.d.ts +4 -13
  156. package/dist/types/components/Profile/index.d.ts +2 -0
  157. package/dist/types/components/Profile/profile.d.ts +14 -0
  158. package/dist/types/components/Profile/types.d.ts +3 -0
  159. package/dist/types/components/Search/index.d.ts +2 -0
  160. package/dist/types/components/Search/types.d.ts +3 -0
  161. package/dist/types/components/Settings/index.d.ts +2 -0
  162. package/dist/types/components/Settings/types.d.ts +3 -0
  163. package/dist/types/components/SignIn/index.d.ts +2 -0
  164. package/dist/types/components/SignIn/types.d.ts +3 -0
  165. package/dist/types/components/SkeletonCreateButton/types.d.ts +3 -0
  166. package/dist/types/components/SkeletonIconButton/types.d.ts +3 -0
  167. package/dist/types/components/SkeletonPrimaryButton/types.d.ts +3 -0
  168. package/dist/types/controllers/overflow/index.d.ts +2 -0
  169. package/dist/types/controllers/overflow/overflow-context.d.ts +17 -0
  170. package/dist/types/controllers/overflow/overflow-provider.d.ts +3 -0
  171. package/dist/types/controllers/overflow/use-overflow-controller.d.ts +7 -0
  172. package/dist/types/controllers/overflow/use-overflow-status.d.ts +11 -0
  173. package/dist/types/entry-points/app-switcher.d.ts +2 -1
  174. package/dist/types/entry-points/overflow.d.ts +1 -1
  175. package/dist/types/entry-points/profile.d.ts +1 -1
  176. package/dist/types/entry-points/skeleton-help-button.d.ts +2 -1
  177. package/dist/types/index.d.ts +4 -3
  178. package/dist/types/nav4-skeleton-help-button.d.ts +8 -0
  179. package/dist/types/skeleton-help-button.d.ts +0 -6
  180. package/dist/types/skeleton-switcher-button.d.ts +5 -0
  181. package/dist/types/theme/atlassian-theme.d.ts +3 -0
  182. package/dist/types/theme/convert-hex-shorthand.d.ts +1 -0
  183. package/dist/types/theme/default-theme-brand-refresh.d.ts +1 -0
  184. package/dist/types/theme/default-theme.d.ts +0 -1
  185. package/dist/types/theme/generate-text-color.d.ts +1 -0
  186. package/dist/types/theme/get-contrast-color.d.ts +1 -0
  187. package/dist/types/theme/hex-to-rgba.d.ts +1 -0
  188. package/dist/types/theme/index.d.ts +1 -1
  189. package/dist/types/theme/theme-generator.d.ts +5 -0
  190. package/dist/types/theme/theme-provider.d.ts +2 -0
  191. package/dist/types/theme/themes.d.ts +3 -0
  192. package/dist/types/theme/types.d.ts +30 -0
  193. package/dist/types-ts4.5/common/constants.d.ts +3 -0
  194. package/dist/types-ts4.5/components/AppSwitcher/app-switcher-nav4.d.ts +6 -0
  195. package/dist/types-ts4.5/components/AppSwitcher/app-switcher.d.ts +14 -0
  196. package/dist/types-ts4.5/components/AppSwitcher/index.d.ts +0 -12
  197. package/dist/types-ts4.5/components/AppSwitcher/types.d.ts +3 -0
  198. package/dist/types-ts4.5/components/AtlassianNavigation/index.d.ts +2 -0
  199. package/dist/types-ts4.5/components/AtlassianNavigation/skeleton.d.ts +2 -0
  200. package/dist/types-ts4.5/components/AtlassianNavigation/types.d.ts +6 -0
  201. package/dist/types-ts4.5/components/Create/index.d.ts +2 -0
  202. package/dist/types-ts4.5/components/Help/index.d.ts +2 -0
  203. package/dist/types-ts4.5/components/IconButton/index.d.ts +1 -0
  204. package/dist/types-ts4.5/components/Notifications/index.d.ts +2 -0
  205. package/dist/types-ts4.5/components/PrimaryButton/index.d.ts +2 -0
  206. package/dist/types-ts4.5/components/PrimaryDropdownButton/index.d.ts +2 -0
  207. package/dist/types-ts4.5/components/ProductHome/app-home.d.ts +20 -0
  208. package/dist/types-ts4.5/components/ProductHome/custom-product-home.d.ts +2 -0
  209. package/dist/types-ts4.5/components/ProductHome/product-home.d.ts +4 -13
  210. package/dist/types-ts4.5/components/Profile/index.d.ts +2 -0
  211. package/dist/types-ts4.5/components/Profile/profile.d.ts +14 -0
  212. package/dist/types-ts4.5/components/Profile/types.d.ts +3 -0
  213. package/dist/types-ts4.5/components/Search/index.d.ts +2 -0
  214. package/dist/types-ts4.5/components/Search/types.d.ts +3 -0
  215. package/dist/types-ts4.5/components/Settings/index.d.ts +2 -0
  216. package/dist/types-ts4.5/components/Settings/types.d.ts +3 -0
  217. package/dist/types-ts4.5/components/SignIn/index.d.ts +2 -0
  218. package/dist/types-ts4.5/components/SignIn/types.d.ts +3 -0
  219. package/dist/types-ts4.5/components/SkeletonCreateButton/types.d.ts +3 -0
  220. package/dist/types-ts4.5/components/SkeletonIconButton/types.d.ts +3 -0
  221. package/dist/types-ts4.5/components/SkeletonPrimaryButton/types.d.ts +3 -0
  222. package/dist/types-ts4.5/controllers/overflow/index.d.ts +2 -0
  223. package/dist/types-ts4.5/controllers/overflow/overflow-context.d.ts +17 -0
  224. package/dist/types-ts4.5/controllers/overflow/overflow-provider.d.ts +3 -0
  225. package/dist/types-ts4.5/controllers/overflow/use-overflow-controller.d.ts +7 -0
  226. package/dist/types-ts4.5/controllers/overflow/use-overflow-status.d.ts +11 -0
  227. package/dist/types-ts4.5/entry-points/app-switcher.d.ts +2 -1
  228. package/dist/types-ts4.5/entry-points/overflow.d.ts +1 -1
  229. package/dist/types-ts4.5/entry-points/profile.d.ts +1 -1
  230. package/dist/types-ts4.5/entry-points/skeleton-help-button.d.ts +2 -1
  231. package/dist/types-ts4.5/index.d.ts +4 -3
  232. package/dist/types-ts4.5/nav4-skeleton-help-button.d.ts +8 -0
  233. package/dist/types-ts4.5/skeleton-help-button.d.ts +0 -6
  234. package/dist/types-ts4.5/skeleton-switcher-button.d.ts +5 -0
  235. package/dist/types-ts4.5/theme/atlassian-theme.d.ts +3 -0
  236. package/dist/types-ts4.5/theme/convert-hex-shorthand.d.ts +1 -0
  237. package/dist/types-ts4.5/theme/default-theme-brand-refresh.d.ts +1 -0
  238. package/dist/types-ts4.5/theme/default-theme.d.ts +0 -1
  239. package/dist/types-ts4.5/theme/generate-text-color.d.ts +1 -0
  240. package/dist/types-ts4.5/theme/get-contrast-color.d.ts +1 -0
  241. package/dist/types-ts4.5/theme/hex-to-rgba.d.ts +1 -0
  242. package/dist/types-ts4.5/theme/index.d.ts +1 -1
  243. package/dist/types-ts4.5/theme/theme-generator.d.ts +5 -0
  244. package/dist/types-ts4.5/theme/theme-provider.d.ts +2 -0
  245. package/dist/types-ts4.5/theme/themes.d.ts +3 -0
  246. package/dist/types-ts4.5/theme/types.d.ts +30 -0
  247. package/package.json +9 -9
  248. package/afm-jira/tsconfig.json +0 -64
  249. /package/dist/cjs/components/AppSwitcher/{index.compiled.css → app-switcher.compiled.css} +0 -0
  250. /package/dist/cjs/{skeleton-help-button.compiled.css → nav4-skeleton-help-button.compiled.css} +0 -0
  251. /package/dist/es2019/components/AppSwitcher/{index.compiled.css → app-switcher.compiled.css} +0 -0
  252. /package/dist/es2019/{skeleton-help-button.compiled.css → nav4-skeleton-help-button.compiled.css} +0 -0
  253. /package/dist/esm/components/AppSwitcher/{index.compiled.css → app-switcher.compiled.css} +0 -0
  254. /package/dist/esm/{skeleton-help-button.compiled.css → nav4-skeleton-help-button.compiled.css} +0 -0
package/dist/esm/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export { AtlassianNavigation } from './components/AtlassianNavigation';
2
- export { AppSwitcher, AppSwitcherNav4 } from './components/AppSwitcher';
2
+ export { AppSwitcher } from './components/AppSwitcher/app-switcher';
3
+ export { AppSwitcherNav4 } from './components/AppSwitcher/app-switcher-nav4';
3
4
  export { Create } from './components/Create';
4
5
  export { Help } from './components/Help';
5
6
  export { Notifications } from './components/Notifications';
@@ -7,10 +8,10 @@ export { PrimaryButton } from './components/PrimaryButton';
7
8
  export { PrimaryDropdownButton } from './components/PrimaryDropdownButton';
8
9
  export { IconButton } from './components/IconButton';
9
10
  export { CustomProductHome, ProductHome, AppHome } from './components/ProductHome';
10
- export { Profile } from './components/Profile';
11
+ export { Profile } from './components/Profile/profile';
11
12
  export { Search } from './components/Search';
12
13
  export { Settings } from './components/Settings';
13
14
  export { SignIn } from './components/SignIn';
14
- export { useOverflowStatus } from './controllers/overflow';
15
+ export { useOverflowStatus } from './controllers/overflow/use-overflow-status';
15
16
  export { HORIZONTAL_GLOBAL_NAV_HEIGHT } from './common/constants';
16
17
  export { atlassianTheme, generateTheme, ThemeProvider } from './theme';
@@ -0,0 +1,26 @@
1
+ /* nav4-skeleton-help-button.tsx generated by @compiled/babel-plugin v0.39.1 */
2
+ import "./nav4-skeleton-help-button.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
4
+ import React from 'react';
5
+ import QuestionCircleIcon from '@atlaskit/icon/core/question-circle';
6
+ import { Flex } from '@atlaskit/primitives/compiled';
7
+ import { SkeletonIconButton } from './components/SkeletonIconButton';
8
+ var iconSpacingStyles = {
9
+ space050: "_1rjc1b66 _18zr1b66"
10
+ };
11
+
12
+ /**
13
+ * __Nav 4 skeleton help button__
14
+ *
15
+ * A nav 4 skeleton help button {description}.
16
+ */
17
+ export var Nav4SkeletonHelpButton = function Nav4SkeletonHelpButton(_ref) {
18
+ var _ref$label = _ref.label,
19
+ label = _ref$label === void 0 ? '' : _ref$label;
20
+ return /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(Flex, {
21
+ xcss: iconSpacingStyles.space050
22
+ }, /*#__PURE__*/React.createElement(QuestionCircleIcon, {
23
+ label: label,
24
+ color: "var(--ds-icon, #292A2E)"
25
+ })));
26
+ };
@@ -1,13 +1,6 @@
1
- /* skeleton-help-button.tsx generated by @compiled/babel-plugin v0.39.1 */
2
- import "./skeleton-help-button.compiled.css";
3
- import { ax, ix } from "@compiled/react/runtime";
4
1
  import React from 'react';
5
2
  import QuestionCircleIcon from '@atlaskit/icon/core/question-circle';
6
- import { Flex } from '@atlaskit/primitives/compiled';
7
3
  import { SkeletonIconButton } from './components/SkeletonIconButton';
8
- var iconSpacingStyles = {
9
- space050: "_1rjc1b66 _18zr1b66"
10
- };
11
4
  /**
12
5
  * __Skeleton notification button__
13
6
  *
@@ -25,20 +18,4 @@ export var SkeletonHelpButton = function SkeletonHelpButton(_ref) {
25
18
  label: label,
26
19
  color: "currentColor"
27
20
  }));
28
- };
29
-
30
- /**
31
- * __Nav 4 skeleton help button__
32
- *
33
- * A nav 4 skeleton help button {description}.
34
- */
35
- export var Nav4SkeletonHelpButton = function Nav4SkeletonHelpButton(_ref2) {
36
- var _ref2$label = _ref2.label,
37
- label = _ref2$label === void 0 ? '' : _ref2$label;
38
- return /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(Flex, {
39
- xcss: iconSpacingStyles.space050
40
- }, /*#__PURE__*/React.createElement(QuestionCircleIcon, {
41
- label: label,
42
- color: "var(--ds-icon, #292A2E)"
43
- })));
44
21
  };
@@ -8,6 +8,11 @@ import React from 'react';
8
8
  import { css, jsx } from '@emotion/react';
9
9
  import AppSwitcherIcon from '@atlaskit/icon/core/app-switcher';
10
10
  import { useTheme } from './theme';
11
+
12
+ /**
13
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
14
+ */
15
+
11
16
  var skeletonSwitcherButtonStyles = css({
12
17
  margin: 0,
13
18
  // eslint-disable-next-line @atlaskit/design-system/no-physical-properties
@@ -50,6 +55,8 @@ var skeletonSwitcherButtonStyles = css({
50
55
  *
51
56
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
52
57
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
58
+ *
59
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
53
60
  */
54
61
  export var SkeletonSwitcherButton = function SkeletonSwitcherButton(_ref) {
55
62
  var _ref$label = _ref.label,
@@ -1,5 +1,8 @@
1
1
  import { DEFAULT_THEME_NAME } from './default-theme';
2
2
  import { generateTheme } from './theme-generator';
3
+ /**
4
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
5
+ */
3
6
  export var atlassianTheme = generateTheme({
4
7
  name: DEFAULT_THEME_NAME,
5
8
  backgroundColor: '#FFFFFF',
@@ -0,0 +1,40 @@
1
+ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
+ var hex = '[a-z0-9]';
3
+ var shortHandHexColorPattern = new RegExp("#(".concat(hex, ")(").concat(hex, ")(").concat(hex, ")"), 'i');
4
+ var repeat = function repeat(str, times) {
5
+ return _toConsumableArray(Array(times)).map(function () {
6
+ return str;
7
+ }).join('');
8
+ };
9
+ var isShortHexColor = function isShortHexColor(color) {
10
+ return color && color.length === 4;
11
+ };
12
+ var completeHexColor = function completeHexColor(colors) {
13
+ var hex = colors.map(function (color) {
14
+ return repeat(color, 2);
15
+ }).join('');
16
+ return "#".concat(hex);
17
+ };
18
+ var completeTriplet = function completeTriplet(colors) {
19
+ return "#".concat(repeat(colors[1], 6));
20
+ };
21
+ var isTriplet = function isTriplet(colors) {
22
+ return colors[0] === colors[1] && colors[1] === colors[2];
23
+ };
24
+ export var convertHexShorthand = function convertHexShorthand(color) {
25
+ if (isShortHexColor(color)) {
26
+ // when color = '#ccc', matches is structured as ['#ccc', 'c', 'c', 'c', ...]
27
+ var matches = color.match(shortHandHexColorPattern);
28
+ if (matches) {
29
+ var colors = matches.slice(1, 4);
30
+ if (isTriplet(colors)) {
31
+ return completeTriplet(colors);
32
+ } else {
33
+ return completeHexColor(colors);
34
+ }
35
+ }
36
+ }
37
+
38
+ // return the color as is when it's not hex color shorthand
39
+ return color;
40
+ };
@@ -0,0 +1,3 @@
1
+ import defaultTheme from './default-theme';
2
+ var defaultThemeCopy = JSON.parse(JSON.stringify(defaultTheme));
3
+ export var defaultThemeBrandRefresh = defaultThemeCopy;
@@ -131,6 +131,5 @@ var defaultThemeCopy = JSON.parse(JSON.stringify(defaultTheme));
131
131
  // Update iconColor and textColor in defaultThemeBrandRefresh
132
132
  defaultThemeCopy.mode.productHome.iconColor = undefined;
133
133
  defaultThemeCopy.mode.productHome.textColor = undefined;
134
- export var defaultThemeBrandRefresh = defaultThemeCopy;
135
134
  export var DEFAULT_THEME_NAME = 'atlassian';
136
135
  export default defaultTheme;
@@ -0,0 +1,6 @@
1
+ import chromatism from 'chromatism';
2
+ import { convertHexShorthand } from './convert-hex-shorthand';
3
+ export var generateTextColor = function generateTextColor(color) {
4
+ var converted = convertHexShorthand(color);
5
+ return chromatism.contrastRatio(converted).hex;
6
+ };
@@ -0,0 +1,5 @@
1
+ import chromatism from 'chromatism';
2
+ import { hexToRGBA } from './hex-to-rgba';
3
+ export var getContrastColor = function getContrastColor(contrastValue, opacityValue, color) {
4
+ return hexToRGBA(chromatism.contrast(contrastValue, color).hex, opacityValue);
5
+ };
@@ -0,0 +1,11 @@
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ import chromatism from 'chromatism';
5
+ export var hexToRGBA = function hexToRGBA(hex) {
6
+ var opacity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
7
+ var rgba = _objectSpread(_objectSpread({}, chromatism.convert(hex).rgb), {}, {
8
+ a: opacity
9
+ });
10
+ return "rgba(".concat(Object.values(rgba).join(', '), ")");
11
+ };
@@ -2,4 +2,4 @@ export { generateTheme } from './theme-generator';
2
2
  export { ThemeProvider } from './theme-provider';
3
3
  export { atlassianTheme, defaultTheme } from './themes';
4
4
  export { useTheme } from './use-theme';
5
- export { hexToRGBA } from './theme-helpers';
5
+ export { hexToRGBA } from './hex-to-rgba';
@@ -1,9 +1,12 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
- import { DEFAULT_THEME_NAME, defaultThemeBrandRefresh } from './default-theme';
4
+ import { DEFAULT_THEME_NAME } from './default-theme';
5
+ import { defaultThemeBrandRefresh } from './default-theme-brand-refresh';
6
+ import { generateTextColor } from './generate-text-color';
5
7
  import { getBoxShadow } from './get-box-shadow';
6
- import { generateTextColor, getContrastColor, hexToRGBA } from './theme-helpers';
8
+ import { getContrastColor } from './get-contrast-color';
9
+ import { hexToRGBA } from './hex-to-rgba';
7
10
  var generateOpacityValue = function generateOpacityValue(color) {
8
11
  return color === '#000000' ? 0.3 : 0.6;
9
12
  };
@@ -60,6 +63,12 @@ var generateCreateButtonColors = function generateCreateButtonColors(_themeBackg
60
63
  highlightColor: themeHighlight
61
64
  };
62
65
  };
66
+
67
+ /**
68
+ * __generateTheme__
69
+ *
70
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
71
+ */
63
72
  export var generateTheme = function generateTheme(themeColors) {
64
73
  var backgroundColor = themeColors.backgroundColor,
65
74
  highlightColor = themeColors.highlightColor,
@@ -3,6 +3,8 @@ import { ThemeContext } from './theme-context';
3
3
  * __Theme provider__
4
4
  *
5
5
  * A provider for the theme context used by all navigation components.
6
+ *
7
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
6
8
  */
7
9
  export var ThemeProvider = ThemeContext.Provider;
8
10
  export { ThemeContext } from './theme-context';
@@ -1,3 +1,6 @@
1
1
  import { atlassianTheme } from './atlassian-theme';
2
+ /**
3
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
4
+ */
2
5
  export var defaultTheme = atlassianTheme;
3
6
  export { atlassianTheme } from './atlassian-theme';
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
3
+ */
1
4
  export declare const HORIZONTAL_GLOBAL_NAV_HEIGHT = 56;
2
5
  export declare const PRODUCT_HOME_BREAKPOINT = 1280;
3
6
  export declare const CREATE_BREAKPOINT = 1130;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { type AppSwitcherProps } from './types';
3
+ /**
4
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
5
+ */
6
+ export declare const AppSwitcherNav4: React.ForwardRefExoticComponent<React.PropsWithoutRef<AppSwitcherProps> & React.RefAttributes<any>>;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { type AppSwitcherProps } from './types';
3
+ /**
4
+ * _App switcher__
5
+ *
6
+ * An AppSwitcher button that can be passed into `AtlassianNavigation`'s
7
+ * `renderAppSwitcher` prop.
8
+ *
9
+ * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#app-switcher)
10
+ * - [Code](https://atlassian.design/components/atlassian-navigation/code)
11
+ *
12
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
13
+ */
14
+ export declare const AppSwitcher: React.ForwardRefExoticComponent<React.PropsWithoutRef<AppSwitcherProps> & React.RefAttributes<any>>;
@@ -1,15 +1,3 @@
1
- import React from 'react';
2
1
  import { type AppSwitcherProps } from './types';
3
- /**
4
- * _App switcher__
5
- *
6
- * An AppSwitcher button that can be passed into `AtlassianNavigation`'s
7
- * `renderAppSwitcher` prop.
8
- *
9
- * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#app-switcher)
10
- * - [Code](https://atlassian.design/components/atlassian-navigation/code)
11
- */
12
- export declare const AppSwitcher: React.ForwardRefExoticComponent<React.PropsWithoutRef<AppSwitcherProps> & React.RefAttributes<any>>;
13
- export declare const AppSwitcherNav4: React.ForwardRefExoticComponent<React.PropsWithoutRef<AppSwitcherProps> & React.RefAttributes<any>>;
14
2
  declare const _default: (_props: AppSwitcherProps) => void;
15
3
  export default _default;
@@ -1,2 +1,5 @@
1
1
  import { type BaseIconButtonProps } from '../IconButton/types';
2
+ /**
3
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
4
+ */
2
5
  export type AppSwitcherProps = BaseIconButtonProps;
@@ -11,5 +11,7 @@ import { type AtlassianNavigationProps } from './types';
11
11
  *
12
12
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples)
13
13
  * - [Code](https://atlassian.design/components/atlassian-navigation/examples)
14
+ *
15
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
14
16
  */
15
17
  export declare const AtlassianNavigation: (props: AtlassianNavigationProps) => React.JSX.Element;
@@ -16,5 +16,7 @@ import { type NavigationSkeletonProps } from './types';
16
16
  *
17
17
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-loader)
18
18
  * - [Code](https://atlassian.design/components/{packageName}/code)
19
+ *
20
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
19
21
  */
20
22
  export declare const NavigationSkeleton: ({ primaryItemsCount, secondaryItemsCount, theme, showSiteName, shouldShowSearch, testId, }: NavigationSkeletonProps) => React.JSX.Element;
@@ -1,5 +1,8 @@
1
1
  import { type default as React, type ReactNode, type ReactNodeArray } from 'react';
2
2
  import { type NavigationTheme } from '../../theme';
3
+ /**
4
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
5
+ */
3
6
  export interface AtlassianNavigationProps {
4
7
  /**
5
8
  * Describes the specific role of this navigation component for users viewing the page with a screen
@@ -77,6 +80,9 @@ export interface AtlassianNavigationProps {
77
80
  */
78
81
  isSSRPlaceholderEnabled?: boolean;
79
82
  }
83
+ /**
84
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
85
+ */
80
86
  export interface NavigationSkeletonProps {
81
87
  /**
82
88
  * How many skeleton primary items to display.
@@ -12,5 +12,7 @@ import { type CreateProps } from './types';
12
12
  *
13
13
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#create)
14
14
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
15
+ *
16
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
15
17
  */
16
18
  export declare const Create: ({ onClick, href, text, buttonTooltip, iconButtonTooltip, testId, label, }: CreateProps) => React.JSX.Element;
@@ -7,5 +7,7 @@ import { type HelpProps } from './types';
7
7
  *
8
8
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#help)
9
9
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
10
+ *
11
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
10
12
  */
11
13
  export declare const Help: React.ForwardRefExoticComponent<React.PropsWithoutRef<HelpProps> & React.RefAttributes<any>>;
@@ -8,5 +8,6 @@ import { type IconButtonProps } from './types';
8
8
  * pass into `AtlassianNavigation`'s render props, but where possible you should
9
9
  * rely on the defaults.
10
10
  *
11
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
11
12
  */
12
13
  export declare const IconButton: React.ForwardRefExoticComponent<React.PropsWithoutRef<IconButtonProps> & React.RefAttributes<HTMLElement>>;
@@ -8,5 +8,7 @@ import { type NotificationsProps } from './types';
8
8
  *
9
9
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#notifications)
10
10
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
11
+ *
12
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
11
13
  */
12
14
  export declare const Notifications: React.ForwardRefExoticComponent<React.PropsWithoutRef<NotificationsProps> & React.RefAttributes<any>>;
@@ -7,5 +7,7 @@ import { type PrimaryButtonProps } from './types';
7
7
  *
8
8
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#dropdown-menu)
9
9
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
10
+ *
11
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
10
12
  */
11
13
  export declare const PrimaryButton: React.ForwardRefExoticComponent<React.PropsWithoutRef<PrimaryButtonProps> & React.RefAttributes<HTMLElement>>;
@@ -7,5 +7,7 @@ import { type PrimaryDropdownButtonProps } from './types';
7
7
  *
8
8
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#button)
9
9
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
10
+ *
11
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
10
12
  */
11
13
  export declare const PrimaryDropdownButton: React.ForwardRefExoticComponent<React.PropsWithoutRef<PrimaryDropdownButtonProps> & React.RefAttributes<HTMLElement>>;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import React from 'react';
6
+ import { type AppHomeProps } from './types';
7
+ /**
8
+ * __App home__
9
+ *
10
+ * A variant of the ProductHome component designed for use with the updated app logos.
11
+ *
12
+ * Takes an icon, displayed at all viewport sizes, and a product name, which is
13
+ * displayed only at larger viewport sizes.
14
+ *
15
+ * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#app-product-home)
16
+ * - [Code](https://atlassian.design/components/atlassian-navigation/code)
17
+ *
18
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
19
+ */
20
+ export declare const AppHome: ({ "aria-label": ariaLabel, href, name, icon: Icon, onClick, onMouseDown, siteTitle, testId, ...rest }: AppHomeProps) => React.JSX.Element;
@@ -11,6 +11,8 @@ import { type CustomProductHomeProps } from './types';
11
11
  *
12
12
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#custom-product-home)
13
13
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
14
+ *
15
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
14
16
  */
15
17
  declare const CustomProductHome: (props: CustomProductHomeProps) => React.JSX.Element;
16
18
  export default CustomProductHome;
@@ -3,19 +3,7 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import React from 'react';
6
- import { type AppHomeProps, type ProductHomeProps } from './types';
7
- /**
8
- * __App home__
9
- *
10
- * A variant of the ProductHome component designed for use with the updated app logos.
11
- *
12
- * Takes an icon, displayed at all viewport sizes, and a product name, which is
13
- * displayed only at larger viewport sizes.
14
- *
15
- * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#app-product-home)
16
- * - [Code](https://atlassian.design/components/atlassian-navigation/code)
17
- */
18
- export declare const AppHome: ({ "aria-label": ariaLabel, href, name, icon: Icon, onClick, onMouseDown, siteTitle, testId, ...rest }: AppHomeProps) => React.JSX.Element;
6
+ import { type ProductHomeProps } from './types';
19
7
  /**
20
8
  * __Product home__
21
9
  *
@@ -26,6 +14,9 @@ export declare const AppHome: ({ "aria-label": ariaLabel, href, name, icon: Icon
26
14
  *
27
15
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#product-home)
28
16
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
17
+ *
18
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
29
19
  */
30
20
  declare const ProductHome: ({ "aria-label": ariaLabel, href, icon: Icon, logo: Logo, logoMaxWidth, onClick, onMouseDown, siteTitle, testId, ...rest }: ProductHomeProps) => React.JSX.Element;
31
21
  export default ProductHome;
22
+ export { AppHome } from './app-home';
@@ -8,6 +8,8 @@ import { type ProfileProps } from './types';
8
8
  *
9
9
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#profile)
10
10
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
11
+ *
12
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
11
13
  */
12
14
  export declare const Profile: React.ForwardRefExoticComponent<React.PropsWithoutRef<ProfileProps> & React.RefAttributes<HTMLElement>>;
13
15
  declare const _default: (_props: ProfileProps) => void;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { type ProfileProps } from './types';
3
+ /**
4
+ * __Profile__
5
+ *
6
+ * A profile button which takes an icon/avatar component can be that can be
7
+ * passed into `AtlassianNavigation`'s `renderProfile` prop.
8
+ *
9
+ * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#profile)
10
+ * - [Code](https://atlassian.design/components/atlassian-navigation/code)
11
+ *
12
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
13
+ */
14
+ export declare const Profile: React.ForwardRefExoticComponent<React.PropsWithoutRef<ProfileProps> & React.RefAttributes<HTMLElement>>;
@@ -1,2 +1,5 @@
1
1
  import { type IconButtonProps } from '../IconButton/types';
2
+ /**
3
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
4
+ */
2
5
  export type ProfileProps = IconButtonProps;
@@ -11,5 +11,7 @@ import { type SearchProps } from './types';
11
11
  *
12
12
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#search)
13
13
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
14
+ *
15
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
14
16
  */
15
17
  export declare const Search: (props: SearchProps) => React.JSX.Element;
@@ -1,4 +1,7 @@
1
1
  import { type BaseIconButtonProps } from '../IconButton/types';
2
+ /**
3
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
4
+ */
2
5
  export type SearchProps = BaseIconButtonProps & {
3
6
  /**
4
7
  * Placeholder text for the search textbox.
@@ -7,5 +7,7 @@ import { type SettingsProps } from './types';
7
7
  *
8
8
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#settings)
9
9
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
10
+ *
11
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
10
12
  */
11
13
  export declare const Settings: React.ForwardRefExoticComponent<React.PropsWithoutRef<SettingsProps> & React.RefAttributes<any>>;
@@ -1,2 +1,5 @@
1
1
  import { type BaseIconButtonProps } from '../IconButton/types';
2
+ /**
3
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
4
+ */
2
5
  export type SettingsProps = BaseIconButtonProps;
@@ -7,5 +7,7 @@ import { type SignInProps } from './types';
7
7
  *
8
8
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#sign-in)
9
9
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
10
+ *
11
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
10
12
  */
11
13
  export declare const SignIn: (props: SignInProps) => React.JSX.Element;
@@ -1,2 +1,5 @@
1
1
  import { type BaseIconButtonProps } from '../IconButton/types';
2
+ /**
3
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
4
+ */
2
5
  export type SignInProps = BaseIconButtonProps;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
3
+ */
1
4
  export type SkeletonCreateButtonProps = {
2
5
  /**
3
6
  * Text to be displayed inside the skeleton create button.
@@ -1,4 +1,7 @@
1
1
  import { type ReactNode } from 'react';
2
+ /**
3
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
4
+ */
2
5
  export type SkeletonIconButtonProps = {
3
6
  /**
4
7
  * Content to be placed inside the skeleton.
@@ -1,4 +1,7 @@
1
1
  import { type ReactNode } from 'react';
2
+ /**
3
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
4
+ */
2
5
  export type SkeletonPrimaryButtonProps = {
3
6
  /**
4
7
  * Text content to be displayed inside the skeleton button.
@@ -24,6 +24,8 @@ export declare const OverflowProvider: ({ children, isVisible, openOverflowMenu,
24
24
  * Returns the current context value for the nearest OverflowProvider.
25
25
  *
26
26
  * - [Example](https://atlassian.design/components/atlassian-navigation/examples#responsive)
27
+ *
28
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
27
29
  */
28
30
  export declare const useOverflowStatus: () => OverflowContext;
29
31
  export declare const useOverflowController: (nodes: ReactNode | ReactNode[]) => {
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ export interface OverflowContext {
3
+ /**
4
+ * Returns `true` when the navigation item is visible,
5
+ * and `false` when the navigation item has been pushed into the overflow menu.
6
+ */
7
+ isVisible: boolean;
8
+ /**
9
+ * Method that can be used to programmatically open the overflow menu
10
+ */
11
+ openOverflowMenu: () => void;
12
+ /**
13
+ * Method that can be used to programmatically close the overflow menu
14
+ */
15
+ closeOverflowMenu: () => void;
16
+ }
17
+ export declare const OverflowContext: React.Context<OverflowContext>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { type OverflowProviderProps } from './types';
3
+ export declare const OverflowProvider: ({ children, isVisible, openOverflowMenu, closeOverflowMenu, }: OverflowProviderProps) => React.JSX.Element;
@@ -0,0 +1,7 @@
1
+ import React, { type ReactNode } from 'react';
2
+ import type { DebouncedFuncLeading } from 'lodash';
3
+ export declare const useOverflowController: (nodes: ReactNode | ReactNode[]) => {
4
+ visibleItems: ReactNode[];
5
+ overflowItems: ReactNode[];
6
+ updateWidth: DebouncedFuncLeading<React.Dispatch<React.SetStateAction<number>>>;
7
+ };