@codecademy/brand 6.0.0-alpha.0839dde39.0 → 6.0.0-alpha.d201d4c8f.0

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 (1077) hide show
  1. package/dist/AbbreviatedCommunityEventCard/index.cjs.map +1 -1
  2. package/dist/AbbreviatedCommunityEventCard/index.d.cts.map +1 -1
  3. package/dist/AbbreviatedCommunityEventCard/index.d.ts.map +1 -1
  4. package/dist/AbbreviatedCommunityEventCard/index.js.map +1 -1
  5. package/dist/AccordionAreaDeprecated/index.cjs.map +1 -1
  6. package/dist/AccordionAreaDeprecated/index.d.cts +0 -1
  7. package/dist/AccordionAreaDeprecated/index.d.cts.map +1 -1
  8. package/dist/AccordionAreaDeprecated/index.d.ts +0 -1
  9. package/dist/AccordionAreaDeprecated/index.d.ts.map +1 -1
  10. package/dist/AccordionAreaDeprecated/index.js.map +1 -1
  11. package/dist/AccordionButtonDeprecated/ButtonDeprecated/index.cjs +1 -0
  12. package/dist/AccordionButtonDeprecated/ButtonDeprecated/index.cjs.map +1 -1
  13. package/dist/AccordionButtonDeprecated/ButtonDeprecated/index.js +1 -1
  14. package/dist/AccordionButtonDeprecated/ButtonDeprecated/index.js.map +1 -1
  15. package/dist/AccordionButtonDeprecated/ButtonDeprecatedBase/index.cjs.map +1 -1
  16. package/dist/AccordionButtonDeprecated/ButtonDeprecatedBase/index.d.cts +0 -1
  17. package/dist/AccordionButtonDeprecated/ButtonDeprecatedBase/index.d.cts.map +1 -1
  18. package/dist/AccordionButtonDeprecated/ButtonDeprecatedBase/index.d.ts +0 -1
  19. package/dist/AccordionButtonDeprecated/ButtonDeprecatedBase/index.d.ts.map +1 -1
  20. package/dist/AccordionButtonDeprecated/ButtonDeprecatedBase/index.js.map +1 -1
  21. package/dist/AccordionButtonDeprecated/index.cjs.map +1 -1
  22. package/dist/AccordionButtonDeprecated/index.d.cts +0 -1
  23. package/dist/AccordionButtonDeprecated/index.d.cts.map +1 -1
  24. package/dist/AccordionButtonDeprecated/index.d.ts +0 -1
  25. package/dist/AccordionButtonDeprecated/index.d.ts.map +1 -1
  26. package/dist/AccordionButtonDeprecated/index.js.map +1 -1
  27. package/dist/AccordionDeprecated/index.cjs.map +1 -1
  28. package/dist/AccordionDeprecated/index.d.cts +0 -1
  29. package/dist/AccordionDeprecated/index.d.cts.map +1 -1
  30. package/dist/AccordionDeprecated/index.d.ts +0 -1
  31. package/dist/AccordionDeprecated/index.d.ts.map +1 -1
  32. package/dist/AccordionDeprecated/index.js.map +1 -1
  33. package/dist/AppBar/AppBarSection.cjs.map +1 -1
  34. package/dist/AppBar/AppBarSection.d.cts +0 -1
  35. package/dist/AppBar/AppBarSection.d.cts.map +1 -1
  36. package/dist/AppBar/AppBarSection.d.ts +0 -1
  37. package/dist/AppBar/AppBarSection.d.ts.map +1 -1
  38. package/dist/AppBar/AppBarSection.js.map +1 -1
  39. package/dist/AppBar/index.cjs +3 -4
  40. package/dist/AppBar/index.cjs.map +1 -1
  41. package/dist/AppBar/index.d.cts +1 -2
  42. package/dist/AppBar/index.d.cts.map +1 -1
  43. package/dist/AppBar/index.d.ts +1 -2
  44. package/dist/AppBar/index.d.ts.map +1 -1
  45. package/dist/AppBar/index.js +3 -4
  46. package/dist/AppBar/index.js.map +1 -1
  47. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/MarketingBanner.cjs.map +1 -1
  48. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/MarketingBanner.js.map +1 -1
  49. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/NavPanels.cjs +1 -0
  50. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/NavPanels.cjs.map +1 -1
  51. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/NavPanels.js +1 -1
  52. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/NavPanels.js.map +1 -1
  53. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/consts.cjs +1 -0
  54. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/consts.cjs.map +1 -1
  55. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/consts.js +1 -1
  56. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/consts.js.map +1 -1
  57. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.cjs.map +1 -1
  58. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.d.cts +2 -0
  59. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.d.cts.map +1 -1
  60. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.d.ts +2 -0
  61. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.d.ts.map +1 -1
  62. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.js.map +1 -1
  63. package/dist/AppHeader/AppHeaderElements/AppHeaderDietCard/index.cjs.map +1 -1
  64. package/dist/AppHeader/AppHeaderElements/AppHeaderDietCard/index.js.map +1 -1
  65. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdown/index.cjs.map +1 -1
  66. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdown/index.d.cts +1 -1
  67. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdown/index.d.cts.map +1 -1
  68. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdown/index.d.ts +1 -1
  69. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdown/index.d.ts.map +1 -1
  70. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdown/index.js.map +1 -1
  71. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownProvider/index.cjs.map +1 -1
  72. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownProvider/index.js.map +1 -1
  73. package/dist/AppHeader/AppHeaderElements/AppHeaderFeatureCard/index.cjs.map +1 -1
  74. package/dist/AppHeader/AppHeaderElements/AppHeaderFeatureCard/index.js.map +1 -1
  75. package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.cjs.map +1 -1
  76. package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.d.cts +1 -1
  77. package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.d.cts.map +1 -1
  78. package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.d.ts +1 -1
  79. package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.d.ts.map +1 -1
  80. package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.js.map +1 -1
  81. package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/elements.cjs.map +1 -1
  82. package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/elements.js.map +1 -1
  83. package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.cjs.map +1 -1
  84. package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.js.map +1 -1
  85. package/dist/AppHeader/AppHeaderElements/AppHeaderListItem/index.cjs +1 -0
  86. package/dist/AppHeader/AppHeaderElements/AppHeaderListItem/index.cjs.map +1 -1
  87. package/dist/AppHeader/AppHeaderElements/AppHeaderListItem/index.js +1 -1
  88. package/dist/AppHeader/AppHeaderElements/AppHeaderListItem/index.js.map +1 -1
  89. package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.cjs.map +1 -1
  90. package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.d.cts +1 -1
  91. package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.d.cts.map +1 -1
  92. package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.d.ts +1 -1
  93. package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.d.ts.map +1 -1
  94. package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.js.map +1 -1
  95. package/dist/AppHeader/AppHeaderElements/AppHeaderMenuProvider/index.cjs +1 -0
  96. package/dist/AppHeader/AppHeaderElements/AppHeaderMenuProvider/index.cjs.map +1 -1
  97. package/dist/AppHeader/AppHeaderElements/AppHeaderMenuProvider/index.js +1 -1
  98. package/dist/AppHeader/AppHeaderElements/AppHeaderMenuProvider/index.js.map +1 -1
  99. package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/index.cjs.map +1 -1
  100. package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/index.js.map +1 -1
  101. package/dist/AppHeader/AppHeaderElements/AppHeaderProvider/index.cjs +1 -0
  102. package/dist/AppHeader/AppHeaderElements/AppHeaderProvider/index.cjs.map +1 -1
  103. package/dist/AppHeader/AppHeaderElements/AppHeaderProvider/index.js +1 -1
  104. package/dist/AppHeader/AppHeaderElements/AppHeaderProvider/index.js.map +1 -1
  105. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/NavPanels.cjs +1 -0
  106. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/NavPanels.cjs.map +1 -1
  107. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/NavPanels.js +1 -1
  108. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/NavPanels.js.map +1 -1
  109. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/consts.cjs.map +1 -1
  110. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/consts.js.map +1 -1
  111. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.cjs.map +1 -1
  112. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.d.cts +2 -0
  113. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.d.cts.map +1 -1
  114. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.d.ts +2 -0
  115. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.d.ts.map +1 -1
  116. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.js.map +1 -1
  117. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/MobileBackButton.cjs.map +1 -1
  118. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/MobileBackButton.js.map +1 -1
  119. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/MobileNavMenu.cjs.map +1 -1
  120. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/MobileNavMenu.js.map +1 -1
  121. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/NavTabs.cjs.map +1 -1
  122. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/NavTabs.js.map +1 -1
  123. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/PanelLayout.cjs.map +1 -1
  124. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/PanelLayout.js.map +1 -1
  125. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/elements.cjs.map +1 -1
  126. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/elements.js.map +1 -1
  127. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/index.cjs.map +1 -1
  128. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/index.js.map +1 -1
  129. package/dist/AppHeader/AppHeaderElements/AppHeaderSkillTile/index.cjs.map +1 -1
  130. package/dist/AppHeader/AppHeaderElements/AppHeaderSkillTile/index.js.map +1 -1
  131. package/dist/AppHeader/Search/DefaultResults.cjs.map +1 -1
  132. package/dist/AppHeader/Search/DefaultResults.js.map +1 -1
  133. package/dist/AppHeader/Search/QuizAndHelpCenterLinks.cjs +1 -0
  134. package/dist/AppHeader/Search/QuizAndHelpCenterLinks.cjs.map +1 -1
  135. package/dist/AppHeader/Search/QuizAndHelpCenterLinks.js +1 -1
  136. package/dist/AppHeader/Search/QuizAndHelpCenterLinks.js.map +1 -1
  137. package/dist/AppHeader/Search/SearchButton.cjs.map +1 -1
  138. package/dist/AppHeader/Search/SearchButton.js.map +1 -1
  139. package/dist/AppHeader/Search/SearchPane.cjs.map +1 -1
  140. package/dist/AppHeader/Search/SearchPane.js.map +1 -1
  141. package/dist/AppHeader/Search/SearchTrackingProvider/index.cjs +1 -0
  142. package/dist/AppHeader/Search/SearchTrackingProvider/index.cjs.map +1 -1
  143. package/dist/AppHeader/Search/SearchTrackingProvider/index.js +1 -1
  144. package/dist/AppHeader/Search/SearchTrackingProvider/index.js.map +1 -1
  145. package/dist/AppHeader/Search/SearchWorker/PromiseLookup.cjs.map +1 -1
  146. package/dist/AppHeader/Search/SearchWorker/PromiseLookup.js.map +1 -1
  147. package/dist/AppHeader/Search/SearchWorker/index.d.cts +0 -1
  148. package/dist/AppHeader/Search/SearchWorker/index.d.cts.map +1 -1
  149. package/dist/AppHeader/Search/SearchWorker/index.d.ts +0 -1
  150. package/dist/AppHeader/Search/SearchWorker/index.d.ts.map +1 -1
  151. package/dist/AppHeader/Search/SearchWorker/types.cjs.map +1 -1
  152. package/dist/AppHeader/Search/SearchWorker/types.d.cts +1 -1
  153. package/dist/AppHeader/Search/SearchWorker/types.d.cts.map +1 -1
  154. package/dist/AppHeader/Search/SearchWorker/types.d.ts +1 -1
  155. package/dist/AppHeader/Search/SearchWorker/types.d.ts.map +1 -1
  156. package/dist/AppHeader/Search/SearchWorker/types.js.map +1 -1
  157. package/dist/AppHeader/Search/SearchWorker/worker.cjs.map +1 -1
  158. package/dist/AppHeader/Search/SearchWorker/worker.js.map +1 -1
  159. package/dist/AppHeader/Search/consts.cjs.map +1 -1
  160. package/dist/AppHeader/Search/consts.d.cts.map +1 -1
  161. package/dist/AppHeader/Search/consts.d.ts.map +1 -1
  162. package/dist/AppHeader/Search/consts.js.map +1 -1
  163. package/dist/AppHeader/Search/hooks/useUrlChangeDetection.cjs.map +1 -1
  164. package/dist/AppHeader/Search/hooks/useUrlChangeDetection.js.map +1 -1
  165. package/dist/AppHeader/Search/types.d.cts +2 -0
  166. package/dist/AppHeader/Search/types.d.cts.map +1 -1
  167. package/dist/AppHeader/Search/types.d.ts +2 -0
  168. package/dist/AppHeader/Search/types.d.ts.map +1 -1
  169. package/dist/AppHeader/Search/useHeaderSearch.cjs.map +1 -1
  170. package/dist/AppHeader/Search/useHeaderSearch.js.map +1 -1
  171. package/dist/AppHeader/index.cjs +10 -0
  172. package/dist/AppHeader/index.cjs.map +1 -1
  173. package/dist/AppHeader/index.d.cts +2 -2
  174. package/dist/AppHeader/index.d.cts.map +1 -1
  175. package/dist/AppHeader/index.d.ts +2 -2
  176. package/dist/AppHeader/index.d.ts.map +1 -1
  177. package/dist/AppHeader/index.js +1 -1
  178. package/dist/AppHeader/index.js.map +1 -1
  179. package/dist/AppHeader/shared/elements.cjs.map +1 -1
  180. package/dist/AppHeader/shared/elements.d.cts +2 -0
  181. package/dist/AppHeader/shared/elements.d.ts +3 -1
  182. package/dist/AppHeader/shared/elements.js.map +1 -1
  183. package/dist/AppHeader/shared/index.cjs +14 -0
  184. package/dist/AppHeader/shared/index.d.cts +5 -1
  185. package/dist/AppHeader/shared/index.d.ts +5 -1
  186. package/dist/AppHeader/shared/index.js +2 -0
  187. package/dist/AppHeader/shared/keyboardNav.d.cts +1 -1
  188. package/dist/AppHeader/shared/keyboardNav.d.ts +1 -1
  189. package/dist/AppHeader/shared/mockAppHeaderItems.d.cts +1 -1
  190. package/dist/AppHeader/shared/mockAppHeaderItems.d.ts +1 -1
  191. package/dist/AppHeader/shared/types.d.cts +2 -2
  192. package/dist/AppHeader/shared/types.d.cts.map +1 -1
  193. package/dist/AppHeader/shared/types.d.ts +2 -2
  194. package/dist/AppHeader/shared/types.d.ts.map +1 -1
  195. package/dist/AppHeader/shared/utils.cjs.map +1 -1
  196. package/dist/AppHeader/shared/utils.js.map +1 -1
  197. package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.cjs.map +1 -1
  198. package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.d.cts +1 -1
  199. package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.d.cts.map +1 -1
  200. package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.d.ts +1 -1
  201. package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.d.ts.map +1 -1
  202. package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.js.map +1 -1
  203. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/elements.cjs.map +1 -1
  204. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/elements.js.map +1 -1
  205. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.cjs.map +1 -1
  206. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.d.cts +0 -1
  207. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.d.cts.map +1 -1
  208. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.d.ts +0 -1
  209. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.d.ts.map +1 -1
  210. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.js.map +1 -1
  211. package/dist/AppHeaderMobile/AppHeaderSubMenuTarget/index.cjs.map +1 -1
  212. package/dist/AppHeaderMobile/AppHeaderSubMenuTarget/index.js.map +1 -1
  213. package/dist/AppHeaderMobile/index.cjs.map +1 -1
  214. package/dist/AppHeaderMobile/index.d.cts +3 -1
  215. package/dist/AppHeaderMobile/index.d.cts.map +1 -1
  216. package/dist/AppHeaderMobile/index.d.ts +3 -1
  217. package/dist/AppHeaderMobile/index.d.ts.map +1 -1
  218. package/dist/AppHeaderMobile/index.js.map +1 -1
  219. package/dist/Avatar/index.cjs.map +1 -1
  220. package/dist/Avatar/index.d.cts +0 -1
  221. package/dist/Avatar/index.d.cts.map +1 -1
  222. package/dist/Avatar/index.d.ts +0 -1
  223. package/dist/Avatar/index.d.ts.map +1 -1
  224. package/dist/Avatar/index.js.map +1 -1
  225. package/dist/AvatarChooser/index.cjs.map +1 -1
  226. package/dist/AvatarChooser/index.d.cts +0 -1
  227. package/dist/AvatarChooser/index.d.cts.map +1 -1
  228. package/dist/AvatarChooser/index.d.ts +0 -1
  229. package/dist/AvatarChooser/index.d.ts.map +1 -1
  230. package/dist/AvatarChooser/index.js.map +1 -1
  231. package/dist/BackToTopAnchor/index.cjs.map +1 -1
  232. package/dist/BackToTopAnchor/index.d.cts +7 -3
  233. package/dist/BackToTopAnchor/index.d.cts.map +1 -1
  234. package/dist/BackToTopAnchor/index.d.ts +7 -3
  235. package/dist/BackToTopAnchor/index.d.ts.map +1 -1
  236. package/dist/BackToTopAnchor/index.js.map +1 -1
  237. package/dist/Banner/CountdownTimer.cjs +2 -1
  238. package/dist/Banner/CountdownTimer.cjs.map +1 -1
  239. package/dist/Banner/CountdownTimer.d.cts +0 -1
  240. package/dist/Banner/CountdownTimer.d.cts.map +1 -1
  241. package/dist/Banner/CountdownTimer.d.ts +0 -1
  242. package/dist/Banner/CountdownTimer.d.ts.map +1 -1
  243. package/dist/Banner/CountdownTimer.js +2 -1
  244. package/dist/Banner/CountdownTimer.js.map +1 -1
  245. package/dist/Banner/EnhancedBanner.cjs.map +1 -1
  246. package/dist/Banner/EnhancedBanner.d.cts +0 -1
  247. package/dist/Banner/EnhancedBanner.d.cts.map +1 -1
  248. package/dist/Banner/EnhancedBanner.d.ts +0 -1
  249. package/dist/Banner/EnhancedBanner.d.ts.map +1 -1
  250. package/dist/Banner/EnhancedBanner.js.map +1 -1
  251. package/dist/Banner/index.cjs.map +1 -1
  252. package/dist/Banner/index.d.cts +0 -1
  253. package/dist/Banner/index.d.cts.map +1 -1
  254. package/dist/Banner/index.d.ts +0 -1
  255. package/dist/Banner/index.d.ts.map +1 -1
  256. package/dist/Banner/index.js.map +1 -1
  257. package/dist/BetaSticker/index.cjs.map +1 -1
  258. package/dist/BetaSticker/index.d.cts +0 -1
  259. package/dist/BetaSticker/index.d.cts.map +1 -1
  260. package/dist/BetaSticker/index.d.ts +0 -1
  261. package/dist/BetaSticker/index.d.ts.map +1 -1
  262. package/dist/BetaSticker/index.js.map +1 -1
  263. package/dist/CareerPathCard/index.cjs.map +1 -1
  264. package/dist/CareerPathCard/index.d.cts +0 -1
  265. package/dist/CareerPathCard/index.d.cts.map +1 -1
  266. package/dist/CareerPathCard/index.d.ts +0 -1
  267. package/dist/CareerPathCard/index.d.ts.map +1 -1
  268. package/dist/CareerPathCard/index.js.map +1 -1
  269. package/dist/Carousel/elements.cjs.map +1 -1
  270. package/dist/Carousel/elements.js.map +1 -1
  271. package/dist/Carousel/index.cjs.map +1 -1
  272. package/dist/Carousel/index.d.cts +1 -1
  273. package/dist/Carousel/index.d.cts.map +1 -1
  274. package/dist/Carousel/index.d.ts +1 -1
  275. package/dist/Carousel/index.d.ts.map +1 -1
  276. package/dist/Carousel/index.js.map +1 -1
  277. package/dist/CertificationPathCard/index.cjs.map +1 -1
  278. package/dist/CertificationPathCard/index.d.cts +0 -1
  279. package/dist/CertificationPathCard/index.d.cts.map +1 -1
  280. package/dist/CertificationPathCard/index.d.ts +0 -1
  281. package/dist/CertificationPathCard/index.d.ts.map +1 -1
  282. package/dist/CertificationPathCard/index.js.map +1 -1
  283. package/dist/Coaching/coachingOfferingIcons.d.cts +0 -1
  284. package/dist/Coaching/coachingOfferingIcons.d.cts.map +1 -1
  285. package/dist/Coaching/coachingOfferingIcons.d.ts +0 -1
  286. package/dist/Coaching/coachingOfferingIcons.d.ts.map +1 -1
  287. package/dist/Coaching/coachingOfferings.cjs.map +1 -1
  288. package/dist/Coaching/coachingOfferings.d.cts.map +1 -1
  289. package/dist/Coaching/coachingOfferings.d.ts.map +1 -1
  290. package/dist/Coaching/coachingOfferings.js.map +1 -1
  291. package/dist/Coaching/index.cjs +3 -0
  292. package/dist/Coaching/index.d.cts +2 -1
  293. package/dist/Coaching/index.d.ts +2 -1
  294. package/dist/Coaching/index.js +2 -0
  295. package/dist/CoachingSessionCard/index.cjs +28 -9
  296. package/dist/CoachingSessionCard/index.cjs.map +1 -1
  297. package/dist/CoachingSessionCard/index.d.cts.map +1 -1
  298. package/dist/CoachingSessionCard/index.d.ts.map +1 -1
  299. package/dist/CoachingSessionCard/index.js +29 -10
  300. package/dist/CoachingSessionCard/index.js.map +1 -1
  301. package/dist/CommunityEventCard/EventTypeIcon.cjs +1 -0
  302. package/dist/CommunityEventCard/EventTypeIcon.cjs.map +1 -1
  303. package/dist/CommunityEventCard/EventTypeIcon.js +1 -1
  304. package/dist/CommunityEventCard/EventTypeIcon.js.map +1 -1
  305. package/dist/CommunityEventCard/index.cjs.map +1 -1
  306. package/dist/CommunityEventCard/index.d.cts.map +1 -1
  307. package/dist/CommunityEventCard/index.d.ts.map +1 -1
  308. package/dist/CommunityEventCard/index.js.map +1 -1
  309. package/dist/CommunityEventToast/index.cjs.map +1 -1
  310. package/dist/CommunityEventToast/index.d.cts +0 -1
  311. package/dist/CommunityEventToast/index.d.cts.map +1 -1
  312. package/dist/CommunityEventToast/index.d.ts +0 -1
  313. package/dist/CommunityEventToast/index.d.ts.map +1 -1
  314. package/dist/CommunityEventToast/index.js.map +1 -1
  315. package/dist/ContentGroupBaseCard/helpers.d.cts +0 -1
  316. package/dist/ContentGroupBaseCard/helpers.d.cts.map +1 -1
  317. package/dist/ContentGroupBaseCard/helpers.d.ts +0 -1
  318. package/dist/ContentGroupBaseCard/helpers.d.ts.map +1 -1
  319. package/dist/ContentGroupBaseCard/index.cjs.map +1 -1
  320. package/dist/ContentGroupBaseCard/index.d.cts +0 -1
  321. package/dist/ContentGroupBaseCard/index.d.cts.map +1 -1
  322. package/dist/ContentGroupBaseCard/index.d.ts +0 -1
  323. package/dist/ContentGroupBaseCard/index.d.ts.map +1 -1
  324. package/dist/ContentGroupBaseCard/index.js.map +1 -1
  325. package/dist/ContentGroupBaseCard/shared.cjs.map +1 -1
  326. package/dist/ContentGroupBaseCard/shared.js.map +1 -1
  327. package/dist/ContentGroupBaseCard/types.cjs.map +1 -1
  328. package/dist/ContentGroupBaseCard/types.d.cts.map +1 -1
  329. package/dist/ContentGroupBaseCard/types.d.ts.map +1 -1
  330. package/dist/ContentGroupBaseCard/types.js.map +1 -1
  331. package/dist/CourseCard/index.cjs.map +1 -1
  332. package/dist/CourseCard/index.d.cts +0 -1
  333. package/dist/CourseCard/index.d.cts.map +1 -1
  334. package/dist/CourseCard/index.d.ts +0 -1
  335. package/dist/CourseCard/index.d.ts.map +1 -1
  336. package/dist/CourseCard/index.js.map +1 -1
  337. package/dist/CurriculumCard/BottomTag/index.cjs.map +1 -1
  338. package/dist/CurriculumCard/BottomTag/index.d.cts +1 -0
  339. package/dist/CurriculumCard/BottomTag/index.d.cts.map +1 -1
  340. package/dist/CurriculumCard/BottomTag/index.d.ts +1 -0
  341. package/dist/CurriculumCard/BottomTag/index.d.ts.map +1 -1
  342. package/dist/CurriculumCard/BottomTag/index.js.map +1 -1
  343. package/dist/CurriculumCard/Difficulty/helpers.d.cts +0 -1
  344. package/dist/CurriculumCard/Difficulty/helpers.d.cts.map +1 -1
  345. package/dist/CurriculumCard/Difficulty/helpers.d.ts +0 -1
  346. package/dist/CurriculumCard/Difficulty/helpers.d.ts.map +1 -1
  347. package/dist/CurriculumCard/Difficulty/index.cjs.map +1 -1
  348. package/dist/CurriculumCard/Difficulty/index.d.cts +0 -1
  349. package/dist/CurriculumCard/Difficulty/index.d.cts.map +1 -1
  350. package/dist/CurriculumCard/Difficulty/index.d.ts +0 -1
  351. package/dist/CurriculumCard/Difficulty/index.d.ts.map +1 -1
  352. package/dist/CurriculumCard/Difficulty/index.js.map +1 -1
  353. package/dist/CurriculumCard/Difficulty/types.cjs.map +1 -1
  354. package/dist/CurriculumCard/Difficulty/types.d.cts.map +1 -1
  355. package/dist/CurriculumCard/Difficulty/types.d.ts.map +1 -1
  356. package/dist/CurriculumCard/Difficulty/types.js.map +1 -1
  357. package/dist/CurriculumCard/Footer/index.cjs.map +1 -1
  358. package/dist/CurriculumCard/Footer/index.js.map +1 -1
  359. package/dist/CurriculumCard/Image/index.cjs.map +1 -1
  360. package/dist/CurriculumCard/Image/index.js.map +1 -1
  361. package/dist/CurriculumCard/Subtitle/index.cjs.map +1 -1
  362. package/dist/CurriculumCard/Subtitle/index.d.cts +1 -0
  363. package/dist/CurriculumCard/Subtitle/index.d.cts.map +1 -1
  364. package/dist/CurriculumCard/Subtitle/index.d.ts +1 -0
  365. package/dist/CurriculumCard/Subtitle/index.d.ts.map +1 -1
  366. package/dist/CurriculumCard/Subtitle/index.js.map +1 -1
  367. package/dist/CurriculumCard/index.cjs.map +1 -1
  368. package/dist/CurriculumCard/index.d.cts +0 -1
  369. package/dist/CurriculumCard/index.d.cts.map +1 -1
  370. package/dist/CurriculumCard/index.d.ts +0 -1
  371. package/dist/CurriculumCard/index.d.ts.map +1 -1
  372. package/dist/CurriculumCard/index.js.map +1 -1
  373. package/dist/DropdownButton/DropdownList.cjs +8 -2
  374. package/dist/DropdownButton/DropdownList.cjs.map +1 -1
  375. package/dist/DropdownButton/DropdownList.d.cts +1 -2
  376. package/dist/DropdownButton/DropdownList.d.cts.map +1 -1
  377. package/dist/DropdownButton/DropdownList.d.ts +1 -2
  378. package/dist/DropdownButton/DropdownList.d.ts.map +1 -1
  379. package/dist/DropdownButton/DropdownList.js +8 -2
  380. package/dist/DropdownButton/DropdownList.js.map +1 -1
  381. package/dist/DropdownButton/index.cjs.map +1 -1
  382. package/dist/DropdownButton/index.d.cts +0 -1
  383. package/dist/DropdownButton/index.d.cts.map +1 -1
  384. package/dist/DropdownButton/index.d.ts +0 -1
  385. package/dist/DropdownButton/index.d.ts.map +1 -1
  386. package/dist/DropdownButton/index.js.map +1 -1
  387. package/dist/EmptySection/index.cjs.map +1 -1
  388. package/dist/EmptySection/index.d.cts +1 -1
  389. package/dist/EmptySection/index.d.cts.map +1 -1
  390. package/dist/EmptySection/index.d.ts +1 -1
  391. package/dist/EmptySection/index.d.ts.map +1 -1
  392. package/dist/EmptySection/index.js.map +1 -1
  393. package/dist/ErrorContents/index.cjs.map +1 -1
  394. package/dist/ErrorContents/index.d.cts +0 -1
  395. package/dist/ErrorContents/index.d.cts.map +1 -1
  396. package/dist/ErrorContents/index.d.ts +0 -1
  397. package/dist/ErrorContents/index.d.ts.map +1 -1
  398. package/dist/ErrorContents/index.js.map +1 -1
  399. package/dist/FeatureList/index.cjs.map +1 -1
  400. package/dist/FeatureList/index.d.cts +1 -4
  401. package/dist/FeatureList/index.d.cts.map +1 -1
  402. package/dist/FeatureList/index.d.ts +1 -4
  403. package/dist/FeatureList/index.d.ts.map +1 -1
  404. package/dist/FeatureList/index.js.map +1 -1
  405. package/dist/GlobalFooter/FooterHeading.cjs.map +1 -1
  406. package/dist/GlobalFooter/FooterHeading.js.map +1 -1
  407. package/dist/GlobalFooter/FooterLegal/LegalLinks.cjs.map +1 -1
  408. package/dist/GlobalFooter/FooterLegal/LegalLinks.js.map +1 -1
  409. package/dist/GlobalFooter/FooterLegal/MadeIn.cjs.map +1 -1
  410. package/dist/GlobalFooter/FooterLegal/MadeIn.js.map +1 -1
  411. package/dist/GlobalFooter/FooterLegal/index.cjs.map +1 -1
  412. package/dist/GlobalFooter/FooterLegal/index.js.map +1 -1
  413. package/dist/GlobalFooter/FooterLinks.cjs.map +1 -1
  414. package/dist/GlobalFooter/FooterLinks.js.map +1 -1
  415. package/dist/GlobalFooter/FooterNavLinks/CatalogLinks.cjs.map +1 -1
  416. package/dist/GlobalFooter/FooterNavLinks/CatalogLinks.js.map +1 -1
  417. package/dist/GlobalFooter/FooterNavLinks/CompanyLinks.cjs.map +1 -1
  418. package/dist/GlobalFooter/FooterNavLinks/CompanyLinks.js.map +1 -1
  419. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferAFriendLinkWithModal.cjs.map +1 -1
  420. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferAFriendLinkWithModal.js.map +1 -1
  421. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralFields.cjs.map +1 -1
  422. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralFields.js.map +1 -1
  423. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralForm.cjs.map +1 -1
  424. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralForm.js.map +1 -1
  425. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralLinkSocialMediaSharing.cjs.map +1 -1
  426. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralLinkSocialMediaSharing.js.map +1 -1
  427. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/types.d.cts.map +1 -1
  428. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/types.d.ts.map +1 -1
  429. package/dist/GlobalFooter/FooterNavLinks/SocialMediaLinks.cjs.map +1 -1
  430. package/dist/GlobalFooter/FooterNavLinks/SocialMediaLinks.js.map +1 -1
  431. package/dist/GlobalFooter/FooterNavLinks/assets/download-on-the-app-store.cjs.map +1 -1
  432. package/dist/GlobalFooter/FooterNavLinks/assets/download-on-the-app-store.js.map +1 -1
  433. package/dist/GlobalFooter/FooterNavLinks/assets/get-it-on-google-play.cjs.map +1 -1
  434. package/dist/GlobalFooter/FooterNavLinks/assets/get-it-on-google-play.js.map +1 -1
  435. package/dist/GlobalFooter/FooterNavLinks/index.cjs.map +1 -1
  436. package/dist/GlobalFooter/FooterNavLinks/index.js.map +1 -1
  437. package/dist/GlobalFooter/index.cjs.map +1 -1
  438. package/dist/GlobalFooter/index.d.cts +0 -1
  439. package/dist/GlobalFooter/index.d.cts.map +1 -1
  440. package/dist/GlobalFooter/index.d.ts +0 -1
  441. package/dist/GlobalFooter/index.d.ts.map +1 -1
  442. package/dist/GlobalFooter/index.js.map +1 -1
  443. package/dist/GlobalFooter/types.d.cts +0 -1
  444. package/dist/GlobalFooter/types.d.cts.map +1 -1
  445. package/dist/GlobalFooter/types.d.ts +0 -1
  446. package/dist/GlobalFooter/types.d.ts.map +1 -1
  447. package/dist/GlobalHeader/GlobalHeaderItems.cjs.map +1 -1
  448. package/dist/GlobalHeader/GlobalHeaderItems.js.map +1 -1
  449. package/dist/GlobalHeader/GlobalHeaderVariants.cjs.map +1 -1
  450. package/dist/GlobalHeader/GlobalHeaderVariants.js.map +1 -1
  451. package/dist/GlobalHeader/index.cjs.map +1 -1
  452. package/dist/GlobalHeader/index.d.cts +1 -2
  453. package/dist/GlobalHeader/index.d.cts.map +1 -1
  454. package/dist/GlobalHeader/index.d.ts +1 -2
  455. package/dist/GlobalHeader/index.d.ts.map +1 -1
  456. package/dist/GlobalHeader/index.js.map +1 -1
  457. package/dist/GlobalHeader/types.d.cts +1 -1
  458. package/dist/GlobalHeader/types.d.cts.map +1 -1
  459. package/dist/GlobalHeader/types.d.ts +1 -1
  460. package/dist/GlobalHeader/types.d.ts.map +1 -1
  461. package/dist/GlobalPage/index.cjs.map +1 -1
  462. package/dist/GlobalPage/index.d.cts +0 -1
  463. package/dist/GlobalPage/index.d.cts.map +1 -1
  464. package/dist/GlobalPage/index.d.ts +0 -1
  465. package/dist/GlobalPage/index.d.ts.map +1 -1
  466. package/dist/GlobalPage/index.js.map +1 -1
  467. package/dist/Grid/GridCollapse.cjs.map +1 -1
  468. package/dist/Grid/GridCollapse.d.cts +1 -6
  469. package/dist/Grid/GridCollapse.d.cts.map +1 -1
  470. package/dist/Grid/GridCollapse.d.ts +1 -6
  471. package/dist/Grid/GridCollapse.d.ts.map +1 -1
  472. package/dist/Grid/GridCollapse.js.map +1 -1
  473. package/dist/Grid/Subgrid.d.cts +0 -1
  474. package/dist/Grid/Subgrid.d.cts.map +1 -1
  475. package/dist/Grid/Subgrid.d.ts +0 -1
  476. package/dist/Grid/Subgrid.d.ts.map +1 -1
  477. package/dist/Grid/getCSSFromColumnCount.d.cts +0 -1
  478. package/dist/Grid/getCSSFromColumnCount.d.cts.map +1 -1
  479. package/dist/Grid/getCSSFromColumnCount.d.ts +0 -1
  480. package/dist/Grid/getCSSFromColumnCount.d.ts.map +1 -1
  481. package/dist/Grid/index.cjs +6 -0
  482. package/dist/Grid/index.d.cts +2 -1
  483. package/dist/Grid/index.d.ts +2 -1
  484. package/dist/Grid/index.js +2 -0
  485. package/dist/HeaderHeightArea/index.cjs.map +1 -1
  486. package/dist/HeaderHeightArea/index.js.map +1 -1
  487. package/dist/HorizontalScrollMenu/index.cjs.map +1 -1
  488. package/dist/HorizontalScrollMenu/index.d.cts +1 -0
  489. package/dist/HorizontalScrollMenu/index.d.cts.map +1 -1
  490. package/dist/HorizontalScrollMenu/index.d.ts +1 -0
  491. package/dist/HorizontalScrollMenu/index.d.ts.map +1 -1
  492. package/dist/HorizontalScrollMenu/index.js.map +1 -1
  493. package/dist/HubCard/index.cjs.map +1 -1
  494. package/dist/HubCard/index.d.cts +0 -1
  495. package/dist/HubCard/index.d.cts.map +1 -1
  496. package/dist/HubCard/index.d.ts +0 -1
  497. package/dist/HubCard/index.d.ts.map +1 -1
  498. package/dist/HubCard/index.js.map +1 -1
  499. package/dist/InfoCard/index.cjs.map +1 -1
  500. package/dist/InfoCard/index.d.cts +0 -1
  501. package/dist/InfoCard/index.d.cts.map +1 -1
  502. package/dist/InfoCard/index.d.ts +0 -1
  503. package/dist/InfoCard/index.d.ts.map +1 -1
  504. package/dist/InfoCard/index.js.map +1 -1
  505. package/dist/InstructorCard/index.cjs.map +1 -1
  506. package/dist/InstructorCard/index.d.cts +13 -6
  507. package/dist/InstructorCard/index.d.cts.map +1 -1
  508. package/dist/InstructorCard/index.d.ts +13 -6
  509. package/dist/InstructorCard/index.d.ts.map +1 -1
  510. package/dist/InstructorCard/index.js.map +1 -1
  511. package/dist/Konamimojisplosion/Konamimojisplosion.d.cts +0 -1
  512. package/dist/Konamimojisplosion/Konamimojisplosion.d.cts.map +1 -1
  513. package/dist/Konamimojisplosion/Konamimojisplosion.d.ts +0 -1
  514. package/dist/Konamimojisplosion/Konamimojisplosion.d.ts.map +1 -1
  515. package/dist/Konamimojisplosion/index.cjs +3 -0
  516. package/dist/Konamimojisplosion/index.d.cts +2 -1
  517. package/dist/Konamimojisplosion/index.d.ts +2 -1
  518. package/dist/Konamimojisplosion/index.js +2 -0
  519. package/dist/Konamimojisplosion/useKonamimojisplosion.cjs.map +1 -1
  520. package/dist/Konamimojisplosion/useKonamimojisplosion.d.cts.map +1 -1
  521. package/dist/Konamimojisplosion/useKonamimojisplosion.d.ts.map +1 -1
  522. package/dist/Konamimojisplosion/useKonamimojisplosion.js.map +1 -1
  523. package/dist/LandingPage/Description.cjs.map +1 -1
  524. package/dist/LandingPage/Description.d.cts +0 -1
  525. package/dist/LandingPage/Description.d.cts.map +1 -1
  526. package/dist/LandingPage/Description.d.ts +0 -1
  527. package/dist/LandingPage/Description.d.ts.map +1 -1
  528. package/dist/LandingPage/Description.js.map +1 -1
  529. package/dist/LandingPage/PageFAQs.cjs.map +1 -1
  530. package/dist/LandingPage/PageFAQs.d.cts +0 -1
  531. package/dist/LandingPage/PageFAQs.d.cts.map +1 -1
  532. package/dist/LandingPage/PageFAQs.d.ts +0 -1
  533. package/dist/LandingPage/PageFAQs.d.ts.map +1 -1
  534. package/dist/LandingPage/PageFAQs.js.map +1 -1
  535. package/dist/LandingPage/Title.cjs.map +1 -1
  536. package/dist/LandingPage/Title.d.cts +0 -1
  537. package/dist/LandingPage/Title.d.cts.map +1 -1
  538. package/dist/LandingPage/Title.d.ts +0 -1
  539. package/dist/LandingPage/Title.d.ts.map +1 -1
  540. package/dist/LandingPage/Title.js.map +1 -1
  541. package/dist/LandingPage/TitleWithEyebrow.cjs.map +1 -1
  542. package/dist/LandingPage/TitleWithEyebrow.d.cts +0 -1
  543. package/dist/LandingPage/TitleWithEyebrow.d.cts.map +1 -1
  544. package/dist/LandingPage/TitleWithEyebrow.d.ts +0 -1
  545. package/dist/LandingPage/TitleWithEyebrow.d.ts.map +1 -1
  546. package/dist/LandingPage/TitleWithEyebrow.js.map +1 -1
  547. package/dist/LandingPage/index.cjs +7 -0
  548. package/dist/LandingPage/index.d.cts +2 -1
  549. package/dist/LandingPage/index.d.ts +2 -1
  550. package/dist/LandingPage/index.js +2 -0
  551. package/dist/LandingPage/types.d.cts.map +1 -1
  552. package/dist/LandingPage/types.d.ts.map +1 -1
  553. package/dist/LayoutMenu/AccordionMenu.cjs.map +1 -1
  554. package/dist/LayoutMenu/AccordionMenu.d.cts +0 -1
  555. package/dist/LayoutMenu/AccordionMenu.d.cts.map +1 -1
  556. package/dist/LayoutMenu/AccordionMenu.d.ts +0 -1
  557. package/dist/LayoutMenu/AccordionMenu.d.ts.map +1 -1
  558. package/dist/LayoutMenu/AccordionMenu.js.map +1 -1
  559. package/dist/LayoutMenu/LayoutMenu.cjs.map +1 -1
  560. package/dist/LayoutMenu/LayoutMenu.d.cts +0 -1
  561. package/dist/LayoutMenu/LayoutMenu.d.cts.map +1 -1
  562. package/dist/LayoutMenu/LayoutMenu.d.ts +0 -1
  563. package/dist/LayoutMenu/LayoutMenu.d.ts.map +1 -1
  564. package/dist/LayoutMenu/LayoutMenu.js.map +1 -1
  565. package/dist/LayoutMenu/LayoutMenuSection.cjs.map +1 -1
  566. package/dist/LayoutMenu/LayoutMenuSection.js.map +1 -1
  567. package/dist/LayoutMenu/SectionItemLink.cjs.map +1 -1
  568. package/dist/LayoutMenu/SectionItemLink.d.cts +0 -1
  569. package/dist/LayoutMenu/SectionItemLink.d.cts.map +1 -1
  570. package/dist/LayoutMenu/SectionItemLink.d.ts +0 -1
  571. package/dist/LayoutMenu/SectionItemLink.d.ts.map +1 -1
  572. package/dist/LayoutMenu/SectionItemLink.js.map +1 -1
  573. package/dist/LayoutMenu/SelectedSectionItem.cjs.map +1 -1
  574. package/dist/LayoutMenu/SelectedSectionItem.d.cts +0 -1
  575. package/dist/LayoutMenu/SelectedSectionItem.d.cts.map +1 -1
  576. package/dist/LayoutMenu/SelectedSectionItem.d.ts +0 -1
  577. package/dist/LayoutMenu/SelectedSectionItem.d.ts.map +1 -1
  578. package/dist/LayoutMenu/SelectedSectionItem.js.map +1 -1
  579. package/dist/LayoutMenu/index.cjs +4 -0
  580. package/dist/LayoutMenu/index.d.cts +2 -1
  581. package/dist/LayoutMenu/index.d.ts +2 -1
  582. package/dist/LayoutMenu/index.js +2 -0
  583. package/dist/LayoutMenuVariant/AccordionMenu.cjs.map +1 -1
  584. package/dist/LayoutMenuVariant/AccordionMenu.d.cts +0 -1
  585. package/dist/LayoutMenuVariant/AccordionMenu.d.cts.map +1 -1
  586. package/dist/LayoutMenuVariant/AccordionMenu.d.ts +0 -1
  587. package/dist/LayoutMenuVariant/AccordionMenu.d.ts.map +1 -1
  588. package/dist/LayoutMenuVariant/AccordionMenu.js.map +1 -1
  589. package/dist/LayoutMenuVariant/LayoutMenu.cjs.map +1 -1
  590. package/dist/LayoutMenuVariant/LayoutMenu.d.cts +0 -1
  591. package/dist/LayoutMenuVariant/LayoutMenu.d.cts.map +1 -1
  592. package/dist/LayoutMenuVariant/LayoutMenu.d.ts +0 -1
  593. package/dist/LayoutMenuVariant/LayoutMenu.d.ts.map +1 -1
  594. package/dist/LayoutMenuVariant/LayoutMenu.js.map +1 -1
  595. package/dist/LayoutMenuVariant/LayoutMenuSection.cjs.map +1 -1
  596. package/dist/LayoutMenuVariant/LayoutMenuSection.js.map +1 -1
  597. package/dist/LayoutMenuVariant/SectionItemLink.cjs.map +1 -1
  598. package/dist/LayoutMenuVariant/SectionItemLink.d.cts +0 -1
  599. package/dist/LayoutMenuVariant/SectionItemLink.d.cts.map +1 -1
  600. package/dist/LayoutMenuVariant/SectionItemLink.d.ts +0 -1
  601. package/dist/LayoutMenuVariant/SectionItemLink.d.ts.map +1 -1
  602. package/dist/LayoutMenuVariant/SectionItemLink.js.map +1 -1
  603. package/dist/LayoutMenuVariant/index.cjs +2 -0
  604. package/dist/LayoutMenuVariant/index.d.cts +1 -3
  605. package/dist/LayoutMenuVariant/index.d.ts +1 -3
  606. package/dist/LayoutMenuVariant/index.js +1 -1
  607. package/dist/LearningOutcomeAssessmentScores/AssessmentDetail.cjs.map +1 -1
  608. package/dist/LearningOutcomeAssessmentScores/AssessmentDetail.js.map +1 -1
  609. package/dist/LearningOutcomeAssessmentScores/index.cjs.map +1 -1
  610. package/dist/LearningOutcomeAssessmentScores/index.d.cts.map +1 -1
  611. package/dist/LearningOutcomeAssessmentScores/index.d.ts.map +1 -1
  612. package/dist/LearningOutcomeAssessmentScores/index.js.map +1 -1
  613. package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.cjs.map +1 -1
  614. package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.d.cts +0 -1
  615. package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.d.cts.map +1 -1
  616. package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.d.ts +0 -1
  617. package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.d.ts.map +1 -1
  618. package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.js.map +1 -1
  619. package/dist/LearningOutcomeBadges/LearningOutcomeLowAssessmentBadge.cjs.map +1 -1
  620. package/dist/LearningOutcomeBadges/LearningOutcomeLowAssessmentBadge.d.cts.map +1 -1
  621. package/dist/LearningOutcomeBadges/LearningOutcomeLowAssessmentBadge.d.ts.map +1 -1
  622. package/dist/LearningOutcomeBadges/LearningOutcomeLowAssessmentBadge.js.map +1 -1
  623. package/dist/LearningOutcomeBadges/index.cjs +11 -0
  624. package/dist/LearningOutcomeBadges/index.d.cts +2 -1
  625. package/dist/LearningOutcomeBadges/index.d.ts +2 -1
  626. package/dist/LearningOutcomeBadges/index.js +2 -0
  627. package/dist/LearningOutcomeCard/index.cjs.map +1 -1
  628. package/dist/LearningOutcomeCard/index.d.cts +1 -1
  629. package/dist/LearningOutcomeCard/index.d.cts.map +1 -1
  630. package/dist/LearningOutcomeCard/index.d.ts +1 -1
  631. package/dist/LearningOutcomeCard/index.d.ts.map +1 -1
  632. package/dist/LearningOutcomeCard/index.js.map +1 -1
  633. package/dist/LearningOutcomeFlyout/LearningOutcomeCardList.cjs.map +1 -1
  634. package/dist/LearningOutcomeFlyout/LearningOutcomeCardList.js.map +1 -1
  635. package/dist/LearningOutcomeFlyout/index.cjs.map +1 -1
  636. package/dist/LearningOutcomeFlyout/index.d.cts +1 -1
  637. package/dist/LearningOutcomeFlyout/index.d.cts.map +1 -1
  638. package/dist/LearningOutcomeFlyout/index.d.ts +1 -1
  639. package/dist/LearningOutcomeFlyout/index.d.ts.map +1 -1
  640. package/dist/LearningOutcomeFlyout/index.js.map +1 -1
  641. package/dist/LearningOutcomeFlyout/types.cjs.map +1 -1
  642. package/dist/LearningOutcomeFlyout/types.d.cts +2 -1
  643. package/dist/LearningOutcomeFlyout/types.d.cts.map +1 -1
  644. package/dist/LearningOutcomeFlyout/types.d.ts +2 -1
  645. package/dist/LearningOutcomeFlyout/types.d.ts.map +1 -1
  646. package/dist/LearningOutcomeFlyout/types.js.map +1 -1
  647. package/dist/LearningOutcomePopover/index.cjs.map +1 -1
  648. package/dist/LearningOutcomePopover/index.js.map +1 -1
  649. package/dist/LearningOutcomeTile/Tile.cjs.map +1 -1
  650. package/dist/LearningOutcomeTile/Tile.js.map +1 -1
  651. package/dist/LearningOutcomeTile/index.cjs.map +1 -1
  652. package/dist/LearningOutcomeTile/index.d.cts +0 -1
  653. package/dist/LearningOutcomeTile/index.d.cts.map +1 -1
  654. package/dist/LearningOutcomeTile/index.d.ts +0 -1
  655. package/dist/LearningOutcomeTile/index.d.ts.map +1 -1
  656. package/dist/LearningOutcomeTile/index.js.map +1 -1
  657. package/dist/LearningOutcomeTile/types.cjs.map +1 -1
  658. package/dist/LearningOutcomeTile/types.d.cts +2 -1
  659. package/dist/LearningOutcomeTile/types.d.cts.map +1 -1
  660. package/dist/LearningOutcomeTile/types.d.ts +2 -1
  661. package/dist/LearningOutcomeTile/types.d.ts.map +1 -1
  662. package/dist/LearningOutcomeTile/types.js.map +1 -1
  663. package/dist/ListSection/index.cjs.map +1 -1
  664. package/dist/ListSection/index.d.cts +1 -1
  665. package/dist/ListSection/index.d.cts.map +1 -1
  666. package/dist/ListSection/index.d.ts +1 -1
  667. package/dist/ListSection/index.d.ts.map +1 -1
  668. package/dist/ListSection/index.js.map +1 -1
  669. package/dist/Loading/elements.cjs +60 -0
  670. package/dist/Loading/elements.cjs.map +1 -0
  671. package/dist/Loading/elements.js +56 -0
  672. package/dist/Loading/elements.js.map +1 -0
  673. package/dist/Loading/index.cjs +42 -63
  674. package/dist/Loading/index.cjs.map +1 -1
  675. package/dist/Loading/index.d.cts +0 -1
  676. package/dist/Loading/index.d.cts.map +1 -1
  677. package/dist/Loading/index.d.ts +0 -1
  678. package/dist/Loading/index.d.ts.map +1 -1
  679. package/dist/Loading/index.js +43 -62
  680. package/dist/Loading/index.js.map +1 -1
  681. package/dist/LoadingCurriculumCard/index.cjs.map +1 -1
  682. package/dist/LoadingCurriculumCard/index.d.cts +0 -1
  683. package/dist/LoadingCurriculumCard/index.d.cts.map +1 -1
  684. package/dist/LoadingCurriculumCard/index.d.ts +0 -1
  685. package/dist/LoadingCurriculumCard/index.d.ts.map +1 -1
  686. package/dist/LoadingCurriculumCard/index.js.map +1 -1
  687. package/dist/Logos/LogoCodecademy/index.cjs.map +1 -1
  688. package/dist/Logos/LogoCodecademy/index.d.cts +0 -1
  689. package/dist/Logos/LogoCodecademy/index.d.cts.map +1 -1
  690. package/dist/Logos/LogoCodecademy/index.d.ts +0 -1
  691. package/dist/Logos/LogoCodecademy/index.d.ts.map +1 -1
  692. package/dist/Logos/LogoCodecademy/index.js.map +1 -1
  693. package/dist/Logos/LogoCodecademyMini/index.cjs.map +1 -1
  694. package/dist/Logos/LogoCodecademyMini/index.d.cts +0 -1
  695. package/dist/Logos/LogoCodecademyMini/index.d.cts.map +1 -1
  696. package/dist/Logos/LogoCodecademyMini/index.d.ts +0 -1
  697. package/dist/Logos/LogoCodecademyMini/index.d.ts.map +1 -1
  698. package/dist/Logos/LogoCodecademyMini/index.js.map +1 -1
  699. package/dist/Logos/LogoCodecademyPro/index.cjs.map +1 -1
  700. package/dist/Logos/LogoCodecademyPro/index.d.cts +0 -1
  701. package/dist/Logos/LogoCodecademyPro/index.d.cts.map +1 -1
  702. package/dist/Logos/LogoCodecademyPro/index.d.ts +0 -1
  703. package/dist/Logos/LogoCodecademyPro/index.d.ts.map +1 -1
  704. package/dist/Logos/LogoCodecademyPro/index.js.map +1 -1
  705. package/dist/Logos/LogoCodecademyTeams/index.cjs +11 -7
  706. package/dist/Logos/LogoCodecademyTeams/index.cjs.map +1 -1
  707. package/dist/Logos/LogoCodecademyTeams/index.d.cts +2 -2
  708. package/dist/Logos/LogoCodecademyTeams/index.d.cts.map +1 -1
  709. package/dist/Logos/LogoCodecademyTeams/index.d.ts +2 -2
  710. package/dist/Logos/LogoCodecademyTeams/index.d.ts.map +1 -1
  711. package/dist/Logos/LogoCodecademyTeams/index.js +10 -7
  712. package/dist/Logos/LogoCodecademyTeams/index.js.map +1 -1
  713. package/dist/Logos/LogoFromSkillsoft/index.cjs.map +1 -1
  714. package/dist/Logos/LogoFromSkillsoft/index.d.cts +0 -1
  715. package/dist/Logos/LogoFromSkillsoft/index.d.cts.map +1 -1
  716. package/dist/Logos/LogoFromSkillsoft/index.d.ts +0 -1
  717. package/dist/Logos/LogoFromSkillsoft/index.d.ts.map +1 -1
  718. package/dist/Logos/LogoFromSkillsoft/index.js.map +1 -1
  719. package/dist/Logos/LogoLXStudio/index.cjs.map +1 -1
  720. package/dist/Logos/LogoLXStudio/index.d.cts +0 -1
  721. package/dist/Logos/LogoLXStudio/index.d.cts.map +1 -1
  722. package/dist/Logos/LogoLXStudio/index.d.ts +0 -1
  723. package/dist/Logos/LogoLXStudio/index.d.ts.map +1 -1
  724. package/dist/Logos/LogoLXStudio/index.js.map +1 -1
  725. package/dist/Logos/LogoSkillsoft/index.cjs +26 -0
  726. package/dist/Logos/LogoSkillsoft/index.cjs.map +1 -0
  727. package/dist/Logos/LogoSkillsoft/index.d.cts +7 -0
  728. package/dist/Logos/LogoSkillsoft/index.d.cts.map +1 -0
  729. package/dist/Logos/LogoSkillsoft/index.d.ts +7 -0
  730. package/dist/Logos/LogoSkillsoft/index.d.ts.map +1 -0
  731. package/dist/Logos/LogoSkillsoft/index.js +25 -0
  732. package/dist/Logos/LogoSkillsoft/index.js.map +1 -0
  733. package/dist/Logos/ProLabel/ProLabelCutout/index.cjs.map +1 -1
  734. package/dist/Logos/ProLabel/ProLabelCutout/index.js.map +1 -1
  735. package/dist/Logos/ProLabel/ProLabelCutoutTransparent/index.cjs.map +1 -1
  736. package/dist/Logos/ProLabel/ProLabelCutoutTransparent/index.js.map +1 -1
  737. package/dist/Logos/ProLabel/index.d.cts +0 -1
  738. package/dist/Logos/ProLabel/index.d.cts.map +1 -1
  739. package/dist/Logos/ProLabel/index.d.ts +0 -1
  740. package/dist/Logos/ProLabel/index.d.ts.map +1 -1
  741. package/dist/Logos/index.cjs +12 -2
  742. package/dist/Logos/index.d.cts +3 -1
  743. package/dist/Logos/index.d.ts +3 -1
  744. package/dist/Logos/index.js +3 -0
  745. package/dist/Logos/shared.cjs.map +1 -1
  746. package/dist/Logos/shared.d.cts +2 -0
  747. package/dist/Logos/shared.d.cts.map +1 -1
  748. package/dist/Logos/shared.d.ts +2 -1
  749. package/dist/Logos/shared.d.ts.map +1 -1
  750. package/dist/Logos/shared.js.map +1 -1
  751. package/dist/MarketingToaster/index.cjs.map +1 -1
  752. package/dist/MarketingToaster/index.d.cts +0 -1
  753. package/dist/MarketingToaster/index.d.cts.map +1 -1
  754. package/dist/MarketingToaster/index.d.ts +0 -1
  755. package/dist/MarketingToaster/index.d.ts.map +1 -1
  756. package/dist/MarketingToaster/index.js.map +1 -1
  757. package/dist/NotFoundContent/404.cjs.map +1 -1
  758. package/dist/NotFoundContent/404.js.map +1 -1
  759. package/dist/NotFoundContent/index.cjs.map +1 -1
  760. package/dist/NotFoundContent/index.d.cts +0 -1
  761. package/dist/NotFoundContent/index.d.cts.map +1 -1
  762. package/dist/NotFoundContent/index.d.ts +0 -1
  763. package/dist/NotFoundContent/index.d.ts.map +1 -1
  764. package/dist/NotFoundContent/index.js.map +1 -1
  765. package/dist/NotificationList/EmptyNotification/emptyNotificationContents.cjs.map +1 -1
  766. package/dist/NotificationList/EmptyNotification/emptyNotificationContents.js.map +1 -1
  767. package/dist/NotificationList/EmptyNotification/index.cjs.map +1 -1
  768. package/dist/NotificationList/EmptyNotification/index.js.map +1 -1
  769. package/dist/NotificationList/NotificationItem.cjs.map +1 -1
  770. package/dist/NotificationList/NotificationItem.d.cts +0 -1
  771. package/dist/NotificationList/NotificationItem.d.cts.map +1 -1
  772. package/dist/NotificationList/NotificationItem.d.ts +0 -1
  773. package/dist/NotificationList/NotificationItem.d.ts.map +1 -1
  774. package/dist/NotificationList/NotificationItem.js.map +1 -1
  775. package/dist/NotificationList/index.cjs.map +1 -1
  776. package/dist/NotificationList/index.d.cts +0 -1
  777. package/dist/NotificationList/index.d.cts.map +1 -1
  778. package/dist/NotificationList/index.d.ts +0 -1
  779. package/dist/NotificationList/index.d.ts.map +1 -1
  780. package/dist/NotificationList/index.js.map +1 -1
  781. package/dist/NotificationList/typings.d.cts.map +1 -1
  782. package/dist/NotificationList/typings.d.ts.map +1 -1
  783. package/dist/Notifications/NotificationBell.cjs.map +1 -1
  784. package/dist/Notifications/NotificationBell.js.map +1 -1
  785. package/dist/Notifications/NotificationsContents.cjs.map +1 -1
  786. package/dist/Notifications/NotificationsContents.js.map +1 -1
  787. package/dist/Notifications/NotificationsDropdown.cjs.map +1 -1
  788. package/dist/Notifications/NotificationsDropdown.js.map +1 -1
  789. package/dist/Notifications/elements.cjs.map +1 -1
  790. package/dist/Notifications/elements.js.map +1 -1
  791. package/dist/Notifications/types.d.cts +2 -1
  792. package/dist/Notifications/types.d.cts.map +1 -1
  793. package/dist/Notifications/types.d.ts +2 -1
  794. package/dist/Notifications/types.d.ts.map +1 -1
  795. package/dist/Notifications/useHeaderNotifications.cjs.map +1 -1
  796. package/dist/Notifications/useHeaderNotifications.js.map +1 -1
  797. package/dist/Notifications/useNotificationButtons.cjs.map +1 -1
  798. package/dist/Notifications/useNotificationButtons.js.map +1 -1
  799. package/dist/PageAlerts/PageAlerts.cjs.map +1 -1
  800. package/dist/PageAlerts/PageAlerts.d.cts +0 -1
  801. package/dist/PageAlerts/PageAlerts.d.cts.map +1 -1
  802. package/dist/PageAlerts/PageAlerts.d.ts +0 -1
  803. package/dist/PageAlerts/PageAlerts.d.ts.map +1 -1
  804. package/dist/PageAlerts/PageAlerts.js.map +1 -1
  805. package/dist/PageAlerts/PageAlertsProvider.cjs.map +1 -1
  806. package/dist/PageAlerts/PageAlertsProvider.d.cts +0 -1
  807. package/dist/PageAlerts/PageAlertsProvider.d.cts.map +1 -1
  808. package/dist/PageAlerts/PageAlertsProvider.d.ts +0 -1
  809. package/dist/PageAlerts/PageAlertsProvider.d.ts.map +1 -1
  810. package/dist/PageAlerts/PageAlertsProvider.js.map +1 -1
  811. package/dist/PageAlerts/index.cjs +6 -0
  812. package/dist/PageAlerts/index.d.cts +2 -1
  813. package/dist/PageAlerts/index.d.ts +2 -1
  814. package/dist/PageAlerts/index.js +2 -0
  815. package/dist/PageAlerts/types.d.cts +1 -2
  816. package/dist/PageAlerts/types.d.cts.map +1 -1
  817. package/dist/PageAlerts/types.d.ts +1 -2
  818. package/dist/PageAlerts/types.d.ts.map +1 -1
  819. package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.cjs.map +1 -1
  820. package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.d.cts +0 -1
  821. package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.d.cts.map +1 -1
  822. package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.d.ts +0 -1
  823. package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.d.ts.map +1 -1
  824. package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.js.map +1 -1
  825. package/dist/PageLayoutWithSidebarMenu/index.cjs +2 -0
  826. package/dist/PageLayoutWithSidebarMenu/index.d.cts +2 -1
  827. package/dist/PageLayoutWithSidebarMenu/index.d.ts +2 -1
  828. package/dist/PageLayoutWithSidebarMenu/index.js +2 -0
  829. package/dist/PageSection/index.cjs.map +1 -1
  830. package/dist/PageSection/index.d.cts +0 -1
  831. package/dist/PageSection/index.d.cts.map +1 -1
  832. package/dist/PageSection/index.d.ts +0 -1
  833. package/dist/PageSection/index.d.ts.map +1 -1
  834. package/dist/PageSection/index.js.map +1 -1
  835. package/dist/PastDue/PastDueModalContents/index.cjs.map +1 -1
  836. package/dist/PastDue/PastDueModalContents/index.d.cts +0 -1
  837. package/dist/PastDue/PastDueModalContents/index.d.cts.map +1 -1
  838. package/dist/PastDue/PastDueModalContents/index.d.ts +0 -1
  839. package/dist/PastDue/PastDueModalContents/index.d.ts.map +1 -1
  840. package/dist/PastDue/PastDueModalContents/index.js.map +1 -1
  841. package/dist/PastDue/index.cjs +3 -0
  842. package/dist/PastDue/index.d.cts +2 -1
  843. package/dist/PastDue/index.d.ts +2 -1
  844. package/dist/PastDue/index.js +2 -0
  845. package/dist/PastDue/pastDueMessages.cjs.map +1 -1
  846. package/dist/PastDue/pastDueMessages.d.cts +0 -1
  847. package/dist/PastDue/pastDueMessages.d.cts.map +1 -1
  848. package/dist/PastDue/pastDueMessages.d.ts +0 -1
  849. package/dist/PastDue/pastDueMessages.d.ts.map +1 -1
  850. package/dist/PastDue/pastDueMessages.js.map +1 -1
  851. package/dist/PausableImage/BaseImage/index.cjs.map +1 -1
  852. package/dist/PausableImage/BaseImage/index.js.map +1 -1
  853. package/dist/PausableImage/index.cjs.map +1 -1
  854. package/dist/PausableImage/index.d.cts +0 -1
  855. package/dist/PausableImage/index.d.cts.map +1 -1
  856. package/dist/PausableImage/index.d.ts +0 -1
  857. package/dist/PausableImage/index.d.ts.map +1 -1
  858. package/dist/PausableImage/index.js.map +1 -1
  859. package/dist/PlanCard/PlanCardBanner.cjs.map +1 -1
  860. package/dist/PlanCard/PlanCardBanner.d.cts +0 -1
  861. package/dist/PlanCard/PlanCardBanner.d.cts.map +1 -1
  862. package/dist/PlanCard/PlanCardBanner.d.ts +0 -1
  863. package/dist/PlanCard/PlanCardBanner.d.ts.map +1 -1
  864. package/dist/PlanCard/PlanCardBanner.js.map +1 -1
  865. package/dist/PlanCard/PlanFeature.cjs.map +1 -1
  866. package/dist/PlanCard/PlanFeature.js.map +1 -1
  867. package/dist/PlanCard/PopularBadge.cjs.map +1 -1
  868. package/dist/PlanCard/PopularBadge.js.map +1 -1
  869. package/dist/PlanCard/PricingAmount.cjs.map +1 -1
  870. package/dist/PlanCard/PricingAmount.js.map +1 -1
  871. package/dist/PlanCard/RecommendedBadge.cjs.map +1 -1
  872. package/dist/PlanCard/RecommendedBadge.js.map +1 -1
  873. package/dist/PlanCard/consts.cjs.map +1 -1
  874. package/dist/PlanCard/consts.js.map +1 -1
  875. package/dist/PlanCard/index.cjs +45 -14
  876. package/dist/PlanCard/index.cjs.map +1 -1
  877. package/dist/PlanCard/index.d.cts +1 -1
  878. package/dist/PlanCard/index.d.cts.map +1 -1
  879. package/dist/PlanCard/index.d.ts +1 -1
  880. package/dist/PlanCard/index.d.ts.map +1 -1
  881. package/dist/PlanCard/index.js +45 -14
  882. package/dist/PlanCard/index.js.map +1 -1
  883. package/dist/PlanCard/types.cjs.map +1 -1
  884. package/dist/PlanCard/types.d.cts +6 -6
  885. package/dist/PlanCard/types.d.cts.map +1 -1
  886. package/dist/PlanCard/types.d.ts +6 -6
  887. package/dist/PlanCard/types.d.ts.map +1 -1
  888. package/dist/PlanCard/types.js.map +1 -1
  889. package/dist/PlanCardTeams/consts.cjs.map +1 -1
  890. package/dist/PlanCardTeams/consts.js.map +1 -1
  891. package/dist/PlanCardTeams/index.cjs.map +1 -1
  892. package/dist/PlanCardTeams/index.d.cts +0 -1
  893. package/dist/PlanCardTeams/index.d.cts.map +1 -1
  894. package/dist/PlanCardTeams/index.d.ts +0 -1
  895. package/dist/PlanCardTeams/index.d.ts.map +1 -1
  896. package/dist/PlanCardTeams/index.js.map +1 -1
  897. package/dist/PricingSection/ConditionalColorMode.cjs.map +1 -1
  898. package/dist/PricingSection/ConditionalColorMode.js.map +1 -1
  899. package/dist/PricingSection/PricingCard/PricingAmount.cjs.map +1 -1
  900. package/dist/PricingSection/PricingCard/PricingAmount.js.map +1 -1
  901. package/dist/PricingSection/PricingCard/RecommendedBadge.cjs.map +1 -1
  902. package/dist/PricingSection/PricingCard/RecommendedBadge.js.map +1 -1
  903. package/dist/PricingSection/PricingCard/index.cjs.map +1 -1
  904. package/dist/PricingSection/PricingCard/index.js.map +1 -1
  905. package/dist/PricingSection/PricingCard/types.cjs +18 -0
  906. package/dist/PricingSection/PricingCard/types.cjs.map +1 -1
  907. package/dist/PricingSection/PricingCard/types.d.cts +1 -1
  908. package/dist/PricingSection/PricingCard/types.d.cts.map +1 -1
  909. package/dist/PricingSection/PricingCard/types.d.ts +1 -1
  910. package/dist/PricingSection/PricingCard/types.d.ts.map +1 -1
  911. package/dist/PricingSection/PricingCard/types.js +1 -1
  912. package/dist/PricingSection/PricingCard/types.js.map +1 -1
  913. package/dist/PricingSection/ProductCTA.cjs +1 -0
  914. package/dist/PricingSection/ProductCTA.cjs.map +1 -1
  915. package/dist/PricingSection/ProductCTA.js +1 -1
  916. package/dist/PricingSection/ProductCTA.js.map +1 -1
  917. package/dist/PricingSection/Products.cjs.map +1 -1
  918. package/dist/PricingSection/Products.js.map +1 -1
  919. package/dist/PricingSection/index.cjs.map +1 -1
  920. package/dist/PricingSection/index.d.cts +1 -5
  921. package/dist/PricingSection/index.d.cts.map +1 -1
  922. package/dist/PricingSection/index.d.ts +1 -5
  923. package/dist/PricingSection/index.d.ts.map +1 -1
  924. package/dist/PricingSection/index.js.map +1 -1
  925. package/dist/PricingSection/types.cjs.map +1 -1
  926. package/dist/PricingSection/types.d.cts.map +1 -1
  927. package/dist/PricingSection/types.d.ts.map +1 -1
  928. package/dist/PricingSection/types.js.map +1 -1
  929. package/dist/ProLogoAlt/index.cjs.map +1 -1
  930. package/dist/ProLogoAlt/index.d.cts +0 -1
  931. package/dist/ProLogoAlt/index.d.cts.map +1 -1
  932. package/dist/ProLogoAlt/index.d.ts +0 -1
  933. package/dist/ProLogoAlt/index.d.ts.map +1 -1
  934. package/dist/ProLogoAlt/index.js.map +1 -1
  935. package/dist/ProductFeatureShowcase/index.cjs.map +1 -1
  936. package/dist/ProductFeatureShowcase/index.d.cts.map +1 -1
  937. package/dist/ProductFeatureShowcase/index.d.ts.map +1 -1
  938. package/dist/ProductFeatureShowcase/index.js.map +1 -1
  939. package/dist/QuizScore/index.cjs.map +1 -1
  940. package/dist/QuizScore/index.js.map +1 -1
  941. package/dist/RatingsBar/index.cjs.map +1 -1
  942. package/dist/RatingsBar/index.d.cts +0 -1
  943. package/dist/RatingsBar/index.d.cts.map +1 -1
  944. package/dist/RatingsBar/index.d.ts +0 -1
  945. package/dist/RatingsBar/index.d.ts.map +1 -1
  946. package/dist/RatingsBar/index.js.map +1 -1
  947. package/dist/Recurly/context/elements/index.cjs.map +1 -1
  948. package/dist/Recurly/context/elements/index.d.cts +2 -3
  949. package/dist/Recurly/context/elements/index.d.cts.map +1 -1
  950. package/dist/Recurly/context/elements/index.d.ts +2 -3
  951. package/dist/Recurly/context/elements/index.d.ts.map +1 -1
  952. package/dist/Recurly/context/elements/index.js.map +1 -1
  953. package/dist/Recurly/context/index.cjs +5 -0
  954. package/dist/Recurly/context/index.d.cts +2 -1
  955. package/dist/Recurly/context/index.d.ts +2 -1
  956. package/dist/Recurly/context/index.js +2 -0
  957. package/dist/Recurly/context/recurly/index.cjs.map +1 -1
  958. package/dist/Recurly/context/recurly/index.d.cts +1 -5
  959. package/dist/Recurly/context/recurly/index.d.cts.map +1 -1
  960. package/dist/Recurly/context/recurly/index.d.ts +1 -5
  961. package/dist/Recurly/context/recurly/index.d.ts.map +1 -1
  962. package/dist/Recurly/context/recurly/index.js.map +1 -1
  963. package/dist/Recurly/context/recurly/loadRecurly.d.cts +0 -1
  964. package/dist/Recurly/context/recurly/loadRecurly.d.cts.map +1 -1
  965. package/dist/Recurly/context/recurly/loadRecurly.d.ts +0 -1
  966. package/dist/Recurly/context/recurly/loadRecurly.d.ts.map +1 -1
  967. package/dist/Recurly/fields/RecurlyField.cjs.map +1 -1
  968. package/dist/Recurly/fields/RecurlyField.d.cts +1 -6
  969. package/dist/Recurly/fields/RecurlyField.d.cts.map +1 -1
  970. package/dist/Recurly/fields/RecurlyField.d.ts +1 -6
  971. package/dist/Recurly/fields/RecurlyField.d.ts.map +1 -1
  972. package/dist/Recurly/fields/RecurlyField.js.map +1 -1
  973. package/dist/Recurly/fields/elements.cjs.map +1 -1
  974. package/dist/Recurly/fields/elements.d.cts +0 -1
  975. package/dist/Recurly/fields/elements.d.cts.map +1 -1
  976. package/dist/Recurly/fields/elements.d.ts +0 -1
  977. package/dist/Recurly/fields/elements.d.ts.map +1 -1
  978. package/dist/Recurly/fields/elements.js.map +1 -1
  979. package/dist/Recurly/fields/index.cjs +6 -0
  980. package/dist/Recurly/fields/index.d.cts +2 -1
  981. package/dist/Recurly/fields/index.d.ts +2 -1
  982. package/dist/Recurly/fields/index.js +2 -0
  983. package/dist/Recurly/index.cjs +9 -0
  984. package/dist/Recurly/index.d.cts +4 -1
  985. package/dist/Recurly/index.d.ts +4 -1
  986. package/dist/Recurly/index.js +2 -0
  987. package/dist/ResourceCard/index.cjs.map +1 -1
  988. package/dist/ResourceCard/index.d.cts +0 -1
  989. package/dist/ResourceCard/index.d.cts.map +1 -1
  990. package/dist/ResourceCard/index.d.ts +0 -1
  991. package/dist/ResourceCard/index.d.ts.map +1 -1
  992. package/dist/ResourceCard/index.js.map +1 -1
  993. package/dist/ScoreSummary/SubScores.cjs.map +1 -1
  994. package/dist/ScoreSummary/SubScores.d.cts +1 -10
  995. package/dist/ScoreSummary/SubScores.d.cts.map +1 -1
  996. package/dist/ScoreSummary/SubScores.d.ts +1 -10
  997. package/dist/ScoreSummary/SubScores.d.ts.map +1 -1
  998. package/dist/ScoreSummary/SubScores.js.map +1 -1
  999. package/dist/ScoreSummary/helpers.cjs +1 -0
  1000. package/dist/ScoreSummary/helpers.js +1 -1
  1001. package/dist/ScoreSummary/index.cjs.map +1 -1
  1002. package/dist/ScoreSummary/index.d.cts +0 -1
  1003. package/dist/ScoreSummary/index.d.cts.map +1 -1
  1004. package/dist/ScoreSummary/index.d.ts +0 -1
  1005. package/dist/ScoreSummary/index.d.ts.map +1 -1
  1006. package/dist/ScoreSummary/index.js.map +1 -1
  1007. package/dist/ScoreSummary/types.d.cts.map +1 -1
  1008. package/dist/ScoreSummary/types.d.ts.map +1 -1
  1009. package/dist/SkillPathCard/index.cjs.map +1 -1
  1010. package/dist/SkillPathCard/index.d.cts +0 -1
  1011. package/dist/SkillPathCard/index.d.cts.map +1 -1
  1012. package/dist/SkillPathCard/index.d.ts +0 -1
  1013. package/dist/SkillPathCard/index.d.ts.map +1 -1
  1014. package/dist/SkillPathCard/index.js.map +1 -1
  1015. package/dist/SocialMediaSharing/SocialShareIconLink.cjs.map +1 -1
  1016. package/dist/SocialMediaSharing/SocialShareIconLink.d.cts +1 -0
  1017. package/dist/SocialMediaSharing/SocialShareIconLink.d.cts.map +1 -1
  1018. package/dist/SocialMediaSharing/SocialShareIconLink.d.ts +1 -1
  1019. package/dist/SocialMediaSharing/SocialShareIconLink.d.ts.map +1 -1
  1020. package/dist/SocialMediaSharing/SocialShareIconLink.js.map +1 -1
  1021. package/dist/SocialMediaSharing/index.cjs.map +1 -1
  1022. package/dist/SocialMediaSharing/index.d.cts +3 -14
  1023. package/dist/SocialMediaSharing/index.d.cts.map +1 -1
  1024. package/dist/SocialMediaSharing/index.d.ts +3 -14
  1025. package/dist/SocialMediaSharing/index.d.ts.map +1 -1
  1026. package/dist/SocialMediaSharing/index.js.map +1 -1
  1027. package/dist/SocialMediaSharingDropdown/index.cjs.map +1 -1
  1028. package/dist/SocialMediaSharingDropdown/index.d.cts +0 -1
  1029. package/dist/SocialMediaSharingDropdown/index.d.cts.map +1 -1
  1030. package/dist/SocialMediaSharingDropdown/index.d.ts +0 -1
  1031. package/dist/SocialMediaSharingDropdown/index.d.ts.map +1 -1
  1032. package/dist/SocialMediaSharingDropdown/index.js.map +1 -1
  1033. package/dist/Testimonial/index.cjs.map +1 -1
  1034. package/dist/Testimonial/index.d.cts +0 -1
  1035. package/dist/Testimonial/index.d.cts.map +1 -1
  1036. package/dist/Testimonial/index.d.ts +0 -1
  1037. package/dist/Testimonial/index.d.ts.map +1 -1
  1038. package/dist/Testimonial/index.js.map +1 -1
  1039. package/dist/assets/navyQuotes.cjs.map +1 -1
  1040. package/dist/assets/navyQuotes.js.map +1 -1
  1041. package/dist/index.cjs +21 -23
  1042. package/dist/index.d.cts +13 -3
  1043. package/dist/index.d.ts +13 -3
  1044. package/dist/index.js +2 -3
  1045. package/dist/lib/breakpointHooks/index.cjs +6 -3
  1046. package/dist/lib/breakpointHooks/index.cjs.map +1 -1
  1047. package/dist/lib/breakpointHooks/index.d.cts.map +1 -1
  1048. package/dist/lib/breakpointHooks/index.d.ts.map +1 -1
  1049. package/dist/lib/breakpointHooks/index.js +6 -3
  1050. package/dist/lib/breakpointHooks/index.js.map +1 -1
  1051. package/dist/lib/resourcesList/index.cjs.map +1 -1
  1052. package/dist/lib/resourcesList/index.js.map +1 -1
  1053. package/dist/typings/react.d.cts +0 -1
  1054. package/dist/typings/react.d.cts.map +1 -1
  1055. package/dist/typings/react.d.ts +0 -1
  1056. package/dist/typings/react.d.ts.map +1 -1
  1057. package/dist/utils/index.cjs +2 -0
  1058. package/dist/utils/index.js +2 -0
  1059. package/package.json +2 -2
  1060. package/dist/AppBarDeprecated/AppBarSectionDeprecated.cjs +0 -24
  1061. package/dist/AppBarDeprecated/AppBarSectionDeprecated.cjs.map +0 -1
  1062. package/dist/AppBarDeprecated/AppBarSectionDeprecated.d.cts +0 -19
  1063. package/dist/AppBarDeprecated/AppBarSectionDeprecated.d.cts.map +0 -1
  1064. package/dist/AppBarDeprecated/AppBarSectionDeprecated.d.ts +0 -19
  1065. package/dist/AppBarDeprecated/AppBarSectionDeprecated.d.ts.map +0 -1
  1066. package/dist/AppBarDeprecated/AppBarSectionDeprecated.js +0 -20
  1067. package/dist/AppBarDeprecated/AppBarSectionDeprecated.js.map +0 -1
  1068. package/dist/AppBarDeprecated/index.cjs +0 -27
  1069. package/dist/AppBarDeprecated/index.cjs.map +0 -1
  1070. package/dist/AppBarDeprecated/index.d.cts +0 -19
  1071. package/dist/AppBarDeprecated/index.d.cts.map +0 -1
  1072. package/dist/AppBarDeprecated/index.d.ts +0 -19
  1073. package/dist/AppBarDeprecated/index.d.ts.map +0 -1
  1074. package/dist/AppBarDeprecated/index.js +0 -23
  1075. package/dist/AppBarDeprecated/index.js.map +0 -1
  1076. package/dist/AppBarDeprecated/styles/index.module.scss +0 -37
  1077. package/dist/Loading/styles.module.scss +0 -129
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["Anchor","Box","Card","FlexBox","Text","CheckerDense","css","styled","CourseDifficulty","useGlobalHeaderItemClick","StyledCard","theme","colors","black","DottedLine","height","display","position","marginTop","DifficultyTextContainer","isBeginnerContainer","AppHeaderDietCard","title","hours","icon","difficulty","href","trackingTarget","globalHeaderItemClick","Beginner","li","variant","onClick","event","type","id","text","borderRadius","borderColor","minHeight","flexDirection","justifyContent","px","py","isInteractive","as","fontWeight","truncate","truncateLines","mb","aria-hidden","color","alignItems","gap","screenreader","fontSize","data-testid","overflow","b","whiteSpace"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderDietCard/index.tsx"],"sourcesContent":["import { Anchor, Box, Card, FlexBox, Text } from '@codecademy/gamut';\nimport { CheckerDense } from '@codecademy/gamut-patterns';\nimport { css } from '@codecademy/gamut-styles';\nimport styled from '@emotion/styled';\n\nimport { CourseDifficulty } from '../../../ContentGroupBaseCard/types';\nimport { useGlobalHeaderItemClick } from '../../../GlobalHeader/context';\n\nconst StyledCard = styled(Card)`\n &:hover {\n border-color: ${({ theme }) => theme.colors.black};\n cursor: pointer;\n }\n`;\n\nconst DottedLine = styled(CheckerDense)(\n css({\n height: '1px',\n display: 'flex',\n position: 'absolute',\n marginTop: '-1px',\n })\n);\n\nconst DifficultyTextContainer = styled(FlexBox)<{\n isBeginnerContainer: boolean;\n}>`\n @media (min-width: 768px) and (max-width: 880px) {\n max-width: ${({ isBeginnerContainer }) =>\n isBeginnerContainer ? '60%' : 'none'};\n }\n\n @media (min-width: 1024px) and (max-width: 1136px) {\n max-width: ${({ isBeginnerContainer }) =>\n isBeginnerContainer ? '60%' : 'none'};\n }\n\n @media (min-width: 1200px) and (max-width: 1230px) {\n max-width: ${({ isBeginnerContainer }) =>\n isBeginnerContainer ? '60%' : 'none'};\n }\n`;\n\ntype AppHeaderDietCardProps = {\n title: string;\n hours: number | null;\n icon: React.ReactNode;\n difficulty: CourseDifficulty | null;\n href: string;\n trackingTarget?: string;\n};\n\nexport const AppHeaderDietCard = ({\n title,\n hours,\n icon,\n difficulty,\n href,\n trackingTarget,\n}: AppHeaderDietCardProps) => {\n const { globalHeaderItemClick } = useGlobalHeaderItemClick();\n\n const isBeginnerContainer = difficulty === CourseDifficulty.Beginner;\n\n return (\n <li>\n <Anchor\n href={href}\n variant=\"interface\"\n display=\"block\"\n onClick={(event: React.MouseEvent<HTMLAnchorElement, MouseEvent>) =>\n globalHeaderItemClick(event, {\n type: 'link',\n id: `topnav_catalog_${title}`,\n href,\n text: title,\n trackingTarget: `topnav_catalog_${trackingTarget ?? title}`,\n })\n }\n >\n <StyledCard\n borderRadius=\"md\"\n borderColor=\"border-tertiary\"\n minHeight={120}\n display=\"flex\"\n flexDirection=\"column\"\n justifyContent=\"space-between\"\n px={12}\n py={8}\n isInteractive\n >\n <Text\n as=\"h3\"\n variant=\"p-large\"\n fontWeight={700}\n truncate=\"ellipsis\"\n truncateLines={2}\n >\n {title}\n </Text>\n <Box>\n <Box py={4} mb={4} height={0} position=\"relative\" aria-hidden>\n <DottedLine color=\"border-tertiary\" />\n </Box>\n <FlexBox justifyContent=\"space-between\" alignItems=\"center\">\n {difficulty && (\n <DifficultyTextContainer\n isBeginnerContainer={isBeginnerContainer}\n justifyContent=\"center\"\n alignItems=\"center\"\n gap={8}\n >\n {icon}\n <Text screenreader>{`${difficulty}${\n isBeginnerContainer ? ' Friendly' : ''\n }.`}</Text>\n <Text\n variant=\"p-small\"\n fontSize={14}\n color=\"text-secondary\"\n data-testid=\"card-difficulty\"\n aria-hidden\n truncate=\"ellipsis\"\n truncateLines={1}\n overflow=\"hidden\"\n >\n <b>{difficulty}</b>\n {isBeginnerContainer && <> Friendly</>}\n </Text>\n </DifficultyTextContainer>\n )}\n {hours && (\n <Text\n fontSize={14}\n variant=\"p-small\"\n color=\"text-secondary\"\n whiteSpace=\"nowrap\"\n >\n <b>{hours}</b> hours\n </Text>\n )}\n </FlexBox>\n </Box>\n </StyledCard>\n </Anchor>\n </li>\n );\n};\n"],"mappings":";;;;;;;;;;AAQA,MAAMU,aAAaH,2CAAOL,wBAAAA;;;6BAEL,EAAES,YAAYA,MAAMC,OAAOC,OAAK,qBAAA,ynMAAA;AAKrD,MAAMC,aAAaP,2CAAOF,yCAAAA;;;qCACpB;CACFU,QAAQ;CACRC,SAAS;CACTC,UAAU;CACVC,WAAW;AACb,CAAA,GAAA,ynMAAA;AAGF,MAAMC,0BAA0BZ,2CAAOJ,2BAAAA;;;iEAIrB,EAAEiB,0BACdA,sBAAsB,QAAQ,QAAA,kEAIlB,EAAEA,0BACdA,sBAAsB,QAAQ,QAAA,kEAIlB,EAAEA,0BACdA,sBAAsB,QAAQ,QAAA,MAAA,ynMAAA;AAapC,MAAaC,qBAAqB,EAChCC,OACAC,OACAC,MACAC,YACAC,MACAC,qBACuB;CACvB,MAAM,EAAEC,0BAA0BnB,yCAAAA;CAElC,MAAMW,sBAAsBK,eAAejB,+BAAiBqB;CAE5D,OACE,oBAAA,cAACC,MAAAA,MACC,oBAAA,cAAC9B,0BAAAA;EACO0B;EACNK,SAAQ;EACRf,SAAQ;EACRgB,UAAUC,UACRL,sBAAsBK,OAAO;GAC3BC,MAAM;GACNC,IAAI,kBAAkBb;GACtBI;GACAU,MAAMd;GACNK,gBAAgB,kBAAkBA,kBAAkBL;EACtD,CAAA;IAGF,oBAAA,cAACZ,YAAAA;EACC2B,cAAa;EACbC,aAAY;EACZC,WAAW;EACXvB,SAAQ;EACRwB,eAAc;EACdC,gBAAe;EACfC,IAAI;EACJC,IAAI;EACJC,eAAAA;IAEA,oBAAA,cAACxC,wBAAAA;EACCyC,IAAG;EACHd,SAAQ;EACRe,YAAY;EACZC,UAAS;EACTC,eAAe;IAEd1B,KAAAA,GAEH,oBAAA,cAACrB,uBAAAA,MACC,oBAAA,cAACA,uBAAAA;EAAI0C,IAAI;EAAGM,IAAI;EAAGlC,QAAQ;EAAGE,UAAS;EAAWiC,eAAAA;IAChD,oBAAA,cAACpC,YAAAA,EAAWqC,OAAM,uBAEpB,oBAAA,cAAChD,2BAAAA;EAAQsC,gBAAe;EAAgBW,YAAW;IAChD3B,cACC,oBAAA,cAACN,yBAAAA;EACsBC;EACrBqB,gBAAe;EACfW,YAAW;EACXC,KAAK;IAEJ7B,MACD,oBAAA,cAACpB,wBAAAA,EAAKkD,cAAAA,QAAc,GAAG7B,aACrBL,sBAAsB,cAAc,GACrC,EAAE,GACH,oBAAA,cAAChB,wBAAAA;EACC2B,SAAQ;EACRwB,UAAU;EACVJ,OAAM;EACNK,eAAY;EACZN,eAAAA;EACAH,UAAS;EACTC,eAAe;EACfS,UAAS;IAET,oBAAA,cAACC,KAAAA,MAAGjC,UAAAA,GACHL,uBAAuB,oBAAA,cAAA,MAAA,UAAA,MAAE,WAAA,CAAA,CAAA,GAI/BG,SACC,oBAAA,cAACnB,wBAAAA;EACCmD,UAAU;EACVxB,SAAQ;EACRoB,OAAM;EACNQ,YAAW;IAEX,oBAAA,cAACD,KAAAA,MAAGnC,KAAAA,GAAU,QAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAShC"}
1
+ {"version":3,"file":"index.cjs","names":["Anchor","Box","Card","FlexBox","Text","CheckerDense","css","styled","CourseDifficulty","useGlobalHeaderItemClick","StyledCard","theme","colors","black","DottedLine","height","display","position","marginTop","DifficultyTextContainer","isBeginnerContainer","AppHeaderDietCard","title","hours","icon","difficulty","href","trackingTarget","globalHeaderItemClick","Beginner","li","variant","onClick","event","type","id","text","borderRadius","borderColor","minHeight","flexDirection","justifyContent","px","py","isInteractive","as","fontWeight","truncate","truncateLines","mb","aria-hidden","color","alignItems","gap","screenreader","fontSize","data-testid","overflow","b","whiteSpace"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderDietCard/index.tsx"],"sourcesContent":["import { Anchor, Box, Card, FlexBox, Text } from '@codecademy/gamut';\nimport { CheckerDense } from '@codecademy/gamut-patterns';\nimport { css } from '@codecademy/gamut-styles';\nimport styled from '@emotion/styled';\n\nimport { CourseDifficulty } from '../../../ContentGroupBaseCard/types';\nimport { useGlobalHeaderItemClick } from '../../../GlobalHeader/context';\n\nconst StyledCard = styled(Card)`\n &:hover {\n border-color: ${({ theme }) => theme.colors.black};\n cursor: pointer;\n }\n`;\n\nconst DottedLine = styled(CheckerDense)(\n css({\n height: '1px',\n display: 'flex',\n position: 'absolute',\n marginTop: '-1px',\n })\n);\n\nconst DifficultyTextContainer = styled(FlexBox)<{\n isBeginnerContainer: boolean;\n}>`\n @media (min-width: 768px) and (max-width: 880px) {\n max-width: ${({ isBeginnerContainer }) =>\n isBeginnerContainer ? '60%' : 'none'};\n }\n\n @media (min-width: 1024px) and (max-width: 1136px) {\n max-width: ${({ isBeginnerContainer }) =>\n isBeginnerContainer ? '60%' : 'none'};\n }\n\n @media (min-width: 1200px) and (max-width: 1230px) {\n max-width: ${({ isBeginnerContainer }) =>\n isBeginnerContainer ? '60%' : 'none'};\n }\n`;\n\ntype AppHeaderDietCardProps = {\n title: string;\n hours: number | null;\n icon: React.ReactNode;\n difficulty: CourseDifficulty | null;\n href: string;\n trackingTarget?: string;\n};\n\nexport const AppHeaderDietCard = ({\n title,\n hours,\n icon,\n difficulty,\n href,\n trackingTarget,\n}: AppHeaderDietCardProps) => {\n const { globalHeaderItemClick } = useGlobalHeaderItemClick();\n\n const isBeginnerContainer = difficulty === CourseDifficulty.Beginner;\n\n return (\n <li>\n <Anchor\n href={href}\n variant=\"interface\"\n display=\"block\"\n onClick={(event: React.MouseEvent<HTMLAnchorElement, MouseEvent>) =>\n globalHeaderItemClick(event, {\n type: 'link',\n id: `topnav_catalog_${title}`,\n href,\n text: title,\n trackingTarget: `topnav_catalog_${trackingTarget ?? title}`,\n })\n }\n >\n <StyledCard\n borderRadius=\"md\"\n borderColor=\"border-tertiary\"\n minHeight={120}\n display=\"flex\"\n flexDirection=\"column\"\n justifyContent=\"space-between\"\n px={12}\n py={8}\n isInteractive\n >\n <Text\n as=\"h3\"\n variant=\"p-large\"\n fontWeight={700}\n truncate=\"ellipsis\"\n truncateLines={2}\n >\n {title}\n </Text>\n <Box>\n <Box py={4} mb={4} height={0} position=\"relative\" aria-hidden>\n <DottedLine color=\"border-tertiary\" />\n </Box>\n <FlexBox justifyContent=\"space-between\" alignItems=\"center\">\n {difficulty && (\n <DifficultyTextContainer\n isBeginnerContainer={isBeginnerContainer}\n justifyContent=\"center\"\n alignItems=\"center\"\n gap={8}\n >\n {icon}\n <Text screenreader>{`${difficulty}${\n isBeginnerContainer ? ' Friendly' : ''\n }.`}</Text>\n <Text\n variant=\"p-small\"\n fontSize={14}\n color=\"text-secondary\"\n data-testid=\"card-difficulty\"\n aria-hidden\n truncate=\"ellipsis\"\n truncateLines={1}\n overflow=\"hidden\"\n >\n <b>{difficulty}</b>\n {isBeginnerContainer && <> Friendly</>}\n </Text>\n </DifficultyTextContainer>\n )}\n {hours && (\n <Text\n fontSize={14}\n variant=\"p-small\"\n color=\"text-secondary\"\n whiteSpace=\"nowrap\"\n >\n <b>{hours}</b> hours\n </Text>\n )}\n </FlexBox>\n </Box>\n </StyledCard>\n </Anchor>\n </li>\n );\n};\n"],"mappings":";;;;;;;;;;AAQA,MAAMU,aAAaH,2CAAOL,wBAAAA;;;AAEN,CAAA,CAAA,CAAA,0BAAC,EAAES,YAAYA,MAAMC,OAAOC,OAAK,qBAAA,ynMAAA;AAKrD,MAAMC,aAAaP,2CAAOF,yCAAAA;;;AACxBC,CAAAA,CAAAA,mCAAI;CACFS,QAAQ;CACRC,SAAS;CACTC,UAAU;CACVC,WAAW;AACb,CAAA,GAAA,ynMAAA;AAGF,MAAMC,0BAA0BZ,2CAAOJ,2BAAAA;;;AAItB,CAAA,CAAA,CAAA,8DAAC,EAAEiB,0BACdA,sBAAsB,QAAQ,QAAA,kEAIlB,EAAEA,0BACdA,sBAAsB,QAAQ,QAAA,kEAIlB,EAAEA,0BACdA,sBAAsB,QAAQ,QAAA,MAAA,ynMAAA;AAapC,MAAaC,qBAAqB,EAChCC,OACAC,OACAC,MACAC,YACAC,MACAC,qBACuB;CACvB,MAAM,EAAEC,0BAA0BnB,yCAAAA;CAElC,MAAMW,sBAAsBK,eAAejB,+BAAiBqB;CAE5D,OACE,oBAAA,cAACC,MAAAA,MACC,oBAAA,cAAC9B,0BAAAA;EACO0B;EACNK,SAAQ;EACRf,SAAQ;EACRgB,UAAUC,UACRL,sBAAsBK,OAAO;GAC3BC,MAAM;GACNC,IAAI,kBAAkBb;GACtBI;GACAU,MAAMd;GACNK,gBAAgB,kBAAkBA,kBAAkBL;EACtD,CAAA;CAGF,GAAA,oBAAA,cAACZ,YAAAA;EACC2B,cAAa;EACbC,aAAY;EACZC,WAAW;EACXvB,SAAQ;EACRwB,eAAc;EACdC,gBAAe;EACfC,IAAI;EACJC,IAAI;EACJC,eAAAA;CAEA,GAAA,oBAAA,cAACxC,wBAAAA;EACCyC,IAAG;EACHd,SAAQ;EACRe,YAAY;EACZC,UAAS;EACTC,eAAe;CAEd1B,GAAAA,KAAAA,GAEH,oBAAA,cAACrB,uBAAAA,MACC,oBAAA,cAACA,uBAAAA;EAAI0C,IAAI;EAAGM,IAAI;EAAGlC,QAAQ;EAAGE,UAAS;EAAWiC,eAAAA;CAChD,GAAA,oBAAA,cAACpC,YAAAA,EAAWqC,OAAM,kBAEpB,CAAA,CAAA,GAAA,oBAAA,cAAChD,2BAAAA;EAAQsC,gBAAe;EAAgBW,YAAW;CAChD3B,GAAAA,cACC,oBAAA,cAACN,yBAAAA;EACsBC;EACrBqB,gBAAe;EACfW,YAAW;EACXC,KAAK;CAEJ7B,GAAAA,MACD,oBAAA,cAACpB,wBAAAA,EAAKkD,cAAAA,KAAc,GAAA,GAAG7B,aACrBL,sBAAsB,cAAc,GACrC,EAAE,GACH,oBAAA,cAAChB,wBAAAA;EACC2B,SAAQ;EACRwB,UAAU;EACVJ,OAAM;EACNK,eAAY;EACZN,eAAAA;EACAH,UAAS;EACTC,eAAe;EACfS,UAAS;CAET,GAAA,oBAAA,cAACC,KAAAA,MAAGjC,UAAAA,GACHL,uBAAuB,oBAAA,cAAA,MAAA,UAAA,MAAE,WAAA,CAAA,CAAA,GAI/BG,SACC,oBAAA,cAACnB,wBAAAA;EACCmD,UAAU;EACVxB,SAAQ;EACRoB,OAAM;EACNQ,YAAW;CAEX,GAAA,oBAAA,cAACD,KAAAA,MAAGnC,KAAAA,GAAU,QAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAShC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["Anchor","Box","Card","FlexBox","Text","CheckerDense","css","styled","CourseDifficulty","useGlobalHeaderItemClick","StyledCard","theme","colors","black","DottedLine","height","display","position","marginTop","DifficultyTextContainer","isBeginnerContainer","AppHeaderDietCard","title","hours","icon","difficulty","href","trackingTarget","globalHeaderItemClick","Beginner","li","variant","onClick","event","type","id","text","borderRadius","borderColor","minHeight","flexDirection","justifyContent","px","py","isInteractive","as","fontWeight","truncate","truncateLines","mb","aria-hidden","color","alignItems","gap","screenreader","fontSize","data-testid","overflow","b","whiteSpace"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderDietCard/index.tsx"],"sourcesContent":["import { Anchor, Box, Card, FlexBox, Text } from '@codecademy/gamut';\nimport { CheckerDense } from '@codecademy/gamut-patterns';\nimport { css } from '@codecademy/gamut-styles';\nimport styled from '@emotion/styled';\n\nimport { CourseDifficulty } from '../../../ContentGroupBaseCard/types';\nimport { useGlobalHeaderItemClick } from '../../../GlobalHeader/context';\n\nconst StyledCard = styled(Card)`\n &:hover {\n border-color: ${({ theme }) => theme.colors.black};\n cursor: pointer;\n }\n`;\n\nconst DottedLine = styled(CheckerDense)(\n css({\n height: '1px',\n display: 'flex',\n position: 'absolute',\n marginTop: '-1px',\n })\n);\n\nconst DifficultyTextContainer = styled(FlexBox)<{\n isBeginnerContainer: boolean;\n}>`\n @media (min-width: 768px) and (max-width: 880px) {\n max-width: ${({ isBeginnerContainer }) =>\n isBeginnerContainer ? '60%' : 'none'};\n }\n\n @media (min-width: 1024px) and (max-width: 1136px) {\n max-width: ${({ isBeginnerContainer }) =>\n isBeginnerContainer ? '60%' : 'none'};\n }\n\n @media (min-width: 1200px) and (max-width: 1230px) {\n max-width: ${({ isBeginnerContainer }) =>\n isBeginnerContainer ? '60%' : 'none'};\n }\n`;\n\ntype AppHeaderDietCardProps = {\n title: string;\n hours: number | null;\n icon: React.ReactNode;\n difficulty: CourseDifficulty | null;\n href: string;\n trackingTarget?: string;\n};\n\nexport const AppHeaderDietCard = ({\n title,\n hours,\n icon,\n difficulty,\n href,\n trackingTarget,\n}: AppHeaderDietCardProps) => {\n const { globalHeaderItemClick } = useGlobalHeaderItemClick();\n\n const isBeginnerContainer = difficulty === CourseDifficulty.Beginner;\n\n return (\n <li>\n <Anchor\n href={href}\n variant=\"interface\"\n display=\"block\"\n onClick={(event: React.MouseEvent<HTMLAnchorElement, MouseEvent>) =>\n globalHeaderItemClick(event, {\n type: 'link',\n id: `topnav_catalog_${title}`,\n href,\n text: title,\n trackingTarget: `topnav_catalog_${trackingTarget ?? title}`,\n })\n }\n >\n <StyledCard\n borderRadius=\"md\"\n borderColor=\"border-tertiary\"\n minHeight={120}\n display=\"flex\"\n flexDirection=\"column\"\n justifyContent=\"space-between\"\n px={12}\n py={8}\n isInteractive\n >\n <Text\n as=\"h3\"\n variant=\"p-large\"\n fontWeight={700}\n truncate=\"ellipsis\"\n truncateLines={2}\n >\n {title}\n </Text>\n <Box>\n <Box py={4} mb={4} height={0} position=\"relative\" aria-hidden>\n <DottedLine color=\"border-tertiary\" />\n </Box>\n <FlexBox justifyContent=\"space-between\" alignItems=\"center\">\n {difficulty && (\n <DifficultyTextContainer\n isBeginnerContainer={isBeginnerContainer}\n justifyContent=\"center\"\n alignItems=\"center\"\n gap={8}\n >\n {icon}\n <Text screenreader>{`${difficulty}${\n isBeginnerContainer ? ' Friendly' : ''\n }.`}</Text>\n <Text\n variant=\"p-small\"\n fontSize={14}\n color=\"text-secondary\"\n data-testid=\"card-difficulty\"\n aria-hidden\n truncate=\"ellipsis\"\n truncateLines={1}\n overflow=\"hidden\"\n >\n <b>{difficulty}</b>\n {isBeginnerContainer && <> Friendly</>}\n </Text>\n </DifficultyTextContainer>\n )}\n {hours && (\n <Text\n fontSize={14}\n variant=\"p-small\"\n color=\"text-secondary\"\n whiteSpace=\"nowrap\"\n >\n <b>{hours}</b> hours\n </Text>\n )}\n </FlexBox>\n </Box>\n </StyledCard>\n </Anchor>\n </li>\n );\n};\n"],"mappings":";;;;;;;;AAQA,MAAMU,aAAaH,qBAAOL,MAAAA;;;6BAEL,EAAES,YAAYA,MAAMC,OAAOC,OAAK,qBAAA,ynMAAA;AAKrD,MAAMC,aAAaP,qBAAOF,cAAAA;;;GACxBC,IAAI;CACFS,QAAQ;CACRC,SAAS;CACTC,UAAU;CACVC,WAAW;AACb,CAAA,GAAA,ynMAAA;AAGF,MAAMC,0BAA0BZ,qBAAOJ,SAAAA;;;iEAIrB,EAAEiB,0BACdA,sBAAsB,QAAQ,QAAA,kEAIlB,EAAEA,0BACdA,sBAAsB,QAAQ,QAAA,kEAIlB,EAAEA,0BACdA,sBAAsB,QAAQ,QAAA,MAAA,ynMAAA;AAapC,MAAaC,qBAAqB,EAChCC,OACAC,OACAC,MACAC,YACAC,MACAC,qBACuB;CACvB,MAAM,EAAEC,0BAA0BnB,yBAAAA;CAElC,MAAMW,sBAAsBK,eAAejB,iBAAiBqB;CAE5D,OACE,oBAAA,cAACC,MAAAA,MACC,oBAAA,cAAC9B,QAAAA;EACO0B;EACNK,SAAQ;EACRf,SAAQ;EACRgB,UAAUC,UACRL,sBAAsBK,OAAO;GAC3BC,MAAM;GACNC,IAAI,kBAAkBb;GACtBI;GACAU,MAAMd;GACNK,gBAAgB,kBAAkBA,kBAAkBL;EACtD,CAAA;IAGF,oBAAA,cAACZ,YAAAA;EACC2B,cAAa;EACbC,aAAY;EACZC,WAAW;EACXvB,SAAQ;EACRwB,eAAc;EACdC,gBAAe;EACfC,IAAI;EACJC,IAAI;EACJC,eAAAA;IAEA,oBAAA,cAACxC,MAAAA;EACCyC,IAAG;EACHd,SAAQ;EACRe,YAAY;EACZC,UAAS;EACTC,eAAe;IAEd1B,KAAAA,GAEH,oBAAA,cAACrB,KAAAA,MACC,oBAAA,cAACA,KAAAA;EAAI0C,IAAI;EAAGM,IAAI;EAAGlC,QAAQ;EAAGE,UAAS;EAAWiC,eAAAA;IAChD,oBAAA,cAACpC,YAAAA,EAAWqC,OAAM,uBAEpB,oBAAA,cAAChD,SAAAA;EAAQsC,gBAAe;EAAgBW,YAAW;IAChD3B,cACC,oBAAA,cAACN,yBAAAA;EACsBC;EACrBqB,gBAAe;EACfW,YAAW;EACXC,KAAK;IAEJ7B,MACD,oBAAA,cAACpB,MAAAA,EAAKkD,cAAAA,QAAc,GAAG7B,aACrBL,sBAAsB,cAAc,GACrC,EAAE,GACH,oBAAA,cAAChB,MAAAA;EACC2B,SAAQ;EACRwB,UAAU;EACVJ,OAAM;EACNK,eAAY;EACZN,eAAAA;EACAH,UAAS;EACTC,eAAe;EACfS,UAAS;IAET,oBAAA,cAACC,KAAAA,MAAGjC,UAAAA,GACHL,uBAAuB,oBAAA,cAAA,MAAA,UAAA,MAAE,WAAA,CAAA,CAAA,GAI/BG,SACC,oBAAA,cAACnB,MAAAA;EACCmD,UAAU;EACVxB,SAAQ;EACRoB,OAAM;EACNQ,YAAW;IAEX,oBAAA,cAACD,KAAAA,MAAGnC,KAAAA,GAAU,QAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAShC"}
1
+ {"version":3,"file":"index.js","names":["Anchor","Box","Card","FlexBox","Text","CheckerDense","css","styled","CourseDifficulty","useGlobalHeaderItemClick","StyledCard","theme","colors","black","DottedLine","height","display","position","marginTop","DifficultyTextContainer","isBeginnerContainer","AppHeaderDietCard","title","hours","icon","difficulty","href","trackingTarget","globalHeaderItemClick","Beginner","li","variant","onClick","event","type","id","text","borderRadius","borderColor","minHeight","flexDirection","justifyContent","px","py","isInteractive","as","fontWeight","truncate","truncateLines","mb","aria-hidden","color","alignItems","gap","screenreader","fontSize","data-testid","overflow","b","whiteSpace"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderDietCard/index.tsx"],"sourcesContent":["import { Anchor, Box, Card, FlexBox, Text } from '@codecademy/gamut';\nimport { CheckerDense } from '@codecademy/gamut-patterns';\nimport { css } from '@codecademy/gamut-styles';\nimport styled from '@emotion/styled';\n\nimport { CourseDifficulty } from '../../../ContentGroupBaseCard/types';\nimport { useGlobalHeaderItemClick } from '../../../GlobalHeader/context';\n\nconst StyledCard = styled(Card)`\n &:hover {\n border-color: ${({ theme }) => theme.colors.black};\n cursor: pointer;\n }\n`;\n\nconst DottedLine = styled(CheckerDense)(\n css({\n height: '1px',\n display: 'flex',\n position: 'absolute',\n marginTop: '-1px',\n })\n);\n\nconst DifficultyTextContainer = styled(FlexBox)<{\n isBeginnerContainer: boolean;\n}>`\n @media (min-width: 768px) and (max-width: 880px) {\n max-width: ${({ isBeginnerContainer }) =>\n isBeginnerContainer ? '60%' : 'none'};\n }\n\n @media (min-width: 1024px) and (max-width: 1136px) {\n max-width: ${({ isBeginnerContainer }) =>\n isBeginnerContainer ? '60%' : 'none'};\n }\n\n @media (min-width: 1200px) and (max-width: 1230px) {\n max-width: ${({ isBeginnerContainer }) =>\n isBeginnerContainer ? '60%' : 'none'};\n }\n`;\n\ntype AppHeaderDietCardProps = {\n title: string;\n hours: number | null;\n icon: React.ReactNode;\n difficulty: CourseDifficulty | null;\n href: string;\n trackingTarget?: string;\n};\n\nexport const AppHeaderDietCard = ({\n title,\n hours,\n icon,\n difficulty,\n href,\n trackingTarget,\n}: AppHeaderDietCardProps) => {\n const { globalHeaderItemClick } = useGlobalHeaderItemClick();\n\n const isBeginnerContainer = difficulty === CourseDifficulty.Beginner;\n\n return (\n <li>\n <Anchor\n href={href}\n variant=\"interface\"\n display=\"block\"\n onClick={(event: React.MouseEvent<HTMLAnchorElement, MouseEvent>) =>\n globalHeaderItemClick(event, {\n type: 'link',\n id: `topnav_catalog_${title}`,\n href,\n text: title,\n trackingTarget: `topnav_catalog_${trackingTarget ?? title}`,\n })\n }\n >\n <StyledCard\n borderRadius=\"md\"\n borderColor=\"border-tertiary\"\n minHeight={120}\n display=\"flex\"\n flexDirection=\"column\"\n justifyContent=\"space-between\"\n px={12}\n py={8}\n isInteractive\n >\n <Text\n as=\"h3\"\n variant=\"p-large\"\n fontWeight={700}\n truncate=\"ellipsis\"\n truncateLines={2}\n >\n {title}\n </Text>\n <Box>\n <Box py={4} mb={4} height={0} position=\"relative\" aria-hidden>\n <DottedLine color=\"border-tertiary\" />\n </Box>\n <FlexBox justifyContent=\"space-between\" alignItems=\"center\">\n {difficulty && (\n <DifficultyTextContainer\n isBeginnerContainer={isBeginnerContainer}\n justifyContent=\"center\"\n alignItems=\"center\"\n gap={8}\n >\n {icon}\n <Text screenreader>{`${difficulty}${\n isBeginnerContainer ? ' Friendly' : ''\n }.`}</Text>\n <Text\n variant=\"p-small\"\n fontSize={14}\n color=\"text-secondary\"\n data-testid=\"card-difficulty\"\n aria-hidden\n truncate=\"ellipsis\"\n truncateLines={1}\n overflow=\"hidden\"\n >\n <b>{difficulty}</b>\n {isBeginnerContainer && <> Friendly</>}\n </Text>\n </DifficultyTextContainer>\n )}\n {hours && (\n <Text\n fontSize={14}\n variant=\"p-small\"\n color=\"text-secondary\"\n whiteSpace=\"nowrap\"\n >\n <b>{hours}</b> hours\n </Text>\n )}\n </FlexBox>\n </Box>\n </StyledCard>\n </Anchor>\n </li>\n );\n};\n"],"mappings":";;;;;;;;AAQA,MAAMU,aAAaH,qBAAOL,MAAAA;;;AAEN,CAAA,CAAA,CAAA,0BAAC,EAAES,YAAYA,MAAMC,OAAOC,OAAK,qBAAA,ynMAAA;AAKrD,MAAMC,aAAaP,qBAAOF,cAAAA;;;AACxBC,CAAAA,CAAAA,CAAAA,IAAI;CACFS,QAAQ;CACRC,SAAS;CACTC,UAAU;CACVC,WAAW;AACb,CAAA,GAAA,ynMAAA;AAGF,MAAMC,0BAA0BZ,qBAAOJ,SAAAA;;;AAItB,CAAA,CAAA,CAAA,8DAAC,EAAEiB,0BACdA,sBAAsB,QAAQ,QAAA,kEAIlB,EAAEA,0BACdA,sBAAsB,QAAQ,QAAA,kEAIlB,EAAEA,0BACdA,sBAAsB,QAAQ,QAAA,MAAA,ynMAAA;AAapC,MAAaC,qBAAqB,EAChCC,OACAC,OACAC,MACAC,YACAC,MACAC,qBACuB;CACvB,MAAM,EAAEC,0BAA0BnB,yBAAAA;CAElC,MAAMW,sBAAsBK,eAAejB,iBAAiBqB;CAE5D,OACE,oBAAA,cAACC,MAAAA,MACC,oBAAA,cAAC9B,QAAAA;EACO0B;EACNK,SAAQ;EACRf,SAAQ;EACRgB,UAAUC,UACRL,sBAAsBK,OAAO;GAC3BC,MAAM;GACNC,IAAI,kBAAkBb;GACtBI;GACAU,MAAMd;GACNK,gBAAgB,kBAAkBA,kBAAkBL;EACtD,CAAA;CAGF,GAAA,oBAAA,cAACZ,YAAAA;EACC2B,cAAa;EACbC,aAAY;EACZC,WAAW;EACXvB,SAAQ;EACRwB,eAAc;EACdC,gBAAe;EACfC,IAAI;EACJC,IAAI;EACJC,eAAAA;CAEA,GAAA,oBAAA,cAACxC,MAAAA;EACCyC,IAAG;EACHd,SAAQ;EACRe,YAAY;EACZC,UAAS;EACTC,eAAe;CAEd1B,GAAAA,KAAAA,GAEH,oBAAA,cAACrB,KAAAA,MACC,oBAAA,cAACA,KAAAA;EAAI0C,IAAI;EAAGM,IAAI;EAAGlC,QAAQ;EAAGE,UAAS;EAAWiC,eAAAA;CAChD,GAAA,oBAAA,cAACpC,YAAAA,EAAWqC,OAAM,kBAEpB,CAAA,CAAA,GAAA,oBAAA,cAAChD,SAAAA;EAAQsC,gBAAe;EAAgBW,YAAW;CAChD3B,GAAAA,cACC,oBAAA,cAACN,yBAAAA;EACsBC;EACrBqB,gBAAe;EACfW,YAAW;EACXC,KAAK;CAEJ7B,GAAAA,MACD,oBAAA,cAACpB,MAAAA,EAAKkD,cAAAA,KAAc,GAAA,GAAG7B,aACrBL,sBAAsB,cAAc,GACrC,EAAE,GACH,oBAAA,cAAChB,MAAAA;EACC2B,SAAQ;EACRwB,UAAU;EACVJ,OAAM;EACNK,eAAY;EACZN,eAAAA;EACAH,UAAS;EACTC,eAAe;EACfS,UAAS;CAET,GAAA,oBAAA,cAACC,KAAAA,MAAGjC,UAAAA,GACHL,uBAAuB,oBAAA,cAAA,MAAA,UAAA,MAAE,WAAA,CAAA,CAAA,GAI/BG,SACC,oBAAA,cAACnB,MAAAA;EACCmD,UAAU;EACVxB,SAAQ;EACRoB,OAAM;EACNQ,YAAW;CAEX,GAAA,oBAAA,cAACD,KAAAA,MAAGnC,KAAAA,GAAU,QAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAShC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["Menu","ColorMode","css","styled","useCallback","useEffect","useRef","useState","React","AnimatedSimpleDropdown","AppHeaderLinkSections","AppHeaderMenuProvider","AppHeaderMenuNavButton","useAppHeaderContext","StyledLinkSection","padding","position","StyledDropdownMenu","border","borderColor","borderRadius","AppHeaderDropdown","action","item","spacing","standalone","listRef","buttonRef","isOpen","setIsOpen","lastOpenedDropdown","setLastOpenedDropdown","dropdownId","text","type","toggleIsOpen","prev","handleOnClick","event","handleKeyboardClose","current","focus","handleClickOutside","list","button","contains","target","document","addEventListener","removeEventListener","isProfileDropdown","isGenericDropdown","includes","handleClose","style","right","top","mode","minWidth","ref","role","undefined","variant","width","zIndex","py"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderDropdown/index.tsx"],"sourcesContent":["import { Menu } from '@codecademy/gamut';\nimport { ColorMode, css } from '@codecademy/gamut-styles';\nimport styled from '@emotion/styled';\nimport { useCallback, useEffect, useRef, useState } from 'react';\nimport * as React from 'react';\n\nimport {\n AnimatedSimpleDropdown,\n AppHeaderAction,\n AppHeaderDropdownItem,\n} from '../../shared';\nimport { AppHeaderLinkSections } from '../AppHeaderLinkSections';\nimport { AppHeaderMenuProvider } from '../AppHeaderMenuProvider';\nimport { AppHeaderMenuNavButton } from '../AppHeaderNavButton';\nimport { useAppHeaderContext } from '../AppHeaderProvider';\n\nconst StyledLinkSection = styled(AppHeaderLinkSections)(\n css({\n padding: `0.75rem 0`,\n position: `absolute`,\n })\n);\n\nconst StyledDropdownMenu = styled(Menu)(\n css({\n border: 1,\n borderColor: 'border-tertiary',\n borderRadius: 'lg',\n })\n);\n\nexport type AppHeaderDropdownProps = AppHeaderAction &\n Pick<React.ComponentProps<typeof Menu>, 'spacing'> & {\n item: AppHeaderDropdownItem;\n /**\n * If true, the dropdown is being rendered as a standalone component, rather than\n * part of the global header.\n */\n standalone?: boolean;\n };\n\nexport const AppHeaderDropdown: React.FC<AppHeaderDropdownProps> = ({\n action,\n item,\n spacing = 'normal',\n standalone,\n}) => {\n const listRef = useRef<HTMLUListElement>(null);\n const buttonRef = useRef<HTMLButtonElement>(null);\n\n const [isOpen, setIsOpen] = useState(false);\n const { lastOpenedDropdown, setLastOpenedDropdown } = useAppHeaderContext();\n\n const dropdownId = item?.text ?? item?.type;\n\n const toggleIsOpen = () => setIsOpen((prev) => !prev);\n\n const handleOnClick = (event: React.MouseEvent) => {\n toggleIsOpen();\n if (!isOpen) {\n if (action) action(event, item);\n if (setLastOpenedDropdown) {\n setLastOpenedDropdown(dropdownId);\n }\n }\n };\n\n const handleKeyboardClose = useCallback(() => {\n setIsOpen(false);\n buttonRef.current?.focus();\n }, []);\n\n useEffect(() => {\n if (lastOpenedDropdown !== dropdownId && isOpen) {\n setIsOpen(false);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [lastOpenedDropdown]);\n\n useEffect(() => {\n function handleClickOutside(event: MouseEvent | Event) {\n const list = listRef?.current;\n const button = buttonRef?.current;\n if (\n isOpen &&\n list &&\n !list.contains(event.target as Node) &&\n button &&\n !button.contains(event.target as Node)\n ) {\n setIsOpen(false);\n }\n }\n\n document.addEventListener('mousedown', handleClickOutside);\n document.addEventListener('blur', handleClickOutside);\n return () => {\n document.removeEventListener('mousedown', handleClickOutside);\n document.removeEventListener('blur', handleClickOutside);\n };\n }, [listRef, isOpen]);\n\n const isProfileDropdown = item.type === 'profile-dropdown';\n const isGenericDropdown = ['dropdown', 'resources-simple-dropdown'].includes(\n item.type\n );\n\n return (\n <AppHeaderMenuProvider handleClose={handleKeyboardClose}>\n <AppHeaderMenuNavButton\n buttonRef={buttonRef}\n handleOnClick={handleOnClick}\n isOpen={isOpen}\n item={item}\n />\n <AnimatedSimpleDropdown\n isOpen={isOpen}\n // eslint-disable-next-line gamut/no-inline-style\n style={{\n right: isProfileDropdown ? '0.5rem' : '',\n top: isGenericDropdown && standalone ? '2.75rem' : '3.5rem',\n }}\n >\n <ColorMode mode=\"light\">\n <StyledDropdownMenu\n minWidth=\"202px\"\n ref={listRef}\n role={isProfileDropdown ? 'menu' : undefined}\n spacing={spacing}\n variant=\"popover\"\n width=\"fit-content\"\n zIndex={1}\n py={spacing === 'normal' ? 12 : 0}\n >\n <StyledLinkSection action={action} item={item} isOpen={isOpen} />\n </StyledDropdownMenu>\n </ColorMode>\n </AnimatedSimpleDropdown>\n </AppHeaderMenuProvider>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;AAgBA,MAAMc,oBAAoBX,2CAAOO,uCAAAA;;;qCAC3B;CACFK,SAAS;CACTC,UAAU;AACZ,CAAA,GAAA,y7LAAA;AAGF,MAAMC,qBAAqBd,2CAAOH,wBAAAA;;;qCAC5B;CACFkB,QAAQ;CACRC,aAAa;CACbC,cAAc;AAChB,CAAA,GAAA,y7LAAA;AAaF,MAAaC,qBAAuD,EAClEC,QACAC,MACAC,UAAU,UACVC,iBACD;CACC,MAAMC,4BAAmC,IAAA;CACzC,MAAMC,8BAAsC,IAAA;CAE5C,MAAM,CAACC,QAAQC,iCAAsB,KAAA;CACrC,MAAM,EAAEC,oBAAoBC,0BAA0BlB,oCAAAA;CAEtD,MAAMmB,aAAaT,MAAMU,QAAQV,MAAMW;CAEvC,MAAMC,qBAAqBN,WAAWO,SAAS,CAACA,IAAAA;CAEhD,MAAMC,iBAAiBC,UAAAA;EACrBH,aAAAA;EACA,IAAI,CAACP,QAAQ;GACX,IAAIN,QAAQA,OAAOgB,OAAOf,IAAAA;GAC1B,IAAIQ,uBACFA,sBAAsBC,UAAAA;EAE1B;CACF;CAEA,MAAMO,mDAAkC;EACtCV,UAAU,KAAA;EACVF,UAAUa,SAASC,MAAAA;CACrB,GAAG,CAAA,CAAE;CAELpC,2BAAU;EACR,IAAIyB,uBAAuBE,cAAcJ,QACvCC,UAAU,KAAA;CAGd,GAAG,CAACC,mBAAmB;CAEvBzB,2BAAU;EACR,SAASqC,mBAAmBJ,OAAyB;GACnD,MAAMK,OAAOjB,SAASc;GACtB,MAAMI,SAASjB,WAAWa;GAC1B,IACEZ,UACAe,QACA,CAACA,KAAKE,SAASP,MAAMQ,MAAM,KAC3BF,UACA,CAACA,OAAOC,SAASP,MAAMQ,MAAM,GAE7BjB,UAAU,KAAA;EAEd;EAEAkB,SAASC,iBAAiB,aAAaN,kBAAAA;EACvCK,SAASC,iBAAiB,QAAQN,kBAAAA;EAClC,aAAO;GACLK,SAASE,oBAAoB,aAAaP,kBAAAA;GAC1CK,SAASE,oBAAoB,QAAQP,kBAAAA;EACvC;CACF,GAAG,CAAChB,SAASE,OAAO;CAEpB,MAAMsB,oBAAoB3B,KAAKW,SAAS;CACxC,MAAMiB,oBAAoB,CAAC,YAAY,4BAA4B,CAACC,SAClE7B,KAAKW,IAAI;CAGX,OACE,oBAAA,cAACvB,uCAAAA,EAAsB0C,aAAad,uBAClC,oBAAA,cAAC3B,wCAAAA;EACYe;EACIU;EACPT;EACFL;KAER,oBAAA,cAACd,yCAAAA;EACSmB;EAER0B,OAAO;GACLC,OAAOL,oBAAoB,WAAW;GACtCM,KAAKL,qBAAqB1B,aAAa,YAAY;EACrD;IAEA,oBAAA,cAACxB,oCAAAA,EAAUwD,MAAK,WACd,oBAAA,cAACxC,oBAAAA;EACCyC,UAAS;EACTC,KAAKjC;EACLkC,MAAMV,oBAAoB,SAASW;EAC1BrC;EACTsC,SAAQ;EACRC,OAAM;EACNC,QAAQ;EACRC,IAAIzC,YAAY,WAAW,KAAK;IAEhC,oBAAA,cAACV,mBAAAA;EAA0BQ;EAAcC;EAAcK;;AAMnE"}
1
+ {"version":3,"file":"index.cjs","names":["Menu","ColorMode","css","styled","useCallback","useEffect","useRef","useState","React","AnimatedSimpleDropdown","AppHeaderLinkSections","AppHeaderMenuProvider","AppHeaderMenuNavButton","useAppHeaderContext","StyledLinkSection","padding","position","StyledDropdownMenu","border","borderColor","borderRadius","AppHeaderDropdown","action","item","spacing","standalone","listRef","buttonRef","isOpen","setIsOpen","lastOpenedDropdown","setLastOpenedDropdown","dropdownId","text","type","toggleIsOpen","prev","handleOnClick","event","handleKeyboardClose","current","focus","handleClickOutside","list","button","contains","target","document","addEventListener","removeEventListener","isProfileDropdown","isGenericDropdown","includes","handleClose","style","right","top","mode","minWidth","ref","role","undefined","variant","width","zIndex","py"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderDropdown/index.tsx"],"sourcesContent":["import { Menu } from '@codecademy/gamut';\nimport { ColorMode, css } from '@codecademy/gamut-styles';\nimport styled from '@emotion/styled';\nimport { useCallback, useEffect, useRef, useState } from 'react';\nimport * as React from 'react';\n\nimport {\n AnimatedSimpleDropdown,\n AppHeaderAction,\n AppHeaderDropdownItem,\n} from '../../shared';\nimport { AppHeaderLinkSections } from '../AppHeaderLinkSections';\nimport { AppHeaderMenuProvider } from '../AppHeaderMenuProvider';\nimport { AppHeaderMenuNavButton } from '../AppHeaderNavButton';\nimport { useAppHeaderContext } from '../AppHeaderProvider';\n\nconst StyledLinkSection = styled(AppHeaderLinkSections)(\n css({\n padding: `0.75rem 0`,\n position: `absolute`,\n })\n);\n\nconst StyledDropdownMenu = styled(Menu)(\n css({\n border: 1,\n borderColor: 'border-tertiary',\n borderRadius: 'lg',\n })\n);\n\nexport type AppHeaderDropdownProps = AppHeaderAction &\n Pick<React.ComponentProps<typeof Menu>, 'spacing'> & {\n item: AppHeaderDropdownItem;\n /**\n * If true, the dropdown is being rendered as a standalone component, rather than\n * part of the global header.\n */\n standalone?: boolean;\n };\n\nexport const AppHeaderDropdown: React.FC<AppHeaderDropdownProps> = ({\n action,\n item,\n spacing = 'normal',\n standalone,\n}) => {\n const listRef = useRef<HTMLUListElement>(null);\n const buttonRef = useRef<HTMLButtonElement>(null);\n\n const [isOpen, setIsOpen] = useState(false);\n const { lastOpenedDropdown, setLastOpenedDropdown } = useAppHeaderContext();\n\n const dropdownId = item?.text ?? item?.type;\n\n const toggleIsOpen = () => setIsOpen((prev) => !prev);\n\n const handleOnClick = (event: React.MouseEvent) => {\n toggleIsOpen();\n if (!isOpen) {\n if (action) action(event, item);\n if (setLastOpenedDropdown) {\n setLastOpenedDropdown(dropdownId);\n }\n }\n };\n\n const handleKeyboardClose = useCallback(() => {\n setIsOpen(false);\n buttonRef.current?.focus();\n }, []);\n\n useEffect(() => {\n if (lastOpenedDropdown !== dropdownId && isOpen) {\n setIsOpen(false);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [lastOpenedDropdown]);\n\n useEffect(() => {\n function handleClickOutside(event: MouseEvent | Event) {\n const list = listRef?.current;\n const button = buttonRef?.current;\n if (\n isOpen &&\n list &&\n !list.contains(event.target as Node) &&\n button &&\n !button.contains(event.target as Node)\n ) {\n setIsOpen(false);\n }\n }\n\n document.addEventListener('mousedown', handleClickOutside);\n document.addEventListener('blur', handleClickOutside);\n return () => {\n document.removeEventListener('mousedown', handleClickOutside);\n document.removeEventListener('blur', handleClickOutside);\n };\n }, [listRef, isOpen]);\n\n const isProfileDropdown = item.type === 'profile-dropdown';\n const isGenericDropdown = ['dropdown', 'resources-simple-dropdown'].includes(\n item.type\n );\n\n return (\n <AppHeaderMenuProvider handleClose={handleKeyboardClose}>\n <AppHeaderMenuNavButton\n buttonRef={buttonRef}\n handleOnClick={handleOnClick}\n isOpen={isOpen}\n item={item}\n />\n <AnimatedSimpleDropdown\n isOpen={isOpen}\n // eslint-disable-next-line gamut/no-inline-style\n style={{\n right: isProfileDropdown ? '0.5rem' : '',\n top: isGenericDropdown && standalone ? '2.75rem' : '3.5rem',\n }}\n >\n <ColorMode mode=\"light\">\n <StyledDropdownMenu\n minWidth=\"202px\"\n ref={listRef}\n role={isProfileDropdown ? 'menu' : undefined}\n spacing={spacing}\n variant=\"popover\"\n width=\"fit-content\"\n zIndex={1}\n py={spacing === 'normal' ? 12 : 0}\n >\n <StyledLinkSection action={action} item={item} isOpen={isOpen} />\n </StyledDropdownMenu>\n </ColorMode>\n </AnimatedSimpleDropdown>\n </AppHeaderMenuProvider>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;AAgBA,MAAMc,oBAAoBX,2CAAOO,uCAAAA;;;AAC/BR,CAAAA,CAAAA,mCAAI;CACFa,SAAS;CACTC,UAAU;AACZ,CAAA,GAAA,y7LAAA;AAGF,MAAMC,qBAAqBd,2CAAOH,wBAAAA;;;AAChCE,CAAAA,CAAAA,mCAAI;CACFgB,QAAQ;CACRC,aAAa;CACbC,cAAc;AAChB,CAAA,GAAA,y7LAAA;AAaF,MAAaC,qBAAuD,EAClEC,QACAC,MACAC,UAAU,UACVC,iBACD;CACC,MAAMC,4BAAmC,IAAA;CACzC,MAAMC,8BAAsC,IAAA;CAE5C,MAAM,CAACC,QAAQC,iCAAsB,KAAA;CACrC,MAAM,EAAEC,oBAAoBC,0BAA0BlB,oCAAAA;CAEtD,MAAMmB,aAAaT,MAAMU,QAAQV,MAAMW;CAEvC,MAAMC,qBAAqBN,WAAWO,SAAS,CAACA,IAAAA;CAEhD,MAAMC,iBAAiBC,UAAAA;EACrBH,aAAAA;EACA,IAAI,CAACP,QAAQ;GACX,IAAIN,QAAQA,OAAOgB,OAAOf,IAAAA;GAC1B,IAAIQ,uBACFA,sBAAsBC,UAAAA;EAE1B;CACF;CAEA,MAAMO,mDAAkC;EACtCV,UAAU,KAAA;EACVF,UAAUa,SAASC,MAAAA;CACrB,GAAG,CAAA,CAAE;CAELpC,2BAAU;EACR,IAAIyB,uBAAuBE,cAAcJ,QACvCC,UAAU,KAAA;CAGd,GAAG,CAACC,kBAAmB,CAAA;CAEvBzB,2BAAU;EACR,SAASqC,mBAAmBJ,OAAyB;GACnD,MAAMK,OAAOjB,SAASc;GACtB,MAAMI,SAASjB,WAAWa;GAC1B,IACEZ,UACAe,QACA,CAACA,KAAKE,SAASP,MAAMQ,MAAM,KAC3BF,UACA,CAACA,OAAOC,SAASP,MAAMQ,MAAM,GAE7BjB,UAAU,KAAA;EAEd;EAEAkB,SAASC,iBAAiB,aAAaN,kBAAAA;EACvCK,SAASC,iBAAiB,QAAQN,kBAAAA;EAClC,aAAO;GACLK,SAASE,oBAAoB,aAAaP,kBAAAA;GAC1CK,SAASE,oBAAoB,QAAQP,kBAAAA;EACvC;CACF,GAAG,CAAChB,SAASE,MAAO,CAAA;CAEpB,MAAMsB,oBAAoB3B,KAAKW,SAAS;CACxC,MAAMiB,oBAAoB,CAAC,YAAY,2BAA4B,CAAA,CAACC,SAClE7B,KAAKW,IAAI;CAGX,OACE,oBAAA,cAACvB,uCAAAA,EAAsB0C,aAAad,oBAClC,GAAA,oBAAA,cAAC3B,wCAAAA;EACYe;EACIU;EACPT;EACFL;CAER,CAAA,GAAA,oBAAA,cAACd,yCAAAA;EACSmB;EAER0B,OAAO;GACLC,OAAOL,oBAAoB,WAAW;GACtCM,KAAKL,qBAAqB1B,aAAa,YAAY;EACrD;CAEA,GAAA,oBAAA,cAACxB,oCAAAA,EAAUwD,MAAK,QACd,GAAA,oBAAA,cAACxC,oBAAAA;EACCyC,UAAS;EACTC,KAAKjC;EACLkC,MAAMV,oBAAoB,SAASW;EAC1BrC;EACTsC,SAAQ;EACRC,OAAM;EACNC,QAAQ;EACRC,IAAIzC,YAAY,WAAW,KAAK;CAEhC,GAAA,oBAAA,cAACV,mBAAAA;EAA0BQ;EAAcC;EAAcK;;AAMnE"}
@@ -1,7 +1,7 @@
1
1
  import { AppHeaderAction, AppHeaderDropdownItem } from "../../shared/types.cjs";
2
+ import "../../shared/index.cjs";
2
3
  import { Menu } from "@codecademy/gamut";
3
4
  import * as React$1 from "react";
4
-
5
5
  //#region src/AppHeader/AppHeaderElements/AppHeaderDropdown/index.d.ts
6
6
  type AppHeaderDropdownProps = AppHeaderAction & Pick<React$1.ComponentProps<typeof Menu>, 'spacing'> & {
7
7
  item: AppHeaderDropdownItem;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderDropdown/index.tsx"],"mappings":";;;;;KA+BY,sBAAA,GAAyB,eAAA,GACnC,IAAA,CAAK,OAAA,CAAM,cAAA,QAAsB,IAAA;EAC/B,IAAA,EAAM,qBAAA;;AAFV;;;EAOI,UAAA;AAAA;AAAA,cAGS,iBAAA,EAAmB,OAAA,CAAM,EAAE,CAAC,sBAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderDropdown/index.tsx"],"mappings":";;;;;KA+BY,yBAAyB,kBACnC,KAAK,QAAM,sBAAsB;EAC/B,MAAM;;;;;EAKN;;cAGS,mBAAmB,QAAM,GAAG"}
@@ -1,7 +1,7 @@
1
1
  import { AppHeaderAction, AppHeaderDropdownItem } from "../../shared/types.js";
2
+ import "../../shared/index.js";
2
3
  import { Menu } from "@codecademy/gamut";
3
4
  import * as React$1 from "react";
4
-
5
5
  //#region src/AppHeader/AppHeaderElements/AppHeaderDropdown/index.d.ts
6
6
  type AppHeaderDropdownProps = AppHeaderAction & Pick<React$1.ComponentProps<typeof Menu>, 'spacing'> & {
7
7
  item: AppHeaderDropdownItem;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderDropdown/index.tsx"],"mappings":";;;;;KA+BY,sBAAA,GAAyB,eAAA,GACnC,IAAA,CAAK,OAAA,CAAM,cAAA,QAAsB,IAAA;EAC/B,IAAA,EAAM,qBAAA;;AAFV;;;EAOI,UAAA;AAAA;AAAA,cAGS,iBAAA,EAAmB,OAAA,CAAM,EAAA,CAAG,sBAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderDropdown/index.tsx"],"mappings":";;;;;KA+BY,yBAAyB,kBACnC,KAAK,QAAM,sBAAsB;EAC/B,MAAM;;;;;EAKN;;cAGS,mBAAmB,QAAM,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["Menu","ColorMode","css","styled","useCallback","useEffect","useRef","useState","React","AnimatedSimpleDropdown","AppHeaderLinkSections","AppHeaderMenuProvider","AppHeaderMenuNavButton","useAppHeaderContext","StyledLinkSection","padding","position","StyledDropdownMenu","border","borderColor","borderRadius","AppHeaderDropdown","action","item","spacing","standalone","listRef","buttonRef","isOpen","setIsOpen","lastOpenedDropdown","setLastOpenedDropdown","dropdownId","text","type","toggleIsOpen","prev","handleOnClick","event","handleKeyboardClose","current","focus","handleClickOutside","list","button","contains","target","document","addEventListener","removeEventListener","isProfileDropdown","isGenericDropdown","includes","handleClose","style","right","top","mode","minWidth","ref","role","undefined","variant","width","zIndex","py"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderDropdown/index.tsx"],"sourcesContent":["import { Menu } from '@codecademy/gamut';\nimport { ColorMode, css } from '@codecademy/gamut-styles';\nimport styled from '@emotion/styled';\nimport { useCallback, useEffect, useRef, useState } from 'react';\nimport * as React from 'react';\n\nimport {\n AnimatedSimpleDropdown,\n AppHeaderAction,\n AppHeaderDropdownItem,\n} from '../../shared';\nimport { AppHeaderLinkSections } from '../AppHeaderLinkSections';\nimport { AppHeaderMenuProvider } from '../AppHeaderMenuProvider';\nimport { AppHeaderMenuNavButton } from '../AppHeaderNavButton';\nimport { useAppHeaderContext } from '../AppHeaderProvider';\n\nconst StyledLinkSection = styled(AppHeaderLinkSections)(\n css({\n padding: `0.75rem 0`,\n position: `absolute`,\n })\n);\n\nconst StyledDropdownMenu = styled(Menu)(\n css({\n border: 1,\n borderColor: 'border-tertiary',\n borderRadius: 'lg',\n })\n);\n\nexport type AppHeaderDropdownProps = AppHeaderAction &\n Pick<React.ComponentProps<typeof Menu>, 'spacing'> & {\n item: AppHeaderDropdownItem;\n /**\n * If true, the dropdown is being rendered as a standalone component, rather than\n * part of the global header.\n */\n standalone?: boolean;\n };\n\nexport const AppHeaderDropdown: React.FC<AppHeaderDropdownProps> = ({\n action,\n item,\n spacing = 'normal',\n standalone,\n}) => {\n const listRef = useRef<HTMLUListElement>(null);\n const buttonRef = useRef<HTMLButtonElement>(null);\n\n const [isOpen, setIsOpen] = useState(false);\n const { lastOpenedDropdown, setLastOpenedDropdown } = useAppHeaderContext();\n\n const dropdownId = item?.text ?? item?.type;\n\n const toggleIsOpen = () => setIsOpen((prev) => !prev);\n\n const handleOnClick = (event: React.MouseEvent) => {\n toggleIsOpen();\n if (!isOpen) {\n if (action) action(event, item);\n if (setLastOpenedDropdown) {\n setLastOpenedDropdown(dropdownId);\n }\n }\n };\n\n const handleKeyboardClose = useCallback(() => {\n setIsOpen(false);\n buttonRef.current?.focus();\n }, []);\n\n useEffect(() => {\n if (lastOpenedDropdown !== dropdownId && isOpen) {\n setIsOpen(false);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [lastOpenedDropdown]);\n\n useEffect(() => {\n function handleClickOutside(event: MouseEvent | Event) {\n const list = listRef?.current;\n const button = buttonRef?.current;\n if (\n isOpen &&\n list &&\n !list.contains(event.target as Node) &&\n button &&\n !button.contains(event.target as Node)\n ) {\n setIsOpen(false);\n }\n }\n\n document.addEventListener('mousedown', handleClickOutside);\n document.addEventListener('blur', handleClickOutside);\n return () => {\n document.removeEventListener('mousedown', handleClickOutside);\n document.removeEventListener('blur', handleClickOutside);\n };\n }, [listRef, isOpen]);\n\n const isProfileDropdown = item.type === 'profile-dropdown';\n const isGenericDropdown = ['dropdown', 'resources-simple-dropdown'].includes(\n item.type\n );\n\n return (\n <AppHeaderMenuProvider handleClose={handleKeyboardClose}>\n <AppHeaderMenuNavButton\n buttonRef={buttonRef}\n handleOnClick={handleOnClick}\n isOpen={isOpen}\n item={item}\n />\n <AnimatedSimpleDropdown\n isOpen={isOpen}\n // eslint-disable-next-line gamut/no-inline-style\n style={{\n right: isProfileDropdown ? '0.5rem' : '',\n top: isGenericDropdown && standalone ? '2.75rem' : '3.5rem',\n }}\n >\n <ColorMode mode=\"light\">\n <StyledDropdownMenu\n minWidth=\"202px\"\n ref={listRef}\n role={isProfileDropdown ? 'menu' : undefined}\n spacing={spacing}\n variant=\"popover\"\n width=\"fit-content\"\n zIndex={1}\n py={spacing === 'normal' ? 12 : 0}\n >\n <StyledLinkSection action={action} item={item} isOpen={isOpen} />\n </StyledDropdownMenu>\n </ColorMode>\n </AnimatedSimpleDropdown>\n </AppHeaderMenuProvider>\n );\n};\n"],"mappings":";;;;;;;;;;;;;AAgBA,MAAMc,oBAAoBX,qBAAOO,uBAAAA;;;GAC/BR,IAAI;CACFa,SAAS;CACTC,UAAU;AACZ,CAAA,GAAA,y7LAAA;AAGF,MAAMC,qBAAqBd,qBAAOH,MAAAA;;;GAChCE,IAAI;CACFgB,QAAQ;CACRC,aAAa;CACbC,cAAc;AAChB,CAAA,GAAA,y7LAAA;AAaF,MAAaC,qBAAuD,EAClEC,QACAC,MACAC,UAAU,UACVC,iBACD;CACC,MAAMC,UAAUpB,OAAyB,IAAA;CACzC,MAAMqB,YAAYrB,OAA0B,IAAA;CAE5C,MAAM,CAACsB,QAAQC,aAAatB,SAAS,KAAA;CACrC,MAAM,EAAEuB,oBAAoBC,0BAA0BlB,oBAAAA;CAEtD,MAAMmB,aAAaT,MAAMU,QAAQV,MAAMW;CAEvC,MAAMC,qBAAqBN,WAAWO,SAAS,CAACA,IAAAA;CAEhD,MAAMC,iBAAiBC,UAAAA;EACrBH,aAAAA;EACA,IAAI,CAACP,QAAQ;GACX,IAAIN,QAAQA,OAAOgB,OAAOf,IAAAA;GAC1B,IAAIQ,uBACFA,sBAAsBC,UAAAA;EAE1B;CACF;CAEA,MAAMO,sBAAsBnC,kBAAY;EACtCyB,UAAU,KAAA;EACVF,UAAUa,SAASC,MAAAA;CACrB,GAAG,CAAA,CAAE;CAELpC,gBAAU;EACR,IAAIyB,uBAAuBE,cAAcJ,QACvCC,UAAU,KAAA;CAGd,GAAG,CAACC,mBAAmB;CAEvBzB,gBAAU;EACR,SAASqC,mBAAmBJ,OAAyB;GACnD,MAAMK,OAAOjB,SAASc;GACtB,MAAMI,SAASjB,WAAWa;GAC1B,IACEZ,UACAe,QACA,CAACA,KAAKE,SAASP,MAAMQ,MAAM,KAC3BF,UACA,CAACA,OAAOC,SAASP,MAAMQ,MAAM,GAE7BjB,UAAU,KAAA;EAEd;EAEAkB,SAASC,iBAAiB,aAAaN,kBAAAA;EACvCK,SAASC,iBAAiB,QAAQN,kBAAAA;EAClC,aAAO;GACLK,SAASE,oBAAoB,aAAaP,kBAAAA;GAC1CK,SAASE,oBAAoB,QAAQP,kBAAAA;EACvC;CACF,GAAG,CAAChB,SAASE,OAAO;CAEpB,MAAMsB,oBAAoB3B,KAAKW,SAAS;CACxC,MAAMiB,oBAAoB,CAAC,YAAY,4BAA4B,CAACC,SAClE7B,KAAKW,IAAI;CAGX,OACE,sBAAA,cAACvB,uBAAAA,EAAsB0C,aAAad,uBAClC,sBAAA,cAAC3B,wBAAAA;EACYe;EACIU;EACPT;EACFL;KAER,sBAAA,cAACd,wBAAAA;EACSmB;EAER0B,OAAO;GACLC,OAAOL,oBAAoB,WAAW;GACtCM,KAAKL,qBAAqB1B,aAAa,YAAY;EACrD;IAEA,sBAAA,cAACxB,WAAAA,EAAUwD,MAAK,WACd,sBAAA,cAACxC,oBAAAA;EACCyC,UAAS;EACTC,KAAKjC;EACLkC,MAAMV,oBAAoB,SAASW;EAC1BrC;EACTsC,SAAQ;EACRC,OAAM;EACNC,QAAQ;EACRC,IAAIzC,YAAY,WAAW,KAAK;IAEhC,sBAAA,cAACV,mBAAAA;EAA0BQ;EAAcC;EAAcK;;AAMnE"}
1
+ {"version":3,"file":"index.js","names":["Menu","ColorMode","css","styled","useCallback","useEffect","useRef","useState","React","AnimatedSimpleDropdown","AppHeaderLinkSections","AppHeaderMenuProvider","AppHeaderMenuNavButton","useAppHeaderContext","StyledLinkSection","padding","position","StyledDropdownMenu","border","borderColor","borderRadius","AppHeaderDropdown","action","item","spacing","standalone","listRef","buttonRef","isOpen","setIsOpen","lastOpenedDropdown","setLastOpenedDropdown","dropdownId","text","type","toggleIsOpen","prev","handleOnClick","event","handleKeyboardClose","current","focus","handleClickOutside","list","button","contains","target","document","addEventListener","removeEventListener","isProfileDropdown","isGenericDropdown","includes","handleClose","style","right","top","mode","minWidth","ref","role","undefined","variant","width","zIndex","py"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderDropdown/index.tsx"],"sourcesContent":["import { Menu } from '@codecademy/gamut';\nimport { ColorMode, css } from '@codecademy/gamut-styles';\nimport styled from '@emotion/styled';\nimport { useCallback, useEffect, useRef, useState } from 'react';\nimport * as React from 'react';\n\nimport {\n AnimatedSimpleDropdown,\n AppHeaderAction,\n AppHeaderDropdownItem,\n} from '../../shared';\nimport { AppHeaderLinkSections } from '../AppHeaderLinkSections';\nimport { AppHeaderMenuProvider } from '../AppHeaderMenuProvider';\nimport { AppHeaderMenuNavButton } from '../AppHeaderNavButton';\nimport { useAppHeaderContext } from '../AppHeaderProvider';\n\nconst StyledLinkSection = styled(AppHeaderLinkSections)(\n css({\n padding: `0.75rem 0`,\n position: `absolute`,\n })\n);\n\nconst StyledDropdownMenu = styled(Menu)(\n css({\n border: 1,\n borderColor: 'border-tertiary',\n borderRadius: 'lg',\n })\n);\n\nexport type AppHeaderDropdownProps = AppHeaderAction &\n Pick<React.ComponentProps<typeof Menu>, 'spacing'> & {\n item: AppHeaderDropdownItem;\n /**\n * If true, the dropdown is being rendered as a standalone component, rather than\n * part of the global header.\n */\n standalone?: boolean;\n };\n\nexport const AppHeaderDropdown: React.FC<AppHeaderDropdownProps> = ({\n action,\n item,\n spacing = 'normal',\n standalone,\n}) => {\n const listRef = useRef<HTMLUListElement>(null);\n const buttonRef = useRef<HTMLButtonElement>(null);\n\n const [isOpen, setIsOpen] = useState(false);\n const { lastOpenedDropdown, setLastOpenedDropdown } = useAppHeaderContext();\n\n const dropdownId = item?.text ?? item?.type;\n\n const toggleIsOpen = () => setIsOpen((prev) => !prev);\n\n const handleOnClick = (event: React.MouseEvent) => {\n toggleIsOpen();\n if (!isOpen) {\n if (action) action(event, item);\n if (setLastOpenedDropdown) {\n setLastOpenedDropdown(dropdownId);\n }\n }\n };\n\n const handleKeyboardClose = useCallback(() => {\n setIsOpen(false);\n buttonRef.current?.focus();\n }, []);\n\n useEffect(() => {\n if (lastOpenedDropdown !== dropdownId && isOpen) {\n setIsOpen(false);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [lastOpenedDropdown]);\n\n useEffect(() => {\n function handleClickOutside(event: MouseEvent | Event) {\n const list = listRef?.current;\n const button = buttonRef?.current;\n if (\n isOpen &&\n list &&\n !list.contains(event.target as Node) &&\n button &&\n !button.contains(event.target as Node)\n ) {\n setIsOpen(false);\n }\n }\n\n document.addEventListener('mousedown', handleClickOutside);\n document.addEventListener('blur', handleClickOutside);\n return () => {\n document.removeEventListener('mousedown', handleClickOutside);\n document.removeEventListener('blur', handleClickOutside);\n };\n }, [listRef, isOpen]);\n\n const isProfileDropdown = item.type === 'profile-dropdown';\n const isGenericDropdown = ['dropdown', 'resources-simple-dropdown'].includes(\n item.type\n );\n\n return (\n <AppHeaderMenuProvider handleClose={handleKeyboardClose}>\n <AppHeaderMenuNavButton\n buttonRef={buttonRef}\n handleOnClick={handleOnClick}\n isOpen={isOpen}\n item={item}\n />\n <AnimatedSimpleDropdown\n isOpen={isOpen}\n // eslint-disable-next-line gamut/no-inline-style\n style={{\n right: isProfileDropdown ? '0.5rem' : '',\n top: isGenericDropdown && standalone ? '2.75rem' : '3.5rem',\n }}\n >\n <ColorMode mode=\"light\">\n <StyledDropdownMenu\n minWidth=\"202px\"\n ref={listRef}\n role={isProfileDropdown ? 'menu' : undefined}\n spacing={spacing}\n variant=\"popover\"\n width=\"fit-content\"\n zIndex={1}\n py={spacing === 'normal' ? 12 : 0}\n >\n <StyledLinkSection action={action} item={item} isOpen={isOpen} />\n </StyledDropdownMenu>\n </ColorMode>\n </AnimatedSimpleDropdown>\n </AppHeaderMenuProvider>\n );\n};\n"],"mappings":";;;;;;;;;;;;;AAgBA,MAAMc,oBAAoBX,qBAAOO,uBAAAA;;;AAC/BR,CAAAA,CAAAA,CAAAA,IAAI;CACFa,SAAS;CACTC,UAAU;AACZ,CAAA,GAAA,y7LAAA;AAGF,MAAMC,qBAAqBd,qBAAOH,MAAAA;;;AAChCE,CAAAA,CAAAA,CAAAA,IAAI;CACFgB,QAAQ;CACRC,aAAa;CACbC,cAAc;AAChB,CAAA,GAAA,y7LAAA;AAaF,MAAaC,qBAAuD,EAClEC,QACAC,MACAC,UAAU,UACVC,iBACD;CACC,MAAMC,UAAUpB,OAAyB,IAAA;CACzC,MAAMqB,YAAYrB,OAA0B,IAAA;CAE5C,MAAM,CAACsB,QAAQC,aAAatB,SAAS,KAAA;CACrC,MAAM,EAAEuB,oBAAoBC,0BAA0BlB,oBAAAA;CAEtD,MAAMmB,aAAaT,MAAMU,QAAQV,MAAMW;CAEvC,MAAMC,qBAAqBN,WAAWO,SAAS,CAACA,IAAAA;CAEhD,MAAMC,iBAAiBC,UAAAA;EACrBH,aAAAA;EACA,IAAI,CAACP,QAAQ;GACX,IAAIN,QAAQA,OAAOgB,OAAOf,IAAAA;GAC1B,IAAIQ,uBACFA,sBAAsBC,UAAAA;EAE1B;CACF;CAEA,MAAMO,sBAAsBnC,kBAAY;EACtCyB,UAAU,KAAA;EACVF,UAAUa,SAASC,MAAAA;CACrB,GAAG,CAAA,CAAE;CAELpC,gBAAU;EACR,IAAIyB,uBAAuBE,cAAcJ,QACvCC,UAAU,KAAA;CAGd,GAAG,CAACC,kBAAmB,CAAA;CAEvBzB,gBAAU;EACR,SAASqC,mBAAmBJ,OAAyB;GACnD,MAAMK,OAAOjB,SAASc;GACtB,MAAMI,SAASjB,WAAWa;GAC1B,IACEZ,UACAe,QACA,CAACA,KAAKE,SAASP,MAAMQ,MAAM,KAC3BF,UACA,CAACA,OAAOC,SAASP,MAAMQ,MAAM,GAE7BjB,UAAU,KAAA;EAEd;EAEAkB,SAASC,iBAAiB,aAAaN,kBAAAA;EACvCK,SAASC,iBAAiB,QAAQN,kBAAAA;EAClC,aAAO;GACLK,SAASE,oBAAoB,aAAaP,kBAAAA;GAC1CK,SAASE,oBAAoB,QAAQP,kBAAAA;EACvC;CACF,GAAG,CAAChB,SAASE,MAAO,CAAA;CAEpB,MAAMsB,oBAAoB3B,KAAKW,SAAS;CACxC,MAAMiB,oBAAoB,CAAC,YAAY,2BAA4B,CAAA,CAACC,SAClE7B,KAAKW,IAAI;CAGX,OACE,sBAAA,cAACvB,uBAAAA,EAAsB0C,aAAad,oBAClC,GAAA,sBAAA,cAAC3B,wBAAAA;EACYe;EACIU;EACPT;EACFL;CAER,CAAA,GAAA,sBAAA,cAACd,wBAAAA;EACSmB;EAER0B,OAAO;GACLC,OAAOL,oBAAoB,WAAW;GACtCM,KAAKL,qBAAqB1B,aAAa,YAAY;EACrD;CAEA,GAAA,sBAAA,cAACxB,WAAAA,EAAUwD,MAAK,QACd,GAAA,sBAAA,cAACxC,oBAAAA;EACCyC,UAAS;EACTC,KAAKjC;EACLkC,MAAMV,oBAAoB,SAASW;EAC1BrC;EACTsC,SAAQ;EACRC,OAAM;EACNC,QAAQ;EACRC,IAAIzC,YAAY,WAAW,KAAK;CAEhC,GAAA,sBAAA,cAACV,mBAAAA;EAA0BQ;EAAcC;EAAcK;;AAMnE"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["Box","noop","React","createContext","useContext","useState","useOnEscHandler","AppHeaderDropdownContext","firstItemRef","undefined","setFirstItemRef","handleClose","AppHeaderDropdownProvider","children","onKeyDown","Provider","value","useAppHeaderDropdownContext"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderDropdownProvider/index.tsx"],"sourcesContent":["import { Box } from '@codecademy/gamut';\nimport noop from 'lodash/fp/noop';\nimport React, {\n createContext,\n Dispatch,\n ReactNode,\n SetStateAction,\n useContext,\n useState,\n} from 'react';\n\nimport { AnchorRefItemType, useOnEscHandler } from '../../shared';\n\nexport interface AppHeaderDropdownContextType {\n firstItemRef?: AnchorRefItemType;\n setFirstItemRef: Dispatch<SetStateAction<AnchorRefItemType>> | undefined;\n handleClose: () => void;\n}\n\nexport const AppHeaderDropdownContext =\n createContext<AppHeaderDropdownContextType>({\n firstItemRef: undefined,\n setFirstItemRef: undefined,\n handleClose: () => noop,\n });\n\nexport const AppHeaderDropdownProvider: React.FC<{\n children: ReactNode;\n handleClose: () => void;\n}> = ({ children, handleClose }) => {\n const [firstItemRef, setFirstItemRef] = useState<\n AnchorRefItemType | undefined\n >(undefined);\n\n const onKeyDown = useOnEscHandler(handleClose);\n\n return (\n <AppHeaderDropdownContext.Provider\n value={{ firstItemRef, setFirstItemRef, handleClose }}\n >\n <Box onKeyDown={onKeyDown}>{children}</Box>\n </AppHeaderDropdownContext.Provider>\n );\n};\n\nexport const useAppHeaderDropdownContext = () =>\n useContext(AppHeaderDropdownContext);\n"],"mappings":";;;;;;;;;;AAmBA,MAAaO,2BACXJ,uCAA4C;CAC1CK,cAAcC;CACdC,iBAAiBD;CACjBE,mBAAmBV;AACrB,CAAA;AAEF,MAAaW,6BAGP,EAAEC,UAAUF,kBAAa;CAC7B,MAAM,CAACH,cAAcE,uCAEnBD,MAAAA;CAEF,MAAMK,YAAYR,oCAAgBK,WAAAA;CAElC,OACE,4BAAA,cAACJ,yBAAyBQ,UAAQ,EAChCC,OAAO;EAAER;EAAcE;EAAiBC;CAAY,KAEpD,4BAAA,cAACX,uBAAAA,EAAec,aAAYD,QAAAA,CAAAA;AAGlC;AAEA,MAAaI,0DACAV,wBAAAA"}
1
+ {"version":3,"file":"index.cjs","names":["Box","noop","React","createContext","useContext","useState","useOnEscHandler","AppHeaderDropdownContext","firstItemRef","undefined","setFirstItemRef","handleClose","AppHeaderDropdownProvider","children","onKeyDown","Provider","value","useAppHeaderDropdownContext"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderDropdownProvider/index.tsx"],"sourcesContent":["import { Box } from '@codecademy/gamut';\nimport noop from 'lodash/fp/noop';\nimport React, {\n createContext,\n Dispatch,\n ReactNode,\n SetStateAction,\n useContext,\n useState,\n} from 'react';\n\nimport { AnchorRefItemType, useOnEscHandler } from '../../shared';\n\nexport interface AppHeaderDropdownContextType {\n firstItemRef?: AnchorRefItemType;\n setFirstItemRef: Dispatch<SetStateAction<AnchorRefItemType>> | undefined;\n handleClose: () => void;\n}\n\nexport const AppHeaderDropdownContext =\n createContext<AppHeaderDropdownContextType>({\n firstItemRef: undefined,\n setFirstItemRef: undefined,\n handleClose: () => noop,\n });\n\nexport const AppHeaderDropdownProvider: React.FC<{\n children: ReactNode;\n handleClose: () => void;\n}> = ({ children, handleClose }) => {\n const [firstItemRef, setFirstItemRef] = useState<\n AnchorRefItemType | undefined\n >(undefined);\n\n const onKeyDown = useOnEscHandler(handleClose);\n\n return (\n <AppHeaderDropdownContext.Provider\n value={{ firstItemRef, setFirstItemRef, handleClose }}\n >\n <Box onKeyDown={onKeyDown}>{children}</Box>\n </AppHeaderDropdownContext.Provider>\n );\n};\n\nexport const useAppHeaderDropdownContext = () =>\n useContext(AppHeaderDropdownContext);\n"],"mappings":";;;;;;;;;;AAmBA,MAAaO,2BACXJ,uCAA4C;CAC1CK,cAAcC;CACdC,iBAAiBD;CACjBE,mBAAmBV;AACrB,CAAA;AAEF,MAAaW,6BAGP,EAAEC,UAAUF,kBAAa;CAC7B,MAAM,CAACH,cAAcE,uCAEnBD,MAAAA;CAEF,MAAMK,YAAYR,oCAAgBK,WAAAA;CAElC,OACE,4BAAA,cAACJ,yBAAyBQ,UAAQ,EAChCC,OAAO;EAAER;EAAcE;EAAiBC;CAAY,EAEpD,GAAA,4BAAA,cAACX,uBAAAA,EAAec,UAAYD,GAAAA,QAAAA,CAAAA;AAGlC;AAEA,MAAaI,0DACAV,wBAAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["Box","noop","React","createContext","useContext","useState","useOnEscHandler","AppHeaderDropdownContext","firstItemRef","undefined","setFirstItemRef","handleClose","AppHeaderDropdownProvider","children","onKeyDown","Provider","value","useAppHeaderDropdownContext"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderDropdownProvider/index.tsx"],"sourcesContent":["import { Box } from '@codecademy/gamut';\nimport noop from 'lodash/fp/noop';\nimport React, {\n createContext,\n Dispatch,\n ReactNode,\n SetStateAction,\n useContext,\n useState,\n} from 'react';\n\nimport { AnchorRefItemType, useOnEscHandler } from '../../shared';\n\nexport interface AppHeaderDropdownContextType {\n firstItemRef?: AnchorRefItemType;\n setFirstItemRef: Dispatch<SetStateAction<AnchorRefItemType>> | undefined;\n handleClose: () => void;\n}\n\nexport const AppHeaderDropdownContext =\n createContext<AppHeaderDropdownContextType>({\n firstItemRef: undefined,\n setFirstItemRef: undefined,\n handleClose: () => noop,\n });\n\nexport const AppHeaderDropdownProvider: React.FC<{\n children: ReactNode;\n handleClose: () => void;\n}> = ({ children, handleClose }) => {\n const [firstItemRef, setFirstItemRef] = useState<\n AnchorRefItemType | undefined\n >(undefined);\n\n const onKeyDown = useOnEscHandler(handleClose);\n\n return (\n <AppHeaderDropdownContext.Provider\n value={{ firstItemRef, setFirstItemRef, handleClose }}\n >\n <Box onKeyDown={onKeyDown}>{children}</Box>\n </AppHeaderDropdownContext.Provider>\n );\n};\n\nexport const useAppHeaderDropdownContext = () =>\n useContext(AppHeaderDropdownContext);\n"],"mappings":";;;;;;;AAmBA,MAAaO,2BACXJ,4BAA4C;CAC1CK,cAAcC;CACdC,iBAAiBD;CACjBE,mBAAmBV;AACrB,CAAA;AAEF,MAAaW,6BAGP,EAAEC,UAAUF,kBAAa;CAC7B,MAAM,CAACH,cAAcE,mBAAmBL,SAEtCI,MAAAA;CAEF,MAAMK,YAAYR,gBAAgBK,WAAAA;CAElC,OACE,oBAAA,cAACJ,yBAAyBQ,UAAQ,EAChCC,OAAO;EAAER;EAAcE;EAAiBC;CAAY,KAEpD,oBAAA,cAACX,KAAAA,EAAec,aAAYD,QAAAA,CAAAA;AAGlC;AAEA,MAAaI,oCACXb,WAAWG,wBAAAA"}
1
+ {"version":3,"file":"index.js","names":["Box","noop","React","createContext","useContext","useState","useOnEscHandler","AppHeaderDropdownContext","firstItemRef","undefined","setFirstItemRef","handleClose","AppHeaderDropdownProvider","children","onKeyDown","Provider","value","useAppHeaderDropdownContext"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderDropdownProvider/index.tsx"],"sourcesContent":["import { Box } from '@codecademy/gamut';\nimport noop from 'lodash/fp/noop';\nimport React, {\n createContext,\n Dispatch,\n ReactNode,\n SetStateAction,\n useContext,\n useState,\n} from 'react';\n\nimport { AnchorRefItemType, useOnEscHandler } from '../../shared';\n\nexport interface AppHeaderDropdownContextType {\n firstItemRef?: AnchorRefItemType;\n setFirstItemRef: Dispatch<SetStateAction<AnchorRefItemType>> | undefined;\n handleClose: () => void;\n}\n\nexport const AppHeaderDropdownContext =\n createContext<AppHeaderDropdownContextType>({\n firstItemRef: undefined,\n setFirstItemRef: undefined,\n handleClose: () => noop,\n });\n\nexport const AppHeaderDropdownProvider: React.FC<{\n children: ReactNode;\n handleClose: () => void;\n}> = ({ children, handleClose }) => {\n const [firstItemRef, setFirstItemRef] = useState<\n AnchorRefItemType | undefined\n >(undefined);\n\n const onKeyDown = useOnEscHandler(handleClose);\n\n return (\n <AppHeaderDropdownContext.Provider\n value={{ firstItemRef, setFirstItemRef, handleClose }}\n >\n <Box onKeyDown={onKeyDown}>{children}</Box>\n </AppHeaderDropdownContext.Provider>\n );\n};\n\nexport const useAppHeaderDropdownContext = () =>\n useContext(AppHeaderDropdownContext);\n"],"mappings":";;;;;;;AAmBA,MAAaO,2BACXJ,4BAA4C;CAC1CK,cAAcC;CACdC,iBAAiBD;CACjBE,mBAAmBV;AACrB,CAAA;AAEF,MAAaW,6BAGP,EAAEC,UAAUF,kBAAa;CAC7B,MAAM,CAACH,cAAcE,mBAAmBL,SAEtCI,MAAAA;CAEF,MAAMK,YAAYR,gBAAgBK,WAAAA;CAElC,OACE,oBAAA,cAACJ,yBAAyBQ,UAAQ,EAChCC,OAAO;EAAER;EAAcE;EAAiBC;CAAY,EAEpD,GAAA,oBAAA,cAACX,KAAAA,EAAec,UAAYD,GAAAA,QAAAA,CAAAA;AAGlC;AAEA,MAAaI,oCACXb,WAAWG,wBAAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["Box","Card","FlexBox","Text","GridDense","theme","styled","StyledCard","colors","primary","AppHeaderFeatureCard","item","isInteractive","px","py","borderRadius","border","borderColor","display","alignItems","flexDirection","height","gap","background","p","width","justifyContent","icon","variant","fontWeight","as","linkItem","text","description"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderFeatureCard/index.tsx"],"sourcesContent":["import { Box, Card, FlexBox, Text } from '@codecademy/gamut';\nimport { GridDense } from '@codecademy/gamut-patterns';\nimport { theme } from '@codecademy/gamut-styles';\nimport styled from '@emotion/styled';\n\nimport { AppHeaderCardItem } from '../AppHeaderResourcesDropdown/consts';\n\nconst StyledCard = styled(Card)`\n &:hover {\n color: ${({ theme }) => theme.colors.primary};\n border-color: ${({ theme }) => theme.colors.primary};\n }\n`;\n\nexport const AppHeaderFeatureCard = ({ item }: { item: AppHeaderCardItem }) => {\n return (\n <StyledCard\n isInteractive\n px={16}\n py={24}\n borderRadius=\"lg\"\n border={1}\n borderColor=\"border-tertiary\"\n display=\"flex\"\n alignItems=\"flex-start\"\n flexDirection=\"column\"\n height=\"100%\"\n >\n <FlexBox alignItems=\"center\" gap={8}>\n <FlexBox\n background={theme.colors['navy-200']}\n borderRadius=\"md\"\n p={4}\n height={32}\n width={32}\n alignItems=\"center\"\n justifyContent=\"center\"\n >\n {item.icon}\n </FlexBox>\n <Text variant=\"p-large\" fontWeight={700} as=\"h3\">\n {item.linkItem.text}\n </Text>\n </FlexBox>\n <Box width=\"100%\">\n <GridDense height={4} />\n </Box>\n <Text variant=\"p-small\">{item.description}</Text>\n </StyledCard>\n );\n};\n"],"mappings":";;;;;;;;AAOA,MAAMO,aAAaD,2CAAOL,wBAAAA;;;sBAEZ,EAAEI,YAAYA,MAAMG,OAAOC,SAAO,mBAC3B,EAAEJ,YAAYA,MAAMG,OAAOC,SAAO,MAAA,61EAAA;AAIvD,MAAaC,wBAAwB,EAAEC,WAAmC;CACxE,OACE,oBAAA,cAACJ,YAAAA;EACCK,eAAAA;EACAC,IAAI;EACJC,IAAI;EACJC,cAAa;EACbC,QAAQ;EACRC,aAAY;EACZC,SAAQ;EACRC,YAAW;EACXC,eAAc;EACdC,QAAO;IAEP,oBAAA,cAACnB,2BAAAA;EAAQiB,YAAW;EAASG,KAAK;IAChC,oBAAA,cAACpB,2BAAAA;EACCqB,YAAYlB,+BAAMG,OAAO;EACzBO,cAAa;EACbS,GAAG;EACHH,QAAQ;EACRI,OAAO;EACPN,YAAW;EACXO,gBAAe;IAEdf,KAAKgB,IAAI,GAEZ,oBAAA,cAACxB,wBAAAA;EAAKyB,SAAQ;EAAUC,YAAY;EAAKC,IAAG;IACzCnB,KAAKoB,SAASC,IAAI,CAAA,GAGvB,oBAAA,cAAChC,uBAAAA,EAAIyB,OAAM,UACT,oBAAA,cAACrB,sCAAAA,EAAUiB,QAAQ,OAErB,oBAAA,cAAClB,wBAAAA,EAAKyB,SAAQ,aAAWjB,KAAKsB,WAAW,CAAA;AAG/C"}
1
+ {"version":3,"file":"index.cjs","names":["Box","Card","FlexBox","Text","GridDense","theme","styled","StyledCard","colors","primary","AppHeaderFeatureCard","item","isInteractive","px","py","borderRadius","border","borderColor","display","alignItems","flexDirection","height","gap","background","p","width","justifyContent","icon","variant","fontWeight","as","linkItem","text","description"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderFeatureCard/index.tsx"],"sourcesContent":["import { Box, Card, FlexBox, Text } from '@codecademy/gamut';\nimport { GridDense } from '@codecademy/gamut-patterns';\nimport { theme } from '@codecademy/gamut-styles';\nimport styled from '@emotion/styled';\n\nimport { AppHeaderCardItem } from '../AppHeaderResourcesDropdown/consts';\n\nconst StyledCard = styled(Card)`\n &:hover {\n color: ${({ theme }) => theme.colors.primary};\n border-color: ${({ theme }) => theme.colors.primary};\n }\n`;\n\nexport const AppHeaderFeatureCard = ({ item }: { item: AppHeaderCardItem }) => {\n return (\n <StyledCard\n isInteractive\n px={16}\n py={24}\n borderRadius=\"lg\"\n border={1}\n borderColor=\"border-tertiary\"\n display=\"flex\"\n alignItems=\"flex-start\"\n flexDirection=\"column\"\n height=\"100%\"\n >\n <FlexBox alignItems=\"center\" gap={8}>\n <FlexBox\n background={theme.colors['navy-200']}\n borderRadius=\"md\"\n p={4}\n height={32}\n width={32}\n alignItems=\"center\"\n justifyContent=\"center\"\n >\n {item.icon}\n </FlexBox>\n <Text variant=\"p-large\" fontWeight={700} as=\"h3\">\n {item.linkItem.text}\n </Text>\n </FlexBox>\n <Box width=\"100%\">\n <GridDense height={4} />\n </Box>\n <Text variant=\"p-small\">{item.description}</Text>\n </StyledCard>\n );\n};\n"],"mappings":";;;;;;;;AAOA,MAAMO,aAAaD,2CAAOL,wBAAAA;;;AAEb,CAAA,CAAA,CAAA,mBAAC,EAAEI,YAAYA,MAAMG,OAAOC,SAAO,mBAC3B,EAAEJ,YAAYA,MAAMG,OAAOC,SAAO,MAAA,61EAAA;AAIvD,MAAaC,wBAAwB,EAAEC,WAAmC;CACxE,OACE,oBAAA,cAACJ,YAAAA;EACCK,eAAAA;EACAC,IAAI;EACJC,IAAI;EACJC,cAAa;EACbC,QAAQ;EACRC,aAAY;EACZC,SAAQ;EACRC,YAAW;EACXC,eAAc;EACdC,QAAO;CAEP,GAAA,oBAAA,cAACnB,2BAAAA;EAAQiB,YAAW;EAASG,KAAK;CAChC,GAAA,oBAAA,cAACpB,2BAAAA;EACCqB,YAAYlB,+BAAMG,OAAO;EACzBO,cAAa;EACbS,GAAG;EACHH,QAAQ;EACRI,OAAO;EACPN,YAAW;EACXO,gBAAe;CAEdf,GAAAA,KAAKgB,IAAI,GAEZ,oBAAA,cAACxB,wBAAAA;EAAKyB,SAAQ;EAAUC,YAAY;EAAKC,IAAG;CACzCnB,GAAAA,KAAKoB,SAASC,IAAI,CAAA,GAGvB,oBAAA,cAAChC,uBAAAA,EAAIyB,OAAM,OACT,GAAA,oBAAA,cAACrB,sCAAAA,EAAUiB,QAAQ,EAErB,CAAA,CAAA,GAAA,oBAAA,cAAClB,wBAAAA,EAAKyB,SAAQ,UAAWjB,GAAAA,KAAKsB,WAAW,CAAA;AAG/C"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["Box","Card","FlexBox","Text","GridDense","theme","styled","StyledCard","colors","primary","AppHeaderFeatureCard","item","isInteractive","px","py","borderRadius","border","borderColor","display","alignItems","flexDirection","height","gap","background","p","width","justifyContent","icon","variant","fontWeight","as","linkItem","text","description"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderFeatureCard/index.tsx"],"sourcesContent":["import { Box, Card, FlexBox, Text } from '@codecademy/gamut';\nimport { GridDense } from '@codecademy/gamut-patterns';\nimport { theme } from '@codecademy/gamut-styles';\nimport styled from '@emotion/styled';\n\nimport { AppHeaderCardItem } from '../AppHeaderResourcesDropdown/consts';\n\nconst StyledCard = styled(Card)`\n &:hover {\n color: ${({ theme }) => theme.colors.primary};\n border-color: ${({ theme }) => theme.colors.primary};\n }\n`;\n\nexport const AppHeaderFeatureCard = ({ item }: { item: AppHeaderCardItem }) => {\n return (\n <StyledCard\n isInteractive\n px={16}\n py={24}\n borderRadius=\"lg\"\n border={1}\n borderColor=\"border-tertiary\"\n display=\"flex\"\n alignItems=\"flex-start\"\n flexDirection=\"column\"\n height=\"100%\"\n >\n <FlexBox alignItems=\"center\" gap={8}>\n <FlexBox\n background={theme.colors['navy-200']}\n borderRadius=\"md\"\n p={4}\n height={32}\n width={32}\n alignItems=\"center\"\n justifyContent=\"center\"\n >\n {item.icon}\n </FlexBox>\n <Text variant=\"p-large\" fontWeight={700} as=\"h3\">\n {item.linkItem.text}\n </Text>\n </FlexBox>\n <Box width=\"100%\">\n <GridDense height={4} />\n </Box>\n <Text variant=\"p-small\">{item.description}</Text>\n </StyledCard>\n );\n};\n"],"mappings":";;;;;;AAOA,MAAMO,aAAaD,qBAAOL,MAAAA;;;sBAEZ,EAAEI,YAAYA,MAAMG,OAAOC,SAAO,mBAC3B,EAAEJ,YAAYA,MAAMG,OAAOC,SAAO,MAAA,61EAAA;AAIvD,MAAaC,wBAAwB,EAAEC,WAAmC;CACxE,OACE,oBAAA,cAACJ,YAAAA;EACCK,eAAAA;EACAC,IAAI;EACJC,IAAI;EACJC,cAAa;EACbC,QAAQ;EACRC,aAAY;EACZC,SAAQ;EACRC,YAAW;EACXC,eAAc;EACdC,QAAO;IAEP,oBAAA,cAACnB,SAAAA;EAAQiB,YAAW;EAASG,KAAK;IAChC,oBAAA,cAACpB,SAAAA;EACCqB,YAAYlB,MAAMG,OAAO;EACzBO,cAAa;EACbS,GAAG;EACHH,QAAQ;EACRI,OAAO;EACPN,YAAW;EACXO,gBAAe;IAEdf,KAAKgB,IAAI,GAEZ,oBAAA,cAACxB,MAAAA;EAAKyB,SAAQ;EAAUC,YAAY;EAAKC,IAAG;IACzCnB,KAAKoB,SAASC,IAAI,CAAA,GAGvB,oBAAA,cAAChC,KAAAA,EAAIyB,OAAM,UACT,oBAAA,cAACrB,WAAAA,EAAUiB,QAAQ,OAErB,oBAAA,cAAClB,MAAAA,EAAKyB,SAAQ,aAAWjB,KAAKsB,WAAW,CAAA;AAG/C"}
1
+ {"version":3,"file":"index.js","names":["Box","Card","FlexBox","Text","GridDense","theme","styled","StyledCard","colors","primary","AppHeaderFeatureCard","item","isInteractive","px","py","borderRadius","border","borderColor","display","alignItems","flexDirection","height","gap","background","p","width","justifyContent","icon","variant","fontWeight","as","linkItem","text","description"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderFeatureCard/index.tsx"],"sourcesContent":["import { Box, Card, FlexBox, Text } from '@codecademy/gamut';\nimport { GridDense } from '@codecademy/gamut-patterns';\nimport { theme } from '@codecademy/gamut-styles';\nimport styled from '@emotion/styled';\n\nimport { AppHeaderCardItem } from '../AppHeaderResourcesDropdown/consts';\n\nconst StyledCard = styled(Card)`\n &:hover {\n color: ${({ theme }) => theme.colors.primary};\n border-color: ${({ theme }) => theme.colors.primary};\n }\n`;\n\nexport const AppHeaderFeatureCard = ({ item }: { item: AppHeaderCardItem }) => {\n return (\n <StyledCard\n isInteractive\n px={16}\n py={24}\n borderRadius=\"lg\"\n border={1}\n borderColor=\"border-tertiary\"\n display=\"flex\"\n alignItems=\"flex-start\"\n flexDirection=\"column\"\n height=\"100%\"\n >\n <FlexBox alignItems=\"center\" gap={8}>\n <FlexBox\n background={theme.colors['navy-200']}\n borderRadius=\"md\"\n p={4}\n height={32}\n width={32}\n alignItems=\"center\"\n justifyContent=\"center\"\n >\n {item.icon}\n </FlexBox>\n <Text variant=\"p-large\" fontWeight={700} as=\"h3\">\n {item.linkItem.text}\n </Text>\n </FlexBox>\n <Box width=\"100%\">\n <GridDense height={4} />\n </Box>\n <Text variant=\"p-small\">{item.description}</Text>\n </StyledCard>\n );\n};\n"],"mappings":";;;;;;AAOA,MAAMO,aAAaD,qBAAOL,MAAAA;;;AAEb,CAAA,CAAA,CAAA,mBAAC,EAAEI,YAAYA,MAAMG,OAAOC,SAAO,mBAC3B,EAAEJ,YAAYA,MAAMG,OAAOC,SAAO,MAAA,61EAAA;AAIvD,MAAaC,wBAAwB,EAAEC,WAAmC;CACxE,OACE,oBAAA,cAACJ,YAAAA;EACCK,eAAAA;EACAC,IAAI;EACJC,IAAI;EACJC,cAAa;EACbC,QAAQ;EACRC,aAAY;EACZC,SAAQ;EACRC,YAAW;EACXC,eAAc;EACdC,QAAO;CAEP,GAAA,oBAAA,cAACnB,SAAAA;EAAQiB,YAAW;EAASG,KAAK;CAChC,GAAA,oBAAA,cAACpB,SAAAA;EACCqB,YAAYlB,MAAMG,OAAO;EACzBO,cAAa;EACbS,GAAG;EACHH,QAAQ;EACRI,OAAO;EACPN,YAAW;EACXO,gBAAe;CAEdf,GAAAA,KAAKgB,IAAI,GAEZ,oBAAA,cAACxB,MAAAA;EAAKyB,SAAQ;EAAUC,YAAY;EAAKC,IAAG;CACzCnB,GAAAA,KAAKoB,SAASC,IAAI,CAAA,GAGvB,oBAAA,cAAChC,KAAAA,EAAIyB,OAAM,OACT,GAAA,oBAAA,cAACrB,WAAAA,EAAUiB,QAAQ,EAErB,CAAA,CAAA,GAAA,oBAAA,cAAClB,MAAAA,EAAKyB,SAAQ,UAAWjB,GAAAA,KAAKsB,WAAW,CAAA;AAG/C"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["Anchor","MenuItem","MiniOpenIcon","css","styled","React","forwardRef","StyledAnchor","alignContent","alignItems","display","fontWeight","lineHeight","minWidth","textAlign","whiteSpace","StyledMenuItem","ResponsiveMiniOpenIcon","_","AppHeaderLink","action","item","mobile","isInDropdown","role","props","ref","Item","Icon","icon","aria-label","ariaLabel","text","data-testid","dataTestId","href","onClick","event","target","newTab","undefined","variant","py","mr","mb","size","aria-hidden","badge","ml"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderLink/index.tsx"],"sourcesContent":["import { Anchor, MenuItem } from '@codecademy/gamut';\nimport { MiniOpenIcon } from '@codecademy/gamut-icons';\nimport { css } from '@codecademy/gamut-styles';\nimport styled from '@emotion/styled';\nimport React, { ComponentProps, forwardRef } from 'react';\n\nimport { AppHeaderAction, AppHeaderLinkItem } from '../../shared';\n\nexport type AppHeaderLinkProps = ComponentProps<typeof Anchor> &\n AppHeaderAction & {\n isInDropdown?: boolean;\n item: AppHeaderLinkItem;\n mobile?: boolean;\n onKeyDown?: (event: React.KeyboardEvent) => void;\n role?: React.AriaRole;\n };\n\nconst StyledAnchor = styled(Anchor)(\n css({\n alignContent: 'center',\n alignItems: 'center',\n display: 'flex',\n fontWeight: 'normal',\n lineHeight: 'base',\n minWidth: '0',\n textAlign: 'left',\n whiteSpace: 'nowrap',\n })\n);\n\nconst StyledMenuItem = styled(MenuItem)(\n css({\n whiteSpace: 'nowrap',\n })\n);\n\nconst ResponsiveMiniOpenIcon = styled(MiniOpenIcon)(\n css({\n display: { _: 'block' },\n })\n);\n\nexport const AppHeaderLink = forwardRef<\n HTMLAnchorElement | HTMLButtonElement,\n AppHeaderLinkProps\n>(({ action, item, mobile, isInDropdown, role, ...props }, ref) => {\n const Item = isInDropdown ? StyledMenuItem : StyledAnchor;\n const Icon = item.icon;\n return (\n <Item\n aria-label={item.ariaLabel ? item.ariaLabel : item.text}\n data-testid={item.dataTestId}\n href={item.href}\n // @ts-expect-error - The onClick type for StyledMenuItem is pretty complicated, we are better off expecting an error here for now. Will refactor with new Header work: GM-1025\n onClick={(event: React.MouseEvent<HTMLElement>) => action(event, item)}\n target={item.newTab ? 'blank' : undefined}\n role={role}\n {...props}\n ref={ref}\n icon={Icon && !mobile && isInDropdown ? Icon : undefined}\n variant={!isInDropdown && 'interface'}\n py={mobile && !isInDropdown ? 16 : undefined}\n >\n {mobile && Icon && <Icon mr={16} mb={4} size={24} aria-hidden />}\n {item.text}\n {item.badge}\n {item.newTab && (\n <ResponsiveMiniOpenIcon ml={16} mb={4} size={16} aria-hidden />\n )}\n </Item>\n );\n});\n"],"mappings":";;;;;;;;;;AAiBA,MAAMO,eAAeH,2CAAOJ,0BAAAA;;;qCACtB;CACFQ,cAAc;CACdC,YAAY;CACZC,SAAS;CACTC,YAAY;CACZC,YAAY;CACZC,UAAU;CACVC,WAAW;CACXC,YAAY;AACd,CAAA,GAAA,i3GAAA;AAGF,MAAMC,iBAAiBZ,2CAAOH,4BAAAA;;;qCACxB,EACFc,YAAY,SACd,CAAA,GAAA,i3GAAA;AAGF,MAAME,yBAAyBb,2CAAOF,sCAAAA;;;qCAChC,EACFQ,SAAS,EAAEQ,GAAG,QAAQ,EACxB,CAAA,GAAA,i3GAAA;AAGF,MAAaC,gBAAgBb,qCAG1B,EAAEc,QAAQC,MAAMC,QAAQC,cAAcC,MAAM,GAAGC,SAASC,QAAAA;CACzD,MAAMC,OAAOJ,eAAeP,iBAAiBT;CAC7C,MAAMqB,OAAOP,KAAKQ;CAClB,OACE,4BAAA,cAACF,MAAAA;EACCG,cAAYT,KAAKU,YAAYV,KAAKU,YAAYV,KAAKW;EACnDC,eAAaZ,KAAKa;EAClBC,MAAMd,KAAKc;EAEXC,UAAUC,UAAyCjB,OAAOiB,OAAOhB,IAAAA;EACjEiB,QAAQjB,KAAKkB,SAAS,UAAUC;EAC1BhB;EACL,GAAGC;EACCC;EACLG,MAAMD,QAAQ,CAACN,UAAUC,eAAeK,OAAOY;EAC/CC,SAAS,CAAClB,gBAAgB;EAC1BmB,IAAIpB,UAAU,CAACC,eAAe,KAAKiB;IAElClB,UAAUM,QAAQ,4BAAA,cAACA,MAAAA;EAAKe,IAAI;EAAIC,IAAI;EAAGC,MAAM;EAAIC,eAAAA;KACjDzB,KAAKW,MACLX,KAAK0B,OACL1B,KAAKkB,UACJ,4BAAA,cAACtB,wBAAAA;EAAuB+B,IAAI;EAAIJ,IAAI;EAAGC,MAAM;EAAIC,eAAAA;;AAIzD,CAAA"}
1
+ {"version":3,"file":"index.cjs","names":["Anchor","MenuItem","MiniOpenIcon","css","styled","React","forwardRef","StyledAnchor","alignContent","alignItems","display","fontWeight","lineHeight","minWidth","textAlign","whiteSpace","StyledMenuItem","ResponsiveMiniOpenIcon","_","AppHeaderLink","action","item","mobile","isInDropdown","role","props","ref","Item","Icon","icon","aria-label","ariaLabel","text","data-testid","dataTestId","href","onClick","event","target","newTab","undefined","variant","py","mr","mb","size","aria-hidden","badge","ml"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderLink/index.tsx"],"sourcesContent":["import { Anchor, MenuItem } from '@codecademy/gamut';\nimport { MiniOpenIcon } from '@codecademy/gamut-icons';\nimport { css } from '@codecademy/gamut-styles';\nimport styled from '@emotion/styled';\nimport React, { ComponentProps, forwardRef } from 'react';\n\nimport { AppHeaderAction, AppHeaderLinkItem } from '../../shared';\n\nexport type AppHeaderLinkProps = ComponentProps<typeof Anchor> &\n AppHeaderAction & {\n isInDropdown?: boolean;\n item: AppHeaderLinkItem;\n mobile?: boolean;\n onKeyDown?: (event: React.KeyboardEvent) => void;\n role?: React.AriaRole;\n };\n\nconst StyledAnchor = styled(Anchor)(\n css({\n alignContent: 'center',\n alignItems: 'center',\n display: 'flex',\n fontWeight: 'normal',\n lineHeight: 'base',\n minWidth: '0',\n textAlign: 'left',\n whiteSpace: 'nowrap',\n })\n);\n\nconst StyledMenuItem = styled(MenuItem)(\n css({\n whiteSpace: 'nowrap',\n })\n);\n\nconst ResponsiveMiniOpenIcon = styled(MiniOpenIcon)(\n css({\n display: { _: 'block' },\n })\n);\n\nexport const AppHeaderLink = forwardRef<\n HTMLAnchorElement | HTMLButtonElement,\n AppHeaderLinkProps\n>(({ action, item, mobile, isInDropdown, role, ...props }, ref) => {\n const Item = isInDropdown ? StyledMenuItem : StyledAnchor;\n const Icon = item.icon;\n return (\n <Item\n aria-label={item.ariaLabel ? item.ariaLabel : item.text}\n data-testid={item.dataTestId}\n href={item.href}\n // @ts-expect-error - The onClick type for StyledMenuItem is pretty complicated, we are better off expecting an error here for now. Will refactor with new Header work: GM-1025\n onClick={(event: React.MouseEvent<HTMLElement>) => action(event, item)}\n target={item.newTab ? 'blank' : undefined}\n role={role}\n {...props}\n ref={ref}\n icon={Icon && !mobile && isInDropdown ? Icon : undefined}\n variant={!isInDropdown && 'interface'}\n py={mobile && !isInDropdown ? 16 : undefined}\n >\n {mobile && Icon && <Icon mr={16} mb={4} size={24} aria-hidden />}\n {item.text}\n {item.badge}\n {item.newTab && (\n <ResponsiveMiniOpenIcon ml={16} mb={4} size={16} aria-hidden />\n )}\n </Item>\n );\n});\n"],"mappings":";;;;;;;;;;AAiBA,MAAMO,eAAeH,2CAAOJ,0BAAAA;;;AAC1BG,CAAAA,CAAAA,mCAAI;CACFK,cAAc;CACdC,YAAY;CACZC,SAAS;CACTC,YAAY;CACZC,YAAY;CACZC,UAAU;CACVC,WAAW;CACXC,YAAY;AACd,CAAA,GAAA,i3GAAA;AAGF,MAAMC,iBAAiBZ,2CAAOH,4BAAAA;;;AAC5BE,CAAAA,CAAAA,mCAAI,EACFY,YAAY,SACd,CAAA,GAAA,i3GAAA;AAGF,MAAME,yBAAyBb,2CAAOF,sCAAAA;;;AACpCC,CAAAA,CAAAA,mCAAI,EACFO,SAAS,EAAEQ,GAAG,QAAQ,EACxB,CAAA,GAAA,i3GAAA;AAGF,MAAaC,gBAAgBb,qCAG1B,EAAEc,QAAQC,MAAMC,QAAQC,cAAcC,MAAM,GAAGC,SAASC,QAAAA;CACzD,MAAMC,OAAOJ,eAAeP,iBAAiBT;CAC7C,MAAMqB,OAAOP,KAAKQ;CAClB,OACE,4BAAA,cAACF,MAAAA;EACCG,cAAYT,KAAKU,YAAYV,KAAKU,YAAYV,KAAKW;EACnDC,eAAaZ,KAAKa;EAClBC,MAAMd,KAAKc;EAEXC,UAAUC,UAAyCjB,OAAOiB,OAAOhB,IAAAA;EACjEiB,QAAQjB,KAAKkB,SAAS,UAAUC;EAC1BhB;EACL,GAAGC;EACCC;EACLG,MAAMD,QAAQ,CAACN,UAAUC,eAAeK,OAAOY;EAC/CC,SAAS,CAAClB,gBAAgB;EAC1BmB,IAAIpB,UAAU,CAACC,eAAe,KAAKiB;CAElClB,GAAAA,UAAUM,QAAQ,4BAAA,cAACA,MAAAA;EAAKe,IAAI;EAAIC,IAAI;EAAGC,MAAM;EAAIC,eAAAA;CACjDzB,CAAAA,GAAAA,KAAKW,MACLX,KAAK0B,OACL1B,KAAKkB,UACJ,4BAAA,cAACtB,wBAAAA;EAAuB+B,IAAI;EAAIJ,IAAI;EAAGC,MAAM;EAAIC,eAAAA;;AAIzD,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import { AppHeaderAction, AppHeaderLinkItem } from "../../shared/types.cjs";
2
+ import "../../shared/index.cjs";
2
3
  import { Anchor } from "@codecademy/gamut";
3
4
  import React, { ComponentProps } from "react";
4
-
5
5
  //#region src/AppHeader/AppHeaderElements/AppHeaderLink/index.d.ts
6
6
  type AppHeaderLinkProps = ComponentProps<typeof Anchor> & AppHeaderAction & {
7
7
  isInDropdown?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderLink/index.tsx"],"mappings":";;;;;KAQY,kBAAA,GAAqB,cAAA,QAAsB,MAAA,IACrD,eAAA;EACE,YAAA;EACA,IAAA,EAAM,iBAAA;EACN,MAAA;EACA,SAAA,IAAa,KAAA,EAAO,KAAA,CAAM,aAAA;EAC1B,IAAA,GAAO,KAAA,CAAM,QAAA;AAAA;AAAA,cA4BJ,aAAA,EAAa,KAAA,CAAA,yBAAA,EAAA,IAAA,CAAA,IAAA,CAAA,OAAA,0CAAA,iBAAA,IAAA,IAAA;;;;;;;QA/BhB,iBAAA;;eAEO,KAAA,EAAO,KAAA,CAAM,aAAA;SACnB,KAAA,CAAM,QAAA;AAAA;;;;;;;;;;;;QAHP,iBAAA;;eAEO,KAAA,EAAO,KAAA,CAAM,aAAA;SACnB,KAAA,CAAM,QAAA;AAAA;;;;;;;;;;;;QAHP,iBAAA;;eAEO,KAAA,EAAO,KAAA,CAAM,aAAA;SACnB,KAAA,CAAM,QAAA;AAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderLink/index.tsx"],"mappings":";;;;;KAQY,qBAAqB,sBAAsB,UACrD;EACE;EACA,MAAM;EACN;EACA,aAAa,OAAO,MAAM;EAC1B,OAAO,MAAM;;cA4BJ,eAAa,MAAA,2BAAA,KAAA,KAAA,iDAAA,qBAAA;;;;;;EAhCP;EACT,MAAA;EACG;EACG,aAAC,OAAO,MAAM;EACnB,OAAA,MAAM;;;;;;;;;;;;EAJE;EACT,MAAA;EACG;EACG,aAAC,OAAO,MAAM;EACnB,OAAA,MAAM;;;;;;;;;;;;EAJE;EACT,MAAA;EACG;EACG,aAAC,OAAO,MAAM;EACnB,OAAA,MAAM;aAyDf,MAAA,cAAA,oBAAA"}
@@ -1,7 +1,7 @@
1
1
  import { AppHeaderAction, AppHeaderLinkItem } from "../../shared/types.js";
2
+ import "../../shared/index.js";
2
3
  import { Anchor } from "@codecademy/gamut";
3
4
  import React, { ComponentProps } from "react";
4
-
5
5
  //#region src/AppHeader/AppHeaderElements/AppHeaderLink/index.d.ts
6
6
  type AppHeaderLinkProps = ComponentProps<typeof Anchor> & AppHeaderAction & {
7
7
  isInDropdown?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderLink/index.tsx"],"mappings":";;;;;KAQY,kBAAA,GAAqB,cAAA,QAAsB,MAAA,IACrD,eAAA;EACE,YAAA;EACA,IAAA,EAAM,iBAAA;EACN,MAAA;EACA,SAAA,IAAa,KAAA,EAAO,KAAA,CAAM,aAAA;EAC1B,IAAA,GAAO,KAAA,CAAM,QAAA;AAAA;AAAA,cA4BJ,aAAA,EAAa,KAAA,CAAA,yBAAA,EAAA,IAAA,CAAA,IAAA,CAAA,OAAA,0CAAA,iBAAA,IAAA,IAAA;;;;;;;QA/BhB,iBAAA;;eAEO,KAAA,EAAO,KAAA,CAAM,aAAA;SACnB,KAAA,CAAM,QAAA;AAAA;;;;;;;;;;;;QAHP,iBAAA;;eAEO,KAAA,EAAO,KAAA,CAAM,aAAA;SACnB,KAAA,CAAM,QAAA;AAAA;;;;;;;;;;;;QAHP,iBAAA;;eAEO,KAAA,EAAO,KAAA,CAAM,aAAA;SACnB,KAAA,CAAM,QAAA;AAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderLink/index.tsx"],"mappings":";;;;;KAQY,qBAAqB,sBAAsB,UACrD;EACE;EACA,MAAM;EACN;EACA,aAAa,OAAO,MAAM;EAC1B,OAAO,MAAM;;cA4BJ,eAAa,MAAA,2BAAA,KAAA,KAAA,iDAAA,qBAAA;;;;;;EAhCP;EACT,MAAA;EACG;EACG,aAAC,OAAO,MAAM;EACnB,OAAA,MAAM;;;;;;;;;;;;EAJE;EACT,MAAA;EACG;EACG,aAAC,OAAO,MAAM;EACnB,OAAA,MAAM;;;;;;;;;;;;EAJE;EACT,MAAA;EACG;EACG,aAAC,OAAO,MAAM;EACnB,OAAA,MAAM;aAyDf,MAAA,cAAA,oBAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["Anchor","MenuItem","MiniOpenIcon","css","styled","React","forwardRef","StyledAnchor","alignContent","alignItems","display","fontWeight","lineHeight","minWidth","textAlign","whiteSpace","StyledMenuItem","ResponsiveMiniOpenIcon","_","AppHeaderLink","action","item","mobile","isInDropdown","role","props","ref","Item","Icon","icon","aria-label","ariaLabel","text","data-testid","dataTestId","href","onClick","event","target","newTab","undefined","variant","py","mr","mb","size","aria-hidden","badge","ml"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderLink/index.tsx"],"sourcesContent":["import { Anchor, MenuItem } from '@codecademy/gamut';\nimport { MiniOpenIcon } from '@codecademy/gamut-icons';\nimport { css } from '@codecademy/gamut-styles';\nimport styled from '@emotion/styled';\nimport React, { ComponentProps, forwardRef } from 'react';\n\nimport { AppHeaderAction, AppHeaderLinkItem } from '../../shared';\n\nexport type AppHeaderLinkProps = ComponentProps<typeof Anchor> &\n AppHeaderAction & {\n isInDropdown?: boolean;\n item: AppHeaderLinkItem;\n mobile?: boolean;\n onKeyDown?: (event: React.KeyboardEvent) => void;\n role?: React.AriaRole;\n };\n\nconst StyledAnchor = styled(Anchor)(\n css({\n alignContent: 'center',\n alignItems: 'center',\n display: 'flex',\n fontWeight: 'normal',\n lineHeight: 'base',\n minWidth: '0',\n textAlign: 'left',\n whiteSpace: 'nowrap',\n })\n);\n\nconst StyledMenuItem = styled(MenuItem)(\n css({\n whiteSpace: 'nowrap',\n })\n);\n\nconst ResponsiveMiniOpenIcon = styled(MiniOpenIcon)(\n css({\n display: { _: 'block' },\n })\n);\n\nexport const AppHeaderLink = forwardRef<\n HTMLAnchorElement | HTMLButtonElement,\n AppHeaderLinkProps\n>(({ action, item, mobile, isInDropdown, role, ...props }, ref) => {\n const Item = isInDropdown ? StyledMenuItem : StyledAnchor;\n const Icon = item.icon;\n return (\n <Item\n aria-label={item.ariaLabel ? item.ariaLabel : item.text}\n data-testid={item.dataTestId}\n href={item.href}\n // @ts-expect-error - The onClick type for StyledMenuItem is pretty complicated, we are better off expecting an error here for now. Will refactor with new Header work: GM-1025\n onClick={(event: React.MouseEvent<HTMLElement>) => action(event, item)}\n target={item.newTab ? 'blank' : undefined}\n role={role}\n {...props}\n ref={ref}\n icon={Icon && !mobile && isInDropdown ? Icon : undefined}\n variant={!isInDropdown && 'interface'}\n py={mobile && !isInDropdown ? 16 : undefined}\n >\n {mobile && Icon && <Icon mr={16} mb={4} size={24} aria-hidden />}\n {item.text}\n {item.badge}\n {item.newTab && (\n <ResponsiveMiniOpenIcon ml={16} mb={4} size={16} aria-hidden />\n )}\n </Item>\n );\n});\n"],"mappings":";;;;;;;AAiBA,MAAMO,eAAeH,qBAAOJ,QAAAA;;;GAC1BG,IAAI;CACFK,cAAc;CACdC,YAAY;CACZC,SAAS;CACTC,YAAY;CACZC,YAAY;CACZC,UAAU;CACVC,WAAW;CACXC,YAAY;AACd,CAAA,GAAA,i3GAAA;AAGF,MAAMC,iBAAiBZ,qBAAOH,UAAAA;;;GAC5BE,IAAI,EACFY,YAAY,SACd,CAAA,GAAA,i3GAAA;AAGF,MAAME,yBAAyBb,qBAAOF,cAAAA;;;GACpCC,IAAI,EACFO,SAAS,EAAEQ,GAAG,QAAQ,EACxB,CAAA,GAAA,i3GAAA;AAGF,MAAaC,gBAAgBb,0BAG1B,EAAEc,QAAQC,MAAMC,QAAQC,cAAcC,MAAM,GAAGC,SAASC,QAAAA;CACzD,MAAMC,OAAOJ,eAAeP,iBAAiBT;CAC7C,MAAMqB,OAAOP,KAAKQ;CAClB,OACE,oBAAA,cAACF,MAAAA;EACCG,cAAYT,KAAKU,YAAYV,KAAKU,YAAYV,KAAKW;EACnDC,eAAaZ,KAAKa;EAClBC,MAAMd,KAAKc;EAEXC,UAAUC,UAAyCjB,OAAOiB,OAAOhB,IAAAA;EACjEiB,QAAQjB,KAAKkB,SAAS,UAAUC;EAC1BhB;EACL,GAAGC;EACCC;EACLG,MAAMD,QAAQ,CAACN,UAAUC,eAAeK,OAAOY;EAC/CC,SAAS,CAAClB,gBAAgB;EAC1BmB,IAAIpB,UAAU,CAACC,eAAe,KAAKiB;IAElClB,UAAUM,QAAQ,oBAAA,cAACA,MAAAA;EAAKe,IAAI;EAAIC,IAAI;EAAGC,MAAM;EAAIC,eAAAA;KACjDzB,KAAKW,MACLX,KAAK0B,OACL1B,KAAKkB,UACJ,oBAAA,cAACtB,wBAAAA;EAAuB+B,IAAI;EAAIJ,IAAI;EAAGC,MAAM;EAAIC,eAAAA;;AAIzD,CAAA"}
1
+ {"version":3,"file":"index.js","names":["Anchor","MenuItem","MiniOpenIcon","css","styled","React","forwardRef","StyledAnchor","alignContent","alignItems","display","fontWeight","lineHeight","minWidth","textAlign","whiteSpace","StyledMenuItem","ResponsiveMiniOpenIcon","_","AppHeaderLink","action","item","mobile","isInDropdown","role","props","ref","Item","Icon","icon","aria-label","ariaLabel","text","data-testid","dataTestId","href","onClick","event","target","newTab","undefined","variant","py","mr","mb","size","aria-hidden","badge","ml"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderLink/index.tsx"],"sourcesContent":["import { Anchor, MenuItem } from '@codecademy/gamut';\nimport { MiniOpenIcon } from '@codecademy/gamut-icons';\nimport { css } from '@codecademy/gamut-styles';\nimport styled from '@emotion/styled';\nimport React, { ComponentProps, forwardRef } from 'react';\n\nimport { AppHeaderAction, AppHeaderLinkItem } from '../../shared';\n\nexport type AppHeaderLinkProps = ComponentProps<typeof Anchor> &\n AppHeaderAction & {\n isInDropdown?: boolean;\n item: AppHeaderLinkItem;\n mobile?: boolean;\n onKeyDown?: (event: React.KeyboardEvent) => void;\n role?: React.AriaRole;\n };\n\nconst StyledAnchor = styled(Anchor)(\n css({\n alignContent: 'center',\n alignItems: 'center',\n display: 'flex',\n fontWeight: 'normal',\n lineHeight: 'base',\n minWidth: '0',\n textAlign: 'left',\n whiteSpace: 'nowrap',\n })\n);\n\nconst StyledMenuItem = styled(MenuItem)(\n css({\n whiteSpace: 'nowrap',\n })\n);\n\nconst ResponsiveMiniOpenIcon = styled(MiniOpenIcon)(\n css({\n display: { _: 'block' },\n })\n);\n\nexport const AppHeaderLink = forwardRef<\n HTMLAnchorElement | HTMLButtonElement,\n AppHeaderLinkProps\n>(({ action, item, mobile, isInDropdown, role, ...props }, ref) => {\n const Item = isInDropdown ? StyledMenuItem : StyledAnchor;\n const Icon = item.icon;\n return (\n <Item\n aria-label={item.ariaLabel ? item.ariaLabel : item.text}\n data-testid={item.dataTestId}\n href={item.href}\n // @ts-expect-error - The onClick type for StyledMenuItem is pretty complicated, we are better off expecting an error here for now. Will refactor with new Header work: GM-1025\n onClick={(event: React.MouseEvent<HTMLElement>) => action(event, item)}\n target={item.newTab ? 'blank' : undefined}\n role={role}\n {...props}\n ref={ref}\n icon={Icon && !mobile && isInDropdown ? Icon : undefined}\n variant={!isInDropdown && 'interface'}\n py={mobile && !isInDropdown ? 16 : undefined}\n >\n {mobile && Icon && <Icon mr={16} mb={4} size={24} aria-hidden />}\n {item.text}\n {item.badge}\n {item.newTab && (\n <ResponsiveMiniOpenIcon ml={16} mb={4} size={16} aria-hidden />\n )}\n </Item>\n );\n});\n"],"mappings":";;;;;;;AAiBA,MAAMO,eAAeH,qBAAOJ,QAAAA;;;AAC1BG,CAAAA,CAAAA,CAAAA,IAAI;CACFK,cAAc;CACdC,YAAY;CACZC,SAAS;CACTC,YAAY;CACZC,YAAY;CACZC,UAAU;CACVC,WAAW;CACXC,YAAY;AACd,CAAA,GAAA,i3GAAA;AAGF,MAAMC,iBAAiBZ,qBAAOH,UAAAA;;;AAC5BE,CAAAA,CAAAA,CAAAA,IAAI,EACFY,YAAY,SACd,CAAA,GAAA,i3GAAA;AAGF,MAAME,yBAAyBb,qBAAOF,cAAAA;;;AACpCC,CAAAA,CAAAA,CAAAA,IAAI,EACFO,SAAS,EAAEQ,GAAG,QAAQ,EACxB,CAAA,GAAA,i3GAAA;AAGF,MAAaC,gBAAgBb,0BAG1B,EAAEc,QAAQC,MAAMC,QAAQC,cAAcC,MAAM,GAAGC,SAASC,QAAAA;CACzD,MAAMC,OAAOJ,eAAeP,iBAAiBT;CAC7C,MAAMqB,OAAOP,KAAKQ;CAClB,OACE,oBAAA,cAACF,MAAAA;EACCG,cAAYT,KAAKU,YAAYV,KAAKU,YAAYV,KAAKW;EACnDC,eAAaZ,KAAKa;EAClBC,MAAMd,KAAKc;EAEXC,UAAUC,UAAyCjB,OAAOiB,OAAOhB,IAAAA;EACjEiB,QAAQjB,KAAKkB,SAAS,UAAUC;EAC1BhB;EACL,GAAGC;EACCC;EACLG,MAAMD,QAAQ,CAACN,UAAUC,eAAeK,OAAOY;EAC/CC,SAAS,CAAClB,gBAAgB;EAC1BmB,IAAIpB,UAAU,CAACC,eAAe,KAAKiB;CAElClB,GAAAA,UAAUM,QAAQ,oBAAA,cAACA,MAAAA;EAAKe,IAAI;EAAIC,IAAI;EAAGC,MAAM;EAAIC,eAAAA;CACjDzB,CAAAA,GAAAA,KAAKW,MACLX,KAAK0B,OACL1B,KAAKkB,UACJ,oBAAA,cAACtB,wBAAAA;EAAuB+B,IAAI;EAAIJ,IAAI;EAAGC,MAAM;EAAIC,eAAAA;;AAIzD,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"elements.cjs","names":["css","theme","styled","AppHeaderLink","StyledAppHeaderLink","display","position","pl","content","width","left","_","lg","borderRadius","transition","pointerEvents","zIndex","backgroundColor","colors","color"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderLinkSections/elements.tsx"],"sourcesContent":["import { css, theme } from '@codecademy/gamut-styles';\nimport styled from '@emotion/styled';\n\nimport { AppHeaderLink } from '../AppHeaderLink';\n\nexport const StyledAppHeaderLink = styled(AppHeaderLink)(\n css({\n display: 'flex',\n position: 'relative',\n '@media (max-width: 1199px)': {\n pl: 0,\n },\n '&::before': {\n content: '\"\"',\n position: 'absolute',\n width: 'calc(100% - 24px)',\n left: { _: 0, lg: 12 },\n borderRadius: 'lg',\n transition: 'background-color 0.15s ease',\n pointerEvents: 'none',\n zIndex: -1,\n },\n '&:hover::before, &:focus-visible::before': {\n backgroundColor: theme.colors['navy-100'],\n },\n '&:hover, &:focus-visible, &:active': {\n color: 'hyper-400',\n borderRadius: 'lg',\n },\n '&:active::before': {\n backgroundColor: theme.colors['navy-200'],\n },\n })\n);\n"],"mappings":";;;;;;;AAKA,MAAaI,sBAAsBF,2CAAOC,6BAAAA;;;qCACpC;CACFE,SAAS;CACTC,UAAU;CACV,8BAA8B,EAC5BC,IAAI,EACN;CACA,aAAa;EACXC,SAAS;EACTF,UAAU;EACVG,OAAO;EACPC,MAAM;GAAEC,GAAG;GAAGC,IAAI;EAAG;EACrBC,cAAc;EACdC,YAAY;EACZC,eAAe;EACfC,QAAQ;CACV;CACA,4CAA4C,EAC1CC,iBAAiBhB,+BAAMiB,OAAO,YAChC;CACA,sCAAsC;EACpCC,OAAO;EACPN,cAAc;CAChB;CACA,oBAAoB,EAClBI,iBAAiBhB,+BAAMiB,OAAO,YAChC;AACF,CAAA,GAAA,6pDAAA"}
1
+ {"version":3,"file":"elements.cjs","names":["css","theme","styled","AppHeaderLink","StyledAppHeaderLink","display","position","pl","content","width","left","_","lg","borderRadius","transition","pointerEvents","zIndex","backgroundColor","colors","color"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderLinkSections/elements.tsx"],"sourcesContent":["import { css, theme } from '@codecademy/gamut-styles';\nimport styled from '@emotion/styled';\n\nimport { AppHeaderLink } from '../AppHeaderLink';\n\nexport const StyledAppHeaderLink = styled(AppHeaderLink)(\n css({\n display: 'flex',\n position: 'relative',\n '@media (max-width: 1199px)': {\n pl: 0,\n },\n '&::before': {\n content: '\"\"',\n position: 'absolute',\n width: 'calc(100% - 24px)',\n left: { _: 0, lg: 12 },\n borderRadius: 'lg',\n transition: 'background-color 0.15s ease',\n pointerEvents: 'none',\n zIndex: -1,\n },\n '&:hover::before, &:focus-visible::before': {\n backgroundColor: theme.colors['navy-100'],\n },\n '&:hover, &:focus-visible, &:active': {\n color: 'hyper-400',\n borderRadius: 'lg',\n },\n '&:active::before': {\n backgroundColor: theme.colors['navy-200'],\n },\n })\n);\n"],"mappings":";;;;;;;AAKA,MAAaI,sBAAsBF,2CAAOC,6BAAAA;;;AACxCH,CAAAA,CAAAA,mCAAI;CACFK,SAAS;CACTC,UAAU;CACV,8BAA8B,EAC5BC,IAAI,EACN;CACA,aAAa;EACXC,SAAS;EACTF,UAAU;EACVG,OAAO;EACPC,MAAM;GAAEC,GAAG;GAAGC,IAAI;EAAG;EACrBC,cAAc;EACdC,YAAY;EACZC,eAAe;EACfC,QAAQ;CACV;CACA,4CAA4C,EAC1CC,iBAAiBhB,+BAAMiB,OAAO,YAChC;CACA,sCAAsC;EACpCC,OAAO;EACPN,cAAc;CAChB;CACA,oBAAoB,EAClBI,iBAAiBhB,+BAAMiB,OAAO,YAChC;AACF,CAAA,GAAA,6pDAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"elements.js","names":["css","theme","styled","AppHeaderLink","StyledAppHeaderLink","display","position","pl","content","width","left","_","lg","borderRadius","transition","pointerEvents","zIndex","backgroundColor","colors","color"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderLinkSections/elements.tsx"],"sourcesContent":["import { css, theme } from '@codecademy/gamut-styles';\nimport styled from '@emotion/styled';\n\nimport { AppHeaderLink } from '../AppHeaderLink';\n\nexport const StyledAppHeaderLink = styled(AppHeaderLink)(\n css({\n display: 'flex',\n position: 'relative',\n '@media (max-width: 1199px)': {\n pl: 0,\n },\n '&::before': {\n content: '\"\"',\n position: 'absolute',\n width: 'calc(100% - 24px)',\n left: { _: 0, lg: 12 },\n borderRadius: 'lg',\n transition: 'background-color 0.15s ease',\n pointerEvents: 'none',\n zIndex: -1,\n },\n '&:hover::before, &:focus-visible::before': {\n backgroundColor: theme.colors['navy-100'],\n },\n '&:hover, &:focus-visible, &:active': {\n color: 'hyper-400',\n borderRadius: 'lg',\n },\n '&:active::before': {\n backgroundColor: theme.colors['navy-200'],\n },\n })\n);\n"],"mappings":";;;;;AAKA,MAAaI,sBAAsBF,qBAAOC,eAAAA;;;GACxCH,IAAI;CACFK,SAAS;CACTC,UAAU;CACV,8BAA8B,EAC5BC,IAAI,EACN;CACA,aAAa;EACXC,SAAS;EACTF,UAAU;EACVG,OAAO;EACPC,MAAM;GAAEC,GAAG;GAAGC,IAAI;EAAG;EACrBC,cAAc;EACdC,YAAY;EACZC,eAAe;EACfC,QAAQ;CACV;CACA,4CAA4C,EAC1CC,iBAAiBhB,MAAMiB,OAAO,YAChC;CACA,sCAAsC;EACpCC,OAAO;EACPN,cAAc;CAChB;CACA,oBAAoB,EAClBI,iBAAiBhB,MAAMiB,OAAO,YAChC;AACF,CAAA,GAAA,6pDAAA"}
1
+ {"version":3,"file":"elements.js","names":["css","theme","styled","AppHeaderLink","StyledAppHeaderLink","display","position","pl","content","width","left","_","lg","borderRadius","transition","pointerEvents","zIndex","backgroundColor","colors","color"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderLinkSections/elements.tsx"],"sourcesContent":["import { css, theme } from '@codecademy/gamut-styles';\nimport styled from '@emotion/styled';\n\nimport { AppHeaderLink } from '../AppHeaderLink';\n\nexport const StyledAppHeaderLink = styled(AppHeaderLink)(\n css({\n display: 'flex',\n position: 'relative',\n '@media (max-width: 1199px)': {\n pl: 0,\n },\n '&::before': {\n content: '\"\"',\n position: 'absolute',\n width: 'calc(100% - 24px)',\n left: { _: 0, lg: 12 },\n borderRadius: 'lg',\n transition: 'background-color 0.15s ease',\n pointerEvents: 'none',\n zIndex: -1,\n },\n '&:hover::before, &:focus-visible::before': {\n backgroundColor: theme.colors['navy-100'],\n },\n '&:hover, &:focus-visible, &:active': {\n color: 'hyper-400',\n borderRadius: 'lg',\n },\n '&:active::before': {\n backgroundColor: theme.colors['navy-200'],\n },\n })\n);\n"],"mappings":";;;;;AAKA,MAAaI,sBAAsBF,qBAAOC,eAAAA;;;AACxCH,CAAAA,CAAAA,CAAAA,IAAI;CACFK,SAAS;CACTC,UAAU;CACV,8BAA8B,EAC5BC,IAAI,EACN;CACA,aAAa;EACXC,SAAS;EACTF,UAAU;EACVG,OAAO;EACPC,MAAM;GAAEC,GAAG;GAAGC,IAAI;EAAG;EACrBC,cAAc;EACdC,YAAY;EACZC,eAAe;EACfC,QAAQ;CACV;CACA,4CAA4C,EAC1CC,iBAAiBhB,MAAMiB,OAAO,YAChC;CACA,sCAAsC;EACpCC,OAAO;EACPN,cAAc;CAChB;CACA,oBAAoB,EAClBI,iBAAiBhB,MAAMiB,OAAO,YAChC;AACF,CAAA,GAAA,6pDAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["MenuSeparator","React","useEffect","useRef","useAppHeaderMenuContext","StyledAppHeaderLink","LinkComponent","action","link","mobile","isOpen","role","showLineBreak","menuItems","setMenuItems","ref","current","add","clear","item","tabIndex","isInDropdown","AppHeaderLinkSections","type","popover","map","linkSection","sectionIndex","linkIndex","key","id"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.tsx"],"sourcesContent":["import { MenuSeparator } from '@codecademy/gamut';\nimport * as React from 'react';\nimport { useEffect, useRef } from 'react';\n\nimport {\n AppHeaderAction,\n AppHeaderDropdownItem,\n AppHeaderLinkItem,\n} from '../../shared';\nimport { useAppHeaderMenuContext } from '../AppHeaderMenuProvider';\nimport { StyledAppHeaderLink } from './elements';\n\nexport type AppHeaderLinkSectionsProps = AppHeaderAction & {\n item: AppHeaderDropdownItem;\n isOpen?: boolean;\n mobile?: boolean;\n};\n\ntype LinkComponentProps = AppHeaderAction & {\n isOpen?: boolean;\n role?: string;\n link: AppHeaderLinkItem;\n //* This is what renders the MenuSeparator component for sectioned dropdowns */\n showLineBreak?: boolean;\n mobile?: boolean;\n};\n\nconst LinkComponent: React.FC<LinkComponentProps> = ({\n action,\n link,\n mobile,\n isOpen,\n role,\n showLineBreak = false,\n}) => {\n const { menuItems, setMenuItems } = useAppHeaderMenuContext();\n\n const ref = useRef<HTMLAnchorElement>(null);\n\n useEffect(() => {\n if (setMenuItems && ref?.current) {\n setMenuItems(menuItems.add(ref.current));\n }\n return () => menuItems.clear();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n return (\n <>\n {showLineBreak && <MenuSeparator />}\n <StyledAppHeaderLink\n ref={ref}\n action={action}\n item={link}\n mobile={mobile}\n role={role}\n tabIndex={isOpen || mobile ? 0 : -1}\n isInDropdown\n />\n </>\n );\n};\n\nexport const AppHeaderLinkSections: React.FC<AppHeaderLinkSectionsProps> = ({\n action,\n item,\n isOpen,\n mobile,\n}) => {\n return (\n <>\n {item.type === 'profile-dropdown'\n ? item.popover.map((linkSection: AppHeaderLinkItem[], sectionIndex) =>\n linkSection.map((link: AppHeaderLinkItem, linkIndex) => (\n <LinkComponent\n key={link.id}\n action={action}\n link={link}\n mobile={mobile}\n isOpen={isOpen}\n role=\"menuitem\"\n showLineBreak={sectionIndex !== 0 && linkIndex === 0}\n />\n ))\n )\n : item.popover.map((link: AppHeaderLinkItem) => (\n <LinkComponent\n key={link.id}\n action={action}\n link={link}\n mobile={mobile}\n isOpen={isOpen}\n />\n ))}\n </>\n );\n};\n"],"mappings":";;;;;;;;AA2BA,MAAMM,iBAA+C,EACnDC,QACAC,MACAC,QACAC,QACAC,MACAC,gBAAgB,YACjB;CACC,MAAM,EAAEC,WAAWC,iBAAiBV,sCAAAA;CAEpC,MAAMW,wBAAgC,IAAA;CAEtCb,2BAAU;EACR,IAAIY,gBAAgBC,KAAKC,SACvBF,aAAaD,UAAUI,IAAIF,IAAIC,OAAO,CAAA;EAExC,aAAaH,UAAUK,MAAK;CAE9B,GAAG,CAAA,CAAE;CAEL,OACE,oBAAA,cAAA,MAAA,UAAA,MACGN,iBAAiB,oBAAA,cAACZ,iCAAAA,IAAAA,GACnB,oBAAA,cAACK,sCAAAA;EACMU;EACGR;EACRY,MAAMX;EACEC;EACFE;EACNS,UAAUV,UAAUD,SAAS,IAAI;EACjCY,cAAAA;;AAIR;AAEA,MAAaC,yBAA+D,EAC1Ef,QACAY,MACAT,QACAD,aACD;CACC,OACE,oBAAA,cAAA,MAAA,UAAA,MACGU,KAAKI,SAAS,qBACXJ,KAAKK,QAAQC,KAAKC,aAAkCC,iBAClDD,YAAYD,KAAKjB,MAAyBoB,cACxC,oBAAA,cAACtB,eAAAA;EACCuB,KAAKrB,KAAKsB;EACFvB;EACFC;EACEC;EACAC;EACRC,MAAK;EACLC,eAAee,iBAAiB,KAAKC,cAAc;QAIzDT,KAAKK,QAAQC,KAAKjB,SAChB,oBAAA,cAACF,eAAAA;EACCuB,KAAKrB,KAAKsB;EACFvB;EACFC;EACEC;EACAC;;AAKtB"}
1
+ {"version":3,"file":"index.cjs","names":["MenuSeparator","React","useEffect","useRef","useAppHeaderMenuContext","StyledAppHeaderLink","LinkComponent","action","link","mobile","isOpen","role","showLineBreak","menuItems","setMenuItems","ref","current","add","clear","item","tabIndex","isInDropdown","AppHeaderLinkSections","type","popover","map","linkSection","sectionIndex","linkIndex","key","id"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.tsx"],"sourcesContent":["import { MenuSeparator } from '@codecademy/gamut';\nimport * as React from 'react';\nimport { useEffect, useRef } from 'react';\n\nimport {\n AppHeaderAction,\n AppHeaderDropdownItem,\n AppHeaderLinkItem,\n} from '../../shared';\nimport { useAppHeaderMenuContext } from '../AppHeaderMenuProvider';\nimport { StyledAppHeaderLink } from './elements';\n\nexport type AppHeaderLinkSectionsProps = AppHeaderAction & {\n item: AppHeaderDropdownItem;\n isOpen?: boolean;\n mobile?: boolean;\n};\n\ntype LinkComponentProps = AppHeaderAction & {\n isOpen?: boolean;\n role?: string;\n link: AppHeaderLinkItem;\n //* This is what renders the MenuSeparator component for sectioned dropdowns */\n showLineBreak?: boolean;\n mobile?: boolean;\n};\n\nconst LinkComponent: React.FC<LinkComponentProps> = ({\n action,\n link,\n mobile,\n isOpen,\n role,\n showLineBreak = false,\n}) => {\n const { menuItems, setMenuItems } = useAppHeaderMenuContext();\n\n const ref = useRef<HTMLAnchorElement>(null);\n\n useEffect(() => {\n if (setMenuItems && ref?.current) {\n setMenuItems(menuItems.add(ref.current));\n }\n return () => menuItems.clear();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n return (\n <>\n {showLineBreak && <MenuSeparator />}\n <StyledAppHeaderLink\n ref={ref}\n action={action}\n item={link}\n mobile={mobile}\n role={role}\n tabIndex={isOpen || mobile ? 0 : -1}\n isInDropdown\n />\n </>\n );\n};\n\nexport const AppHeaderLinkSections: React.FC<AppHeaderLinkSectionsProps> = ({\n action,\n item,\n isOpen,\n mobile,\n}) => {\n return (\n <>\n {item.type === 'profile-dropdown'\n ? item.popover.map((linkSection: AppHeaderLinkItem[], sectionIndex) =>\n linkSection.map((link: AppHeaderLinkItem, linkIndex) => (\n <LinkComponent\n key={link.id}\n action={action}\n link={link}\n mobile={mobile}\n isOpen={isOpen}\n role=\"menuitem\"\n showLineBreak={sectionIndex !== 0 && linkIndex === 0}\n />\n ))\n )\n : item.popover.map((link: AppHeaderLinkItem) => (\n <LinkComponent\n key={link.id}\n action={action}\n link={link}\n mobile={mobile}\n isOpen={isOpen}\n />\n ))}\n </>\n );\n};\n"],"mappings":";;;;;;;;AA2BA,MAAMM,iBAA+C,EACnDC,QACAC,MACAC,QACAC,QACAC,MACAC,gBAAgB,YACjB;CACC,MAAM,EAAEC,WAAWC,iBAAiBV,sCAAAA;CAEpC,MAAMW,wBAAgC,IAAA;CAEtCb,2BAAU;EACR,IAAIY,gBAAgBC,KAAKC,SACvBF,aAAaD,UAAUI,IAAIF,IAAIC,OAAO,CAAA;EAExC,aAAaH,UAAUK,MAAK;CAE9B,GAAG,CAAA,CAAE;CAEL,OACE,oBAAA,cAAA,MAAA,UAAA,MACGN,iBAAiB,oBAAA,cAACZ,iCAAAA,IAAAA,GACnB,oBAAA,cAACK,sCAAAA;EACMU;EACGR;EACRY,MAAMX;EACEC;EACFE;EACNS,UAAUV,UAAUD,SAAS,IAAI;EACjCY,cAAAA;;AAIR;AAEA,MAAaC,yBAA+D,EAC1Ef,QACAY,MACAT,QACAD,aACD;CACC,OACE,oBAAA,cAAA,MAAA,UAAA,MACGU,KAAKI,SAAS,qBACXJ,KAAKK,QAAQC,KAAKC,aAAkCC,iBAClDD,YAAYD,KAAKjB,MAAyBoB,cACxC,oBAAA,cAACtB,eAAAA;EACCuB,KAAKrB,KAAKsB;EACFvB;EACFC;EACEC;EACAC;EACRC,MAAK;EACLC,eAAee,iBAAiB,KAAKC,cAAc;CAIzDT,CAAAA,CAAAA,CAAAA,IAAAA,KAAKK,QAAQC,KAAKjB,SAChB,oBAAA,cAACF,eAAAA;EACCuB,KAAKrB,KAAKsB;EACFvB;EACFC;EACEC;EACAC;;AAKtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["MenuSeparator","React","useEffect","useRef","useAppHeaderMenuContext","StyledAppHeaderLink","LinkComponent","action","link","mobile","isOpen","role","showLineBreak","menuItems","setMenuItems","ref","current","add","clear","item","tabIndex","isInDropdown","AppHeaderLinkSections","type","popover","map","linkSection","sectionIndex","linkIndex","key","id"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.tsx"],"sourcesContent":["import { MenuSeparator } from '@codecademy/gamut';\nimport * as React from 'react';\nimport { useEffect, useRef } from 'react';\n\nimport {\n AppHeaderAction,\n AppHeaderDropdownItem,\n AppHeaderLinkItem,\n} from '../../shared';\nimport { useAppHeaderMenuContext } from '../AppHeaderMenuProvider';\nimport { StyledAppHeaderLink } from './elements';\n\nexport type AppHeaderLinkSectionsProps = AppHeaderAction & {\n item: AppHeaderDropdownItem;\n isOpen?: boolean;\n mobile?: boolean;\n};\n\ntype LinkComponentProps = AppHeaderAction & {\n isOpen?: boolean;\n role?: string;\n link: AppHeaderLinkItem;\n //* This is what renders the MenuSeparator component for sectioned dropdowns */\n showLineBreak?: boolean;\n mobile?: boolean;\n};\n\nconst LinkComponent: React.FC<LinkComponentProps> = ({\n action,\n link,\n mobile,\n isOpen,\n role,\n showLineBreak = false,\n}) => {\n const { menuItems, setMenuItems } = useAppHeaderMenuContext();\n\n const ref = useRef<HTMLAnchorElement>(null);\n\n useEffect(() => {\n if (setMenuItems && ref?.current) {\n setMenuItems(menuItems.add(ref.current));\n }\n return () => menuItems.clear();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n return (\n <>\n {showLineBreak && <MenuSeparator />}\n <StyledAppHeaderLink\n ref={ref}\n action={action}\n item={link}\n mobile={mobile}\n role={role}\n tabIndex={isOpen || mobile ? 0 : -1}\n isInDropdown\n />\n </>\n );\n};\n\nexport const AppHeaderLinkSections: React.FC<AppHeaderLinkSectionsProps> = ({\n action,\n item,\n isOpen,\n mobile,\n}) => {\n return (\n <>\n {item.type === 'profile-dropdown'\n ? item.popover.map((linkSection: AppHeaderLinkItem[], sectionIndex) =>\n linkSection.map((link: AppHeaderLinkItem, linkIndex) => (\n <LinkComponent\n key={link.id}\n action={action}\n link={link}\n mobile={mobile}\n isOpen={isOpen}\n role=\"menuitem\"\n showLineBreak={sectionIndex !== 0 && linkIndex === 0}\n />\n ))\n )\n : item.popover.map((link: AppHeaderLinkItem) => (\n <LinkComponent\n key={link.id}\n action={action}\n link={link}\n mobile={mobile}\n isOpen={isOpen}\n />\n ))}\n </>\n );\n};\n"],"mappings":";;;;;;;AA2BA,MAAMM,iBAA+C,EACnDC,QACAC,MACAC,QACAC,QACAC,MACAC,gBAAgB,YACjB;CACC,MAAM,EAAEC,WAAWC,iBAAiBV,wBAAAA;CAEpC,MAAMW,MAAMZ,OAA0B,IAAA;CAEtCD,gBAAU;EACR,IAAIY,gBAAgBC,KAAKC,SACvBF,aAAaD,UAAUI,IAAIF,IAAIC,OAAO,CAAA;EAExC,aAAaH,UAAUK,MAAK;CAE9B,GAAG,CAAA,CAAE;CAEL,OACE,sBAAA,cAAA,QAAA,UAAA,MACGN,iBAAiB,sBAAA,cAACZ,eAAAA,IAAAA,GACnB,sBAAA,cAACK,qBAAAA;EACMU;EACGR;EACRY,MAAMX;EACEC;EACFE;EACNS,UAAUV,UAAUD,SAAS,IAAI;EACjCY,cAAAA;;AAIR;AAEA,MAAaC,yBAA+D,EAC1Ef,QACAY,MACAT,QACAD,aACD;CACC,OACE,sBAAA,cAAA,QAAA,UAAA,MACGU,KAAKI,SAAS,qBACXJ,KAAKK,QAAQC,KAAKC,aAAkCC,iBAClDD,YAAYD,KAAKjB,MAAyBoB,cACxC,sBAAA,cAACtB,eAAAA;EACCuB,KAAKrB,KAAKsB;EACFvB;EACFC;EACEC;EACAC;EACRC,MAAK;EACLC,eAAee,iBAAiB,KAAKC,cAAc;QAIzDT,KAAKK,QAAQC,KAAKjB,SAChB,sBAAA,cAACF,eAAAA;EACCuB,KAAKrB,KAAKsB;EACFvB;EACFC;EACEC;EACAC;;AAKtB"}
1
+ {"version":3,"file":"index.js","names":["MenuSeparator","React","useEffect","useRef","useAppHeaderMenuContext","StyledAppHeaderLink","LinkComponent","action","link","mobile","isOpen","role","showLineBreak","menuItems","setMenuItems","ref","current","add","clear","item","tabIndex","isInDropdown","AppHeaderLinkSections","type","popover","map","linkSection","sectionIndex","linkIndex","key","id"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.tsx"],"sourcesContent":["import { MenuSeparator } from '@codecademy/gamut';\nimport * as React from 'react';\nimport { useEffect, useRef } from 'react';\n\nimport {\n AppHeaderAction,\n AppHeaderDropdownItem,\n AppHeaderLinkItem,\n} from '../../shared';\nimport { useAppHeaderMenuContext } from '../AppHeaderMenuProvider';\nimport { StyledAppHeaderLink } from './elements';\n\nexport type AppHeaderLinkSectionsProps = AppHeaderAction & {\n item: AppHeaderDropdownItem;\n isOpen?: boolean;\n mobile?: boolean;\n};\n\ntype LinkComponentProps = AppHeaderAction & {\n isOpen?: boolean;\n role?: string;\n link: AppHeaderLinkItem;\n //* This is what renders the MenuSeparator component for sectioned dropdowns */\n showLineBreak?: boolean;\n mobile?: boolean;\n};\n\nconst LinkComponent: React.FC<LinkComponentProps> = ({\n action,\n link,\n mobile,\n isOpen,\n role,\n showLineBreak = false,\n}) => {\n const { menuItems, setMenuItems } = useAppHeaderMenuContext();\n\n const ref = useRef<HTMLAnchorElement>(null);\n\n useEffect(() => {\n if (setMenuItems && ref?.current) {\n setMenuItems(menuItems.add(ref.current));\n }\n return () => menuItems.clear();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n return (\n <>\n {showLineBreak && <MenuSeparator />}\n <StyledAppHeaderLink\n ref={ref}\n action={action}\n item={link}\n mobile={mobile}\n role={role}\n tabIndex={isOpen || mobile ? 0 : -1}\n isInDropdown\n />\n </>\n );\n};\n\nexport const AppHeaderLinkSections: React.FC<AppHeaderLinkSectionsProps> = ({\n action,\n item,\n isOpen,\n mobile,\n}) => {\n return (\n <>\n {item.type === 'profile-dropdown'\n ? item.popover.map((linkSection: AppHeaderLinkItem[], sectionIndex) =>\n linkSection.map((link: AppHeaderLinkItem, linkIndex) => (\n <LinkComponent\n key={link.id}\n action={action}\n link={link}\n mobile={mobile}\n isOpen={isOpen}\n role=\"menuitem\"\n showLineBreak={sectionIndex !== 0 && linkIndex === 0}\n />\n ))\n )\n : item.popover.map((link: AppHeaderLinkItem) => (\n <LinkComponent\n key={link.id}\n action={action}\n link={link}\n mobile={mobile}\n isOpen={isOpen}\n />\n ))}\n </>\n );\n};\n"],"mappings":";;;;;;;AA2BA,MAAMM,iBAA+C,EACnDC,QACAC,MACAC,QACAC,QACAC,MACAC,gBAAgB,YACjB;CACC,MAAM,EAAEC,WAAWC,iBAAiBV,wBAAAA;CAEpC,MAAMW,MAAMZ,OAA0B,IAAA;CAEtCD,gBAAU;EACR,IAAIY,gBAAgBC,KAAKC,SACvBF,aAAaD,UAAUI,IAAIF,IAAIC,OAAO,CAAA;EAExC,aAAaH,UAAUK,MAAK;CAE9B,GAAG,CAAA,CAAE;CAEL,OACE,sBAAA,cAAA,QAAA,UAAA,MACGN,iBAAiB,sBAAA,cAACZ,eAAAA,IAAAA,GACnB,sBAAA,cAACK,qBAAAA;EACMU;EACGR;EACRY,MAAMX;EACEC;EACFE;EACNS,UAAUV,UAAUD,SAAS,IAAI;EACjCY,cAAAA;;AAIR;AAEA,MAAaC,yBAA+D,EAC1Ef,QACAY,MACAT,QACAD,aACD;CACC,OACE,sBAAA,cAAA,QAAA,UAAA,MACGU,KAAKI,SAAS,qBACXJ,KAAKK,QAAQC,KAAKC,aAAkCC,iBAClDD,YAAYD,KAAKjB,MAAyBoB,cACxC,sBAAA,cAACtB,eAAAA;EACCuB,KAAKrB,KAAKsB;EACFvB;EACFC;EACEC;EACAC;EACRC,MAAK;EACLC,eAAee,iBAAiB,KAAKC,cAAc;CAIzDT,CAAAA,CAAAA,CAAAA,IAAAA,KAAKK,QAAQC,KAAKjB,SAChB,sBAAA,cAACF,eAAAA;EACCuB,KAAKrB,KAAKsB;EACFvB;EACFC;EACEC;EACAC;;AAKtB"}
@@ -25,4 +25,5 @@ const AppHeaderListItem = ({ children, ...props }) => /*#__PURE__*/ react.create
25
25
 
26
26
  //#endregion
27
27
  exports.AppHeaderListItem = AppHeaderListItem;
28
+ exports.StyledListItem = StyledListItem;
28
29
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["Box","css","styled","React","StyledListItem","display","justifyContent","flexDirection","position","ml","md","mr","AppHeaderListItem","children","props","as"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderListItem/index.tsx"],"sourcesContent":["import { Box, BoxProps } from '@codecademy/gamut';\nimport { css } from '@codecademy/gamut-styles';\nimport styled from '@emotion/styled';\nimport * as React from 'react';\n\nexport const StyledListItem = styled(Box)(\n css({\n display: `flex`,\n justifyContent: `center`,\n flexDirection: `column`,\n position: `relative`,\n\n '&:first-of-type': {\n ml: { md: 0 },\n },\n '&:last-of-type': {\n mr: { md: 0 },\n },\n })\n);\n\ntype AppHeaderListItemProps = {\n onBlur?: () => void;\n onFocus?: () => void;\n} & BoxProps;\n\nexport const AppHeaderListItem: React.FC<AppHeaderListItemProps> = ({\n children,\n ...props\n}) => (\n <StyledListItem as=\"li\" {...props}>\n {children}\n </StyledListItem>\n);\n"],"mappings":";;;;;;;;;AAKA,MAAaI,iBAAiBF,2CAAOF,uBAAAA;;;qCAC/B;CACFK,SAAS;CACTC,gBAAgB;CAChBC,eAAe;CACfC,UAAU;CAEV,mBAAmB,EACjBC,IAAI,EAAEC,IAAI,EAAE,EACd;CACA,kBAAkB,EAChBC,IAAI,EAAED,IAAI,EAAE,EACd;AACF,CAAA,GAAA,i7CAAA;AAQF,MAAaE,qBAAuD,EAClEC,UACA,GAAGC,YAEH,oBAAA,cAACV,gBAAAA;CAAeW,IAAG;CAAM,GAAGD;GACzBD,QAAAA"}
1
+ {"version":3,"file":"index.cjs","names":["Box","css","styled","React","StyledListItem","display","justifyContent","flexDirection","position","ml","md","mr","AppHeaderListItem","children","props","as"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderListItem/index.tsx"],"sourcesContent":["import { Box, BoxProps } from '@codecademy/gamut';\nimport { css } from '@codecademy/gamut-styles';\nimport styled from '@emotion/styled';\nimport * as React from 'react';\n\nexport const StyledListItem = styled(Box)(\n css({\n display: `flex`,\n justifyContent: `center`,\n flexDirection: `column`,\n position: `relative`,\n\n '&:first-of-type': {\n ml: { md: 0 },\n },\n '&:last-of-type': {\n mr: { md: 0 },\n },\n })\n);\n\ntype AppHeaderListItemProps = {\n onBlur?: () => void;\n onFocus?: () => void;\n} & BoxProps;\n\nexport const AppHeaderListItem: React.FC<AppHeaderListItemProps> = ({\n children,\n ...props\n}) => (\n <StyledListItem as=\"li\" {...props}>\n {children}\n </StyledListItem>\n);\n"],"mappings":";;;;;;;;;AAKA,MAAaI,iBAAiBF,2CAAOF,uBAAAA;;;AACnCC,CAAAA,CAAAA,mCAAI;CACFI,SAAS;CACTC,gBAAgB;CAChBC,eAAe;CACfC,UAAU;CAEV,mBAAmB,EACjBC,IAAI,EAAEC,IAAI,EAAE,EACd;CACA,kBAAkB,EAChBC,IAAI,EAAED,IAAI,EAAE,EACd;AACF,CAAA,GAAA,i7CAAA;AAQF,MAAaE,qBAAuD,EAClEC,UACA,GAAGC,YAEH,oBAAA,cAACV,gBAAAA;CAAeW,IAAG;CAAM,GAAGD;AACzBD,GAAAA,QAAAA"}
@@ -21,5 +21,5 @@ const AppHeaderListItem = ({ children, ...props }) => /*#__PURE__*/ React$1.crea
21
21
  }, children);
22
22
 
23
23
  //#endregion
24
- export { AppHeaderListItem };
24
+ export { AppHeaderListItem, StyledListItem };
25
25
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["Box","css","styled","React","StyledListItem","display","justifyContent","flexDirection","position","ml","md","mr","AppHeaderListItem","children","props","as"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderListItem/index.tsx"],"sourcesContent":["import { Box, BoxProps } from '@codecademy/gamut';\nimport { css } from '@codecademy/gamut-styles';\nimport styled from '@emotion/styled';\nimport * as React from 'react';\n\nexport const StyledListItem = styled(Box)(\n css({\n display: `flex`,\n justifyContent: `center`,\n flexDirection: `column`,\n position: `relative`,\n\n '&:first-of-type': {\n ml: { md: 0 },\n },\n '&:last-of-type': {\n mr: { md: 0 },\n },\n })\n);\n\ntype AppHeaderListItemProps = {\n onBlur?: () => void;\n onFocus?: () => void;\n} & BoxProps;\n\nexport const AppHeaderListItem: React.FC<AppHeaderListItemProps> = ({\n children,\n ...props\n}) => (\n <StyledListItem as=\"li\" {...props}>\n {children}\n </StyledListItem>\n);\n"],"mappings":";;;;;;AAKA,MAAaI,iBAAiBF,qBAAOF,KAAAA;;;GACnCC,IAAI;CACFI,SAAS;CACTC,gBAAgB;CAChBC,eAAe;CACfC,UAAU;CAEV,mBAAmB,EACjBC,IAAI,EAAEC,IAAI,EAAE,EACd;CACA,kBAAkB,EAChBC,IAAI,EAAED,IAAI,EAAE,EACd;AACF,CAAA,GAAA,i7CAAA;AAQF,MAAaE,qBAAuD,EAClEC,UACA,GAAGC,YAEH,sBAAA,cAACV,gBAAAA;CAAeW,IAAG;CAAM,GAAGD;GACzBD,QAAAA"}
1
+ {"version":3,"file":"index.js","names":["Box","css","styled","React","StyledListItem","display","justifyContent","flexDirection","position","ml","md","mr","AppHeaderListItem","children","props","as"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderListItem/index.tsx"],"sourcesContent":["import { Box, BoxProps } from '@codecademy/gamut';\nimport { css } from '@codecademy/gamut-styles';\nimport styled from '@emotion/styled';\nimport * as React from 'react';\n\nexport const StyledListItem = styled(Box)(\n css({\n display: `flex`,\n justifyContent: `center`,\n flexDirection: `column`,\n position: `relative`,\n\n '&:first-of-type': {\n ml: { md: 0 },\n },\n '&:last-of-type': {\n mr: { md: 0 },\n },\n })\n);\n\ntype AppHeaderListItemProps = {\n onBlur?: () => void;\n onFocus?: () => void;\n} & BoxProps;\n\nexport const AppHeaderListItem: React.FC<AppHeaderListItemProps> = ({\n children,\n ...props\n}) => (\n <StyledListItem as=\"li\" {...props}>\n {children}\n </StyledListItem>\n);\n"],"mappings":";;;;;;AAKA,MAAaI,iBAAiBF,qBAAOF,KAAAA;;;AACnCC,CAAAA,CAAAA,CAAAA,IAAI;CACFI,SAAS;CACTC,gBAAgB;CAChBC,eAAe;CACfC,UAAU;CAEV,mBAAmB,EACjBC,IAAI,EAAEC,IAAI,EAAE,EACd;CACA,kBAAkB,EAChBC,IAAI,EAAED,IAAI,EAAE,EACd;AACF,CAAA,GAAA,i7CAAA;AAQF,MAAaE,qBAAuD,EAClEC,UACA,GAAGC,YAEH,sBAAA,cAACV,gBAAAA;CAAeW,IAAG;CAAM,GAAGD;AACzBD,GAAAA,QAAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["Anchor","React","useEffect","useState","LogoCodecademy","LogoCodecademyMini","LogoCodecademyPro","LogoFromSkillsoft","getLogoComponent","item","showMini","checkMini","enterprise","pro","AppHeaderLogo","action","setShowMini","handleResize","showMiniWithSearch","window","innerWidth","shouldShowMini","addEventListener","removeEventListener","LogoComponent","removeAnchorLink","color","data-testid","dataTestId","height","verticalAlign","role","variant","py","onClick","event","href","tabIndex"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderLogo/index.tsx"],"sourcesContent":["import { Anchor } from '@codecademy/gamut';\nimport React, { MouseEvent, useEffect, useState } from 'react';\n\nimport {\n LogoCodecademy,\n LogoCodecademyMini,\n LogoCodecademyPro,\n LogoFromSkillsoft,\n} from '../../../Logos';\nimport { AppHeaderAction, AppHeaderLogoItem } from '../../shared';\n\nconst getLogoComponent = (item: AppHeaderLogoItem, showMini: boolean) => {\n if (item.checkMini && showMini) return LogoCodecademyMini;\n if (item.enterprise) return LogoFromSkillsoft;\n return item.pro ? LogoCodecademyPro : LogoCodecademy;\n};\n\nexport type AppHeaderLogoProps = AppHeaderAction & {\n item: AppHeaderLogoItem;\n};\n\nexport const AppHeaderLogo: React.FC<AppHeaderLogoProps> = ({\n action,\n item,\n}) => {\n const [showMini, setShowMini] = useState(false);\n\n useEffect(() => {\n if (!item.checkMini) {\n return;\n }\n const handleResize = () => {\n const showMiniWithSearch = window.innerWidth < 480;\n const shouldShowMini =\n showMiniWithSearch ||\n (window.innerWidth <= 1285 && window.innerWidth >= 1200);\n // avoid unnecessary setState actions if val doesnt change\n if (showMini !== shouldShowMini) {\n setShowMini(shouldShowMini);\n }\n };\n window.addEventListener('resize', handleResize);\n handleResize();\n // Remove event listener on cleanup\n return () => window.removeEventListener('resize', handleResize);\n }, [item.checkMini, showMini]);\n\n const LogoComponent = getLogoComponent(item, showMini);\n\n return (\n <>\n {item.removeAnchorLink ? (\n <LogoComponent\n color=\"text\"\n data-testid={item.dataTestId}\n height={item.enterprise ? 36 : 27}\n verticalAlign=\"text-bottom\"\n role=\"img\"\n {...(item.enterprise\n ? { 'aria-label': 'Codecademy from Skillsoft' }\n : {})}\n />\n ) : (\n <Anchor\n variant=\"interface\"\n data-testid={item.dataTestId}\n py={4}\n onClick={(event: MouseEvent<HTMLAnchorElement>) =>\n action(event, item)\n }\n href={item.href}\n tabIndex={0}\n >\n <LogoComponent\n color=\"currentColor\"\n height={item.enterprise ? 36 : 27}\n verticalAlign=\"text-bottom\"\n />\n </Anchor>\n )}\n </>\n );\n};\n"],"mappings":";;;;;;;;;;;AAWA,MAAMQ,oBAAoBC,MAAyBC,aAAAA;CACjD,IAAID,KAAKE,aAAaD,UAAU,OAAOL;CACvC,IAAII,KAAKG,YAAY,OAAOL;CAC5B,OAAOE,KAAKI,MAAMP,oCAAoBF;AACxC;AAMA,MAAaU,iBAA+C,EAC1DC,QACAN,WACD;CACC,MAAM,CAACC,UAAUM,mCAAwB,KAAA;CAEzCd,2BAAU;EACR,IAAI,CAACO,KAAKE,WACR;EAEF,MAAMM,qBAAe;GAEnB,MAAMI,iBADqBF,OAAOC,aAAa,OAG5CD,OAAOC,cAAc,QAAQD,OAAOC,cAAc;GAErD,IAAIV,aAAaW,gBACfL,YAAYK,cAAAA;EAEhB;EACAF,OAAOG,iBAAiB,UAAUL,YAAAA;EAClCA,aAAAA;EAEA,aAAaE,OAAOI,oBAAoB,UAAUN,YAAAA;CACpD,GAAG,CAACR,KAAKE,WAAWD,SAAS;CAE7B,MAAMc,gBAAgBhB,iBAAiBC,MAAMC,QAAAA;CAE7C,OACE,4BAAA,cAAA,cAAA,UAAA,MACGD,KAAKgB,mBACJ,4BAAA,cAACD,eAAAA;EACCE,OAAM;EACNC,eAAalB,KAAKmB;EAClBC,QAAQpB,KAAKG,aAAa,KAAK;EAC/BkB,eAAc;EACdC,MAAK;EACJ,GAAItB,KAAKG,aACN,EAAE,cAAc,4BAA4B,IAC5C,CAAC;MAGP,4BAAA,cAACZ,0BAAAA;EACCgC,SAAQ;EACRL,eAAalB,KAAKmB;EAClBK,IAAI;EACJC,UAAUC,UACRpB,OAAOoB,OAAO1B,IAAAA;EAEhB2B,MAAM3B,KAAK2B;EACXC,UAAU;IAEV,4BAAA,cAACb,eAAAA;EACCE,OAAM;EACNG,QAAQpB,KAAKG,aAAa,KAAK;EAC/BkB,eAAc;;AAM1B"}
1
+ {"version":3,"file":"index.cjs","names":["Anchor","React","useEffect","useState","LogoCodecademy","LogoCodecademyMini","LogoCodecademyPro","LogoFromSkillsoft","getLogoComponent","item","showMini","checkMini","enterprise","pro","AppHeaderLogo","action","setShowMini","handleResize","showMiniWithSearch","window","innerWidth","shouldShowMini","addEventListener","removeEventListener","LogoComponent","removeAnchorLink","color","data-testid","dataTestId","height","verticalAlign","role","variant","py","onClick","event","href","tabIndex"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderLogo/index.tsx"],"sourcesContent":["import { Anchor } from '@codecademy/gamut';\nimport React, { MouseEvent, useEffect, useState } from 'react';\n\nimport {\n LogoCodecademy,\n LogoCodecademyMini,\n LogoCodecademyPro,\n LogoFromSkillsoft,\n} from '../../../Logos';\nimport { AppHeaderAction, AppHeaderLogoItem } from '../../shared';\n\nconst getLogoComponent = (item: AppHeaderLogoItem, showMini: boolean) => {\n if (item.checkMini && showMini) return LogoCodecademyMini;\n if (item.enterprise) return LogoFromSkillsoft;\n return item.pro ? LogoCodecademyPro : LogoCodecademy;\n};\n\nexport type AppHeaderLogoProps = AppHeaderAction & {\n item: AppHeaderLogoItem;\n};\n\nexport const AppHeaderLogo: React.FC<AppHeaderLogoProps> = ({\n action,\n item,\n}) => {\n const [showMini, setShowMini] = useState(false);\n\n useEffect(() => {\n if (!item.checkMini) {\n return;\n }\n const handleResize = () => {\n const showMiniWithSearch = window.innerWidth < 480;\n const shouldShowMini =\n showMiniWithSearch ||\n (window.innerWidth <= 1285 && window.innerWidth >= 1200);\n // avoid unnecessary setState actions if val doesnt change\n if (showMini !== shouldShowMini) {\n setShowMini(shouldShowMini);\n }\n };\n window.addEventListener('resize', handleResize);\n handleResize();\n // Remove event listener on cleanup\n return () => window.removeEventListener('resize', handleResize);\n }, [item.checkMini, showMini]);\n\n const LogoComponent = getLogoComponent(item, showMini);\n\n return (\n <>\n {item.removeAnchorLink ? (\n <LogoComponent\n color=\"text\"\n data-testid={item.dataTestId}\n height={item.enterprise ? 36 : 27}\n verticalAlign=\"text-bottom\"\n role=\"img\"\n {...(item.enterprise\n ? { 'aria-label': 'Codecademy from Skillsoft' }\n : {})}\n />\n ) : (\n <Anchor\n variant=\"interface\"\n data-testid={item.dataTestId}\n py={4}\n onClick={(event: MouseEvent<HTMLAnchorElement>) =>\n action(event, item)\n }\n href={item.href}\n tabIndex={0}\n >\n <LogoComponent\n color=\"currentColor\"\n height={item.enterprise ? 36 : 27}\n verticalAlign=\"text-bottom\"\n />\n </Anchor>\n )}\n </>\n );\n};\n"],"mappings":";;;;;;;;;;;AAWA,MAAMQ,oBAAoBC,MAAyBC,aAAAA;CACjD,IAAID,KAAKE,aAAaD,UAAU,OAAOL;CACvC,IAAII,KAAKG,YAAY,OAAOL;CAC5B,OAAOE,KAAKI,MAAMP,oCAAoBF;AACxC;AAMA,MAAaU,iBAA+C,EAC1DC,QACAN,WACD;CACC,MAAM,CAACC,UAAUM,mCAAwB,KAAA;CAEzCd,2BAAU;EACR,IAAI,CAACO,KAAKE,WACR;EAEF,MAAMM,qBAAe;GAEnB,MAAMI,iBADqBF,OAAOC,aAAa,OAG5CD,OAAOC,cAAc,QAAQD,OAAOC,cAAc;GAErD,IAAIV,aAAaW,gBACfL,YAAYK,cAAAA;EAEhB;EACAF,OAAOG,iBAAiB,UAAUL,YAAAA;EAClCA,aAAAA;EAEA,aAAaE,OAAOI,oBAAoB,UAAUN,YAAAA;CACpD,GAAG,CAACR,KAAKE,WAAWD,QAAS,CAAA;CAE7B,MAAMc,gBAAgBhB,iBAAiBC,MAAMC,QAAAA;CAE7C,OACE,4BAAA,cAAA,cAAA,UAAA,MACGD,KAAKgB,mBACJ,4BAAA,cAACD,eAAAA;EACCE,OAAM;EACNC,eAAalB,KAAKmB;EAClBC,QAAQpB,KAAKG,aAAa,KAAK;EAC/BkB,eAAc;EACdC,MAAK;EACJ,GAAItB,KAAKG,aACN,EAAE,cAAc,4BAA4B,IAC5C,CAAC;CAGP,CAAA,IAAA,4BAAA,cAACZ,0BAAAA;EACCgC,SAAQ;EACRL,eAAalB,KAAKmB;EAClBK,IAAI;EACJC,UAAUC,UACRpB,OAAOoB,OAAO1B,IAAAA;EAEhB2B,MAAM3B,KAAK2B;EACXC,UAAU;CAEV,GAAA,4BAAA,cAACb,eAAAA;EACCE,OAAM;EACNG,QAAQpB,KAAKG,aAAa,KAAK;EAC/BkB,eAAc;;AAM1B"}
@@ -1,6 +1,6 @@
1
1
  import { AppHeaderAction, AppHeaderLogoItem } from "../../shared/types.cjs";
2
+ import "../../shared/index.cjs";
2
3
  import React from "react";
3
-
4
4
  //#region src/AppHeader/AppHeaderElements/AppHeaderLogo/index.d.ts
5
5
  type AppHeaderLogoProps = AppHeaderAction & {
6
6
  item: AppHeaderLogoItem;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderLogo/index.tsx"],"mappings":";;;;KAiBY,kBAAA,GAAqB,eAAA;EAC/B,IAAA,EAAM,iBAAiB;AAAA;AAAA,cAGZ,aAAA,EAAe,KAAA,CAAM,EAAE,CAAC,kBAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderLogo/index.tsx"],"mappings":";;;;KAiBY,qBAAqB;EAC/B,MAAM;;cAGK,eAAe,MAAM,GAAG"}
@@ -1,6 +1,6 @@
1
1
  import { AppHeaderAction, AppHeaderLogoItem } from "../../shared/types.js";
2
+ import "../../shared/index.js";
2
3
  import React from "react";
3
-
4
4
  //#region src/AppHeader/AppHeaderElements/AppHeaderLogo/index.d.ts
5
5
  type AppHeaderLogoProps = AppHeaderAction & {
6
6
  item: AppHeaderLogoItem;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderLogo/index.tsx"],"mappings":";;;;KAiBY,kBAAA,GAAqB,eAAA;EAC/B,IAAA,EAAM,iBAAA;AAAA;AAAA,cAGK,aAAA,EAAe,KAAA,CAAM,EAAA,CAAG,kBAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderLogo/index.tsx"],"mappings":";;;;KAiBY,qBAAqB;EAC/B,MAAM;;cAGK,eAAe,MAAM,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["Anchor","React","useEffect","useState","LogoCodecademy","LogoCodecademyMini","LogoCodecademyPro","LogoFromSkillsoft","getLogoComponent","item","showMini","checkMini","enterprise","pro","AppHeaderLogo","action","setShowMini","handleResize","showMiniWithSearch","window","innerWidth","shouldShowMini","addEventListener","removeEventListener","LogoComponent","removeAnchorLink","color","data-testid","dataTestId","height","verticalAlign","role","variant","py","onClick","event","href","tabIndex"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderLogo/index.tsx"],"sourcesContent":["import { Anchor } from '@codecademy/gamut';\nimport React, { MouseEvent, useEffect, useState } from 'react';\n\nimport {\n LogoCodecademy,\n LogoCodecademyMini,\n LogoCodecademyPro,\n LogoFromSkillsoft,\n} from '../../../Logos';\nimport { AppHeaderAction, AppHeaderLogoItem } from '../../shared';\n\nconst getLogoComponent = (item: AppHeaderLogoItem, showMini: boolean) => {\n if (item.checkMini && showMini) return LogoCodecademyMini;\n if (item.enterprise) return LogoFromSkillsoft;\n return item.pro ? LogoCodecademyPro : LogoCodecademy;\n};\n\nexport type AppHeaderLogoProps = AppHeaderAction & {\n item: AppHeaderLogoItem;\n};\n\nexport const AppHeaderLogo: React.FC<AppHeaderLogoProps> = ({\n action,\n item,\n}) => {\n const [showMini, setShowMini] = useState(false);\n\n useEffect(() => {\n if (!item.checkMini) {\n return;\n }\n const handleResize = () => {\n const showMiniWithSearch = window.innerWidth < 480;\n const shouldShowMini =\n showMiniWithSearch ||\n (window.innerWidth <= 1285 && window.innerWidth >= 1200);\n // avoid unnecessary setState actions if val doesnt change\n if (showMini !== shouldShowMini) {\n setShowMini(shouldShowMini);\n }\n };\n window.addEventListener('resize', handleResize);\n handleResize();\n // Remove event listener on cleanup\n return () => window.removeEventListener('resize', handleResize);\n }, [item.checkMini, showMini]);\n\n const LogoComponent = getLogoComponent(item, showMini);\n\n return (\n <>\n {item.removeAnchorLink ? (\n <LogoComponent\n color=\"text\"\n data-testid={item.dataTestId}\n height={item.enterprise ? 36 : 27}\n verticalAlign=\"text-bottom\"\n role=\"img\"\n {...(item.enterprise\n ? { 'aria-label': 'Codecademy from Skillsoft' }\n : {})}\n />\n ) : (\n <Anchor\n variant=\"interface\"\n data-testid={item.dataTestId}\n py={4}\n onClick={(event: MouseEvent<HTMLAnchorElement>) =>\n action(event, item)\n }\n href={item.href}\n tabIndex={0}\n >\n <LogoComponent\n color=\"currentColor\"\n height={item.enterprise ? 36 : 27}\n verticalAlign=\"text-bottom\"\n />\n </Anchor>\n )}\n </>\n );\n};\n"],"mappings":";;;;;;;;;AAWA,MAAMQ,oBAAoBC,MAAyBC,aAAAA;CACjD,IAAID,KAAKE,aAAaD,UAAU,OAAOL;CACvC,IAAII,KAAKG,YAAY,OAAOL;CAC5B,OAAOE,KAAKI,MAAMP,oBAAoBF;AACxC;AAMA,MAAaU,iBAA+C,EAC1DC,QACAN,WACD;CACC,MAAM,CAACC,UAAUM,eAAeb,SAAS,KAAA;CAEzCD,gBAAU;EACR,IAAI,CAACO,KAAKE,WACR;EAEF,MAAMM,qBAAe;GAEnB,MAAMI,iBADqBF,OAAOC,aAAa,OAG5CD,OAAOC,cAAc,QAAQD,OAAOC,cAAc;GAErD,IAAIV,aAAaW,gBACfL,YAAYK,cAAAA;EAEhB;EACAF,OAAOG,iBAAiB,UAAUL,YAAAA;EAClCA,aAAAA;EAEA,aAAaE,OAAOI,oBAAoB,UAAUN,YAAAA;CACpD,GAAG,CAACR,KAAKE,WAAWD,SAAS;CAE7B,MAAMc,gBAAgBhB,iBAAiBC,MAAMC,QAAAA;CAE7C,OACE,oBAAA,cAAA,MAAA,UAAA,MACGD,KAAKgB,mBACJ,oBAAA,cAACD,eAAAA;EACCE,OAAM;EACNC,eAAalB,KAAKmB;EAClBC,QAAQpB,KAAKG,aAAa,KAAK;EAC/BkB,eAAc;EACdC,MAAK;EACJ,GAAItB,KAAKG,aACN,EAAE,cAAc,4BAA4B,IAC5C,CAAC;MAGP,oBAAA,cAACZ,QAAAA;EACCgC,SAAQ;EACRL,eAAalB,KAAKmB;EAClBK,IAAI;EACJC,UAAUC,UACRpB,OAAOoB,OAAO1B,IAAAA;EAEhB2B,MAAM3B,KAAK2B;EACXC,UAAU;IAEV,oBAAA,cAACb,eAAAA;EACCE,OAAM;EACNG,QAAQpB,KAAKG,aAAa,KAAK;EAC/BkB,eAAc;;AAM1B"}
1
+ {"version":3,"file":"index.js","names":["Anchor","React","useEffect","useState","LogoCodecademy","LogoCodecademyMini","LogoCodecademyPro","LogoFromSkillsoft","getLogoComponent","item","showMini","checkMini","enterprise","pro","AppHeaderLogo","action","setShowMini","handleResize","showMiniWithSearch","window","innerWidth","shouldShowMini","addEventListener","removeEventListener","LogoComponent","removeAnchorLink","color","data-testid","dataTestId","height","verticalAlign","role","variant","py","onClick","event","href","tabIndex"],"sources":["../../../../src/AppHeader/AppHeaderElements/AppHeaderLogo/index.tsx"],"sourcesContent":["import { Anchor } from '@codecademy/gamut';\nimport React, { MouseEvent, useEffect, useState } from 'react';\n\nimport {\n LogoCodecademy,\n LogoCodecademyMini,\n LogoCodecademyPro,\n LogoFromSkillsoft,\n} from '../../../Logos';\nimport { AppHeaderAction, AppHeaderLogoItem } from '../../shared';\n\nconst getLogoComponent = (item: AppHeaderLogoItem, showMini: boolean) => {\n if (item.checkMini && showMini) return LogoCodecademyMini;\n if (item.enterprise) return LogoFromSkillsoft;\n return item.pro ? LogoCodecademyPro : LogoCodecademy;\n};\n\nexport type AppHeaderLogoProps = AppHeaderAction & {\n item: AppHeaderLogoItem;\n};\n\nexport const AppHeaderLogo: React.FC<AppHeaderLogoProps> = ({\n action,\n item,\n}) => {\n const [showMini, setShowMini] = useState(false);\n\n useEffect(() => {\n if (!item.checkMini) {\n return;\n }\n const handleResize = () => {\n const showMiniWithSearch = window.innerWidth < 480;\n const shouldShowMini =\n showMiniWithSearch ||\n (window.innerWidth <= 1285 && window.innerWidth >= 1200);\n // avoid unnecessary setState actions if val doesnt change\n if (showMini !== shouldShowMini) {\n setShowMini(shouldShowMini);\n }\n };\n window.addEventListener('resize', handleResize);\n handleResize();\n // Remove event listener on cleanup\n return () => window.removeEventListener('resize', handleResize);\n }, [item.checkMini, showMini]);\n\n const LogoComponent = getLogoComponent(item, showMini);\n\n return (\n <>\n {item.removeAnchorLink ? (\n <LogoComponent\n color=\"text\"\n data-testid={item.dataTestId}\n height={item.enterprise ? 36 : 27}\n verticalAlign=\"text-bottom\"\n role=\"img\"\n {...(item.enterprise\n ? { 'aria-label': 'Codecademy from Skillsoft' }\n : {})}\n />\n ) : (\n <Anchor\n variant=\"interface\"\n data-testid={item.dataTestId}\n py={4}\n onClick={(event: MouseEvent<HTMLAnchorElement>) =>\n action(event, item)\n }\n href={item.href}\n tabIndex={0}\n >\n <LogoComponent\n color=\"currentColor\"\n height={item.enterprise ? 36 : 27}\n verticalAlign=\"text-bottom\"\n />\n </Anchor>\n )}\n </>\n );\n};\n"],"mappings":";;;;;;;;;AAWA,MAAMQ,oBAAoBC,MAAyBC,aAAAA;CACjD,IAAID,KAAKE,aAAaD,UAAU,OAAOL;CACvC,IAAII,KAAKG,YAAY,OAAOL;CAC5B,OAAOE,KAAKI,MAAMP,oBAAoBF;AACxC;AAMA,MAAaU,iBAA+C,EAC1DC,QACAN,WACD;CACC,MAAM,CAACC,UAAUM,eAAeb,SAAS,KAAA;CAEzCD,gBAAU;EACR,IAAI,CAACO,KAAKE,WACR;EAEF,MAAMM,qBAAe;GAEnB,MAAMI,iBADqBF,OAAOC,aAAa,OAG5CD,OAAOC,cAAc,QAAQD,OAAOC,cAAc;GAErD,IAAIV,aAAaW,gBACfL,YAAYK,cAAAA;EAEhB;EACAF,OAAOG,iBAAiB,UAAUL,YAAAA;EAClCA,aAAAA;EAEA,aAAaE,OAAOI,oBAAoB,UAAUN,YAAAA;CACpD,GAAG,CAACR,KAAKE,WAAWD,QAAS,CAAA;CAE7B,MAAMc,gBAAgBhB,iBAAiBC,MAAMC,QAAAA;CAE7C,OACE,oBAAA,cAAA,MAAA,UAAA,MACGD,KAAKgB,mBACJ,oBAAA,cAACD,eAAAA;EACCE,OAAM;EACNC,eAAalB,KAAKmB;EAClBC,QAAQpB,KAAKG,aAAa,KAAK;EAC/BkB,eAAc;EACdC,MAAK;EACJ,GAAItB,KAAKG,aACN,EAAE,cAAc,4BAA4B,IAC5C,CAAC;CAGP,CAAA,IAAA,oBAAA,cAACZ,QAAAA;EACCgC,SAAQ;EACRL,eAAalB,KAAKmB;EAClBK,IAAI;EACJC,UAAUC,UACRpB,OAAOoB,OAAO1B,IAAAA;EAEhB2B,MAAM3B,KAAK2B;EACXC,UAAU;CAEV,GAAA,oBAAA,cAACb,eAAAA;EACCE,OAAM;EACNG,QAAQpB,KAAKG,aAAa,KAAK;EAC/BkB,eAAc;;AAM1B"}
@@ -77,6 +77,7 @@ const AppHeaderMenuProvider = ({ as, children, handleClose }) => {
77
77
  const useAppHeaderMenuContext = () => (0, react.useContext)(AppHeaderMenuContext);
78
78
 
79
79
  //#endregion
80
+ exports.AppHeaderMenuContext = AppHeaderMenuContext;
80
81
  exports.AppHeaderMenuProvider = AppHeaderMenuProvider;
81
82
  exports.useAppHeaderMenuContext = useAppHeaderMenuContext;
82
83
  //# sourceMappingURL=index.cjs.map