@codecademy/brand 3.40.1-alpha.db88c958d7.0 → 4.0.0-alpha.0ae245495b.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 (1074) hide show
  1. package/dist/AbbreviatedCommunityEventCard/index.cjs +89 -0
  2. package/dist/AbbreviatedCommunityEventCard/index.d.cts +11 -0
  3. package/dist/AbbreviatedCommunityEventCard/index.d.ts +10 -7
  4. package/dist/AbbreviatedCommunityEventCard/index.js +86 -98
  5. package/dist/AppBar/AppBarSection.cjs +40 -0
  6. package/dist/AppBar/AppBarSection.d.cts +15 -0
  7. package/dist/AppBar/AppBarSection.d.ts +15 -10
  8. package/dist/AppBar/AppBarSection.js +35 -39
  9. package/dist/AppBar/index.cjs +22 -0
  10. package/dist/AppBar/index.d.cts +13 -0
  11. package/dist/AppBar/index.d.ts +12 -8
  12. package/dist/AppBar/index.js +20 -20
  13. package/dist/AppBarDeprecated/AppBarSectionDeprecated.cjs +26 -0
  14. package/dist/AppBarDeprecated/AppBarSectionDeprecated.d.cts +18 -0
  15. package/dist/AppBarDeprecated/AppBarSectionDeprecated.d.ts +13 -9
  16. package/dist/AppBarDeprecated/AppBarSectionDeprecated.js +21 -23
  17. package/dist/AppBarDeprecated/index.cjs +27 -0
  18. package/dist/AppBarDeprecated/index.d.cts +18 -0
  19. package/dist/AppBarDeprecated/index.d.ts +13 -9
  20. package/dist/AppBarDeprecated/index.js +22 -24
  21. package/dist/AppBarDeprecated/styles/index.module.cjs +5 -0
  22. package/dist/AppBarDeprecated/styles/index.module.js +5 -0
  23. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/MarketingBanner.cjs +134 -0
  24. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/MarketingBanner.js +132 -109
  25. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/NavPanels.cjs +300 -0
  26. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/NavPanels.js +288 -336
  27. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/consts.cjs +274 -0
  28. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/consts.js +270 -226
  29. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.cjs +110 -0
  30. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.d.cts +8 -0
  31. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.d.ts +9 -5
  32. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.js +107 -123
  33. package/dist/AppHeader/AppHeaderElements/AppHeaderDietCard/index.cjs +114 -0
  34. package/dist/AppHeader/AppHeaderElements/AppHeaderDietCard/index.js +112 -124
  35. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdown/index.cjs +97 -0
  36. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdown/index.d.cts +16 -0
  37. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdown/index.d.ts +16 -11
  38. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdown/index.js +94 -113
  39. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownProvider/index.cjs +36 -0
  40. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownProvider/index.js +29 -27
  41. package/dist/AppHeader/AppHeaderElements/AppHeaderFeatureCard/index.cjs +61 -0
  42. package/dist/AppHeader/AppHeaderElements/AppHeaderFeatureCard/index.js +59 -56
  43. package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.cjs +59 -0
  44. package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.d.cts +56 -0
  45. package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.d.ts +53 -44
  46. package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.js +56 -70
  47. package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/elements.cjs +34 -0
  48. package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/elements.js +32 -36
  49. package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.cjs +44 -0
  50. package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.js +41 -59
  51. package/dist/AppHeader/AppHeaderElements/AppHeaderListItem/index.cjs +26 -0
  52. package/dist/AppHeader/AppHeaderElements/AppHeaderListItem/index.js +23 -32
  53. package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.cjs +53 -0
  54. package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.d.cts +10 -0
  55. package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.d.ts +10 -5
  56. package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.js +49 -55
  57. package/dist/AppHeader/AppHeaderElements/AppHeaderMenuProvider/index.cjs +85 -0
  58. package/dist/AppHeader/AppHeaderElements/AppHeaderMenuProvider/index.js +80 -86
  59. package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/index.cjs +80 -0
  60. package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/index.js +76 -101
  61. package/dist/AppHeader/AppHeaderElements/AppHeaderProvider/index.cjs +25 -0
  62. package/dist/AppHeader/AppHeaderElements/AppHeaderProvider/index.js +20 -17
  63. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/NavPanels.cjs +118 -0
  64. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/NavPanels.js +110 -131
  65. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/consts.cjs +341 -0
  66. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/consts.js +335 -291
  67. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.cjs +105 -0
  68. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.d.cts +8 -0
  69. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.d.ts +9 -5
  70. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.js +102 -118
  71. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/AppHeaderSectionContext.cjs +18 -0
  72. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/AppHeaderSectionContext.js +15 -10
  73. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/MobileBackButton.cjs +85 -0
  74. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/MobileBackButton.js +83 -89
  75. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/MobileNavMenu.cjs +51 -0
  76. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/MobileNavMenu.js +49 -61
  77. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/NavTabs.cjs +105 -0
  78. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/NavTabs.js +98 -125
  79. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/PanelLayout.cjs +84 -0
  80. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/PanelLayout.js +83 -81
  81. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/elements.cjs +179 -0
  82. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/elements.js +168 -118
  83. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/index.cjs +119 -0
  84. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/index.js +117 -145
  85. package/dist/AppHeader/AppHeaderElements/AppHeaderSkillTile/index.cjs +55 -0
  86. package/dist/AppHeader/AppHeaderElements/AppHeaderSkillTile/index.js +53 -65
  87. package/dist/AppHeader/Search/DefaultResults.cjs +105 -0
  88. package/dist/AppHeader/Search/DefaultResults.js +101 -111
  89. package/dist/AppHeader/Search/QuizAndHelpCenterLinks.cjs +70 -0
  90. package/dist/AppHeader/Search/QuizAndHelpCenterLinks.js +68 -79
  91. package/dist/AppHeader/Search/SearchButton.cjs +50 -0
  92. package/dist/AppHeader/Search/SearchButton.js +46 -71
  93. package/dist/AppHeader/Search/SearchPane.cjs +482 -0
  94. package/dist/AppHeader/Search/SearchPane.js +472 -595
  95. package/dist/AppHeader/Search/SearchTrackingProvider/index.cjs +32 -0
  96. package/dist/AppHeader/Search/SearchTrackingProvider/index.js +26 -23
  97. package/dist/AppHeader/Search/SearchWorker/PromiseLookup.cjs +43 -0
  98. package/dist/AppHeader/Search/SearchWorker/PromiseLookup.js +43 -35
  99. package/dist/AppHeader/Search/SearchWorker/index.cjs +24 -0
  100. package/dist/AppHeader/Search/SearchWorker/index.d.cts +10 -0
  101. package/dist/AppHeader/Search/SearchWorker/index.d.ts +9 -4
  102. package/dist/AppHeader/Search/SearchWorker/index.js +23 -23
  103. package/dist/AppHeader/Search/SearchWorker/src.cjs +159 -0
  104. package/dist/AppHeader/Search/SearchWorker/src.js +153 -305
  105. package/dist/AppHeader/Search/SearchWorker/types.cjs +10 -0
  106. package/dist/AppHeader/Search/SearchWorker/types.d.cts +30 -0
  107. package/dist/AppHeader/Search/SearchWorker/types.d.ts +23 -30
  108. package/dist/AppHeader/Search/SearchWorker/types.js +9 -5
  109. package/dist/AppHeader/Search/SearchWorker/worker.cjs +26 -0
  110. package/dist/AppHeader/Search/SearchWorker/worker.js +24 -29
  111. package/dist/AppHeader/Search/consts.cjs +68 -0
  112. package/dist/AppHeader/Search/consts.d.cts +26 -0
  113. package/dist/AppHeader/Search/consts.d.ts +23 -20
  114. package/dist/AppHeader/Search/consts.js +62 -39
  115. package/dist/AppHeader/Search/hooks/useUrlChangeDetection.cjs +17 -0
  116. package/dist/AppHeader/Search/hooks/useUrlChangeDetection.js +16 -14
  117. package/dist/AppHeader/Search/safelyRedirect.cjs +39 -0
  118. package/dist/AppHeader/Search/safelyRedirect.js +32 -42
  119. package/dist/AppHeader/Search/types.d.cts +14 -0
  120. package/dist/AppHeader/Search/types.d.ts +11 -19
  121. package/dist/AppHeader/Search/useHeaderSearch.cjs +39 -0
  122. package/dist/AppHeader/Search/useHeaderSearch.js +38 -40
  123. package/dist/AppHeader/index.cjs +97 -0
  124. package/dist/AppHeader/index.d.cts +28 -0
  125. package/dist/AppHeader/index.d.ts +28 -22
  126. package/dist/AppHeader/index.js +90 -98
  127. package/dist/AppHeader/shared/elements.cjs +172 -0
  128. package/dist/AppHeader/shared/elements.d.ts +9 -90
  129. package/dist/AppHeader/shared/elements.js +152 -243
  130. package/dist/AppHeader/shared/index.d.ts +4 -4
  131. package/dist/AppHeader/shared/keyboardNav.cjs +67 -0
  132. package/dist/AppHeader/shared/keyboardNav.d.ts +1 -23
  133. package/dist/AppHeader/shared/keyboardNav.js +63 -65
  134. package/dist/AppHeader/shared/mockAppHeaderItems.d.ts +1 -2
  135. package/dist/AppHeader/shared/types.cjs +6 -0
  136. package/dist/AppHeader/shared/types.d.cts +111 -0
  137. package/dist/AppHeader/shared/types.d.ts +108 -105
  138. package/dist/AppHeader/shared/types.js +5 -1
  139. package/dist/AppHeader/shared/utils.cjs +85 -0
  140. package/dist/AppHeader/shared/utils.js +84 -100
  141. package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.cjs +126 -0
  142. package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.d.cts +12 -0
  143. package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.d.ts +12 -7
  144. package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.js +121 -140
  145. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/elements.cjs +29 -0
  146. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/elements.js +26 -30
  147. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.cjs +110 -0
  148. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.d.cts +12 -0
  149. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.d.ts +11 -7
  150. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.js +105 -122
  151. package/dist/AppHeaderMobile/AppHeaderSubMenuTarget/index.cjs +61 -0
  152. package/dist/AppHeaderMobile/AppHeaderSubMenuTarget/index.js +58 -60
  153. package/dist/AppHeaderMobile/index.cjs +194 -0
  154. package/dist/AppHeaderMobile/index.d.cts +24 -0
  155. package/dist/AppHeaderMobile/index.d.ts +26 -19
  156. package/dist/AppHeaderMobile/index.js +191 -214
  157. package/dist/Avatar/index.cjs +52 -0
  158. package/dist/Avatar/index.d.cts +40 -0
  159. package/dist/Avatar/index.d.ts +37 -33
  160. package/dist/Avatar/index.js +49 -45
  161. package/dist/AvatarChooser/index.cjs +99 -0
  162. package/dist/AvatarChooser/index.d.cts +15 -0
  163. package/dist/AvatarChooser/index.d.ts +13 -10
  164. package/dist/AvatarChooser/index.js +93 -102
  165. package/dist/BackToTopAnchor/index.cjs +33 -0
  166. package/dist/BackToTopAnchor/index.d.cts +15 -0
  167. package/dist/BackToTopAnchor/index.d.ts +13 -11
  168. package/dist/BackToTopAnchor/index.js +31 -37
  169. package/dist/Banner/CountdownTimer.cjs +111 -0
  170. package/dist/Banner/CountdownTimer.d.cts +10 -0
  171. package/dist/Banner/CountdownTimer.d.ts +8 -5
  172. package/dist/Banner/CountdownTimer.js +103 -104
  173. package/dist/Banner/EnhancedBanner.cjs +142 -0
  174. package/dist/Banner/EnhancedBanner.d.cts +20 -0
  175. package/dist/Banner/EnhancedBanner.d.ts +19 -16
  176. package/dist/Banner/EnhancedBanner.js +136 -169
  177. package/dist/Banner/index.cjs +83 -0
  178. package/dist/Banner/index.d.cts +24 -0
  179. package/dist/Banner/index.d.ts +21 -18
  180. package/dist/Banner/index.js +73 -95
  181. package/dist/BetaSticker/index.cjs +63 -0
  182. package/dist/BetaSticker/index.d.cts +9 -0
  183. package/dist/BetaSticker/index.d.ts +7 -4
  184. package/dist/BetaSticker/index.js +60 -57
  185. package/dist/CareerPathCard/index.cjs +34 -0
  186. package/dist/CareerPathCard/index.d.cts +26 -0
  187. package/dist/CareerPathCard/index.d.ts +24 -20
  188. package/dist/CareerPathCard/index.js +33 -49
  189. package/dist/Carousel/elements.cjs +12 -0
  190. package/dist/Carousel/elements.js +10 -14
  191. package/dist/Carousel/index.cjs +194 -0
  192. package/dist/Carousel/index.d.cts +27 -0
  193. package/dist/Carousel/index.d.ts +24 -21
  194. package/dist/Carousel/index.js +185 -247
  195. package/dist/CertificationPathCard/index.cjs +41 -0
  196. package/dist/CertificationPathCard/index.d.cts +27 -0
  197. package/dist/CertificationPathCard/index.d.ts +24 -20
  198. package/dist/CertificationPathCard/index.js +40 -52
  199. package/dist/CoachingSessionCard/index.cjs +87 -0
  200. package/dist/CoachingSessionCard/index.d.cts +24 -0
  201. package/dist/CoachingSessionCard/index.d.ts +23 -20
  202. package/dist/CoachingSessionCard/index.js +84 -73
  203. package/dist/CommunityEventCard/EventTypeIcon.cjs +61 -0
  204. package/dist/CommunityEventCard/EventTypeIcon.js +59 -58
  205. package/dist/CommunityEventCard/index.cjs +260 -0
  206. package/dist/CommunityEventCard/index.d.cts +31 -0
  207. package/dist/CommunityEventCard/index.d.ts +30 -27
  208. package/dist/CommunityEventCard/index.js +253 -302
  209. package/dist/CommunityEventToast/index.cjs +35 -0
  210. package/dist/CommunityEventToast/index.d.cts +9 -0
  211. package/dist/CommunityEventToast/index.d.ts +7 -4
  212. package/dist/CommunityEventToast/index.js +33 -32
  213. package/dist/ContentGroupBaseCard/helpers.cjs +15 -0
  214. package/dist/ContentGroupBaseCard/helpers.d.cts +8 -0
  215. package/dist/ContentGroupBaseCard/helpers.d.ts +8 -4
  216. package/dist/ContentGroupBaseCard/helpers.js +12 -11
  217. package/dist/ContentGroupBaseCard/index.cjs +215 -0
  218. package/dist/ContentGroupBaseCard/index.d.cts +40 -0
  219. package/dist/ContentGroupBaseCard/index.d.ts +38 -31
  220. package/dist/ContentGroupBaseCard/index.js +209 -236
  221. package/dist/ContentGroupBaseCard/shared.cjs +80 -0
  222. package/dist/ContentGroupBaseCard/shared.js +73 -67
  223. package/dist/ContentGroupBaseCard/types.cjs +18 -0
  224. package/dist/ContentGroupBaseCard/types.d.cts +13 -0
  225. package/dist/ContentGroupBaseCard/types.d.ts +11 -8
  226. package/dist/ContentGroupBaseCard/types.js +15 -11
  227. package/dist/CourseCard/index.cjs +32 -0
  228. package/dist/CourseCard/index.d.cts +25 -0
  229. package/dist/CourseCard/index.d.ts +24 -19
  230. package/dist/CourseCard/index.js +31 -45
  231. package/dist/CurriculumCard/BottomTag/index.cjs +30 -0
  232. package/dist/CurriculumCard/BottomTag/index.d.cts +4 -0
  233. package/dist/CurriculumCard/BottomTag/index.d.ts +6 -7
  234. package/dist/CurriculumCard/BottomTag/index.js +26 -24
  235. package/dist/CurriculumCard/Difficulty/helpers.cjs +17 -0
  236. package/dist/CurriculumCard/Difficulty/helpers.d.cts +13 -0
  237. package/dist/CurriculumCard/Difficulty/helpers.d.ts +7 -2
  238. package/dist/CurriculumCard/Difficulty/helpers.js +15 -11
  239. package/dist/CurriculumCard/Difficulty/index.cjs +45 -0
  240. package/dist/CurriculumCard/Difficulty/index.d.cts +7 -0
  241. package/dist/CurriculumCard/Difficulty/index.d.ts +7 -3
  242. package/dist/CurriculumCard/Difficulty/index.js +40 -47
  243. package/dist/CurriculumCard/Difficulty/types.cjs +21 -0
  244. package/dist/CurriculumCard/Difficulty/types.d.cts +25 -0
  245. package/dist/CurriculumCard/Difficulty/types.d.ts +16 -13
  246. package/dist/CurriculumCard/Difficulty/types.js +16 -17
  247. package/dist/CurriculumCard/Footer/index.cjs +49 -0
  248. package/dist/CurriculumCard/Footer/index.js +47 -54
  249. package/dist/CurriculumCard/Image/index.cjs +50 -0
  250. package/dist/CurriculumCard/Image/index.js +43 -52
  251. package/dist/CurriculumCard/Subtitle/helpers.cjs +9 -0
  252. package/dist/CurriculumCard/Subtitle/helpers.js +8 -8
  253. package/dist/CurriculumCard/Subtitle/index.cjs +40 -0
  254. package/dist/CurriculumCard/Subtitle/index.d.cts +10 -0
  255. package/dist/CurriculumCard/Subtitle/index.d.ts +10 -7
  256. package/dist/CurriculumCard/Subtitle/index.js +37 -34
  257. package/dist/CurriculumCard/index.cjs +122 -0
  258. package/dist/CurriculumCard/index.d.cts +63 -0
  259. package/dist/CurriculumCard/index.d.ts +56 -52
  260. package/dist/CurriculumCard/index.js +114 -124
  261. package/dist/DropdownButton/DropdownList.cjs +57 -0
  262. package/dist/DropdownButton/DropdownList.d.cts +19 -0
  263. package/dist/DropdownButton/DropdownList.d.ts +16 -14
  264. package/dist/DropdownButton/DropdownList.js +55 -73
  265. package/dist/DropdownButton/index.cjs +140 -0
  266. package/dist/DropdownButton/index.d.cts +80 -0
  267. package/dist/DropdownButton/index.d.ts +75 -69
  268. package/dist/DropdownButton/index.js +137 -169
  269. package/dist/DropdownButton/useDynamicPopoverPosition.cjs +41 -0
  270. package/dist/DropdownButton/useDynamicPopoverPosition.js +34 -49
  271. package/dist/EditorialImage/index.cjs +21 -0
  272. package/dist/EditorialImage/index.d.cts +14 -0
  273. package/dist/EditorialImage/index.d.ts +13 -9
  274. package/dist/EditorialImage/index.js +18 -21
  275. package/dist/EditorialImage/styles.module.cjs +5 -0
  276. package/dist/EditorialImage/styles.module.js +5 -0
  277. package/dist/EmptySection/index.cjs +159 -0
  278. package/dist/EmptySection/index.d.cts +32 -0
  279. package/dist/EmptySection/index.d.ts +32 -27
  280. package/dist/EmptySection/index.js +154 -181
  281. package/dist/ErrorContents/index.cjs +64 -0
  282. package/dist/ErrorContents/index.d.cts +12 -0
  283. package/dist/ErrorContents/index.d.ts +11 -7
  284. package/dist/ErrorContents/index.js +62 -48
  285. package/dist/FeatureList/index.cjs +41 -0
  286. package/dist/FeatureList/index.d.cts +18 -0
  287. package/dist/FeatureList/index.d.ts +16 -9
  288. package/dist/FeatureList/index.js +39 -41
  289. package/dist/GlobalFooter/FooterHeading.cjs +28 -0
  290. package/dist/GlobalFooter/FooterHeading.js +25 -29
  291. package/dist/GlobalFooter/FooterLegal/LegalLinks.cjs +77 -0
  292. package/dist/GlobalFooter/FooterLegal/LegalLinks.js +74 -43
  293. package/dist/GlobalFooter/FooterLegal/MadeIn.cjs +79 -0
  294. package/dist/GlobalFooter/FooterLegal/MadeIn.js +75 -63
  295. package/dist/GlobalFooter/FooterLegal/index.cjs +29 -0
  296. package/dist/GlobalFooter/FooterLegal/index.js +26 -22
  297. package/dist/GlobalFooter/FooterLinks.cjs +51 -0
  298. package/dist/GlobalFooter/FooterLinks.js +45 -52
  299. package/dist/GlobalFooter/FooterNavLinks/CatalogLinks.cjs +297 -0
  300. package/dist/GlobalFooter/FooterNavLinks/CatalogLinks.js +288 -292
  301. package/dist/GlobalFooter/FooterNavLinks/CompanyLinks.cjs +254 -0
  302. package/dist/GlobalFooter/FooterNavLinks/CompanyLinks.js +251 -286
  303. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferAFriendLinkWithModal.cjs +246 -0
  304. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferAFriendLinkWithModal.js +242 -271
  305. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralFields.cjs +27 -0
  306. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralFields.js +25 -29
  307. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralForm.cjs +72 -0
  308. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralForm.js +67 -75
  309. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralLinkSocialMediaSharing.cjs +70 -0
  310. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralLinkSocialMediaSharing.js +69 -86
  311. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/types.d.cts +7 -0
  312. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/types.d.ts +6 -3
  313. package/dist/GlobalFooter/FooterNavLinks/SocialMediaLinks.cjs +59 -0
  314. package/dist/GlobalFooter/FooterNavLinks/SocialMediaLinks.js +57 -50
  315. package/dist/GlobalFooter/FooterNavLinks/assets/download-on-the-app-store.cjs +5 -0
  316. package/dist/GlobalFooter/FooterNavLinks/assets/download-on-the-app-store.js +5 -0
  317. package/dist/GlobalFooter/FooterNavLinks/assets/get-it-on-google-play.cjs +5 -0
  318. package/dist/GlobalFooter/FooterNavLinks/assets/get-it-on-google-play.js +5 -0
  319. package/dist/GlobalFooter/FooterNavLinks/index.cjs +44 -0
  320. package/dist/GlobalFooter/FooterNavLinks/index.js +41 -43
  321. package/dist/GlobalFooter/index.cjs +38 -0
  322. package/dist/GlobalFooter/index.d.cts +26 -0
  323. package/dist/GlobalFooter/index.d.ts +25 -21
  324. package/dist/GlobalFooter/index.js +35 -37
  325. package/dist/GlobalFooter/types.d.cts +16 -0
  326. package/dist/GlobalFooter/types.d.ts +14 -11
  327. package/dist/GlobalHeader/GlobalHeaderItems.cjs +443 -0
  328. package/dist/GlobalHeader/GlobalHeaderItems.js +375 -378
  329. package/dist/GlobalHeader/GlobalHeaderVariants.cjs +351 -0
  330. package/dist/GlobalHeader/GlobalHeaderVariants.js +304 -349
  331. package/dist/GlobalHeader/context.cjs +82 -0
  332. package/dist/GlobalHeader/context.js +69 -72
  333. package/dist/GlobalHeader/index.cjs +171 -0
  334. package/dist/GlobalHeader/index.d.cts +10 -0
  335. package/dist/GlobalHeader/index.d.ts +10 -7
  336. package/dist/GlobalHeader/index.js +165 -194
  337. package/dist/GlobalHeader/types.d.cts +124 -0
  338. package/dist/GlobalHeader/types.d.ts +104 -99
  339. package/dist/GlobalHeader/urlHelpers.cjs +22 -0
  340. package/dist/GlobalHeader/urlHelpers.js +19 -20
  341. package/dist/GlobalPage/index.cjs +45 -0
  342. package/dist/GlobalPage/index.d.cts +51 -0
  343. package/dist/GlobalPage/index.d.ts +46 -43
  344. package/dist/GlobalPage/index.js +42 -59
  345. package/dist/Grid/GridCollapse.cjs +161 -0
  346. package/dist/Grid/GridCollapse.d.cts +49 -0
  347. package/dist/Grid/GridCollapse.d.ts +47 -39
  348. package/dist/Grid/GridCollapse.js +152 -194
  349. package/dist/Grid/Subgrid.cjs +41 -0
  350. package/dist/Grid/Subgrid.d.cts +29 -0
  351. package/dist/Grid/Subgrid.d.ts +11 -5
  352. package/dist/Grid/Subgrid.js +37 -35
  353. package/dist/Grid/getCSSFromColumnCount.cjs +10 -0
  354. package/dist/Grid/getCSSFromColumnCount.d.cts +10 -0
  355. package/dist/Grid/getCSSFromColumnCount.d.ts +10 -6
  356. package/dist/Grid/getCSSFromColumnCount.js +9 -7
  357. package/dist/Grid/index.cjs +9 -0
  358. package/dist/Grid/index.d.cts +4 -0
  359. package/dist/Grid/index.d.ts +4 -3
  360. package/dist/Grid/index.js +5 -3
  361. package/dist/HeaderHeightArea/index.cjs +38 -0
  362. package/dist/HeaderHeightArea/index.d.cts +13 -0
  363. package/dist/HeaderHeightArea/index.d.ts +12 -8
  364. package/dist/HeaderHeightArea/index.js +35 -40
  365. package/dist/HeaderHeightArea/useIsInHeaderRegion.cjs +17 -0
  366. package/dist/HeaderHeightArea/useIsInHeaderRegion.js +15 -14
  367. package/dist/HorizontalScrollMenu/index.cjs +68 -0
  368. package/dist/HorizontalScrollMenu/index.d.cts +10 -0
  369. package/dist/HorizontalScrollMenu/index.d.ts +10 -6
  370. package/dist/HorizontalScrollMenu/index.js +65 -75
  371. package/dist/HubCard/index.cjs +40 -0
  372. package/dist/HubCard/index.d.cts +12 -0
  373. package/dist/HubCard/index.d.ts +11 -7
  374. package/dist/HubCard/index.js +38 -38
  375. package/dist/InfoCard/index.cjs +121 -0
  376. package/dist/InfoCard/index.d.cts +23 -0
  377. package/dist/InfoCard/index.d.ts +22 -18
  378. package/dist/InfoCard/index.js +109 -147
  379. package/dist/Konamimojisplosion/Konamimojisplosion.cjs +10 -0
  380. package/dist/Konamimojisplosion/Konamimojisplosion.d.cts +9 -0
  381. package/dist/Konamimojisplosion/Konamimojisplosion.d.ts +8 -4
  382. package/dist/Konamimojisplosion/Konamimojisplosion.js +10 -7
  383. package/dist/Konamimojisplosion/index.cjs +5 -0
  384. package/dist/Konamimojisplosion/index.d.cts +3 -0
  385. package/dist/Konamimojisplosion/index.d.ts +3 -2
  386. package/dist/Konamimojisplosion/index.js +4 -2
  387. package/dist/Konamimojisplosion/useKonamimojisplosion.cjs +47 -0
  388. package/dist/Konamimojisplosion/useKonamimojisplosion.d.cts +4 -0
  389. package/dist/Konamimojisplosion/useKonamimojisplosion.d.ts +4 -1
  390. package/dist/Konamimojisplosion/useKonamimojisplosion.js +44 -32
  391. package/dist/LandingPage/CTA.cjs +11 -0
  392. package/dist/LandingPage/CTA.js +9 -11
  393. package/dist/LandingPage/Description.cjs +18 -0
  394. package/dist/LandingPage/Description.d.cts +10 -0
  395. package/dist/LandingPage/Description.d.ts +9 -5
  396. package/dist/LandingPage/Description.js +16 -14
  397. package/dist/LandingPage/Feature.cjs +89 -0
  398. package/dist/LandingPage/Feature.js +75 -90
  399. package/dist/LandingPage/PageFAQs.cjs +49 -0
  400. package/dist/LandingPage/PageFAQs.d.cts +14 -0
  401. package/dist/LandingPage/PageFAQs.d.ts +13 -9
  402. package/dist/LandingPage/PageFAQs.js +46 -42
  403. package/dist/LandingPage/PageFeatures.cjs +99 -0
  404. package/dist/LandingPage/PageFeatures.d.cts +20 -0
  405. package/dist/LandingPage/PageFeatures.d.ts +19 -15
  406. package/dist/LandingPage/PageFeatures.js +91 -106
  407. package/dist/LandingPage/PageFeaturesEnhanced.cjs +152 -0
  408. package/dist/LandingPage/PageFeaturesEnhanced.d.cts +11 -0
  409. package/dist/LandingPage/PageFeaturesEnhanced.d.ts +10 -6
  410. package/dist/LandingPage/PageFeaturesEnhanced.js +144 -153
  411. package/dist/LandingPage/PageFeaturesWithReferences.cjs +128 -0
  412. package/dist/LandingPage/PageFeaturesWithReferences.d.cts +23 -0
  413. package/dist/LandingPage/PageFeaturesWithReferences.d.ts +22 -18
  414. package/dist/LandingPage/PageFeaturesWithReferences.js +126 -137
  415. package/dist/LandingPage/PageHero.cjs +20 -0
  416. package/dist/LandingPage/PageHero.d.cts +11 -0
  417. package/dist/LandingPage/PageHero.d.ts +10 -6
  418. package/dist/LandingPage/PageHero.js +16 -20
  419. package/dist/LandingPage/PagePrefooter.cjs +66 -0
  420. package/dist/LandingPage/PagePrefooter.d.cts +9 -0
  421. package/dist/LandingPage/PagePrefooter.d.ts +8 -4
  422. package/dist/LandingPage/PagePrefooter.js +64 -74
  423. package/dist/LandingPage/PageSingleFeature.cjs +108 -0
  424. package/dist/LandingPage/PageSingleFeature.d.cts +60 -0
  425. package/dist/LandingPage/PageSingleFeature.d.ts +54 -50
  426. package/dist/LandingPage/PageSingleFeature.js +104 -127
  427. package/dist/LandingPage/PageTestimonials.cjs +108 -0
  428. package/dist/LandingPage/PageTestimonials.d.cts +25 -0
  429. package/dist/LandingPage/PageTestimonials.d.ts +23 -19
  430. package/dist/LandingPage/PageTestimonials.js +99 -107
  431. package/dist/LandingPage/PageVideoGallery.cjs +70 -0
  432. package/dist/LandingPage/PageVideoGallery.d.cts +15 -0
  433. package/dist/LandingPage/PageVideoGallery.d.ts +13 -9
  434. package/dist/LandingPage/PageVideoGallery.js +67 -49
  435. package/dist/LandingPage/Title.cjs +33 -0
  436. package/dist/LandingPage/Title.d.cts +27 -0
  437. package/dist/LandingPage/Title.d.ts +23 -19
  438. package/dist/LandingPage/Title.js +29 -27
  439. package/dist/LandingPage/TitleWithEyebrow.cjs +39 -0
  440. package/dist/LandingPage/TitleWithEyebrow.d.cts +15 -0
  441. package/dist/LandingPage/TitleWithEyebrow.d.ts +14 -10
  442. package/dist/LandingPage/TitleWithEyebrow.js +37 -40
  443. package/dist/LandingPage/index.cjs +29 -0
  444. package/dist/LandingPage/index.d.cts +15 -0
  445. package/dist/LandingPage/index.d.ts +15 -14
  446. package/dist/LandingPage/index.js +15 -14
  447. package/dist/LandingPage/types.d.cts +31 -0
  448. package/dist/LandingPage/types.d.ts +30 -27
  449. package/dist/LayoutMenu/AccordionMenu.cjs +64 -0
  450. package/dist/LayoutMenu/AccordionMenu.d.cts +18 -0
  451. package/dist/LayoutMenu/AccordionMenu.d.ts +16 -24
  452. package/dist/LayoutMenu/AccordionMenu.js +59 -70
  453. package/dist/LayoutMenu/LayoutMenu.cjs +107 -0
  454. package/dist/LayoutMenu/LayoutMenu.d.cts +48 -0
  455. package/dist/LayoutMenu/LayoutMenu.d.ts +47 -43
  456. package/dist/LayoutMenu/LayoutMenu.js +105 -119
  457. package/dist/LayoutMenu/LayoutMenuSection.cjs +38 -0
  458. package/dist/LayoutMenu/LayoutMenuSection.js +36 -39
  459. package/dist/LayoutMenu/SectionItemLink.cjs +19 -0
  460. package/dist/LayoutMenu/SectionItemLink.d.cts +11 -0
  461. package/dist/LayoutMenu/SectionItemLink.d.ts +10 -6
  462. package/dist/LayoutMenu/SectionItemLink.js +17 -16
  463. package/dist/LayoutMenu/SelectedSectionItem.cjs +22 -0
  464. package/dist/LayoutMenu/SelectedSectionItem.d.cts +7 -0
  465. package/dist/LayoutMenu/SelectedSectionItem.d.ts +7 -3
  466. package/dist/LayoutMenu/SelectedSectionItem.js +20 -17
  467. package/dist/LayoutMenu/index.cjs +7 -0
  468. package/dist/LayoutMenu/index.d.cts +4 -0
  469. package/dist/LayoutMenu/index.d.ts +4 -3
  470. package/dist/LayoutMenu/index.js +5 -3
  471. package/dist/LayoutMenuVariant/AccordionMenu.cjs +76 -0
  472. package/dist/LayoutMenuVariant/AccordionMenu.d.cts +19 -0
  473. package/dist/LayoutMenuVariant/AccordionMenu.d.ts +17 -19
  474. package/dist/LayoutMenuVariant/AccordionMenu.js +72 -86
  475. package/dist/LayoutMenuVariant/LayoutMenu.cjs +88 -0
  476. package/dist/LayoutMenuVariant/LayoutMenu.d.cts +43 -0
  477. package/dist/LayoutMenuVariant/LayoutMenu.d.ts +42 -38
  478. package/dist/LayoutMenuVariant/LayoutMenu.js +85 -93
  479. package/dist/LayoutMenuVariant/LayoutMenuSection.cjs +37 -0
  480. package/dist/LayoutMenuVariant/LayoutMenuSection.js +33 -41
  481. package/dist/LayoutMenuVariant/SectionItemLink.cjs +19 -0
  482. package/dist/LayoutMenuVariant/SectionItemLink.d.cts +12 -0
  483. package/dist/LayoutMenuVariant/SectionItemLink.d.ts +11 -7
  484. package/dist/LayoutMenuVariant/SectionItemLink.js +17 -17
  485. package/dist/LayoutMenuVariant/index.cjs +19 -0
  486. package/dist/LayoutMenuVariant/index.d.cts +9 -0
  487. package/dist/LayoutMenuVariant/index.d.ts +9 -2
  488. package/dist/LayoutMenuVariant/index.js +12 -2
  489. package/dist/LearningOutcomeAssessmentScores/AssessmentDetail.cjs +52 -0
  490. package/dist/LearningOutcomeAssessmentScores/AssessmentDetail.js +50 -55
  491. package/dist/LearningOutcomeAssessmentScores/index.cjs +25 -0
  492. package/dist/LearningOutcomeAssessmentScores/index.d.cts +10 -0
  493. package/dist/LearningOutcomeAssessmentScores/index.d.ts +8 -6
  494. package/dist/LearningOutcomeAssessmentScores/index.js +24 -24
  495. package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.cjs +50 -0
  496. package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.d.cts +21 -0
  497. package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.d.ts +17 -14
  498. package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.js +44 -55
  499. package/dist/LearningOutcomeBadges/LearningOutcomeLowAssessmentBadge.cjs +38 -0
  500. package/dist/LearningOutcomeBadges/LearningOutcomeLowAssessmentBadge.d.cts +18 -0
  501. package/dist/LearningOutcomeBadges/LearningOutcomeLowAssessmentBadge.d.ts +16 -8
  502. package/dist/LearningOutcomeBadges/LearningOutcomeLowAssessmentBadge.js +34 -34
  503. package/dist/LearningOutcomeBadges/index.cjs +8 -0
  504. package/dist/LearningOutcomeBadges/index.d.cts +3 -0
  505. package/dist/LearningOutcomeBadges/index.d.ts +3 -2
  506. package/dist/LearningOutcomeBadges/index.js +4 -2
  507. package/dist/LearningOutcomeCard/index.cjs +167 -0
  508. package/dist/LearningOutcomeCard/index.d.cts +30 -0
  509. package/dist/LearningOutcomeCard/index.d.ts +27 -23
  510. package/dist/LearningOutcomeCard/index.js +159 -197
  511. package/dist/LearningOutcomeFlyout/LearningOutcomeCardList.cjs +41 -0
  512. package/dist/LearningOutcomeFlyout/LearningOutcomeCardList.js +40 -42
  513. package/dist/LearningOutcomeFlyout/index.cjs +316 -0
  514. package/dist/LearningOutcomeFlyout/index.d.cts +12 -0
  515. package/dist/LearningOutcomeFlyout/index.d.ts +12 -7
  516. package/dist/LearningOutcomeFlyout/index.js +306 -349
  517. package/dist/LearningOutcomeFlyout/types.cjs +10 -0
  518. package/dist/LearningOutcomeFlyout/types.d.cts +66 -0
  519. package/dist/LearningOutcomeFlyout/types.d.ts +58 -54
  520. package/dist/LearningOutcomeFlyout/types.js +9 -5
  521. package/dist/LearningOutcomePopover/index.cjs +117 -0
  522. package/dist/LearningOutcomePopover/index.d.cts +13 -0
  523. package/dist/LearningOutcomePopover/index.d.ts +11 -8
  524. package/dist/LearningOutcomePopover/index.js +112 -121
  525. package/dist/LearningOutcomeTile/Tile.cjs +68 -0
  526. package/dist/LearningOutcomeTile/Tile.js +62 -75
  527. package/dist/LearningOutcomeTile/index.cjs +96 -0
  528. package/dist/LearningOutcomeTile/index.d.cts +7 -0
  529. package/dist/LearningOutcomeTile/index.d.ts +7 -3
  530. package/dist/LearningOutcomeTile/index.js +92 -114
  531. package/dist/LearningOutcomeTile/types.cjs +11 -0
  532. package/dist/LearningOutcomeTile/types.d.cts +45 -0
  533. package/dist/LearningOutcomeTile/types.d.ts +35 -36
  534. package/dist/LearningOutcomeTile/types.js +8 -9
  535. package/dist/ListSection/index.cjs +56 -0
  536. package/dist/ListSection/index.d.cts +25 -0
  537. package/dist/ListSection/index.d.ts +25 -20
  538. package/dist/ListSection/index.js +53 -64
  539. package/dist/Loading/index.cjs +91 -0
  540. package/dist/Loading/index.d.cts +9 -0
  541. package/dist/Loading/index.d.ts +8 -4
  542. package/dist/Loading/index.js +87 -81
  543. package/dist/Loading/styles.module.cjs +5 -0
  544. package/dist/Loading/styles.module.js +5 -0
  545. package/dist/LoadingCurriculumCard/index.cjs +85 -0
  546. package/dist/LoadingCurriculumCard/index.d.cts +10 -0
  547. package/dist/LoadingCurriculumCard/index.d.ts +8 -5
  548. package/dist/LoadingCurriculumCard/index.js +83 -82
  549. package/dist/Logos/LogoCodecademy/index.cjs +23 -0
  550. package/dist/Logos/LogoCodecademy/index.d.cts +6 -0
  551. package/dist/Logos/LogoCodecademy/index.d.ts +6 -2
  552. package/dist/Logos/LogoCodecademy/index.js +22 -22
  553. package/dist/Logos/LogoCodecademyMini/index.cjs +19 -0
  554. package/dist/Logos/LogoCodecademyMini/index.d.cts +6 -0
  555. package/dist/Logos/LogoCodecademyMini/index.d.ts +6 -2
  556. package/dist/Logos/LogoCodecademyMini/index.js +18 -18
  557. package/dist/Logos/LogoCodecademyPro/index.cjs +26 -0
  558. package/dist/Logos/LogoCodecademyPro/index.d.cts +6 -0
  559. package/dist/Logos/LogoCodecademyPro/index.d.ts +6 -2
  560. package/dist/Logos/LogoCodecademyPro/index.js +25 -25
  561. package/dist/Logos/LogoCodecademyTeams/index.cjs +53 -0
  562. package/dist/Logos/LogoCodecademyTeams/index.d.cts +6 -0
  563. package/dist/Logos/LogoCodecademyTeams/index.d.ts +6 -2
  564. package/dist/Logos/LogoCodecademyTeams/index.js +52 -46
  565. package/dist/Logos/LogoFromSkillsoft/index.cjs +49 -0
  566. package/dist/Logos/LogoFromSkillsoft/index.d.cts +7 -0
  567. package/dist/Logos/LogoFromSkillsoft/index.d.ts +7 -3
  568. package/dist/Logos/LogoFromSkillsoft/index.js +47 -48
  569. package/dist/Logos/LogoLXStudio/index.cjs +38 -0
  570. package/dist/Logos/LogoLXStudio/index.d.cts +7 -0
  571. package/dist/Logos/LogoLXStudio/index.d.ts +7 -3
  572. package/dist/Logos/LogoLXStudio/index.js +36 -40
  573. package/dist/Logos/ProLabel/ProLabelCutout/index.cjs +38 -0
  574. package/dist/Logos/ProLabel/ProLabelCutout/index.js +36 -31
  575. package/dist/Logos/ProLabel/ProLabelCutoutTransparent/index.cjs +39 -0
  576. package/dist/Logos/ProLabel/ProLabelCutoutTransparent/index.js +37 -31
  577. package/dist/Logos/ProLabel/index.cjs +27 -0
  578. package/dist/Logos/ProLabel/index.d.cts +18 -0
  579. package/dist/Logos/ProLabel/index.d.ts +14 -11
  580. package/dist/Logos/ProLabel/index.js +25 -27
  581. package/dist/Logos/index.cjs +15 -0
  582. package/dist/Logos/index.d.cts +8 -0
  583. package/dist/Logos/index.d.ts +8 -7
  584. package/dist/Logos/index.js +9 -7
  585. package/dist/Logos/shared.cjs +14 -0
  586. package/dist/Logos/shared.d.cts +232 -0
  587. package/dist/Logos/shared.d.ts +235 -642
  588. package/dist/Logos/shared.js +10 -14
  589. package/dist/MarketingToaster/index.cjs +50 -0
  590. package/dist/MarketingToaster/index.d.cts +11 -0
  591. package/dist/MarketingToaster/index.d.ts +9 -6
  592. package/dist/MarketingToaster/index.js +46 -66
  593. package/dist/NotFoundContent/404.cjs +5 -0
  594. package/dist/NotFoundContent/404.js +5 -0
  595. package/dist/NotFoundContent/index.cjs +49 -0
  596. package/dist/NotFoundContent/index.d.cts +11 -0
  597. package/dist/NotFoundContent/index.d.ts +9 -6
  598. package/dist/NotFoundContent/index.js +46 -55
  599. package/dist/NotificationList/EmptyNotification/emptyNotificationContents.cjs +34 -0
  600. package/dist/NotificationList/EmptyNotification/emptyNotificationContents.js +33 -23
  601. package/dist/NotificationList/EmptyNotification/index.cjs +44 -0
  602. package/dist/NotificationList/EmptyNotification/index.js +42 -38
  603. package/dist/NotificationList/NotificationItem.cjs +162 -0
  604. package/dist/NotificationList/NotificationItem.d.cts +12 -0
  605. package/dist/NotificationList/NotificationItem.d.ts +11 -7
  606. package/dist/NotificationList/NotificationItem.js +157 -149
  607. package/dist/NotificationList/index.cjs +45 -0
  608. package/dist/NotificationList/index.d.cts +13 -0
  609. package/dist/NotificationList/index.d.ts +12 -8
  610. package/dist/NotificationList/index.js +41 -46
  611. package/dist/NotificationList/typings.d.cts +19 -0
  612. package/dist/NotificationList/typings.d.ts +17 -14
  613. package/dist/Notifications/NotificationBell.cjs +61 -0
  614. package/dist/Notifications/NotificationBell.js +60 -72
  615. package/dist/Notifications/NotificationsContents.cjs +80 -0
  616. package/dist/Notifications/NotificationsContents.js +78 -85
  617. package/dist/Notifications/NotificationsDropdown.cjs +24 -0
  618. package/dist/Notifications/NotificationsDropdown.js +23 -25
  619. package/dist/Notifications/constants.cjs +9 -0
  620. package/dist/Notifications/constants.js +7 -3
  621. package/dist/Notifications/elements.cjs +23 -0
  622. package/dist/Notifications/elements.js +19 -20
  623. package/dist/Notifications/types.d.cts +17 -0
  624. package/dist/Notifications/types.d.ts +16 -22
  625. package/dist/Notifications/useHeaderNotifications.cjs +38 -0
  626. package/dist/Notifications/useHeaderNotifications.js +37 -37
  627. package/dist/Notifications/useNotificationButtons.cjs +53 -0
  628. package/dist/Notifications/useNotificationButtons.js +52 -56
  629. package/dist/PageAlerts/PageAlerts.cjs +69 -0
  630. package/dist/PageAlerts/PageAlerts.d.cts +16 -0
  631. package/dist/PageAlerts/PageAlerts.d.ts +15 -9
  632. package/dist/PageAlerts/PageAlerts.js +64 -74
  633. package/dist/PageAlerts/PageAlertsProvider.cjs +41 -0
  634. package/dist/PageAlerts/PageAlertsProvider.d.cts +15 -0
  635. package/dist/PageAlerts/PageAlertsProvider.d.ts +14 -10
  636. package/dist/PageAlerts/PageAlertsProvider.js +36 -33
  637. package/dist/PageAlerts/index.cjs +8 -0
  638. package/dist/PageAlerts/index.d.cts +4 -0
  639. package/dist/PageAlerts/index.d.ts +4 -3
  640. package/dist/PageAlerts/index.js +4 -3
  641. package/dist/PageAlerts/types.d.cts +18 -0
  642. package/dist/PageAlerts/types.d.ts +15 -14
  643. package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.cjs +50 -0
  644. package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.d.cts +22 -0
  645. package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.d.ts +20 -17
  646. package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.js +48 -53
  647. package/dist/PageLayoutWithSidebarMenu/index.cjs +3 -0
  648. package/dist/PageLayoutWithSidebarMenu/index.d.cts +2 -0
  649. package/dist/PageLayoutWithSidebarMenu/index.d.ts +2 -1
  650. package/dist/PageLayoutWithSidebarMenu/index.js +3 -1
  651. package/dist/PageSection/index.cjs +65 -0
  652. package/dist/PageSection/index.d.cts +20 -0
  653. package/dist/PageSection/index.d.ts +17 -14
  654. package/dist/PageSection/index.js +61 -65
  655. package/dist/PastDue/PastDueModalContents/index.cjs +28 -0
  656. package/dist/PastDue/PastDueModalContents/index.d.cts +12 -0
  657. package/dist/PastDue/PastDueModalContents/index.d.ts +11 -7
  658. package/dist/PastDue/PastDueModalContents/index.js +26 -30
  659. package/dist/PastDue/index.cjs +5 -0
  660. package/dist/PastDue/index.d.cts +3 -0
  661. package/dist/PastDue/index.d.ts +3 -2
  662. package/dist/PastDue/index.js +4 -2
  663. package/dist/PastDue/pastDueMessages.cjs +55 -0
  664. package/dist/PastDue/pastDueMessages.d.cts +8 -0
  665. package/dist/PastDue/pastDueMessages.d.ts +6 -4
  666. package/dist/PastDue/pastDueMessages.js +53 -48
  667. package/dist/PausableImage/BaseImage/index.cjs +77 -0
  668. package/dist/PausableImage/BaseImage/index.js +69 -53
  669. package/dist/PausableImage/index.cjs +32 -0
  670. package/dist/PausableImage/index.d.cts +16 -0
  671. package/dist/PausableImage/index.d.ts +14 -9
  672. package/dist/PausableImage/index.js +26 -35
  673. package/dist/PlanCard/PlanCardBanner.cjs +30 -0
  674. package/dist/PlanCard/PlanCardBanner.d.cts +10 -0
  675. package/dist/PlanCard/PlanCardBanner.d.ts +8 -5
  676. package/dist/PlanCard/PlanCardBanner.js +27 -28
  677. package/dist/PlanCard/PlanFeature.cjs +91 -0
  678. package/dist/PlanCard/PlanFeature.js +88 -105
  679. package/dist/PlanCard/PopularBadge.cjs +20 -0
  680. package/dist/PlanCard/PopularBadge.js +18 -13
  681. package/dist/PlanCard/PricingAmount.cjs +122 -0
  682. package/dist/PlanCard/PricingAmount.js +118 -116
  683. package/dist/PlanCard/RecommendedBadge.cjs +31 -0
  684. package/dist/PlanCard/RecommendedBadge.js +29 -24
  685. package/dist/PlanCard/consts.cjs +220 -0
  686. package/dist/PlanCard/consts.js +219 -167
  687. package/dist/PlanCard/index.cjs +341 -0
  688. package/dist/PlanCard/index.d.cts +22 -0
  689. package/dist/PlanCard/index.d.ts +21 -17
  690. package/dist/PlanCard/index.js +336 -373
  691. package/dist/PlanCard/types.cjs +75 -0
  692. package/dist/PlanCard/types.d.cts +43 -0
  693. package/dist/PlanCard/types.d.ts +41 -38
  694. package/dist/PlanCard/types.js +66 -69
  695. package/dist/PlanCardTeams/consts.cjs +22 -0
  696. package/dist/PlanCardTeams/consts.js +21 -8
  697. package/dist/PlanCardTeams/index.cjs +140 -0
  698. package/dist/PlanCardTeams/index.d.cts +12 -0
  699. package/dist/PlanCardTeams/index.d.ts +11 -7
  700. package/dist/PlanCardTeams/index.js +135 -165
  701. package/dist/PricingSection/ConditionalColorMode.cjs +14 -0
  702. package/dist/PricingSection/ConditionalColorMode.js +13 -13
  703. package/dist/PricingSection/PricingCard/PricingAmount.cjs +122 -0
  704. package/dist/PricingSection/PricingCard/PricingAmount.js +118 -114
  705. package/dist/PricingSection/PricingCard/RecommendedBadge.cjs +30 -0
  706. package/dist/PricingSection/PricingCard/RecommendedBadge.js +29 -24
  707. package/dist/PricingSection/PricingCard/index.cjs +176 -0
  708. package/dist/PricingSection/PricingCard/index.js +170 -198
  709. package/dist/PricingSection/PricingCard/types.cjs +67 -0
  710. package/dist/PricingSection/PricingCard/types.d.cts +26 -0
  711. package/dist/PricingSection/PricingCard/types.d.ts +24 -38
  712. package/dist/PricingSection/PricingCard/types.js +61 -58
  713. package/dist/PricingSection/ProductCTA.cjs +106 -0
  714. package/dist/PricingSection/ProductCTA.js +103 -133
  715. package/dist/PricingSection/Products.cjs +86 -0
  716. package/dist/PricingSection/Products.js +85 -92
  717. package/dist/PricingSection/config.cjs +33 -0
  718. package/dist/PricingSection/config.js +29 -36
  719. package/dist/PricingSection/index.cjs +36 -0
  720. package/dist/PricingSection/index.d.cts +22 -0
  721. package/dist/PricingSection/index.d.ts +20 -14
  722. package/dist/PricingSection/index.js +35 -41
  723. package/dist/PricingSection/types.cjs +14 -0
  724. package/dist/PricingSection/types.d.cts +18 -0
  725. package/dist/PricingSection/types.d.ts +16 -29
  726. package/dist/PricingSection/types.js +13 -9
  727. package/dist/ProLogoAlt/index.cjs +28 -0
  728. package/dist/ProLogoAlt/index.d.cts +13 -0
  729. package/dist/ProLogoAlt/index.d.ts +12 -8
  730. package/dist/ProLogoAlt/index.js +26 -26
  731. package/dist/ProductFeatureShowcase/index.cjs +108 -0
  732. package/dist/ProductFeatureShowcase/index.d.cts +19 -0
  733. package/dist/ProductFeatureShowcase/index.d.ts +18 -15
  734. package/dist/ProductFeatureShowcase/index.js +105 -119
  735. package/dist/QuizScore/index.cjs +93 -0
  736. package/dist/QuizScore/index.d.cts +15 -0
  737. package/dist/QuizScore/index.d.ts +13 -10
  738. package/dist/QuizScore/index.js +91 -84
  739. package/dist/RatingsBar/index.cjs +44 -0
  740. package/dist/RatingsBar/index.d.cts +16 -0
  741. package/dist/RatingsBar/index.d.ts +15 -11
  742. package/dist/RatingsBar/index.js +41 -34
  743. package/dist/Recurly/context/NoProvider.cjs +12 -0
  744. package/dist/Recurly/context/NoProvider.js +10 -6
  745. package/dist/Recurly/context/elements/index.cjs +45 -0
  746. package/dist/Recurly/context/elements/index.d.cts +15 -0
  747. package/dist/Recurly/context/elements/index.d.ts +10 -21
  748. package/dist/Recurly/context/elements/index.js +39 -42
  749. package/dist/Recurly/context/index.d.ts +2 -2
  750. package/dist/Recurly/context/recurly/index.cjs +49 -0
  751. package/dist/Recurly/context/recurly/index.d.cts +38 -0
  752. package/dist/Recurly/context/recurly/index.d.ts +15 -7
  753. package/dist/Recurly/context/recurly/index.js +44 -47
  754. package/dist/Recurly/context/recurly/loadRecurly.cjs +21 -0
  755. package/dist/Recurly/context/recurly/loadRecurly.d.cts +9 -0
  756. package/dist/Recurly/context/recurly/loadRecurly.d.ts +8 -5
  757. package/dist/Recurly/context/recurly/loadRecurly.js +21 -22
  758. package/dist/Recurly/context/recurly/w.cjs +6 -0
  759. package/dist/Recurly/context/recurly/w.js +4 -3
  760. package/dist/Recurly/fields/RecurlyField.cjs +69 -0
  761. package/dist/Recurly/fields/RecurlyField.d.cts +18 -0
  762. package/dist/Recurly/fields/RecurlyField.d.ts +13 -4
  763. package/dist/Recurly/fields/RecurlyField.js +65 -55
  764. package/dist/Recurly/fields/elements.cjs +63 -0
  765. package/dist/Recurly/fields/elements.d.cts +22 -0
  766. package/dist/Recurly/fields/elements.d.ts +20 -15
  767. package/dist/Recurly/fields/elements.js +48 -95
  768. package/dist/Recurly/fields/index.d.ts +2 -2
  769. package/dist/Recurly/index.cjs +13 -0
  770. package/dist/Recurly/index.d.cts +5 -0
  771. package/dist/Recurly/index.d.ts +7 -2
  772. package/dist/Recurly/index.js +6 -2
  773. package/dist/ResourceCard/index.cjs +59 -0
  774. package/dist/ResourceCard/index.d.cts +19 -0
  775. package/dist/ResourceCard/index.d.ts +17 -13
  776. package/dist/ResourceCard/index.js +56 -58
  777. package/dist/ScoreSummary/SubScores.cjs +136 -0
  778. package/dist/ScoreSummary/SubScores.d.cts +40 -0
  779. package/dist/ScoreSummary/SubScores.d.ts +38 -26
  780. package/dist/ScoreSummary/SubScores.js +132 -163
  781. package/dist/ScoreSummary/helpers.cjs +20 -0
  782. package/dist/ScoreSummary/helpers.js +17 -19
  783. package/dist/ScoreSummary/index.cjs +98 -0
  784. package/dist/ScoreSummary/index.d.cts +25 -0
  785. package/dist/ScoreSummary/index.d.ts +24 -20
  786. package/dist/ScoreSummary/index.js +96 -108
  787. package/dist/ScoreSummary/types.d.cts +313 -0
  788. package/dist/ScoreSummary/types.d.ts +308 -305
  789. package/dist/SkillPathCard/index.cjs +34 -0
  790. package/dist/SkillPathCard/index.d.cts +25 -0
  791. package/dist/SkillPathCard/index.d.ts +24 -19
  792. package/dist/SkillPathCard/index.js +33 -46
  793. package/dist/SocialMediaSharing/SocialShareIconLink.cjs +43 -0
  794. package/dist/SocialMediaSharing/SocialShareIconLink.d.cts +9 -0
  795. package/dist/SocialMediaSharing/SocialShareIconLink.d.ts +9 -12
  796. package/dist/SocialMediaSharing/SocialShareIconLink.js +39 -48
  797. package/dist/SocialMediaSharing/index.cjs +86 -0
  798. package/dist/SocialMediaSharing/index.d.cts +64 -0
  799. package/dist/SocialMediaSharing/index.d.ts +59 -44
  800. package/dist/SocialMediaSharing/index.js +80 -114
  801. package/dist/SocialMediaSharingDropdown/index.cjs +98 -0
  802. package/dist/SocialMediaSharingDropdown/index.d.cts +19 -0
  803. package/dist/SocialMediaSharingDropdown/index.d.ts +18 -14
  804. package/dist/SocialMediaSharingDropdown/index.js +95 -110
  805. package/dist/Testimonial/index.cjs +141 -0
  806. package/dist/Testimonial/index.d.cts +53 -0
  807. package/dist/Testimonial/index.d.ts +50 -42
  808. package/dist/Testimonial/index.js +128 -153
  809. package/dist/_virtual/_@oxc-project_runtime@0.103.0/helpers/defineProperty.cjs +14 -0
  810. package/dist/_virtual/_@oxc-project_runtime@0.103.0/helpers/defineProperty.js +14 -0
  811. package/dist/_virtual/_@oxc-project_runtime@0.103.0/helpers/toPrimitive.cjs +16 -0
  812. package/dist/_virtual/_@oxc-project_runtime@0.103.0/helpers/toPrimitive.js +16 -0
  813. package/dist/_virtual/_@oxc-project_runtime@0.103.0/helpers/toPropertyKey.cjs +11 -0
  814. package/dist/_virtual/_@oxc-project_runtime@0.103.0/helpers/toPropertyKey.js +11 -0
  815. package/dist/_virtual/_@oxc-project_runtime@0.103.0/helpers/typeof.cjs +18 -0
  816. package/dist/_virtual/_@oxc-project_runtime@0.103.0/helpers/typeof.js +12 -0
  817. package/dist/_virtual/rolldown_runtime.cjs +43 -0
  818. package/dist/_virtual/rolldown_runtime.js +18 -0
  819. package/dist/assets/navyQuotes.cjs +5 -0
  820. package/dist/assets/navyQuotes.js +5 -0
  821. package/dist/index.cjs +279 -0
  822. package/dist/index.d.cts +122 -0
  823. package/dist/index.d.ts +132 -89
  824. package/dist/index.js +116 -86
  825. package/dist/lib/breakpointHooks/index.cjs +64 -0
  826. package/dist/lib/breakpointHooks/index.d.cts +46 -0
  827. package/dist/lib/breakpointHooks/index.d.ts +10 -7
  828. package/dist/lib/breakpointHooks/index.js +51 -53
  829. package/dist/lib/catalogList/index.cjs +52 -0
  830. package/dist/lib/catalogList/index.js +50 -196
  831. package/dist/lib/resourcesList/index.cjs +68 -0
  832. package/dist/lib/resourcesList/index.js +65 -231
  833. package/dist/remoteAssets/components.cjs +6 -0
  834. package/dist/remoteAssets/components.js +5 -1
  835. package/package.json +364 -10
  836. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/MarketingBanner.d.ts +0 -6
  837. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/NavPanels.d.ts +0 -8
  838. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/consts.d.ts +0 -17
  839. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/elements.d.ts +0 -92
  840. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/elements.js +0 -63
  841. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/index.d.ts +0 -13
  842. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/index.js +0 -440
  843. package/dist/AppHeader/AppHeaderElements/AppHeaderDietCard/index.d.ts +0 -11
  844. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownProvider/index.d.ts +0 -13
  845. package/dist/AppHeader/AppHeaderElements/AppHeaderFeatureCard/index.d.ts +0 -4
  846. package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/elements.d.ts +0 -42
  847. package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.d.ts +0 -8
  848. package/dist/AppHeader/AppHeaderElements/AppHeaderListItem/index.d.ts +0 -14
  849. package/dist/AppHeader/AppHeaderElements/AppHeaderMenuProvider/index.d.ts +0 -14
  850. package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/index.d.ts +0 -12
  851. package/dist/AppHeader/AppHeaderElements/AppHeaderProvider/index.d.ts +0 -10
  852. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/NavPanels.d.ts +0 -10
  853. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/consts.d.ts +0 -18
  854. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesSection/index.d.ts +0 -13
  855. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesSection/index.js +0 -194
  856. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/AppHeaderSectionContext.d.ts +0 -8
  857. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/MobileBackButton.d.ts +0 -6
  858. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/MobileNavMenu.d.ts +0 -11
  859. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/NavTabs.d.ts +0 -20
  860. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/PanelLayout.d.ts +0 -9
  861. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/elements.d.ts +0 -88
  862. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/index.d.ts +0 -25
  863. package/dist/AppHeader/AppHeaderElements/AppHeaderSkillTile/index.d.ts +0 -6
  864. package/dist/AppHeader/Search/DefaultResults.d.ts +0 -10
  865. package/dist/AppHeader/Search/QuizAndHelpCenterLinks.d.ts +0 -7
  866. package/dist/AppHeader/Search/SearchButton.d.ts +0 -2
  867. package/dist/AppHeader/Search/SearchPane.d.ts +0 -6
  868. package/dist/AppHeader/Search/SearchTrackingProvider/index.d.ts +0 -17
  869. package/dist/AppHeader/Search/SearchWorker/PromiseLookup.d.ts +0 -18
  870. package/dist/AppHeader/Search/SearchWorker/src.d.ts +0 -1
  871. package/dist/AppHeader/Search/SearchWorker/worker.d.ts +0 -2
  872. package/dist/AppHeader/Search/hooks/useUrlChangeDetection.d.ts +0 -5
  873. package/dist/AppHeader/Search/safelyRedirect.d.ts +0 -5
  874. package/dist/AppHeader/Search/types.js +0 -1
  875. package/dist/AppHeader/Search/useHeaderSearch.d.ts +0 -6
  876. package/dist/AppHeader/shared/index.js +0 -4
  877. package/dist/AppHeader/shared/mockAppHeaderItems.js +0 -10
  878. package/dist/AppHeader/shared/utils.d.ts +0 -14
  879. package/dist/AppHeader/utils/types.d.ts +0 -8
  880. package/dist/AppHeader/utils/types.js +0 -1
  881. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/elements.d.ts +0 -13
  882. package/dist/AppHeaderMobile/AppHeaderSubMenuTarget/index.d.ts +0 -7
  883. package/dist/Avatar/Avatar.stories.js +0 -15
  884. package/dist/Carousel/elements.d.ts +0 -27
  885. package/dist/CertificationPathCard/__tests__/__fixtures__/index.d.ts +0 -2
  886. package/dist/CommunityEventCard/EventTypeIcon.d.ts +0 -11
  887. package/dist/ContentGroupBaseCard/shared.d.ts +0 -7
  888. package/dist/CourseCard/__tests__/__fixtures__/index.d.ts +0 -3
  889. package/dist/CurriculumCard/Footer/index.d.ts +0 -10
  890. package/dist/CurriculumCard/Image/index.d.ts +0 -9
  891. package/dist/CurriculumCard/Subtitle/helpers.d.ts +0 -1
  892. package/dist/DropdownButton/useDynamicPopoverPosition.d.ts +0 -14
  893. package/dist/DropdownButton/useDynamicPopoverPosition.test.js +0 -85
  894. package/dist/GlobalFooter/FooterHeading.d.ts +0 -9
  895. package/dist/GlobalFooter/FooterLegal/LegalLinks.d.ts +0 -6
  896. package/dist/GlobalFooter/FooterLegal/MadeIn.d.ts +0 -5
  897. package/dist/GlobalFooter/FooterLegal/index.d.ts +0 -7
  898. package/dist/GlobalFooter/FooterLinks.d.ts +0 -18
  899. package/dist/GlobalFooter/FooterNavLinks/CatalogLinks.d.ts +0 -7
  900. package/dist/GlobalFooter/FooterNavLinks/CompanyLinks.d.ts +0 -11
  901. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferAFriendLinkWithModal.d.ts +0 -7
  902. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralFields.d.ts +0 -2
  903. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralForm.d.ts +0 -4
  904. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralLinkSocialMediaSharing.d.ts +0 -3
  905. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/types.js +0 -1
  906. package/dist/GlobalFooter/FooterNavLinks/SocialMediaLinks.d.ts +0 -2
  907. package/dist/GlobalFooter/FooterNavLinks/index.d.ts +0 -4
  908. package/dist/GlobalFooter/FooterSubHeading.d.ts +0 -9
  909. package/dist/GlobalFooter/FooterSubHeading.js +0 -22
  910. package/dist/GlobalFooter/types.js +0 -1
  911. package/dist/GlobalHeader/GlobalHeaderItems.d.ts +0 -28
  912. package/dist/GlobalHeader/GlobalHeaderVariants.d.ts +0 -97
  913. package/dist/GlobalHeader/context.d.ts +0 -34
  914. package/dist/GlobalHeader/types.js +0 -1
  915. package/dist/GlobalHeader/urlHelpers.d.ts +0 -2
  916. package/dist/Grid/GridCollapse.test.js +0 -96
  917. package/dist/HeaderHeightArea/useIsInHeaderRegion.d.ts +0 -1
  918. package/dist/LandingPage/CTA.d.ts +0 -9
  919. package/dist/LandingPage/Feature.d.ts +0 -32
  920. package/dist/LandingPage/types.js +0 -1
  921. package/dist/LayoutMenu/LayoutMenuSection.d.ts +0 -16
  922. package/dist/LayoutMenuVariant/LayoutMenuSection.d.ts +0 -10
  923. package/dist/LearningOutcomeAssessmentScores/AssessmentDetail.d.ts +0 -8
  924. package/dist/LearningOutcomeFlyout/LearningOutcomeCardList.d.ts +0 -7
  925. package/dist/LearningOutcomeTile/Tile.d.ts +0 -7
  926. package/dist/Logos/ProLabel/ProLabelCutout/index.d.ts +0 -8
  927. package/dist/Logos/ProLabel/ProLabelCutoutTransparent/index.d.ts +0 -7
  928. package/dist/NotificationList/EmptyNotification/emptyNotificationContents.d.ts +0 -7
  929. package/dist/NotificationList/EmptyNotification/index.d.ts +0 -1
  930. package/dist/NotificationList/typings.js +0 -1
  931. package/dist/Notifications/NotificationBell.d.ts +0 -10
  932. package/dist/Notifications/NotificationsContents.d.ts +0 -3
  933. package/dist/Notifications/NotificationsDropdown.d.ts +0 -2
  934. package/dist/Notifications/__fixtures__/NotificationTestComponent.d.ts +0 -2
  935. package/dist/Notifications/__fixtures__/NotificationTestComponent.js +0 -12
  936. package/dist/Notifications/__fixtures__/stubs.d.ts +0 -2
  937. package/dist/Notifications/__fixtures__/stubs.js +0 -8
  938. package/dist/Notifications/constants.d.ts +0 -4
  939. package/dist/Notifications/elements.d.ts +0 -12
  940. package/dist/Notifications/types.js +0 -1
  941. package/dist/Notifications/useHeaderNotifications.d.ts +0 -10
  942. package/dist/Notifications/useNotificationButtons.d.ts +0 -9
  943. package/dist/PageAlerts/types.js +0 -1
  944. package/dist/PausableImage/BaseImage/index.d.ts +0 -15
  945. package/dist/PlanCard/PlanFeature.d.ts +0 -10
  946. package/dist/PlanCard/PopularBadge.d.ts +0 -3
  947. package/dist/PlanCard/PricingAmount.d.ts +0 -14
  948. package/dist/PlanCard/RecommendedBadge.d.ts +0 -3
  949. package/dist/PlanCard/consts.d.ts +0 -15
  950. package/dist/PlanCardTeams/consts.d.ts +0 -9
  951. package/dist/PricingSection/ConditionalColorMode.d.ts +0 -4
  952. package/dist/PricingSection/PlanFeature.d.ts +0 -10
  953. package/dist/PricingSection/PlanFeature.js +0 -88
  954. package/dist/PricingSection/PricingCard/PricingAmount.d.ts +0 -14
  955. package/dist/PricingSection/PricingCard/RecommendedBadge.d.ts +0 -3
  956. package/dist/PricingSection/PricingCard/consts.d.ts +0 -14
  957. package/dist/PricingSection/PricingCard/consts.js +0 -99
  958. package/dist/PricingSection/PricingCard/index.d.ts +0 -16
  959. package/dist/PricingSection/ProductCTA.d.ts +0 -12
  960. package/dist/PricingSection/Products.d.ts +0 -15
  961. package/dist/PricingSection/config.d.ts +0 -8
  962. package/dist/Recurly/context/NoProvider.d.ts +0 -8
  963. package/dist/Recurly/context/index.js +0 -2
  964. package/dist/Recurly/context/recurly/w.d.ts +0 -14
  965. package/dist/Recurly/fields/elements.test.js +0 -79
  966. package/dist/Recurly/fields/index.js +0 -2
  967. package/dist/ScoreSummary/helpers.d.ts +0 -11
  968. package/dist/ScoreSummary/types.js +0 -1
  969. package/dist/SkillPathCard/__tests__/__fixtures__/index.d.ts +0 -2
  970. package/dist/SocialMediaSharingDropdown/__tests__/SocialMediaSharingDropdown-test.d.ts +0 -1
  971. package/dist/assets/darkQuotes.svg +0 -1
  972. package/dist/assets/dots.svg +0 -1
  973. package/dist/assets/lightQuotes.svg +0 -1
  974. package/dist/assets/orange_squiggle.svg +0 -1
  975. package/dist/lib/catalogList/index.d.ts +0 -6
  976. package/dist/lib/resourcesList/index.d.ts +0 -5
  977. package/dist/png.d.ts +0 -4
  978. package/dist/react-freezeframe.d.ts +0 -1
  979. package/dist/remoteAssets/components.d.ts +0 -1
  980. package/dist/stories/Atoms/Avatar.stories.js +0 -16
  981. package/dist/stories/Atoms/BetaSticker.stories.js +0 -21
  982. package/dist/stories/Atoms/Logos/LogoCodecademy.stories.js +0 -8
  983. package/dist/stories/Atoms/Logos/LogoCodecademyMini.stories.js +0 -8
  984. package/dist/stories/Atoms/Logos/LogoCodecademyPro.stories.js +0 -8
  985. package/dist/stories/Atoms/Logos/LogoCodecademyTeams.stories.js +0 -8
  986. package/dist/stories/Atoms/Logos/LogoFromSkillsoft.stories.js +0 -9
  987. package/dist/stories/Atoms/Logos/LogoLXStudio.stories.js +0 -11
  988. package/dist/stories/Atoms/Logos/ProLabel.stories.js +0 -29
  989. package/dist/stories/Atoms/RatingsBar.stories.js +0 -16
  990. package/dist/stories/Atoms/Subgrid.stories.js +0 -87
  991. package/dist/stories/Molecules/AppBar.stories.js +0 -31
  992. package/dist/stories/Molecules/AppHeader/AppHeader.stories.js +0 -84
  993. package/dist/stories/Molecules/AppHeader/AppHeaderDropdown.stories.js +0 -67
  994. package/dist/stories/Molecules/AppHeader/AppHeaderLink.stories.js +0 -50
  995. package/dist/stories/Molecules/AppHeader/AppHeaderLogo.stories.js +0 -43
  996. package/dist/stories/Molecules/AppHeader/AppHeaderMainMenuMobile.stories.js +0 -34
  997. package/dist/stories/Molecules/AppHeader/AppHeaderMobile.stories.js +0 -40
  998. package/dist/stories/Molecules/AppHeader/AppHeaderSubMenuMobile.stories.js +0 -25
  999. package/dist/stories/Molecules/AppHeader/LXStudioHeader.stories.js +0 -176
  1000. package/dist/stories/Molecules/AppHeader/LXStudioMobileHeader.stories.js +0 -84
  1001. package/dist/stories/Molecules/AppHeader/MockAppHeaderElements.d.ts +0 -5
  1002. package/dist/stories/Molecules/AppHeader/MockAppHeaderElements.js +0 -90
  1003. package/dist/stories/Molecules/AvatarChooser.stories.js +0 -22
  1004. package/dist/stories/Molecules/BackToTopAnchor.stories.js +0 -51
  1005. package/dist/stories/Molecules/Banner.stories.js +0 -112
  1006. package/dist/stories/Molecules/Carousel.stories.js +0 -47
  1007. package/dist/stories/Molecules/ContentGroupBaseCard.stories.js +0 -175
  1008. package/dist/stories/Molecules/CurriculumCard.stories.js +0 -201
  1009. package/dist/stories/Molecules/CurriculumCards/CareerPathCard.stories.js +0 -94
  1010. package/dist/stories/Molecules/CurriculumCards/CertificationPathCard.stories.js +0 -67
  1011. package/dist/stories/Molecules/CurriculumCards/CourseCard.stories.js +0 -85
  1012. package/dist/stories/Molecules/CurriculumCards/LoadingCurriculumCard.stories.js +0 -20
  1013. package/dist/stories/Molecules/CurriculumCards/SkillPathCard.stories.js +0 -92
  1014. package/dist/stories/Molecules/DropdownButton.stories.js +0 -207
  1015. package/dist/stories/Molecules/EditorialImage.stories.js +0 -17
  1016. package/dist/stories/Molecules/EmptySection.stories.js +0 -167
  1017. package/dist/stories/Molecules/EnhancedBanner.stories.js +0 -104
  1018. package/dist/stories/Molecules/ErrorContents.stories.js +0 -19
  1019. package/dist/stories/Molecules/GridCollapse.stories.js +0 -42
  1020. package/dist/stories/Molecules/HorizontalScrollMenu.examples.d.ts +0 -1
  1021. package/dist/stories/Molecules/HorizontalScrollMenu.examples.js +0 -67
  1022. package/dist/stories/Molecules/HorizontalScrollMenu.stories.js +0 -11
  1023. package/dist/stories/Molecules/HubCard.stories.js +0 -27
  1024. package/dist/stories/Molecules/InfoCard.stories.js +0 -30
  1025. package/dist/stories/Molecules/LearningOutcomeAssessmentScores.stories.js +0 -23
  1026. package/dist/stories/Molecules/LearningOutcomeCard.stories.js +0 -189
  1027. package/dist/stories/Molecules/LearningOutcomeFlyout.stories.js +0 -62
  1028. package/dist/stories/Molecules/LearningOutcomeLevelBadge.stories.js +0 -20
  1029. package/dist/stories/Molecules/LearningOutcomeLowAssessmentBadge.stories.js +0 -10
  1030. package/dist/stories/Molecules/LearningOutcomePopover.stories.js +0 -39
  1031. package/dist/stories/Molecules/LearningOutcomeTile.stories.js +0 -276
  1032. package/dist/stories/Molecules/ListSection.stories.js +0 -97
  1033. package/dist/stories/Molecules/Loading.stories.js +0 -10
  1034. package/dist/stories/Molecules/NotificationList.stories.js +0 -99
  1035. package/dist/stories/Molecules/PageSection.stories.js +0 -67
  1036. package/dist/stories/Molecules/PastDueModalContents.stories.js +0 -62
  1037. package/dist/stories/Molecules/PausableImage.stories.js +0 -16
  1038. package/dist/stories/Molecules/Recurly.stories.js +0 -56
  1039. package/dist/stories/Molecules/ResourceCard.stories.js +0 -18
  1040. package/dist/stories/Molecules/SocialMediaSharing.stories.js +0 -20
  1041. package/dist/stories/Molecules/SocialMediaSharingDropdown.stories.js +0 -20
  1042. package/dist/stories/Molecules/Testimonial.stories.js +0 -59
  1043. package/dist/stories/Organisms/GlobalFooter.stories.js +0 -28
  1044. package/dist/stories/Organisms/GlobalHeader/About.stories.js +0 -133
  1045. package/dist/stories/Organisms/GlobalHeader/Anon.stories.js +0 -71
  1046. package/dist/stories/Organisms/GlobalHeader/Bootcamp.stories.js +0 -29
  1047. package/dist/stories/Organisms/GlobalHeader/Enterprise.stories.js +0 -105
  1048. package/dist/stories/Organisms/GlobalHeader/Free.stories.js +0 -131
  1049. package/dist/stories/Organisms/GlobalHeader/Pro.stories.js +0 -197
  1050. package/dist/stories/Organisms/GlobalHeader/Simple.stories.js +0 -28
  1051. package/dist/stories/Organisms/GlobalPage.stories.js +0 -138
  1052. package/dist/stories/Organisms/LayoutMenu.stories.js +0 -239
  1053. package/dist/stories/Organisms/LayoutMenuVariant.stories.js +0 -222
  1054. package/dist/stories/Organisms/PageAlerts.example.d.ts +0 -2
  1055. package/dist/stories/Organisms/PageAlerts.example.js +0 -42
  1056. package/dist/stories/Organisms/PageAlerts.stories.js +0 -15
  1057. package/dist/stories/Organisms/PageFeatures.stories.js +0 -175
  1058. package/dist/stories/Organisms/PageHero.stories.js +0 -135
  1059. package/dist/stories/Organisms/PageLayoutWithSidebarMenu.stories.js +0 -34
  1060. package/dist/stories/Organisms/PagePrefooter.stories.js +0 -58
  1061. package/dist/stories/Organisms/PageSingleFeature.stories.js +0 -148
  1062. package/dist/stories/Organisms/PageVideoGallery.stories.js +0 -65
  1063. package/dist/stories/Organisms/PlanCard.stories.js +0 -98
  1064. package/dist/stories/Organisms/PlanCardTeams.stories.js +0 -27
  1065. package/dist/stories/Organisms/ScoreSummary.stories.js +0 -295
  1066. package/dist/svg.d.ts +0 -7
  1067. package/dist/theme.d.ts +0 -5
  1068. /package/dist/{NotFoundContent/404.svg → assets/404-BM2-wvJv.svg} +0 -0
  1069. /package/dist/{GlobalFooter/FooterNavLinks/assets/download-on-the-app-store.svg → assets/download-on-the-app-store-BbQ68gT5.svg} +0 -0
  1070. /package/dist/{GlobalFooter/FooterNavLinks/assets/get-it-on-google-play.png → assets/get-it-on-google-play-CnA-UUOj.png} +0 -0
  1071. /package/dist/{AppBarDeprecated/styles/index.module.scss → assets/index.module-Dz0I2VL5.scss} +0 -0
  1072. /package/dist/assets/{navyQuotes.svg → navyQuotes-C0ZxClwi.svg} +0 -0
  1073. /package/dist/{EditorialImage/styles.module.scss → assets/styles.module-CAlrRbjX.scss} +0 -0
  1074. /package/dist/{Loading/styles.module.scss → assets/styles.module-DbrbHmEX.scss} +0 -0
