@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
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import NotificationIcon from '@atlaskit/icon/core/notification';
3
+ import { SkeletonIconButton } from './components/SkeletonIconButton';
4
+ /**
5
+ * __Nav 4 skeleton notification button__
6
+ *
7
+ * A nav 4 skeleton notification button.
8
+ *
9
+ */
10
+ export const Nav4SkeletonNotificationButton = ({
11
+ label = ''
12
+ }) => /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(NotificationIcon, {
13
+ label: label,
14
+ color: "var(--ds-icon, #292A2E)"
15
+ }));
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import SettingsIcon from '@atlaskit/icon/core/settings';
3
+ import { SkeletonIconButton } from './components/SkeletonIconButton';
4
+ /**
5
+ * __Nav 4 skeleton settings button__
6
+ *
7
+ * A nav 4 skeleton settings button
8
+ */
9
+ export const Nav4SkeletonSettingsButton = ({
10
+ label = ''
11
+ }) => /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(SettingsIcon, {
12
+ label: label,
13
+ color: "var(--ds-icon, #292A2E)"
14
+ }));
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import AppSwitcherIcon from '@atlaskit/icon/core/app-switcher';
3
+ import { SkeletonIconButton } from './components/SkeletonIconButton';
4
+ /**
5
+ * __Nav 4 skeleton switcher button__
6
+ *
7
+ * A nav 4 skeleton switcher button
8
+ */
9
+ export const Nav4SkeletonSwitcherButton = ({
10
+ label = ''
11
+ }) => /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(AppSwitcherIcon, {
12
+ label: label,
13
+ spacing: "spacious",
14
+ color: "var(--ds-icon, #292A2E)"
15
+ }));
@@ -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
- const iconSpacingStyles = {
9
- space050: "_1rjc1b66 _18zr1b66"
10
- };
11
4
  /**
12
5
  * __Skeleton notification button__
13
6
  *
@@ -25,18 +18,4 @@ export const SkeletonHelpButton = ({
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 const Nav4SkeletonHelpButton = ({
36
- label = ''
37
- }) => /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(Flex, {
38
- xcss: iconSpacingStyles.space050
39
- }, /*#__PURE__*/React.createElement(QuestionCircleIcon, {
40
- label: label,
41
- color: "var(--ds-icon, #292A2E)"
42
- })));
21
+ };
@@ -26,16 +26,4 @@ export const SkeletonNotificationButton = ({
26
26
  color: "currentColor",
27
27
  label: label
28
28
  })));
29
-
30
- /**
31
- * __Nav 4 skeleton notification button__
32
- *
33
- * A nav 4 skeleton notification button.
34
- *
35
- */
36
- export const Nav4SkeletonNotificationButton = ({
37
- label = ''
38
- }) => /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(NotificationIcon, {
39
- label: label,
40
- color: "var(--ds-icon, #292A2E)"
41
- }));
29
+ export { Nav4SkeletonNotificationButton } from './nav4-skeleton-notification-button';
@@ -26,15 +26,4 @@ export const SkeletonSettingsButton = ({
26
26
  color: "currentColor",
27
27
  label: label
28
28
  })));
29
-
30
- /**
31
- * __Nav 4 skeleton settings button__
32
- *
33
- * A nav 4 skeleton settings button
34
- */
35
- export const Nav4SkeletonSettingsButton = ({
36
- label = ''
37
- }) => /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(SettingsIcon, {
38
- label: label,
39
- color: "var(--ds-icon, #292A2E)"
40
- }));
29
+ export { Nav4SkeletonSettingsButton } from './nav4-skeleton-settings-button';
@@ -7,8 +7,12 @@ import React from 'react';
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
8
  import { css, jsx } from '@emotion/react';
9
9
  import AppSwitcherIcon from '@atlaskit/icon/core/app-switcher';
10
- import { SkeletonIconButton } from './components/SkeletonIconButton';
11
10
  import { useTheme } from './theme';
