@atlaskit/atlassian-navigation 5.7.1 → 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 (312) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/afm-cc/tsconfig.json +0 -1
  3. package/afm-products/tsconfig.json +0 -1
  4. package/dist/cjs/common/action-section-desktop-css.js +12 -0
  5. package/dist/cjs/common/action-section-mobile-css.js +12 -0
  6. package/dist/cjs/common/constants.js +3 -0
  7. package/dist/cjs/common/styles.js +13 -9
  8. package/dist/cjs/components/AppSwitcher/app-switcher-nav4.js +61 -0
  9. package/dist/cjs/components/AppSwitcher/app-switcher.js +79 -0
  10. package/dist/cjs/components/AppSwitcher/index.js +1 -119
  11. package/dist/cjs/components/AtlassianNavigation/index.js +6 -0
  12. package/dist/cjs/components/AtlassianNavigation/skeleton.js +2 -0
  13. package/dist/cjs/components/Create/index.js +2 -0
  14. package/dist/cjs/components/Help/index.js +2 -0
  15. package/dist/cjs/components/IconButton/index.js +1 -0
  16. package/dist/cjs/components/Notifications/index.js +2 -0
  17. package/dist/cjs/components/PrimaryButton/index.js +2 -0
  18. package/dist/cjs/components/PrimaryDropdownButton/index.js +2 -0
  19. package/dist/cjs/components/PrimaryItemsContainer/index.js +5 -4
  20. package/dist/cjs/components/ProductHome/app-home.js +180 -0
  21. package/dist/cjs/components/ProductHome/custom-product-home.js +2 -0
  22. package/dist/cjs/components/ProductHome/product-home.js +21 -110
  23. package/dist/cjs/components/Profile/index.js +2 -0
  24. package/dist/cjs/components/Profile/profile.js +74 -0
  25. package/dist/cjs/components/Search/index.js +2 -0
  26. package/dist/cjs/components/Settings/index.js +2 -0
  27. package/dist/cjs/components/SignIn/index.js +2 -0
  28. package/dist/cjs/controllers/overflow/index.js +2 -0
  29. package/dist/cjs/controllers/overflow/overflow-context.js +16 -0
  30. package/dist/cjs/controllers/overflow/overflow-provider.js +27 -0
  31. package/dist/cjs/controllers/overflow/use-overflow-controller.js +111 -0
  32. package/dist/cjs/controllers/overflow/use-overflow-status.js +20 -0
  33. package/dist/cjs/entry-points/app-switcher.js +4 -3
  34. package/dist/cjs/entry-points/overflow.js +2 -2
  35. package/dist/cjs/entry-points/profile.js +2 -2
  36. package/dist/cjs/entry-points/skeleton-help-button.js +2 -1
  37. package/dist/cjs/index.js +8 -7
  38. package/dist/cjs/nav4-skeleton-help-button.js +33 -0
  39. package/dist/cjs/nav4-skeleton-notification-button.js +24 -0
  40. package/dist/cjs/nav4-skeleton-settings-button.js +23 -0
  41. package/dist/cjs/nav4-skeleton-switcher-button.js +24 -0
  42. package/dist/cjs/skeleton-help-button.js +1 -24
  43. package/dist/cjs/skeleton-notification-button.js +8 -16
  44. package/dist/cjs/skeleton-settings-button.js +8 -15
  45. package/dist/cjs/skeleton-switcher-button.js +14 -17
  46. package/dist/cjs/theme/atlassian-theme.js +16 -0
  47. package/dist/cjs/theme/convert-hex-shorthand.js +47 -0
  48. package/dist/cjs/theme/default-theme-brand-refresh.js +10 -0
  49. package/dist/cjs/theme/default-theme.js +1 -2
  50. package/dist/cjs/theme/generate-text-color.js +13 -0
  51. package/dist/cjs/theme/get-box-shadow.js +9 -0
  52. package/dist/cjs/theme/get-contrast-color.js +12 -0
  53. package/dist/cjs/theme/hex-to-rgba.js +18 -0
  54. package/dist/cjs/theme/index.js +2 -2
  55. package/dist/cjs/theme/theme-context.js +10 -0
  56. package/dist/cjs/theme/theme-generator.js +28 -18
  57. package/dist/cjs/theme/theme-helpers.js +10 -5
  58. package/dist/cjs/theme/theme-provider.js +11 -8
  59. package/dist/cjs/theme/themes.js +11 -8
  60. package/dist/cjs/theme/use-theme.js +2 -2
  61. package/dist/es2019/common/action-section-desktop-css.js +6 -0
  62. package/dist/es2019/common/action-section-mobile-css.js +6 -0
  63. package/dist/es2019/common/constants.js +3 -0
  64. package/dist/es2019/common/styles.js +2 -11
  65. package/dist/es2019/components/AppSwitcher/app-switcher-nav4.js +52 -0
  66. package/dist/es2019/components/AppSwitcher/app-switcher.js +70 -0
  67. package/dist/es2019/components/AppSwitcher/index.js +0 -116
  68. package/dist/es2019/components/AtlassianNavigation/index.js +6 -0
  69. package/dist/es2019/components/AtlassianNavigation/skeleton.js +2 -0
  70. package/dist/es2019/components/Create/index.js +2 -0
  71. package/dist/es2019/components/Help/index.js +2 -0
  72. package/dist/es2019/components/IconButton/index.js +1 -0
  73. package/dist/es2019/components/Notifications/index.js +2 -0
  74. package/dist/es2019/components/PrimaryButton/index.js +2 -0
  75. package/dist/es2019/components/PrimaryDropdownButton/index.js +2 -0
  76. package/dist/es2019/components/PrimaryItemsContainer/index.js +2 -1
  77. package/dist/es2019/components/ProductHome/app-home.js +185 -0
  78. package/dist/es2019/components/ProductHome/custom-product-home.js +2 -0
  79. package/dist/es2019/components/ProductHome/product-home.js +5 -110
  80. package/dist/es2019/components/Profile/index.js +2 -0
  81. package/dist/es2019/components/Profile/profile.js +65 -0
  82. package/dist/es2019/components/Search/index.js +2 -0
  83. package/dist/es2019/components/Settings/index.js +2 -0
  84. package/dist/es2019/components/SignIn/index.js +2 -0
  85. package/dist/es2019/controllers/overflow/index.js +2 -0
  86. package/dist/es2019/controllers/overflow/overflow-context.js +8 -0
  87. package/dist/es2019/controllers/overflow/overflow-provider.js +18 -0
  88. package/dist/es2019/controllers/overflow/use-overflow-controller.js +89 -0
  89. package/dist/es2019/controllers/overflow/use-overflow-status.js +13 -0
  90. package/dist/es2019/entry-points/app-switcher.js +2 -1
  91. package/dist/es2019/entry-points/overflow.js +1 -1
  92. package/dist/es2019/entry-points/profile.js +1 -1
  93. package/dist/es2019/entry-points/skeleton-help-button.js +2 -1
  94. package/dist/es2019/index.js +4 -3
  95. package/dist/es2019/nav4-skeleton-help-button.js +24 -0
  96. package/dist/es2019/nav4-skeleton-notification-button.js +15 -0
  97. package/dist/es2019/nav4-skeleton-settings-button.js +14 -0
  98. package/dist/es2019/nav4-skeleton-switcher-button.js +15 -0
  99. package/dist/es2019/skeleton-help-button.js +1 -22
  100. package/dist/es2019/skeleton-notification-button.js +1 -13
  101. package/dist/es2019/skeleton-settings-button.js +1 -12
  102. package/dist/es2019/skeleton-switcher-button.js +8 -14
  103. package/dist/es2019/theme/atlassian-theme.js +10 -0
  104. package/dist/es2019/theme/convert-hex-shorthand.js +27 -0
  105. package/dist/es2019/theme/default-theme-brand-refresh.js +3 -0
  106. package/dist/es2019/theme/default-theme.js +0 -1
  107. package/dist/es2019/theme/generate-text-color.js +6 -0
  108. package/dist/es2019/theme/get-box-shadow.js +1 -0
  109. package/dist/es2019/theme/get-contrast-color.js +3 -0
  110. package/dist/es2019/theme/hex-to-rgba.js +8 -0
  111. package/dist/es2019/theme/index.js +1 -1
  112. package/dist/es2019/theme/theme-context.js +4 -0
  113. package/dist/es2019/theme/theme-generator.js +12 -2
  114. package/dist/es2019/theme/theme-helpers.js +3 -5
  115. package/dist/es2019/theme/theme-provider.js +5 -7
  116. package/dist/es2019/theme/themes.js +6 -8
  117. package/dist/es2019/theme/use-theme.js +1 -1
  118. package/dist/esm/common/action-section-desktop-css.js +5 -0
  119. package/dist/esm/common/action-section-mobile-css.js +5 -0
  120. package/dist/esm/common/constants.js +3 -0
  121. package/dist/esm/common/styles.js +2 -8
  122. package/dist/esm/components/AppSwitcher/app-switcher-nav4.js +52 -0
  123. package/dist/esm/components/AppSwitcher/app-switcher.js +70 -0
  124. package/dist/esm/components/AppSwitcher/index.js +0 -115
  125. package/dist/esm/components/AtlassianNavigation/index.js +6 -0
  126. package/dist/esm/components/AtlassianNavigation/skeleton.js +2 -0
  127. package/dist/esm/components/Create/index.js +2 -0
  128. package/dist/esm/components/Help/index.js +2 -0
  129. package/dist/esm/components/IconButton/index.js +1 -0
  130. package/dist/esm/components/Notifications/index.js +2 -0
  131. package/dist/esm/components/PrimaryButton/index.js +2 -0
  132. package/dist/esm/components/PrimaryDropdownButton/index.js +2 -0
  133. package/dist/esm/components/PrimaryItemsContainer/index.js +2 -1
  134. package/dist/esm/components/ProductHome/app-home.js +172 -0
  135. package/dist/esm/components/ProductHome/custom-product-home.js +2 -0
  136. package/dist/esm/components/ProductHome/product-home.js +16 -110
  137. package/dist/esm/components/Profile/index.js +2 -0
  138. package/dist/esm/components/Profile/profile.js +65 -0
  139. package/dist/esm/components/Search/index.js +2 -0
  140. package/dist/esm/components/Settings/index.js +2 -0
  141. package/dist/esm/components/SignIn/index.js +2 -0
  142. package/dist/esm/controllers/overflow/index.js +2 -0
  143. package/dist/esm/controllers/overflow/overflow-context.js +8 -0
  144. package/dist/esm/controllers/overflow/overflow-provider.js +19 -0
  145. package/dist/esm/controllers/overflow/use-overflow-controller.js +103 -0
  146. package/dist/esm/controllers/overflow/use-overflow-status.js +15 -0
  147. package/dist/esm/entry-points/app-switcher.js +2 -1
  148. package/dist/esm/entry-points/overflow.js +1 -1
  149. package/dist/esm/entry-points/profile.js +1 -1
  150. package/dist/esm/entry-points/skeleton-help-button.js +2 -1
  151. package/dist/esm/index.js +4 -3
  152. package/dist/esm/nav4-skeleton-help-button.js +26 -0
  153. package/dist/esm/nav4-skeleton-notification-button.js +17 -0
  154. package/dist/esm/nav4-skeleton-settings-button.js +16 -0
  155. package/dist/esm/nav4-skeleton-switcher-button.js +17 -0
  156. package/dist/esm/skeleton-help-button.js +0 -23
  157. package/dist/esm/skeleton-notification-button.js +1 -15
  158. package/dist/esm/skeleton-settings-button.js +1 -14
  159. package/dist/esm/skeleton-switcher-button.js +8 -16
  160. package/dist/esm/theme/atlassian-theme.js +10 -0
  161. package/dist/esm/theme/convert-hex-shorthand.js +40 -0
  162. package/dist/esm/theme/default-theme-brand-refresh.js +3 -0
  163. package/dist/esm/theme/default-theme.js +0 -1
  164. package/dist/esm/theme/generate-text-color.js +6 -0
  165. package/dist/esm/theme/get-box-shadow.js +3 -0
  166. package/dist/esm/theme/get-contrast-color.js +5 -0
  167. package/dist/esm/theme/hex-to-rgba.js +11 -0
  168. package/dist/esm/theme/index.js +1 -1
  169. package/dist/esm/theme/theme-context.js +4 -0
  170. package/dist/esm/theme/theme-generator.js +12 -2
  171. package/dist/esm/theme/theme-helpers.js +3 -5
  172. package/dist/esm/theme/theme-provider.js +5 -7
  173. package/dist/esm/theme/themes.js +6 -8
  174. package/dist/esm/theme/use-theme.js +1 -1
  175. package/dist/types/common/action-section-desktop-css.d.ts +5 -0
  176. package/dist/types/common/action-section-mobile-css.d.ts +5 -0
  177. package/dist/types/common/constants.d.ts +3 -0
  178. package/dist/types/common/styles.d.ts +2 -10
  179. package/dist/types/components/AppSwitcher/app-switcher-nav4.d.ts +6 -0
  180. package/dist/types/components/AppSwitcher/app-switcher.d.ts +14 -0
  181. package/dist/types/components/AppSwitcher/index.d.ts +0 -12
  182. package/dist/types/components/AppSwitcher/types.d.ts +3 -0
  183. package/dist/types/components/AtlassianNavigation/index.d.ts +2 -0
  184. package/dist/types/components/AtlassianNavigation/skeleton.d.ts +2 -0
  185. package/dist/types/components/AtlassianNavigation/types.d.ts +6 -0
  186. package/dist/types/components/Create/index.d.ts +2 -0
  187. package/dist/types/components/Help/index.d.ts +2 -0
  188. package/dist/types/components/IconButton/index.d.ts +1 -0
  189. package/dist/types/components/Notifications/index.d.ts +2 -0
  190. package/dist/types/components/PrimaryButton/index.d.ts +2 -0
  191. package/dist/types/components/PrimaryDropdownButton/index.d.ts +2 -0
  192. package/dist/types/components/ProductHome/app-home.d.ts +20 -0
  193. package/dist/types/components/ProductHome/custom-product-home.d.ts +2 -0
  194. package/dist/types/components/ProductHome/product-home.d.ts +4 -13
  195. package/dist/types/components/Profile/index.d.ts +2 -0
  196. package/dist/types/components/Profile/profile.d.ts +14 -0
  197. package/dist/types/components/Profile/types.d.ts +3 -0
  198. package/dist/types/components/Search/index.d.ts +2 -0
  199. package/dist/types/components/Search/types.d.ts +3 -0
  200. package/dist/types/components/Settings/index.d.ts +2 -0
  201. package/dist/types/components/Settings/types.d.ts +3 -0
  202. package/dist/types/components/SignIn/index.d.ts +2 -0
  203. package/dist/types/components/SignIn/types.d.ts +3 -0
  204. package/dist/types/components/SkeletonCreateButton/types.d.ts +3 -0
  205. package/dist/types/components/SkeletonIconButton/types.d.ts +3 -0
  206. package/dist/types/components/SkeletonPrimaryButton/types.d.ts +3 -0
  207. package/dist/types/controllers/overflow/index.d.ts +2 -0
  208. package/dist/types/controllers/overflow/overflow-context.d.ts +17 -0
  209. package/dist/types/controllers/overflow/overflow-provider.d.ts +3 -0
  210. package/dist/types/controllers/overflow/use-overflow-controller.d.ts +7 -0
  211. package/dist/types/controllers/overflow/use-overflow-status.d.ts +11 -0
  212. package/dist/types/entry-points/app-switcher.d.ts +2 -1
  213. package/dist/types/entry-points/overflow.d.ts +1 -1
  214. package/dist/types/entry-points/profile.d.ts +1 -1
  215. package/dist/types/entry-points/skeleton-help-button.d.ts +2 -1
  216. package/dist/types/index.d.ts +4 -3
  217. package/dist/types/nav4-skeleton-help-button.d.ts +8 -0
  218. package/dist/types/nav4-skeleton-notification-button.d.ts +9 -0
  219. package/dist/types/nav4-skeleton-settings-button.d.ts +8 -0
  220. package/dist/types/nav4-skeleton-switcher-button.d.ts +8 -0
  221. package/dist/types/skeleton-help-button.d.ts +0 -6
  222. package/dist/types/skeleton-notification-button.d.ts +1 -7
  223. package/dist/types/skeleton-settings-button.d.ts +1 -6
  224. package/dist/types/skeleton-switcher-button.d.ts +6 -6
  225. package/dist/types/theme/atlassian-theme.d.ts +5 -0
  226. package/dist/types/theme/convert-hex-shorthand.d.ts +1 -0
  227. package/dist/types/theme/default-theme-brand-refresh.d.ts +1 -0
  228. package/dist/types/theme/default-theme.d.ts +0 -1
  229. package/dist/types/theme/generate-text-color.d.ts +1 -0
  230. package/dist/types/theme/get-box-shadow.d.ts +1 -0
  231. package/dist/types/theme/get-contrast-color.d.ts +1 -0
  232. package/dist/types/theme/hex-to-rgba.d.ts +1 -0
  233. package/dist/types/theme/index.d.ts +1 -1
  234. package/dist/types/theme/theme-context.d.ts +3 -0
  235. package/dist/types/theme/theme-generator.d.ts +5 -0
  236. package/dist/types/theme/theme-helpers.d.ts +1 -1
  237. package/dist/types/theme/theme-provider.d.ts +4 -2
  238. package/dist/types/theme/themes.d.ts +4 -1
  239. package/dist/types/theme/types.d.ts +30 -0
  240. package/dist/types-ts4.5/common/action-section-desktop-css.d.ts +5 -0
  241. package/dist/types-ts4.5/common/action-section-mobile-css.d.ts +5 -0
  242. package/dist/types-ts4.5/common/constants.d.ts +3 -0
  243. package/dist/types-ts4.5/common/styles.d.ts +2 -10
  244. package/dist/types-ts4.5/components/AppSwitcher/app-switcher-nav4.d.ts +6 -0
  245. package/dist/types-ts4.5/components/AppSwitcher/app-switcher.d.ts +14 -0
  246. package/dist/types-ts4.5/components/AppSwitcher/index.d.ts +0 -12
  247. package/dist/types-ts4.5/components/AppSwitcher/types.d.ts +3 -0
  248. package/dist/types-ts4.5/components/AtlassianNavigation/index.d.ts +2 -0
  249. package/dist/types-ts4.5/components/AtlassianNavigation/skeleton.d.ts +2 -0
  250. package/dist/types-ts4.5/components/AtlassianNavigation/types.d.ts +6 -0
  251. package/dist/types-ts4.5/components/Create/index.d.ts +2 -0
  252. package/dist/types-ts4.5/components/Help/index.d.ts +2 -0
  253. package/dist/types-ts4.5/components/IconButton/index.d.ts +1 -0
  254. package/dist/types-ts4.5/components/Notifications/index.d.ts +2 -0
  255. package/dist/types-ts4.5/components/PrimaryButton/index.d.ts +2 -0
  256. package/dist/types-ts4.5/components/PrimaryDropdownButton/index.d.ts +2 -0
  257. package/dist/types-ts4.5/components/ProductHome/app-home.d.ts +20 -0
  258. package/dist/types-ts4.5/components/ProductHome/custom-product-home.d.ts +2 -0
  259. package/dist/types-ts4.5/components/ProductHome/product-home.d.ts +4 -13
  260. package/dist/types-ts4.5/components/Profile/index.d.ts +2 -0
  261. package/dist/types-ts4.5/components/Profile/profile.d.ts +14 -0
  262. package/dist/types-ts4.5/components/Profile/types.d.ts +3 -0
  263. package/dist/types-ts4.5/components/Search/index.d.ts +2 -0
  264. package/dist/types-ts4.5/components/Search/types.d.ts +3 -0
  265. package/dist/types-ts4.5/components/Settings/index.d.ts +2 -0
  266. package/dist/types-ts4.5/components/Settings/types.d.ts +3 -0
  267. package/dist/types-ts4.5/components/SignIn/index.d.ts +2 -0
  268. package/dist/types-ts4.5/components/SignIn/types.d.ts +3 -0
  269. package/dist/types-ts4.5/components/SkeletonCreateButton/types.d.ts +3 -0
  270. package/dist/types-ts4.5/components/SkeletonIconButton/types.d.ts +3 -0
  271. package/dist/types-ts4.5/components/SkeletonPrimaryButton/types.d.ts +3 -0
  272. package/dist/types-ts4.5/controllers/overflow/index.d.ts +2 -0
  273. package/dist/types-ts4.5/controllers/overflow/overflow-context.d.ts +17 -0
  274. package/dist/types-ts4.5/controllers/overflow/overflow-provider.d.ts +3 -0
  275. package/dist/types-ts4.5/controllers/overflow/use-overflow-controller.d.ts +7 -0
  276. package/dist/types-ts4.5/controllers/overflow/use-overflow-status.d.ts +11 -0
  277. package/dist/types-ts4.5/entry-points/app-switcher.d.ts +2 -1
  278. package/dist/types-ts4.5/entry-points/overflow.d.ts +1 -1
  279. package/dist/types-ts4.5/entry-points/profile.d.ts +1 -1
  280. package/dist/types-ts4.5/entry-points/skeleton-help-button.d.ts +2 -1
  281. package/dist/types-ts4.5/index.d.ts +4 -3
  282. package/dist/types-ts4.5/nav4-skeleton-help-button.d.ts +8 -0
  283. package/dist/types-ts4.5/nav4-skeleton-notification-button.d.ts +9 -0
  284. package/dist/types-ts4.5/nav4-skeleton-settings-button.d.ts +8 -0
  285. package/dist/types-ts4.5/nav4-skeleton-switcher-button.d.ts +8 -0
  286. package/dist/types-ts4.5/skeleton-help-button.d.ts +0 -6
  287. package/dist/types-ts4.5/skeleton-notification-button.d.ts +1 -7
  288. package/dist/types-ts4.5/skeleton-settings-button.d.ts +1 -6
  289. package/dist/types-ts4.5/skeleton-switcher-button.d.ts +6 -6
  290. package/dist/types-ts4.5/theme/atlassian-theme.d.ts +5 -0
  291. package/dist/types-ts4.5/theme/convert-hex-shorthand.d.ts +1 -0
  292. package/dist/types-ts4.5/theme/default-theme-brand-refresh.d.ts +1 -0
  293. package/dist/types-ts4.5/theme/default-theme.d.ts +0 -1
  294. package/dist/types-ts4.5/theme/generate-text-color.d.ts +1 -0
  295. package/dist/types-ts4.5/theme/get-box-shadow.d.ts +1 -0
  296. package/dist/types-ts4.5/theme/get-contrast-color.d.ts +1 -0
  297. package/dist/types-ts4.5/theme/hex-to-rgba.d.ts +1 -0
  298. package/dist/types-ts4.5/theme/index.d.ts +1 -1
  299. package/dist/types-ts4.5/theme/theme-context.d.ts +3 -0
  300. package/dist/types-ts4.5/theme/theme-generator.d.ts +5 -0
  301. package/dist/types-ts4.5/theme/theme-helpers.d.ts +1 -1
  302. package/dist/types-ts4.5/theme/theme-provider.d.ts +4 -2
  303. package/dist/types-ts4.5/theme/themes.d.ts +4 -1
  304. package/dist/types-ts4.5/theme/types.d.ts +30 -0
  305. package/package.json +12 -12
  306. package/afm-jira/tsconfig.json +0 -64
  307. /package/dist/cjs/components/AppSwitcher/{index.compiled.css → app-switcher.compiled.css} +0 -0
  308. /package/dist/cjs/{skeleton-help-button.compiled.css → nav4-skeleton-help-button.compiled.css} +0 -0
  309. /package/dist/es2019/components/AppSwitcher/{index.compiled.css → app-switcher.compiled.css} +0 -0
  310. /package/dist/es2019/{skeleton-help-button.compiled.css → nav4-skeleton-help-button.compiled.css} +0 -0
  311. /package/dist/esm/components/AppSwitcher/{index.compiled.css → app-switcher.compiled.css} +0 -0
  312. /package/dist/esm/{skeleton-help-button.compiled.css → nav4-skeleton-help-button.compiled.css} +0 -0