@@ -0,0 +1,38 @@
1
+ import { RecurlyConfig } from "./loadRecurly.cjs";
2
+ import { PropsWithChildren } from "react";
3
+ import * as react_jsx_runtime3 from "react/jsx-runtime";
4
+ import { Recurly } from "@recurly/recurly-js";
5
+
6
+ //#region src/Recurly/context/recurly/index.d.ts
7
+ type RecurlyProviderProps = PropsWithChildren<RecurlyConfig>;
8
+ /**
9
+ * A provider that:
10
+ * - loads the Recurly library
11
+ * - ensures that only a single instance of the library is loaded
12
+ * - configures the library with the provided public key
13
+ * - provides the library instance via context
14
+ */
15
+ declare function RecurlyProvider({
16
+ children,
17
+ ...config
18
+ }: RecurlyProviderProps): react_jsx_runtime3.JSX.Element;
19
+ /**
20
+ * A hook that returns the Recurly instance from context.
21
+ *
22
+ * If used outside of a RecurlyProvider, it will throw an error.
23
+ *
24
+ * Within a RecurlyProvider:
25
+ * - If used on the server, it will return undefined.
26
+ * - If used on the client, it will initially return undefined and then return
27
+ * the provided Recurly instance once it is loaded.
28
+ *
29
+ * @param options - An object to provide an alternate contextual error message
30
+ * to use if one tries to use this hook outside of a RecurlyProvider.
31
+ *
32
+ * @returns The Recurly instance.
33
+ */
34
+ declare function useRecurly(options?: {
35
+ noProviderError?: string;
36
+ }): Recurly | undefined;
37
+ //#endregion
38
+ export { RecurlyProvider, useRecurly };
@@ -1,7 +1,10 @@
1
- import type { Recurly } from '@recurly/recurly-js';
2
- import { PropsWithChildren } from 'react';
3
- import { RecurlyConfig } from './loadRecurly';
4
- export type RecurlyProviderProps = PropsWithChildren<RecurlyConfig>;
1
+ import { RecurlyConfig } from "./loadRecurly.js";
2
+ import { PropsWithChildren } from "react";
3
+ import * as react_jsx_runtime3 from "react/jsx-runtime";
4
+ import { Recurly } from "@recurly/recurly-js";
5
+
6
+ //#region src/Recurly/context/recurly/index.d.ts
7
+ type RecurlyProviderProps = PropsWithChildren<RecurlyConfig>;
5
8
  /**
6
9
  * A provider that:
7
10
  * - loads the Recurly library
@@ -9,7 +12,10 @@ export type RecurlyProviderProps = PropsWithChildren<RecurlyConfig>;
9
12
  * - configures the library with the provided public key
10
13
  * - provides the library instance via context
11
14
  */