11
+
12
+ /**
13
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
14
+ */
15
+
12
16
  const skeletonSwitcherButtonStyles = css({
13
17
  margin: 0,
14
18
  // eslint-disable-next-line @atlaskit/design-system/no-physical-properties
@@ -51,6 +55,8 @@ const skeletonSwitcherButtonStyles = css({
51
55
  *
52
56
  * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#skeleton-button)
53
57
  * - [Code](https://atlassian.design/components/atlassian-navigation/code)
58
+ *
59
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
54
60
  */
55
61
  export const SkeletonSwitcherButton = ({
56
62
  label = '',
@@ -69,16 +75,4 @@ export const SkeletonSwitcherButton = ({
69
75
  label: label
70
76
  }));
71
77
  };
72
-
73
- /**
74
- * __Nav 4 skeleton switcher button__
75
- *
76
- * A nav 4 skeleton switcher button
77
- */
78
- export const Nav4SkeletonSwitcherButton = ({
79
- label = ''
80
- }) => jsx(SkeletonIconButton, null, jsx(AppSwitcherIcon, {
81
- label: label,
82
- spacing: "spacious",
83
- color: "var(--ds-icon, #292A2E)"
84
- }));
78
+ export { Nav4SkeletonSwitcherButton } from './nav4-skeleton-switcher-button';
@@ -0,0 +1,10 @@
1
+ import { DEFAULT_THEME_NAME } from './default-theme';
2
+ import { generateTheme } from './theme-generator';
3
+ /**
4
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
5
+ */
6
+ export const atlassianTheme = generateTheme({
7
+ name: DEFAULT_THEME_NAME,
8
+ backgroundColor: '#FFFFFF',
9
+ highlightColor: '#0052CC'
10
+ });
@@ -0,0 +1,27 @@
1
+ const hex = '[a-z0-9]';
2
+ const shortHandHexColorPattern = new RegExp(`#(${hex})(${hex})(${hex})`, 'i');
3
+ const repeat = (str, times) => [...Array(times)].map(() => str).join('');
4
+ const isShortHexColor = color => color && color.length === 4;
5
+ const completeHexColor = colors => {
6
+ const hex = colors.map(color => repeat(color, 2)).join('');
7
+ return `#${hex}`;
8
+ };
9
+ const completeTriplet = colors => `#${repeat(colors[1], 6)}`;
10
+ const isTriplet = colors => colors[0] === colors[1] && colors[1] === colors[2];
11
+ export const convertHexShorthand = color => {
12
+ if (isShortHexColor(color)) {
13
+ // when color = '#ccc', matches is structured as ['#ccc', 'c', 'c', 'c', ...]
14
+ const matches = color.match(shortHandHexColorPattern);
15
+ if (matches) {
16
+ const colors = matches.slice(1, 4);
17
+ if (isTriplet(colors)) {
18
+ return completeTriplet(colors);
19
+ } else {
20
+ return completeHexColor(colors);
21
+ }
22
+ }
23
+ }
24
+
25
+ // return the color as is when it's not hex color shorthand
26
+ return color;
27
+ };
@@ -0,0 +1,3 @@
1
+ import defaultTheme from './default-theme';
2
+ const defaultThemeCopy = JSON.parse(JSON.stringify(defaultTheme));
3
+ export const defaultThemeBrandRefresh = defaultThemeCopy;
@@ -131,6 +131,5 @@ const 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 const defaultThemeBrandRefresh = defaultThemeCopy;
135
134
  export const 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 const generateTextColor = color => {
4
+ const converted = convertHexShorthand(color);
5
+ return chromatism.contrastRatio(converted).hex;
6
+ };
@@ -0,0 +1 @@
1
+ export const getBoxShadow = color => `0 0 0 2px ${color}`;
@@ -0,0 +1,3 @@
1
+ import chromatism from 'chromatism';
2
+ import { hexToRGBA } from './hex-to-rgba';
3
+ export const getContrastColor = (contrastValue, opacityValue, color) => hexToRGBA(chromatism.contrast(contrastValue, color).hex, opacityValue);
@@ -0,0 +1,8 @@
1
+ import chromatism from 'chromatism';
2
+ export const hexToRGBA = (hex, opacity = 1) => {
3
+ const rgba = {
4
+ ...chromatism.convert(hex).rgb,
5
+ a: opacity
6
+ };
7
+ return `rgba(${Object.values(rgba).join(', ')})`;
8
+ };
@@ -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';
@@ -0,0 +1,4 @@
1
+ import { createContext } from 'react';
2
+ import { defaultTheme } from './themes';
3
+ // eslint-disable-next-line @repo/internal/react/require-jsdoc
4
+ export const ThemeContext = /*#__PURE__*/createContext(defaultTheme);
@@ -1,5 +1,9 @@
1
- import { DEFAULT_THEME_NAME, defaultThemeBrandRefresh } from './default-theme';
2
- import { generateTextColor, getBoxShadow, getContrastColor, hexToRGBA } from './theme-helpers';
1
+ import { DEFAULT_THEME_NAME } from './default-theme';
2
+ import { defaultThemeBrandRefresh } from './default-theme-brand-refresh';
3
+ import { generateTextColor } from './generate-text-color';
4
+ import { getBoxShadow } from './get-box-shadow';
5
+ import { getContrastColor } from './get-contrast-color';
6
+ import { hexToRGBA } from './hex-to-rgba';
3
7
  const generateOpacityValue = color => color === '#000000' ? 0.3 : 0.6;
4
8
 
5
9
  // eslint-disable-next-line @repo/internal/react/consistent-types-definitions
@@ -54,6 +58,12 @@ const generateCreateButtonColors = (_themeBackground, themeHighlight) => ({
54
58
  color: generateTextColor(themeHighlight),
55
59
  highlightColor: themeHighlight
56
60
  });
61
+
62
+ /**
63
+ * __generateTheme__
64
+ *
65
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
66
+ */
57
67
  export const generateTheme = themeColors => {
58
68
  const {
59
69
  backgroundColor,
@@ -2,13 +2,10 @@ import chromatism from 'chromatism';
2
2
  export const hexToRGBA = (hex, opacity = 1) => {
3
3
  const rgba = {
4
4
  ...chromatism.convert(hex).rgb,
5
- ...{
6
- a: opacity
7
- }
5
+ a: opacity
8
6
  };
9
7
  return `rgba(${Object.values(rgba).join(', ')})`;
10
8
  };
11
- export const getBoxShadow = color => `0 0 0 2px ${color}`;
12
9
  const hex = '[a-z0-9]';
13
10
  const shortHandHexColorPattern = new RegExp(`#(${hex})(${hex})(${hex})`, 'i');
14
11
  const repeat = (str, times) => [...Array(times)].map(() => str).join('');
@@ -40,4 +37,5 @@ export const generateTextColor = color => {
40
37
  const converted = convertHexShorthand(color);
41
38
  return chromatism.contrastRatio(converted).hex;
42
39
  };
43
- export const getContrastColor = (contrastValue, opacityValue, color) => hexToRGBA(chromatism.contrast(contrastValue, color).hex, opacityValue);
40
+ export const getContrastColor = (contrastValue, opacityValue, color) => hexToRGBA(chromatism.contrast(contrastValue, color).hex, opacityValue);
41
+ export { getBoxShadow } from './get-box-shadow';
@@ -1,12 +1,10 @@
1
- import { createContext } from 'react';
2
- import { defaultTheme } from './themes';
3
- // Internal only
4
- // eslint-disable-next-line @repo/internal/react/require-jsdoc
5
- export const ThemeContext = /*#__PURE__*/createContext(defaultTheme);
6
-
1
+ import { ThemeContext } from './theme-context';
7
2
  /**
8
3
  * __Theme provider__
9
4
  *
10
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.
11
8
  */
12
- export const ThemeProvider = ThemeContext.Provider;
9
+ export const ThemeProvider = ThemeContext.Provider;
10
+ export { ThemeContext } from './theme-context';
@@ -1,8 +1,6 @@
1
- import { DEFAULT_THEME_NAME } from './default-theme';
2
- import { generateTheme } from './theme-generator';
3
- export const atlassianTheme = generateTheme({
4
- name: DEFAULT_THEME_NAME,
5
- backgroundColor: '#FFFFFF',
6
- highlightColor: '#0052CC'
7
- });
8
- export const defaultTheme = atlassianTheme;
1
+ import { atlassianTheme } from './atlassian-theme';
2
+ /**
3
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
4
+ */
5
+ export const defaultTheme = atlassianTheme;
6
+ export { atlassianTheme } from './atlassian-theme';
@@ -1,3 +1,3 @@
1
1
  import { useContext } from 'react';
2
- import { ThemeContext } from './theme-provider';
2
+ import { ThemeContext } from './theme-context';
3
3
  export const useTheme = () => useContext(ThemeContext);
@@ -0,0 +1,5 @@
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ import { CREATE_BREAKPOINT } from './constants';
3
+ export var actionSectionDesktopCSS = _defineProperty({}, "@media (max-width: ".concat(CREATE_BREAKPOINT - 1, "px)"), {
4
+ display: 'none !important'
5
+ });
@@ -0,0 +1,5 @@
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ import { CREATE_BREAKPOINT } from './constants';
3
+ export var actionSectionMobileCSS = _defineProperty({}, "@media (min-width: ".concat(CREATE_BREAKPOINT, "px)"), {
4
+ display: 'none !important'
5
+ });
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
3
+ */
1
4
  export var HORIZONTAL_GLOBAL_NAV_HEIGHT = 56;
2
5
  export var PRODUCT_HOME_BREAKPOINT = 1280;
3
6
  export var CREATE_BREAKPOINT = 1130;
@@ -1,8 +1,2 @@
1
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- import { CREATE_BREAKPOINT } from './constants';
3
- export var actionSectionDesktopCSS = _defineProperty({}, "@media (max-width: ".concat(CREATE_BREAKPOINT - 1, "px)"), {
4
- display: 'none !important'
5
- });
6
- export var actionSectionMobileCSS = _defineProperty({}, "@media (min-width: ".concat(CREATE_BREAKPOINT, "px)"), {
7
- display: 'none !important'
8
- });
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 _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["component", "href", "id", "isDisabled", "isSelected", "label", "onBlur", "onClick", "onFocus", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseUp", "target", "testId", "tooltip"];
4
+ import React, { forwardRef } from 'react';
5
+ import AppSwitcherIcon from '@atlaskit/icon/core/app-switcher';
6
+ import { IconButton } from '../IconButton';
7
+ /**
8
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
9
+ */
10
+ export var AppSwitcherNav4 = /*#__PURE__*/forwardRef(function (props, ref) {
11
+ var component = props.component,
12
+ href = props.href,
13
+ id = props.id,
14
+ isDisabled = props.isDisabled,
15
+ isSelected = props.isSelected,
16
+ label = props.label,
17
+ onBlur = props.onBlur,
18
+ onClick = props.onClick,
19
+ onFocus = props.onFocus,
20
+ onMouseDown = props.onMouseDown,
21
+ onMouseEnter = props.onMouseEnter,
22
+ onMouseLeave = props.onMouseLeave,
23
+ onMouseUp = props.onMouseUp,
24
+ target = props.target,
25
+ testId = props.testId,
26
+ tooltip = props.tooltip,
27
+ rest = _objectWithoutProperties(props, _excluded);
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 _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
+ var _excluded = ["component", "href", "id", "isDisabled", "isSelected", "label", "onBlur", "onClick", "onFocus", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseUp", "target", "testId", "tooltip"];
5
+ import "./app-switcher.compiled.css";
6
+ import { ax, ix } from "@compiled/react/runtime";
7
+ import React, { forwardRef } from 'react';
8
+ import AppSwitcherIcon from '@atlaskit/icon/core/app-switcher';
9
+ import { Flex } from '@atlaskit/primitives/compiled';
10
+ import { IconButton } from '../IconButton';
11
+ var iconSpacingStyles = {
12
+ space050: "_1rjc1b66 _18zr1b66"
13
+ };
14
+
15
+ /**
16
+ * _App switcher__
17
+ *
18
+ * An AppSwitcher button that can be passed into `AtlassianNavigation`'s
19
+ * `renderAppSwitcher` prop.
20
+ *
21
+ * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#app-switcher)
22
+ * - [Code](https://atlassian.design/components/atlassian-navigation/code)
23
+ *
24
+ * @deprecated `@atlaskit/atlassian-navigation` is deprecated. Use `@atlaskit/navigation-system` instead.
25
+ */
26
+ export var AppSwitcher = /*#__PURE__*/forwardRef(function (props, ref) {
27
+ var component = props.component,
28
+ href = props.href,
29
+ id = props.id,
30
+ isDisabled = props.isDisabled,
31
+ isSelected = props.isSelected,
32
+ label = props.label,
33
+ onBlur = props.onBlur,
34
+ onClick = props.onClick,
35
+ onFocus = props.onFocus,
36
+ onMouseDown = props.onMouseDown,
37
+ onMouseEnter = props.onMouseEnter,
38
+ onMouseLeave = props.onMouseLeave,
39
+ onMouseUp = props.onMouseUp,
40
+ target = props.target,
41
+ testId = props.testId,
42
+ tooltip = props.tooltip,
43
+ rest = _objectWithoutProperties(props, _excluded);
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,118 +1,3 @@
1
- /* index.tsx generated by @compiled/babel-plugin v0.39.1 */
2
- import _extends from "@babel/runtime/helpers/extends";
3
- import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
- var _excluded = ["component", "href", "id", "isDisabled", "isSelected", "label", "onBlur", "onClick", "onFocus", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseUp", "target", "testId", "tooltip"],
5
- _excluded2 = ["component", "href", "id", "isDisabled", "isSelected", "label", "onBlur", "onClick", "onFocus", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseUp", "target", "testId", "tooltip"];
6
- import "./index.compiled.css";
7
- import { ax, ix } from "@compiled/react/runtime";
8
- import React, { forwardRef } from 'react';
9
- import AppSwitcherIcon from '@atlaskit/icon/core/app-switcher';
10
- import { Flex } from '@atlaskit/primitives/compiled';
11
- import { IconButton } from '../IconButton';
12
- var iconSpacingStyles = {
13
- space050: "_1rjc1b66 _18zr1b66"
14
- };
15
-
16
- /**
17
- * _App switcher__
18
- *
19
- * An AppSwitcher button that can be passed into `AtlassianNavigation`'s
20
- * `renderAppSwitcher` prop.
21
- *
22
- * - [Examples](https://atlassian.design/components/atlassian-navigation/examples#app-switcher)
23
- * - [Code](https://atlassian.design/components/atlassian-navigation/code)
24
- */
25
- export var AppSwitcher = /*#__PURE__*/forwardRef(function (props, ref) {
26
- var component = props.component,
27
- href = props.href,
28
- id = props.id,
29
- isDisabled = props.isDisabled,
30
- isSelected = props.isSelected,
31
- label = props.label,
32
- onBlur = props.onBlur,
33
- onClick = props.onClick,
34
- onFocus = props.onFocus,
35
- onMouseDown = props.onMouseDown,
36
- onMouseEnter = props.onMouseEnter,
37
- onMouseLeave = props.onMouseLeave,
38
- onMouseUp = props.onMouseUp,
39
- target = props.target,
40
- testId = props.testId,
41
- tooltip = props.tooltip,
42
- rest = _objectWithoutProperties(props, _excluded);
43
- return /*#__PURE__*/React.createElement(IconButton, _extends({
44
- component: component,
45
- href: href,
46
- icon: /*#__PURE__*/React.createElement(Flex, {
47
- xcss: iconSpacingStyles.space050
48
- }, /*#__PURE__*/React.createElement(AppSwitcherIcon, {
49
- color: "currentColor",
50
- label: typeof tooltip === 'string' ? tooltip : 'Switch apps'
51
- })),
52
- id: id,
53
- isDisabled: isDisabled,
54
- isSelected: isSelected,
55
- label: label,
56
- onBlur: onBlur,
57
- onClick: onClick,
58
- onFocus: onFocus,
59
- onMouseDown: onMouseDown,
60
- onMouseEnter: onMouseEnter,
61
- onMouseLeave: onMouseLeave,
62
- onMouseUp: onMouseUp,
63
- ref: ref,
64
- target: target,
65
- testId: testId,
66
- tooltip: tooltip
67
- // These are all explicit, leaving it in just in case
68
- }, rest));
69
- });
70
-
71
- // eslint-disable-next-line @repo/internal/react/require-jsdoc
72
- export var AppSwitcherNav4 = /*#__PURE__*/forwardRef(function (props, ref) {
73
- var component = props.component,
74
- href = props.href,
75
- id = props.id,
76
- isDisabled = props.isDisabled,
77
- isSelected = props.isSelected,
78
- label = props.label,
79
- onBlur = props.onBlur,
80
- onClick = props.onClick,
81
- onFocus = props.onFocus,
82
- onMouseDown = props.onMouseDown,
83
- onMouseEnter = props.onMouseEnter,
84
- onMouseLeave = props.onMouseLeave,
85
- onMouseUp = props.onMouseUp,
86
- target = props.target,
87
- testId = props.testId,
88
- tooltip = props.tooltip,
89
- rest = _objectWithoutProperties(props, _excluded2);
90
- return /*#__PURE__*/React.createElement(IconButton, _extends({
91
- icon: /*#__PURE__*/React.createElement(AppSwitcherIcon, {
92
- label: typeof tooltip === 'string' ? tooltip : 'Switch apps',
93
- color: "var(--ds-icon, #292A2E)"
94
- }),
95
- component: component,
96
- href: href,
97
- id: id,
98
- isDisabled: isDisabled,
99
- isSelected: isSelected,
100
- label: label,
101
- onBlur: onBlur,
102
- onClick: onClick,
103
- onFocus: onFocus,
104
- onMouseDown: onMouseDown,
105
- onMouseEnter: onMouseEnter,
106
- onMouseLeave: onMouseLeave,
107
- onMouseUp: onMouseUp,
108
- ref: ref,
109
- target: target,
110
- testId: testId,
111
- tooltip: tooltip
112
- // These are all explicit, leaving it in just in case
113
- }, rest));
114
- });
115
-
116
1
  // exists only to extract props
117
2
  // eslint-disable-next-line import/no-anonymous-default-export
118
3
  export default (function (_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 @@ var 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 var AtlassianNavigation = function 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
  var label = props.label,
68
74
  _props$primaryItems = props.primaryItems,
69
75
  primaryItems = _props$primaryItems === void 0 ? [] : _props$primaryItems,
@@ -60,6 +60,8 @@ var 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 var NavigationSkeleton = function NavigationSkeleton(_ref) {
65
67
  var _ref$primaryItemsCoun = _ref.primaryItemsCount,