@@ -7,7 +7,11 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.generateTheme = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _defaultTheme = require("./default-theme");
10
- var _themeHelpers = require("./theme-helpers");
10
+ var _defaultThemeBrandRefresh = require("./default-theme-brand-refresh");
11
+ var _generateTextColor = require("./generate-text-color");
12
+ var _getBoxShadow = require("./get-box-shadow");
13
+ var _getContrastColor = require("./get-contrast-color");
14
+ var _hexToRgba = require("./hex-to-rgba");
11
15
  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; }
12
16
  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) { (0, _defineProperty2.default)(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; }
13
17
  var generateOpacityValue = function generateOpacityValue(color) {
@@ -26,13 +30,13 @@ var generateButtonCSSStates = function generateButtonCSSStates(colors, buttonTyp
26
30
  var isCreateButton = buttonType === 'create';
27
31
  return {
28
32
  active: {
29
- backgroundColor: isCreateButton ? (0, _themeHelpers.hexToRGBA)(backgroundColor, 0.65) : (0, _themeHelpers.getContrastColor)(0.3, opacityValue, backgroundColor),
30
- boxShadow: (0, _themeHelpers.getBoxShadow)('transparent'),
33
+ backgroundColor: isCreateButton ? (0, _hexToRgba.hexToRGBA)(backgroundColor, 0.65) : (0, _getContrastColor.getContrastColor)(0.3, opacityValue, backgroundColor),
34
+ boxShadow: (0, _getBoxShadow.getBoxShadow)('transparent'),
31
35
  color: color
32
36
  },
33
37
  default: {
34
38
  backgroundColor: backgroundColor,
35
- boxShadow: (0, _themeHelpers.getBoxShadow)('transparent'),
39
+ boxShadow: (0, _getBoxShadow.getBoxShadow)('transparent'),
36
40
  color: color
37
41
  },
38
42
  focus: {
@@ -41,41 +45,47 @@ var generateButtonCSSStates = function generateButtonCSSStates(colors, buttonTyp
41
45
  backgroundColor: backgroundColor
42
46
  },
43
47
  hover: {
44
- backgroundColor: isCreateButton ? (0, _themeHelpers.hexToRGBA)(backgroundColor, 0.8) : (0, _themeHelpers.getContrastColor)(0.1, opacityValue, backgroundColor),
45
- boxShadow: (0, _themeHelpers.getBoxShadow)('transparent'),
48
+ backgroundColor: isCreateButton ? (0, _hexToRgba.hexToRGBA)(backgroundColor, 0.8) : (0, _getContrastColor.getContrastColor)(0.1, opacityValue, backgroundColor),
49
+ boxShadow: (0, _getBoxShadow.getBoxShadow)('transparent'),
46
50
  color: color
47
51
  },
48
52
  selected: {
49
53
  color: color,
50
- backgroundColor: (0, _themeHelpers.getContrastColor)(0.3, opacityValue, backgroundColor),
54
+ backgroundColor: (0, _getContrastColor.getContrastColor)(0.3, opacityValue, backgroundColor),
51
55
  borderColor: highlightColor,
52
- boxShadow: (0, _themeHelpers.getBoxShadow)('transparent')
56
+ boxShadow: (0, _getBoxShadow.getBoxShadow)('transparent')
53
57
  },
54
58
  selectedHover: {
55
59
  color: color,
56
- backgroundColor: (0, _themeHelpers.getContrastColor)(0.3, opacityValue, backgroundColor),
60
+ backgroundColor: (0, _getContrastColor.getContrastColor)(0.3, opacityValue, backgroundColor),
57
61
  borderColor: highlightColor,
58
- boxShadow: (0, _themeHelpers.getBoxShadow)('transparent')
62
+ boxShadow: (0, _getBoxShadow.getBoxShadow)('transparent')
59
63
  }
60
64
  };
61
65
  };
62
66
  var generateCreateButtonColors = function generateCreateButtonColors(_themeBackground, themeHighlight) {
63
67
  return {
64
68
  backgroundColor: themeHighlight,
65
- color: (0, _themeHelpers.generateTextColor)(themeHighlight),
69
+ color: (0, _generateTextColor.generateTextColor)(themeHighlight),
66
70
  highlightColor: themeHighlight
67
71
  };
68
72
  };
73
+
74
+ /**
75
+ * __generateTheme__
76
+ *
77
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
78
+ */
69
79
  var generateTheme = exports.generateTheme = function generateTheme(themeColors) {
70
80
  var backgroundColor = themeColors.backgroundColor,
71
81
  highlightColor = themeColors.highlightColor,
72
82
  name = themeColors.name;
73
- var color = (0, _themeHelpers.generateTextColor)(backgroundColor);
83
+ var color = (0, _generateTextColor.generateTextColor)(backgroundColor);
74
84
  var colors = _objectSpread(_objectSpread({}, themeColors), {}, {
75
85
  color: color
76
86
  });
77
87
  if (name === _defaultTheme.DEFAULT_THEME_NAME) {
78
- return _defaultTheme.defaultThemeBrandRefresh;
88
+ return _defaultThemeBrandRefresh.defaultThemeBrandRefresh;
79
89
  }
80
90
  return {
81
91
  mode: {
@@ -91,20 +101,20 @@ var generateTheme = exports.generateTheme = function generateTheme(themeColors)
91
101
  iconColor: color,
92
102
  textColor: color,
93
103
  backgroundColor: highlightColor,
94
- borderRight: "var(--ds-border-width, 1px)".concat(" solid ", (0, _themeHelpers.hexToRGBA)(color, 0.5))
104
+ borderRight: "var(--ds-border-width, 1px)".concat(" solid ", (0, _hexToRgba.hexToRGBA)(color, 0.5))
95
105
  },
96
106
  search: {
97
107
  default: {
98
108
  backgroundColor: backgroundColor,
99
109
  color: color,
100
- borderColor: (0, _themeHelpers.hexToRGBA)(color, 0.5)
110
+ borderColor: (0, _hexToRgba.hexToRGBA)(color, 0.5)
101
111
  },
102
112
  focus: {
103
- borderColor: (0, _themeHelpers.hexToRGBA)(highlightColor, 0.8),
104
- boxShadow: (0, _themeHelpers.getBoxShadow)((0, _themeHelpers.hexToRGBA)(highlightColor, 0.5))
113
+ borderColor: (0, _hexToRgba.hexToRGBA)(highlightColor, 0.8),
114
+ boxShadow: (0, _getBoxShadow.getBoxShadow)((0, _hexToRgba.hexToRGBA)(highlightColor, 0.5))
105
115
  },
106
116
  hover: {
107
- backgroundColor: (0, _themeHelpers.getContrastColor)(0.1, generateOpacityValue(color), backgroundColor),
117
+ backgroundColor: (0, _getContrastColor.getContrastColor)(0.1, generateOpacityValue(color), backgroundColor),
108
118
  color: color
109
119
  }
110
120
  },
@@ -4,22 +4,27 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.hexToRGBA = exports.getContrastColor = exports.getBoxShadow = exports.generateTextColor = exports.convertHexShorthand = void 0;
7
+ exports.generateTextColor = exports.convertHexShorthand = void 0;
8
+ Object.defineProperty(exports, "getBoxShadow", {
9
+ enumerable: true,
10
+ get: function get() {
11
+ return _getBoxShadow.getBoxShadow;
12
+ }
13
+ });
14
+ exports.hexToRGBA = exports.getContrastColor = void 0;
8
15
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
9
16
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
17
  var _chromatism = _interopRequireDefault(require("chromatism"));
18
+ var _getBoxShadow = require("./get-box-shadow");
11
19
  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; }
12
20
  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) { (0, _defineProperty2.default)(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; }
13
21
  var hexToRGBA = exports.hexToRGBA = function hexToRGBA(hex) {
14
22
  var opacity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
15
- var rgba = _objectSpread(_objectSpread({}, _chromatism.default.convert(hex).rgb), {
23
+ var rgba = _objectSpread(_objectSpread({}, _chromatism.default.convert(hex).rgb), {}, {
16
24
  a: opacity
17
25
  });
18
26
  return "rgba(".concat(Object.values(rgba).join(', '), ")");
19
27
  };
20
- var getBoxShadow = exports.getBoxShadow = function getBoxShadow(color) {
21
- return "0 0 0 2px ".concat(color);
22
- };
23
28
  var hex = '[a-z0-9]';
24
29
  var shortHandHexColorPattern = new RegExp("#(".concat(hex, ")(").concat(hex, ")(").concat(hex, ")"), 'i');
25
30
  var repeat = function repeat(str, times) {
@@ -3,16 +3,19 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.ThemeProvider = exports.ThemeContext = void 0;
7
- var _react = require("react");
8
- var _themes = require("./themes");
9
- // Internal only
10
- // eslint-disable-next-line @repo/internal/react/require-jsdoc
11
- var ThemeContext = exports.ThemeContext = /*#__PURE__*/(0, _react.createContext)(_themes.defaultTheme);
12
-
6
+ Object.defineProperty(exports, "ThemeContext", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _themeContext.ThemeContext;
10
+ }
11
+ });
12
+ exports.ThemeProvider = void 0;
13
+ var _themeContext = require("./theme-context");
13
14
  /**
14
15
  * __Theme provider__
15
16
  *
16
17
  * A provider for the theme context used by all navigation components.
18
+ *
19
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
17
20
  */
18
- var ThemeProvider = exports.ThemeProvider = ThemeContext.Provider;
21
+ var ThemeProvider = exports.ThemeProvider = _themeContext.ThemeContext.Provider;
@@ -3,12 +3,15 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.defaultTheme = exports.atlassianTheme = void 0;
7
- var _defaultTheme = require("./default-theme");
8
- var _themeGenerator = require("./theme-generator");
9
- var atlassianTheme = exports.atlassianTheme = (0, _themeGenerator.generateTheme)({
10
- name: _defaultTheme.DEFAULT_THEME_NAME,
11
- backgroundColor: '#FFFFFF',
12
- highlightColor: '#0052CC'
6
+ Object.defineProperty(exports, "atlassianTheme", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _atlassianTheme.atlassianTheme;
10
+ }
13
11
  });
14
- var defaultTheme = exports.defaultTheme = atlassianTheme;
12
+ exports.defaultTheme = void 0;
13
+ var _atlassianTheme = require("./atlassian-theme");
14
+ /**
15
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
16
+ */
17
+ var defaultTheme = exports.defaultTheme = _atlassianTheme.atlassianTheme;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.useTheme = void 0;
7
7
  var _react = require("react");
8
- var _themeProvider = require("./theme-provider");
8
+ var _themeContext = require("./theme-context");
9
9
  var useTheme = exports.useTheme = function useTheme() {
10
- return (0, _react.useContext)(_themeProvider.ThemeContext);
10
+ return (0, _react.useContext)(_themeContext.ThemeContext);
11
11
  };
@@ -0,0 +1,6 @@
1
+ import { CREATE_BREAKPOINT } from './constants';
2
+ export const actionSectionDesktopCSS = {
3
+ [`@media (max-width: ${CREATE_BREAKPOINT - 1}px)`]: {
4
+ display: 'none !important'
5
+ }
6
+ };
@@ -0,0 +1,6 @@
1
+ import { CREATE_BREAKPOINT } from './constants';
2
+ export const actionSectionMobileCSS = {
3
+ [`@media (min-width: ${CREATE_BREAKPOINT}px)`]: {
4
+ display: 'none !important'
5
+ }
6
+ };
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
3
+ */
1
4
  export const HORIZONTAL_GLOBAL_NAV_HEIGHT = 56;
2
5
  export const PRODUCT_HOME_BREAKPOINT = 1280;
3
6
  export const CREATE_BREAKPOINT = 1130;
@@ -1,11 +1,2 @@
1
- import { CREATE_BREAKPOINT } from './constants';
2
- export const actionSectionDesktopCSS = {
3
- [`@media (max-width: ${CREATE_BREAKPOINT - 1}px)`]: {
4
- display: 'none !important'
5
- }
6
- };
7
- export const actionSectionMobileCSS = {
8
- [`@media (min-width: ${CREATE_BREAKPOINT}px)`]: {
9
- display: 'none !important'
10
- }
11
- };
1
+ export { actionSectionDesktopCSS } from './action-section-desktop-css';
2
+ export { actionSectionMobileCSS } from './action-section-mobile-css';
@@ -0,0 +1,52 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import React, { forwardRef } from 'react';
3
+ import AppSwitcherIcon from '@atlaskit/icon/core/app-switcher';
4
+ import { IconButton } from '../IconButton';
5
+ /**
6
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
7
+ */
8
+ export const AppSwitcherNav4 = /*#__PURE__*/forwardRef((props, ref) => {
9
+ const {
10
+ component,
11
+ href,
12
+ id,
13
+ isDisabled,
14
+ isSelected,
15
+ label,
16
+ onBlur,
17
+ onClick,
18
+ onFocus,
19
+ onMouseDown,
20
+ onMouseEnter,
21
+ onMouseLeave,
22
+ onMouseUp,
23
+ target,
24
+ testId,
25
+ tooltip,
26
+ ...rest
27
+ } = props;
28
+ return /*#__PURE__*/React.createElement(IconButton, _extends({
29
+ icon: /*#__PURE__*/React.createElement(AppSwitcherIcon, {
30
+ label: typeof tooltip === 'string' ? tooltip : 'Switch apps',
31
+ color: "var(--ds-icon, #292A2E)"
32
+ }),
33
+ component: component,
34
+ href: href,
35
+ id: id,
36
+ isDisabled: isDisabled,
37
+ isSelected: isSelected,
38
+ label: label,
39
+ onBlur: onBlur,
40
+ onClick: onClick,
41
+ onFocus: onFocus,
42
+ onMouseDown: onMouseDown,
43
+ onMouseEnter: onMouseEnter,
44
+ onMouseLeave: onMouseLeave,
45
+ onMouseUp: onMouseUp,
46
+ ref: ref,
47
+ target: target,
48
+ testId: testId,
49
+ tooltip: tooltip
50
+ // These are all explicit, leaving it in just in case
51
+ }, rest));
52
+ });
@@ -0,0 +1,70 @@
1
+ /* app-switcher.tsx generated by @compiled/babel-plugin v0.39.1 */
2
+ import _extends from "@babel/runtime/helpers/extends";
3
+ import "./app-switcher.compiled.css";
4
+ import { ax, ix } from "@compiled/react/runtime";
5
+ import React, { forwardRef } from 'react';
6
+ import AppSwitcherIcon from '@atlaskit/icon/core/app-switcher';
7
+ import { Flex } from '@atlaskit/primitives/compiled';
8
+ import { IconButton } from '../IconButton';
9
+ const iconSpacingStyles = {
10
+ space050: "_1rjc1b66 _18zr1b66"
11
+ };
12
+
13
+ /**
14
+ * _App switcher__
15
+ *
16
+ * An AppSwitcher button that can be passed into `AtlassianNavigation`'s
17
+ * `renderAppSwitcher` prop.
18
+ *
19
+ * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#app-switcher)
20
+ * - [Code](https://atlassian.design/components/atlassian-navigation/code)
21
+ *
22
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
23
+ */
24
+ export const AppSwitcher = /*#__PURE__*/forwardRef((props, ref) => {
25
+ const {
26
+ component,
27
+ href,
28
+ id,
29
+ isDisabled,
30
+ isSelected,
31
+ label,
32
+ onBlur,
33
+ onClick,
34
+ onFocus,
35
+ onMouseDown,
36
+ onMouseEnter,
37
+ onMouseLeave,
38
+ onMouseUp,
39
+ target,
40
+ testId,
41
+ tooltip,
42
+ ...rest
43
+ } = props;
44
+ return /*#__PURE__*/React.createElement(IconButton, _extends({
45
+ component: component,
46
+ href: href,
47
+ icon: /*#__PURE__*/React.createElement(Flex, {
48
+ xcss: iconSpacingStyles.space050
49
+ }, /*#__PURE__*/React.createElement(AppSwitcherIcon, {
50
+ color: "currentColor",
51
+ label: typeof tooltip === 'string' ? tooltip : 'Switch apps'
52
+ })),
53
+ id: id,
54
+ isDisabled: isDisabled,
55
+ isSelected: isSelected,
56
+ label: label,
57
+ onBlur: onBlur,
58
+ onClick: onClick,
59
+ onFocus: onFocus,
60
+ onMouseDown: onMouseDown,
61
+ onMouseEnter: onMouseEnter,
62
+ onMouseLeave: onMouseLeave,
63
+ onMouseUp: onMouseUp,
64
+ ref: ref,
65
+ target: target,
66
+ testId: testId,
67
+ tooltip: tooltip
68
+ // These are all explicit, leaving it in just in case
69
+ }, rest));
70
+ });
@@ -1,119 +1,3 @@
1
- /* index.tsx generated by @compiled/babel-plugin v0.39.1 */
2
- import _extends from "@babel/runtime/helpers/extends";
3
- import "./index.compiled.css";
4
- import { ax, ix } from "@compiled/react/runtime";
5
- import React, { forwardRef } from 'react';
6
- import AppSwitcherIcon from '@atlaskit/icon/core/app-switcher';
7
- import { Flex } from '@atlaskit/primitives/compiled';
8
- import { IconButton } from '../IconButton';
9
- const iconSpacingStyles = {
10
- space050: "_1rjc1b66 _18zr1b66"
11
- };
12
-
13
- /**
14
- * _App switcher__
15
- *
16
- * An AppSwitcher button that can be passed into `AtlassianNavigation`'s
17
- * `renderAppSwitcher` prop.
18
- *
19
- * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#app-switcher)
20
- * - [Code](https://atlassian.design/components/atlassian-navigation/code)
21
- */
22
- export const AppSwitcher = /*#__PURE__*/forwardRef((props, ref) => {
23
- const {
24
- component,
25
- href,
26
- id,
27
- isDisabled,
28
- isSelected,
29
- label,
30
- onBlur,
31
- onClick,
32
- onFocus,
33
- onMouseDown,
34
- onMouseEnter,
35
- onMouseLeave,
36
- onMouseUp,
37
- target,
38
- testId,
39
- tooltip,
40
- ...rest
41
- } = props;
42
- return /*#__PURE__*/React.createElement(IconButton, _extends({
43
- component: component,
44
- href: href,
45
- icon: /*#__PURE__*/React.createElement(Flex, {
46
- xcss: iconSpacingStyles.space050
47
- }, /*#__PURE__*/React.createElement(AppSwitcherIcon, {
48
- color: "currentColor",
49
- label: typeof tooltip === 'string' ? tooltip : 'Switch apps'
50
- })),
51
- id: id,
52
- isDisabled: isDisabled,
53
- isSelected: isSelected,
54
- label: label,
55
- onBlur: onBlur,
56
- onClick: onClick,
57
- onFocus: onFocus,
58
- onMouseDown: onMouseDown,
59
- onMouseEnter: onMouseEnter,
60
- onMouseLeave: onMouseLeave,
61
- onMouseUp: onMouseUp,
62
- ref: ref,
63
- target: target,
64
- testId: testId,
65
- tooltip: tooltip
66
- // These are all explicit, leaving it in just in case
67
- }, rest));
68
- });
69
-
70
- // eslint-disable-next-line @repo/internal/react/require-jsdoc
71
- export const AppSwitcherNav4 = /*#__PURE__*/forwardRef((props, ref) => {
72
- const {
73
- component,
74
- href,
75
- id,
76
- isDisabled,
77
- isSelected,
78
- label,
79
- onBlur,
80
- onClick,
81
- onFocus,
82
- onMouseDown,
83
- onMouseEnter,
84
- onMouseLeave,
85
- onMouseUp,
86
- target,
87
- testId,
88
- tooltip,
89
- ...rest
90
- } = props;
91
- return /*#__PURE__*/React.createElement(IconButton, _extends({
92
- icon: /*#__PURE__*/React.createElement(AppSwitcherIcon, {
93
- label: typeof tooltip === 'string' ? tooltip : 'Switch apps',
94
- color: "var(--ds-icon, #292A2E)"
95
- }),
96
- component: component,
97
- href: href,
98
- id: id,
99
- isDisabled: isDisabled,
100
- isSelected: isSelected,
101
- label: label,
102
- onBlur: onBlur,
103
- onClick: onClick,
104
- onFocus: onFocus,
105
- onMouseDown: onMouseDown,
106
- onMouseEnter: onMouseEnter,
107
- onMouseLeave: onMouseLeave,
108
- onMouseUp: onMouseUp,
109
- ref: ref,
110
- target: target,
111
- testId: testId,
112
- tooltip: tooltip
113
- // These are all explicit, leaving it in just in case
114
- }, rest));
115
- });
116
-
117
1
  // exists only to extract props
118
2
  // eslint-disable-next-line import/no-anonymous-default-export
119
3
  export default (_props => {});
@@ -8,6 +8,7 @@ import React from 'react';
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
9
  import { css, jsx } from '@emotion/react';
10
10
  import { NavigationAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
11
+ import warnOnce from '@atlaskit/ds-lib/warn-once';
11
12
  import { HORIZONTAL_GLOBAL_NAV_HEIGHT } from '../../common/constants';
12
13
  import { defaultTheme, ThemeProvider } from '../../theme';
13
14
  import { PrimaryItemsContainer } from '../PrimaryItemsContainer';
@@ -62,8 +63,13 @@ const analyticsData = {
62
63
  *
63
64
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples)
64
65
  * - [Code](https://atlassian.design/components/atlassian-navigation/examples)
66
+ *
67
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
65
68
  */
66
69
  export const AtlassianNavigation = props => {
70
+ if (typeof process !== 'undefined' && process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'CI') {
71
+ warnOnce('@atlaskit/atlassian-navigation is deprecated. Use @atlaskit/navigation-system instead.');
72
+ }
67
73
  const {
68
74
  label: label,
69
75
  primaryItems = [],
@@ -60,6 +60,8 @@ const rightStyles = css({
60
60
  *
61
61
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-loader)
62
62
  * - [Code](https://atlassian.design/components/{packageName}/code)
63
+ *
64
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
63
65
  */
64
66
  export const NavigationSkeleton = ({
65
67
  primaryItemsCount = 4,
@@ -53,6 +53,8 @@ const TooltipSwitch = ({
53
53
  *
54
54
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#create)
55
55
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
56
+ *
57
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
56
58
  */
57
59
  export const Create = ({
58
60
  onClick,
@@ -19,6 +19,8 @@ const HELP_NOTIFICATION_BADGE_ID = 'atlassian-navigation-help-notification-count
19
19
  *
20
20
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#help)
21
21
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
22
+ *
23
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
22
24
  */
23
25
  export const Help = /*#__PURE__*/forwardRef((props, ref) => {
24
26
  const {
@@ -12,6 +12,7 @@ import { getIconButtonTheme } from './styles';
12
12
  * pass into `AtlassianNavigation`'s render props, but where possible you should
13
13
  * rely on the defaults.
14
14
  *
15
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
15
16
  */
16
17
  export const IconButton = /*#__PURE__*/forwardRef((props, ref) => {
17
18
  const {
@@ -20,6 +20,8 @@ const NOTIFICATIONS_BADGE_ID = 'atlassian-navigation-notification-count';
20
20
  *
21
21
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#notifications)
22
22
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
23
+ *
24
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
23
25
  */
24
26
  export const Notifications = /*#__PURE__*/forwardRef((props, ref) => {
25
27
  const {
@@ -51,6 +51,8 @@ const buttonHighlightedStyles = css({
51
51
  *
52
52
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#dropdown-menu)
53
53
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
54
+ *
55
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
54
56
  */
55
57
  export const PrimaryButton = /*#__PURE__*/forwardRef((props, ref) => {
56
58
  const {
@@ -21,6 +21,8 @@ const buttonNoOpStyle = css({
21
21
  *
22
22
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#button)
23
23
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
24
+ *
25
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
24
26
  */
25
27
  export const PrimaryDropdownButton = /*#__PURE__*/forwardRef((props, ref) => {
26
28
  const {
@@ -9,7 +9,8 @@ import React, { useCallback, useState } from 'react';
9
9
  import { css, jsx } from '@emotion/react';
10
10
  import Popup from '@atlaskit/popup';
11
11
  import { WidthObserver } from '@atlaskit/width-detector';
12
- import { OverflowProvider, useOverflowController } from '../../controllers/overflow';
12
+ import { OverflowProvider } from '../../controllers/overflow/overflow-provider';
13
+ import { useOverflowController } from '../../controllers/overflow/use-overflow-controller';
13
14
  import { PrimaryDropdownButton } from '../PrimaryDropdownButton';
14
15
  const containerStyles = css({
15
16
  display: 'flex',