12
- export declare function RecurlyProvider({ children, ...config }: RecurlyProviderProps): import("react/jsx-runtime").JSX.Element;
15
+ declare function RecurlyProvider({
16
+ children,
17
+ ...config
18
+ }: RecurlyProviderProps): react_jsx_runtime3.JSX.Element;
13
19
  /**
14
20
  * A hook that returns the Recurly instance from context.
15
21
  *
@@ -25,6 +31,8 @@ export declare function RecurlyProvider({ children, ...config }: RecurlyProvider
25
31
  *
26
32
  * @returns The Recurly instance.
27
33
  */
28
- export declare function useRecurly(options?: {
29
- noProviderError?: string;
34
+ declare function useRecurly(options?: {
35
+ noProviderError?: string;
30
36
  }): Recurly | undefined;
37
+ //#endregion
38
+ export { RecurlyProvider, RecurlyProviderProps, useRecurly };
@@ -1,50 +1,47 @@
1
- import { createContext, useContext, useEffect, useState } from 'react';
2
- import { NO_PROVIDER } from '../NoProvider';
3
- import { loadRecurly } from './loadRecurly';
4
- import { jsx as _jsx } from "react/jsx-runtime";
5
- const RecurlyCtx = /*#__PURE__*/createContext(NO_PROVIDER);
1
+ import { NO_PROVIDER } from "../NoProvider.js";
2
+ import { loadRecurly } from "./loadRecurly.js";
3
+ import { createContext, useContext, useEffect, useState } from "react";
4
+ import { jsx } from "react/jsx-runtime";
5
+
6
+ //#region src/Recurly/context/recurly/index.tsx
7
+ const RecurlyCtx = createContext(NO_PROVIDER);
6
8
  /**
7
- * A provider that:
8
- * - loads the Recurly library
9
- * - ensures that only a single instance of the library is loaded
10
- * - configures the library with the provided public key
11
- * - provides the library instance via context
12
- */
13
- export function RecurlyProvider({
14
- children,
15
- ...config
16
- }) {
17
- const [recurly, setRecurly] = useState(undefined);
18
- useEffect(() => {
19
- loadRecurly(config)?.then(setRecurly);
20
- // Exclude `config` dependency as it should be treated as static.
21
- // eslint-disable-next-line react-hooks/exhaustive-deps
22
- }, []);
23
- return /*#__PURE__*/_jsx(RecurlyCtx.Provider, {
24
- value: recurly,
25
- children: children
26
- });
9
+ * A provider that:
10
+ * - loads the Recurly library
11
+ * - ensures that only a single instance of the library is loaded
12
+ * - configures the library with the provided public key
13
+ * - provides the library instance via context
14
+ */
15
+ function RecurlyProvider({ children, ...config }) {
16
+ const [recurly, setRecurly] = useState(void 0);
17
+ useEffect(() => {
18
+ loadRecurly(config)?.then(setRecurly);
19
+ }, []);
20
+ return /* @__PURE__ */ jsx(RecurlyCtx.Provider, {
21
+ value: recurly,
22
+ children
23
+ });
27
24
  }
28
-
29
25
  /**
30
- * A hook that returns the Recurly instance from context.
31
- *
32
- * If used outside of a RecurlyProvider, it will throw an error.
33
- *
34
- * Within a RecurlyProvider:
35
- * - If used on the server, it will return undefined.
36
- * - If used on the client, it will initially return undefined and then return
37
- * the provided Recurly instance once it is loaded.
38
- *
39
- * @param options - An object to provide an alternate contextual error message
40
- * to use if one tries to use this hook outside of a RecurlyProvider.
41
- *
42
- * @returns The Recurly instance.
43
- */
44
- export function useRecurly(options) {
45
- const recurly = useContext(RecurlyCtx);
46
- if (recurly === NO_PROVIDER) {
47
- throw new Error(options?.noProviderError ?? 'useRecurly must be used within a RecurlyProvider');
48
- }
49
- return recurly;
50
- }
26
+ * A hook that returns the Recurly instance from context.
27
+ *
28
+ * If used outside of a RecurlyProvider, it will throw an error.
29
+ *
30
+ * Within a RecurlyProvider:
31
+ * - If used on the server, it will return undefined.
32
+ * - If used on the client, it will initially return undefined and then return
33
+ * the provided Recurly instance once it is loaded.
34
+ *
35
+ * @param options - An object to provide an alternate contextual error message
36
+ * to use if one tries to use this hook outside of a RecurlyProvider.
37
+ *
38
+ * @returns The Recurly instance.
39
+ */
40
+ function useRecurly(options) {
41
+ const recurly = useContext(RecurlyCtx);
42
+ if (recurly === NO_PROVIDER) throw new Error(options?.noProviderError ?? "useRecurly must be used within a RecurlyProvider");
43
+ return recurly;
44
+ }
45
+
46
+ //#endregion
47
+ export { RecurlyProvider, useRecurly };
@@ -0,0 +1,21 @@
1
+ const require_w = require('./w.cjs');
2
+
3
+ //#region src/Recurly/context/recurly/loadRecurly.ts
4
+ function loadRecurly(config) {
5
+ if (require_w.w && require_w.w._recurlyPromise) require_w.w._recurlyPromise = new Promise((resolve) => {
6
+ const script = require_w.w.document.createElement("script");
7
+ script.src = "https://js.recurly.com/v4/recurly.js";
8
+ script.async = true;
9
+ script.onload = () => {
10
+ const { recurly } = require_w.w;
11
+ if (!recurly) throw new Error("Recurly was not loaded by recurly.js");
12
+ recurly.configure(config);
13
+ resolve(recurly);
14
+ };
15
+ require_w.w.document.head.appendChild(script);
16
+ });
17
+ return require_w.w?._recurlyPromise;
18
+ }
19
+
20
+ //#endregion
21
+ exports.loadRecurly = loadRecurly;
@@ -0,0 +1,9 @@
1
+ import { Recurly } from "@recurly/recurly-js";
2
+
3
+ //#region src/Recurly/context/recurly/loadRecurly.d.ts
4
+ type RecurlyConfig = {
5
+ publicKey: string;
6
+ required: string[];
7
+ };
8
+ //#endregion
9
+ export { RecurlyConfig };
@@ -1,6 +1,9 @@
1
- import type { Recurly } from '@recurly/recurly-js';
2
- export type RecurlyConfig = {
3
- publicKey: string;
4
- required: string[];
1
+ import { Recurly } from "@recurly/recurly-js";
2
+
3
+ //#region src/Recurly/context/recurly/loadRecurly.d.ts
4
+ type RecurlyConfig = {
5
+ publicKey: string;
6
+ required: string[];
5
7
  };
6
- export declare function loadRecurly(config: RecurlyConfig): Promise<Recurly> | undefined;
8
+ //#endregion
9
+ export { RecurlyConfig };
@@ -1,22 +1,21 @@
1
- import { w } from './w';
2
- export function loadRecurly(config) {
3
- if (w && w._recurlyPromise) {
4
- w._recurlyPromise = new Promise(resolve => {
5
- const script = w.document.createElement('script');
6
- script.src = 'https://js.recurly.com/v4/recurly.js';
7
- script.async = true;
8
- script.onload = () => {
9
- const {
10
- recurly
11
- } = w;
12
- if (!recurly) {
13
- throw new Error('Recurly was not loaded by recurly.js');
14
- }
15
- recurly.configure(config);
16
- resolve(recurly);
17
- };
18
- w.document.head.appendChild(script);
19
- });
20
- }
21
- return w?._recurlyPromise;
22
- }
1
+ import { w } from "./w.js";
2
+
3
+ //#region src/Recurly/context/recurly/loadRecurly.ts
4
+ function loadRecurly(config) {
5
+ if (w && w._recurlyPromise) w._recurlyPromise = new Promise((resolve) => {
6
+ const script = w.document.createElement("script");
7
+ script.src = "https://js.recurly.com/v4/recurly.js";
8
+ script.async = true;
9
+ script.onload = () => {
10
+ const { recurly } = w;
11
+ if (!recurly) throw new Error("Recurly was not loaded by recurly.js");
12
+ recurly.configure(config);
13
+ resolve(recurly);
14
+ };
15
+ w.document.head.appendChild(script);
16
+ });
17
+ return w?._recurlyPromise;
18
+ }
19
+
20
+ //#endregion
21
+ export { loadRecurly };
@@ -0,0 +1,6 @@
1
+
2
+ //#region src/Recurly/context/recurly/w.ts
3
+ const w = typeof window === "undefined" ? void 0 : window;
4
+
5
+ //#endregion
6
+ exports.w = w;
@@ -1,4 +1,5 @@
1
- // By importing/exporting w as a window object, we can easily mock it in tests.
1
+ //#region src/Recurly/context/recurly/w.ts
2
+ const w = typeof window === "undefined" ? void 0 : window;
2
3
 
3
- // Exported for easy mocking
4
- export const w = typeof window === 'undefined' ? undefined : window;
4
+ //#endregion
5
+ export { w };
@@ -0,0 +1,69 @@
1
+ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
+ let _codecademy_gamut = require("@codecademy/gamut");
3
+ let _codecademy_gamut_styles = require("@codecademy/gamut-styles");
4
+ let _emotion_styled = require("@emotion/styled");
5
+ _emotion_styled = require_rolldown_runtime.__toESM(_emotion_styled);
6
+ let react = require("react");
7
+ let react_jsx_runtime = require("react/jsx-runtime");
8
+ let _codecademy_gamut_dist_Form_styles = require("@codecademy/gamut/dist/Form/styles");
9
+
10
+ //#region src/Recurly/fields/RecurlyField.tsx
11
+ const Slash = _emotion_styled.default.span`
12
+ width: 0;
13
+ font-family: 'Suisse';
14
+ transform: translate(-6px, 1px);
15
+ font-size: 18px;
16
+ `;
17
+ function focusBorderColor({ variant }) {
18
+ return variant === "error" ? _codecademy_gamut_styles.theme.colors["feedback-error"] : _codecademy_gamut_styles.theme.colors.primary;
19
+ }
20
+ const InputInnerBox = _emotion_styled.default.div`
21
+ ${_codecademy_gamut_dist_Form_styles.formFieldStyles}
22
+ ${_codecademy_gamut_dist_Form_styles.conditionalStyles}
23
+ & > div {
24
+ width: 100%;
25
+ }
26
+ padding: 0;
27
+ display: flex;
28
+ align-items: center;
29
+ height: 3.125rem;
30
+ .recurly-element {
31
+ height: 3.125rem;
32
+ }
33
+ &:has(.recurly-element-focus) {
34
+ border-color: ${focusBorderColor};
35
+ box-shadow: inset 0 0 0 1px ${focusBorderColor};
36
+ }
37
+ &:has(${Slash}) > div:first-of-type {
38
+ max-width: 2.75rem;
39
+ min-width: 2.75rem;
40
+ }
41
+ `;
42
+ /**
43
+ * A wrapper around a Recurly element (or two elements in the case of MM/YY) to
44
+ * add Gamut border styling and a label.
45
+ */
46
+ function RecurlyField({ label, children, ...props }) {
47
+ const ref = (0, react.useRef)(null);
48
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_codecademy_gamut.Box, {
49
+ ref,
50
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_codecademy_gamut.Text, {
51
+ as: "label",
52
+ onClick: (0, react.useCallback)(() => {
53
+ ref.current?.querySelector("iframe")?.focus();
54
+ }, []),
55
+ children: label
56
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_codecademy_gamut.Input, {
57
+ as: InputInnerBox,
58
+ ...props,
59
+ children: Array.isArray(children) && children.length === 2 ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
60
+ children[0],
61
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Slash, { children: "/" }),
62
+ children[1]
63
+ ] }) : children
64
+ })]
65
+ });
66
+ }
67
+
68
+ //#endregion
69
+ exports.RecurlyField = RecurlyField;
@@ -0,0 +1,18 @@
1
+ import { InputWrapperProps } from "@codecademy/gamut";
2
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
3
+
4
+ //#region src/Recurly/fields/RecurlyField.d.ts
5
+ type RecurlyFieldProps = InputWrapperProps & {
6
+ label: string;
7
+ };
8
+ /**
9
+ * A wrapper around a Recurly element (or two elements in the case of MM/YY) to
10
+ * add Gamut border styling and a label.
11
+ */
12
+ declare function RecurlyField({
13
+ label,
14
+ children,
15
+ ...props
16
+ }: RecurlyFieldProps): react_jsx_runtime1.JSX.Element;
17
+ //#endregion
18
+ export { RecurlyField, RecurlyFieldProps };
@@ -1,9 +1,18 @@
1
- import { InputWrapperProps } from '@codecademy/gamut';
2
- export type RecurlyFieldProps = InputWrapperProps & {
3
- label: string;
1
+ import { InputWrapperProps } from "@codecademy/gamut";
2
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
3
+
4
+ //#region src/Recurly/fields/RecurlyField.d.ts
5
+ type RecurlyFieldProps = InputWrapperProps & {
6
+ label: string;
4
7
  };
5
8
  /**
6
9
  * A wrapper around a Recurly element (or two elements in the case of MM/YY) to
7
10
  * add Gamut border styling and a label.
8
11
  */
9
- export declare function RecurlyField({ label, children, ...props }: RecurlyFieldProps): import("react/jsx-runtime").JSX.Element;
12
+ declare function RecurlyField({
13
+ label,
14
+ children,
15
+ ...props
16
+ }: RecurlyFieldProps): react_jsx_runtime1.JSX.Element;
17
+ //#endregion
18
+ export { RecurlyField, RecurlyFieldProps };
@@ -1,57 +1,67 @@
1
- import _styled from "@emotion/styled/base";
2
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
3
- import { Box, Input, Text } from '@codecademy/gamut';
4
- import { conditionalStyles, formFieldStyles } from '@codecademy/gamut/dist/Form/styles';
5
- import { theme } from '@codecademy/gamut-styles';
6
- import { useCallback, useRef } from 'react';
7
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
8
- const Slash = /*#__PURE__*/_styled("span", {
9
- target: "e1ndrvyp1",
10
- label: "Slash"
11
- })(process.env.NODE_ENV === "production" ? {
12
- name: "18v1ai1",
13
- styles: "width:0;font-family:'Suisse';transform:translate(-6px, 1px);font-size:18px"
14
- } : {
15
- name: "18v1ai1",
16
- styles: "width:0;font-family:'Suisse';transform:translate(-6px, 1px);font-size:18px/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9SZWN1cmx5L2ZpZWxkcy9SZWN1cmx5RmllbGQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWV5QiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvUmVjdXJseS9maWVsZHMvUmVjdXJseUZpZWxkLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7XG4gIEJveCxcbiAgSW5wdXQsXG4gIElucHV0V3JhcHBlclByb3BzLFxuICBTdHlsZWRJbnB1dFByb3BzLFxuICBUZXh0LFxufSBmcm9tICdAY29kZWNhZGVteS9nYW11dCc7XG5pbXBvcnQge1xuICBjb25kaXRpb25hbFN0eWxlcyxcbiAgZm9ybUZpZWxkU3R5bGVzLFxufSBmcm9tICdAY29kZWNhZGVteS9nYW11dC9kaXN0L0Zvcm0vc3R5bGVzJztcbmltcG9ydCB7IHRoZW1lIH0gZnJvbSAnQGNvZGVjYWRlbXkvZ2FtdXQtc3R5bGVzJztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IHVzZUNhbGxiYWNrLCB1c2VSZWYgfSBmcm9tICdyZWFjdCc7XG5cbmNvbnN0IFNsYXNoID0gc3R5bGVkLnNwYW5gXG4gIHdpZHRoOiAwO1xuICBmb250LWZhbWlseTogJ1N1aXNzZSc7XG4gIHRyYW5zZm9ybTogdHJhbnNsYXRlKC02cHgsIDFweCk7XG4gIGZvbnQtc2l6ZTogMThweDtcbmA7XG5cbmZ1bmN0aW9uIGZvY3VzQm9yZGVyQ29sb3IoeyB2YXJpYW50IH06IFN0eWxlZElucHV0UHJvcHMpIHtcbiAgcmV0dXJuIHZhcmlhbnQgPT09ICdlcnJvcidcbiAgICA/IHRoZW1lLmNvbG9yc1snZmVlZGJhY2stZXJyb3InXVxuICAgIDogdGhlbWUuY29sb3JzLnByaW1hcnk7XG59XG5cbmNvbnN0IElucHV0SW5uZXJCb3ggPSBzdHlsZWQuZGl2PFN0eWxlZElucHV0UHJvcHM+YFxuICAke2Zvcm1GaWVsZFN0eWxlc31cbiAgJHtjb25kaXRpb25hbFN0eWxlc31cbiAgJiA+IGRpdiB7XG4gICAgd2lkdGg6IDEwMCU7XG4gIH1cbiAgcGFkZGluZzogMDtcbiAgZGlzcGxheTogZmxleDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgaGVpZ2h0OiAzLjEyNXJlbTtcbiAgLnJlY3VybHktZWxlbWVudCB7XG4gICAgaGVpZ2h0OiAzLjEyNXJlbTtcbiAgfVxuICAmOmhhcygucmVjdXJseS1lbGVtZW50LWZvY3VzKSB7XG4gICAgYm9yZGVyLWNvbG9yOiAke2ZvY3VzQm9yZGVyQ29sb3J9O1xuICAgIGJveC1zaGFkb3c6IGluc2V0IDAgMCAwIDFweCAke2ZvY3VzQm9yZGVyQ29sb3J9O1xuICB9XG4gICY6aGFzKCR7U2xhc2h9KSA+IGRpdjpmaXJzdC1vZi10eXBlIHtcbiAgICBtYXgtd2lkdGg6IDIuNzVyZW07XG4gICAgbWluLXdpZHRoOiAyLjc1cmVtO1xuICB9XG5gO1xuXG5leHBvcnQgdHlwZSBSZWN1cmx5RmllbGRQcm9wcyA9IElucHV0V3JhcHBlclByb3BzICYgeyBsYWJlbDogc3RyaW5nIH07XG5cbi8qKlxuICogQSB3cmFwcGVyIGFyb3VuZCBhIFJlY3VybHkgZWxlbWVudCAob3IgdHdvIGVsZW1lbnRzIGluIHRoZSBjYXNlIG9mIE1NL1lZKSB0b1xuICogYWRkIEdhbXV0IGJvcmRlciBzdHlsaW5nIGFuZCBhIGxhYmVsLlxuICovXG5leHBvcnQgZnVuY3Rpb24gUmVjdXJseUZpZWxkKHsgbGFiZWwsIGNoaWxkcmVuLCAuLi5wcm9wcyB9OiBSZWN1cmx5RmllbGRQcm9wcykge1xuICBjb25zdCByZWYgPSB1c2VSZWY8SFRNTERpdkVsZW1lbnQ+KG51bGwpO1xuXG4gIGNvbnN0IHNlbGVjdElmcmFtZSA9IHVzZUNhbGxiYWNrKCgpID0+IHtcbiAgICByZWYuY3VycmVudD8ucXVlcnlTZWxlY3RvcignaWZyYW1lJyk/LmZvY3VzKCk7XG4gIH0sIFtdKTtcblxuICByZXR1cm4gKFxuICAgIDxCb3ggcmVmPXtyZWZ9PlxuICAgICAgPFRleHQgYXM9XCJsYWJlbFwiIG9uQ2xpY2s9e3NlbGVjdElmcmFtZX0+XG4gICAgICAgIHtsYWJlbH1cbiAgICAgIDwvVGV4dD5cbiAgICAgIDxJbnB1dCBhcz17SW5wdXRJbm5lckJveH0gey4uLnByb3BzfT5cbiAgICAgICAge0FycmF5LmlzQXJyYXkoY2hpbGRyZW4pICYmIGNoaWxkcmVuLmxlbmd0aCA9PT0gMiA/IChcbiAgICAgICAgICA8PlxuICAgICAgICAgICAge2NoaWxkcmVuWzBdfVxuICAgICAgICAgICAgPFNsYXNoPi88L1NsYXNoPlxuICAgICAgICAgICAge2NoaWxkcmVuWzFdfVxuICAgICAgICAgIDwvPlxuICAgICAgICApIDogKFxuICAgICAgICAgIGNoaWxkcmVuXG4gICAgICAgICl9XG4gICAgICA8L0lucHV0PlxuICAgIDwvQm94PlxuICApO1xufVxuIl19 */",
17
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
18
- });
19
- function focusBorderColor({
20
- variant
21
- }) {
22
- return variant === 'error' ? theme.colors['feedback-error'] : theme.colors.primary;
1
+ import { Box, Input, Text } from "@codecademy/gamut";
2
+ import { theme } from "@codecademy/gamut-styles";
3
+ import styled from "@emotion/styled";
4
+ import { useCallback, useRef } from "react";
5
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
+ import { conditionalStyles, formFieldStyles } from "@codecademy/gamut/dist/Form/styles";
7
+
8
+ //#region src/Recurly/fields/RecurlyField.tsx
9
+ const Slash = styled.span`
10
+ width: 0;
11
+ font-family: 'Suisse';
12
+ transform: translate(-6px, 1px);
13
+ font-size: 18px;
14
+ `;
15
+ function focusBorderColor({ variant: variant$1 }) {
16
+ return variant$1 === "error" ? theme.colors["feedback-error"] : theme.colors.primary;
23
17
  }
24
- const InputInnerBox = /*#__PURE__*/_styled("div", {
25
- target: "e1ndrvyp0",
26
- label: "InputInnerBox"
27
- })(formFieldStyles, " ", conditionalStyles, " &>div{width:100%;}padding:0;display:flex;align-items:center;height:3.125rem;.recurly-element{height:3.125rem;}&:has(.recurly-element-focus){border-color:", focusBorderColor, ";box-shadow:inset 0 0 0 1px ", focusBorderColor, ";}&:has(", Slash, ")>div:first-of-type{max-width:2.75rem;min-width:2.75rem;}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9SZWN1cmx5L2ZpZWxkcy9SZWN1cmx5RmllbGQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTRCa0QiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL1JlY3VybHkvZmllbGRzL1JlY3VybHlGaWVsZC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge1xuICBCb3gsXG4gIElucHV0LFxuICBJbnB1dFdyYXBwZXJQcm9wcyxcbiAgU3R5bGVkSW5wdXRQcm9wcyxcbiAgVGV4dCxcbn0gZnJvbSAnQGNvZGVjYWRlbXkvZ2FtdXQnO1xuaW1wb3J0IHtcbiAgY29uZGl0aW9uYWxTdHlsZXMsXG4gIGZvcm1GaWVsZFN0eWxlcyxcbn0gZnJvbSAnQGNvZGVjYWRlbXkvZ2FtdXQvZGlzdC9Gb3JtL3N0eWxlcyc7XG5pbXBvcnQgeyB0aGVtZSB9IGZyb20gJ0Bjb2RlY2FkZW15L2dhbXV0LXN0eWxlcyc7XG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgeyB1c2VDYWxsYmFjaywgdXNlUmVmIH0gZnJvbSAncmVhY3QnO1xuXG5jb25zdCBTbGFzaCA9IHN0eWxlZC5zcGFuYFxuICB3aWR0aDogMDtcbiAgZm9udC1mYW1pbHk6ICdTdWlzc2UnO1xuICB0cmFuc2Zvcm06IHRyYW5zbGF0ZSgtNnB4LCAxcHgpO1xuICBmb250LXNpemU6IDE4cHg7XG5gO1xuXG5mdW5jdGlvbiBmb2N1c0JvcmRlckNvbG9yKHsgdmFyaWFudCB9OiBTdHlsZWRJbnB1dFByb3BzKSB7XG4gIHJldHVybiB2YXJpYW50ID09PSAnZXJyb3InXG4gICAgPyB0aGVtZS5jb2xvcnNbJ2ZlZWRiYWNrLWVycm9yJ11cbiAgICA6IHRoZW1lLmNvbG9ycy5wcmltYXJ5O1xufVxuXG5jb25zdCBJbnB1dElubmVyQm94ID0gc3R5bGVkLmRpdjxTdHlsZWRJbnB1dFByb3BzPmBcbiAgJHtmb3JtRmllbGRTdHlsZXN9XG4gICR7Y29uZGl0aW9uYWxTdHlsZXN9XG4gICYgPiBkaXYge1xuICAgIHdpZHRoOiAxMDAlO1xuICB9XG4gIHBhZGRpbmc6IDA7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIGhlaWdodDogMy4xMjVyZW07XG4gIC5yZWN1cmx5LWVsZW1lbnQge1xuICAgIGhlaWdodDogMy4xMjVyZW07XG4gIH1cbiAgJjpoYXMoLnJlY3VybHktZWxlbWVudC1mb2N1cykge1xuICAgIGJvcmRlci1jb2xvcjogJHtmb2N1c0JvcmRlckNvbG9yfTtcbiAgICBib3gtc2hhZG93OiBpbnNldCAwIDAgMCAxcHggJHtmb2N1c0JvcmRlckNvbG9yfTtcbiAgfVxuICAmOmhhcygke1NsYXNofSkgPiBkaXY6Zmlyc3Qtb2YtdHlwZSB7XG4gICAgbWF4LXdpZHRoOiAyLjc1cmVtO1xuICAgIG1pbi13aWR0aDogMi43NXJlbTtcbiAgfVxuYDtcblxuZXhwb3J0IHR5cGUgUmVjdXJseUZpZWxkUHJvcHMgPSBJbnB1dFdyYXBwZXJQcm9wcyAmIHsgbGFiZWw6IHN0cmluZyB9O1xuXG4vKipcbiAqIEEgd3JhcHBlciBhcm91bmQgYSBSZWN1cmx5IGVsZW1lbnQgKG9yIHR3byBlbGVtZW50cyBpbiB0aGUgY2FzZSBvZiBNTS9ZWSkgdG9cbiAqIGFkZCBHYW11dCBib3JkZXIgc3R5bGluZyBhbmQgYSBsYWJlbC5cbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIFJlY3VybHlGaWVsZCh7IGxhYmVsLCBjaGlsZHJlbiwgLi4ucHJvcHMgfTogUmVjdXJseUZpZWxkUHJvcHMpIHtcbiAgY29uc3QgcmVmID0gdXNlUmVmPEhUTUxEaXZFbGVtZW50PihudWxsKTtcblxuICBjb25zdCBzZWxlY3RJZnJhbWUgPSB1c2VDYWxsYmFjaygoKSA9PiB7XG4gICAgcmVmLmN1cnJlbnQ/LnF1ZXJ5U2VsZWN0b3IoJ2lmcmFtZScpPy5mb2N1cygpO1xuICB9LCBbXSk7XG5cbiAgcmV0dXJuIChcbiAgICA8Qm94IHJlZj17cmVmfT5cbiAgICAgIDxUZXh0IGFzPVwibGFiZWxcIiBvbkNsaWNrPXtzZWxlY3RJZnJhbWV9PlxuICAgICAgICB7bGFiZWx9XG4gICAgICA8L1RleHQ+XG4gICAgICA8SW5wdXQgYXM9e0lucHV0SW5uZXJCb3h9IHsuLi5wcm9wc30+XG4gICAgICAgIHtBcnJheS5pc0FycmF5KGNoaWxkcmVuKSAmJiBjaGlsZHJlbi5sZW5ndGggPT09IDIgPyAoXG4gICAgICAgICAgPD5cbiAgICAgICAgICAgIHtjaGlsZHJlblswXX1cbiAgICAgICAgICAgIDxTbGFzaD4vPC9TbGFzaD5cbiAgICAgICAgICAgIHtjaGlsZHJlblsxXX1cbiAgICAgICAgICA8Lz5cbiAgICAgICAgKSA6IChcbiAgICAgICAgICBjaGlsZHJlblxuICAgICAgICApfVxuICAgICAgPC9JbnB1dD5cbiAgICA8L0JveD5cbiAgKTtcbn1cbiJdfQ== */"));
18
+ const InputInnerBox = styled.div`
19
+ ${formFieldStyles}
20
+ ${conditionalStyles}
21
+ & > div {
22
+ width: 100%;
23
+ }
24
+ padding: 0;
25
+ display: flex;
26
+ align-items: center;
27
+ height: 3.125rem;
28
+ .recurly-element {
29
+ height: 3.125rem;
30
+ }
31
+ &:has(.recurly-element-focus) {
32
+ border-color: ${focusBorderColor};
33
+ box-shadow: inset 0 0 0 1px ${focusBorderColor};
34
+ }
35
+ &:has(${Slash}) > div:first-of-type {
36
+ max-width: 2.75rem;
37
+ min-width: 2.75rem;
38
+ }
39
+ `;
28
40
  /**
29
- * A wrapper around a Recurly element (or two elements in the case of MM/YY) to
30
- * add Gamut border styling and a label.
31
- */
32
- export function RecurlyField({
33
- label,
34
- children,
35
- ...props
36
- }) {
37
- const ref = useRef(null);
38
- const selectIframe = useCallback(() => {
39
- ref.current?.querySelector('iframe')?.focus();
40
- }, []);
41
- return /*#__PURE__*/_jsxs(Box, {
42
- ref: ref,
43
- children: [/*#__PURE__*/_jsx(Text, {
44
- as: "label",
45
- onClick: selectIframe,
46
- children: label
47
- }), /*#__PURE__*/_jsx(Input, {
48
- as: InputInnerBox,
49
- ...props,
50
- children: Array.isArray(children) && children.length === 2 ? /*#__PURE__*/_jsxs(_Fragment, {
51
- children: [children[0], /*#__PURE__*/_jsx(Slash, {
52
- children: "/"
53
- }), children[1]]
54
- }) : children
55
- })]
56
- });
57
- }
41
+ * A wrapper around a Recurly element (or two elements in the case of MM/YY) to
42
+ * add Gamut border styling and a label.
43
+ */
44
+ function RecurlyField({ label, children, ...props }) {
45
+ const ref = useRef(null);
46
+ return /* @__PURE__ */ jsxs(Box, {
47
+ ref,
48
+ children: [/* @__PURE__ */ jsx(Text, {
49
+ as: "label",
50
+ onClick: useCallback(() => {
51
+ ref.current?.querySelector("iframe")?.focus();
52
+ }, []),
53
+ children: label
54
+ }), /* @__PURE__ */ jsx(Input, {
55
+ as: InputInnerBox,
56
+ ...props,
57
+ children: Array.isArray(children) && children.length === 2 ? /* @__PURE__ */ jsxs(Fragment, { children: [
58
+ children[0],
59
+ /* @__PURE__ */ jsx(Slash, { children: "/" }),
60
+ children[1]
61
+ ] }) : children
62
+ })]
63
+ });
64
+ }
65
+
66
+ //#endregion
67
+ export { RecurlyField };
@@ -0,0 +1,63 @@
1
+ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
+ const require_index = require('../context/elements/index.cjs');
3
+ let react = require("react");
4
+ let react_jsx_runtime = require("react/jsx-runtime");
5
+ let _codecademy_gamut_dist_Form_styles = require("@codecademy/gamut/dist/Form/styles");
6
+
7
+ //#region src/Recurly/fields/elements.tsx
8
+ const CardNumber = element("CardNumberElement", "Card number");
9
+ const ExpMonth = element("CardMonthElement", "Expiration month", "MM");
10
+ const ExpYear = element("CardYearElement", "Expiration year", "YY");
11
+ const CVV = element("CardCvvElement", "CVV");
12
+ /**
13
+ * Defines a Recurly element component for a given type.
14
+ */
15
+ function element(type, title, placeholder) {
16
+ return (0, react.forwardRef)((eventHandlers, ref) => {
17
+ const elements = require_index.useElements({ noProviderError: "Recurly element must be used within a Elements provider." });
18
+ const h = (0, react.useRef)({});
19
+ h.current = eventHandlers;
20
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { ref: (0, react.useMemo)(() => {
21
+ if (!elements) return null;
22
+ let el;
23
+ return (div) => {
24
+ if (div) {
25
+ el = elements[type]({ style: getStyle(title, placeholder) });
26
+ el.attach(div);
27
+ bindEventHandlers(el, h);
28
+ allowFocus(div, ref, el);
29
+ } else cleanup(el);
30
+ };
31
+ }, [elements, ref]) });
32
+ });
33
+ }
34
+ function cleanup(el) {
35
+ el?.destroy();
36
+ }
37
+ function allowFocus(div, ref, el) {
38
+ div.querySelector("iframe")?.addEventListener("focus", () => el.focus());
39
+ if (ref instanceof Function) ref(el);
40
+ else if (ref) ref.current = el;
41
+ }
42
+ function getStyle(title, placeholder) {
43
+ const { px, py } = _codecademy_gamut_dist_Form_styles.formFieldPaddingStyles;
44
+ return {
45
+ fontFamily: "JetBrains Mono",
46
+ padding: `${px}px ${py}px`,
47
+ title,
48
+ ...placeholder ? { placeholder } : {}
49
+ };
50
+ }
51
+ function bindEventHandlers(el, h) {
52
+ el.on("attach", (...args) => h.current?.onReady?.(...args));
53
+ el.on("change", (...args) => h.current?.onChange?.(...args));
54
+ el.on("blur", (...args) => h.current?.onBlur?.(...args));
55
+ el.on("focus", (...args) => h.current?.onFocus?.(...args));
56
+ el.on("submit", (...args) => h.current?.onSubmit?.(...args));
57
+ }
58
+
59
+ //#endregion
60
+ exports.CVV = CVV;
61
+ exports.CardNumber = CardNumber;
62
+ exports.ExpMonth = ExpMonth;
63
+ exports.ExpYear = ExpYear;
@@ -0,0 +1,22 @@
1
+ import * as react29 from "react";
2
+ import { Emitter } from "@recurly/recurly-js/lib/emitter";
3
+
4
+ //#region src/Recurly/fields/elements.d.ts
5
+ declare const CardNumber: react29.ForwardRefExoticComponent<EventHandlers & react29.RefAttributes<Focusable>>;
6
+ declare const ExpMonth: react29.ForwardRefExoticComponent<EventHandlers & react29.RefAttributes<Focusable>>;
7
+ declare const ExpYear: react29.ForwardRefExoticComponent<EventHandlers & react29.RefAttributes<Focusable>>;
8
+ declare const CVV: react29.ForwardRefExoticComponent<EventHandlers & react29.RefAttributes<Focusable>>;
9
+ type ElementType = 'CardNumberElement' | 'CardMonthElement' | 'CardYearElement' | 'CardCvvElement';
10
+ type EventHandler = Parameters<Emitter['on']>[1];
11
+ type EventHandlers = {
12
+ onReady?: EventHandler;
13
+ onChange?: EventHandler;
14
+ onBlur?: EventHandler;
15
+ onFocus?: EventHandler;
16
+ onSubmit?: EventHandler;
17
+ };
18
+ type Focusable = {
19
+ focus: () => void;
20
+ };
21
+ //#endregion
22
+ export { CVV, CardNumber, ElementType, EventHandler, EventHandlers, ExpMonth, ExpYear, Focusable };