@ndla/ui 29.0.0 → 30.0.1

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 (792) hide show
  1. package/es/Animation/DisplayOnPageYOffset.js +1 -1
  2. package/es/Animation/Fade.js +1 -1
  3. package/es/Article/Article.js +18 -14
  4. package/es/Article/ArticleAccessMessage.js +14 -10
  5. package/es/Article/ArticleByline.js +22 -14
  6. package/es/Article/ArticleContent.js +1 -1
  7. package/es/Article/ArticleFavoritesButton.js +1 -1
  8. package/es/Article/ArticleFootNotes.js +1 -1
  9. package/es/Article/ArticleHeaderWrapper.js +27 -19
  10. package/es/Article/ArticleNotions.js +22 -12
  11. package/es/Article/ArticleSideBar.js +26 -18
  12. package/es/Aside/Aside.js +1 -1
  13. package/es/AudioPlayer/AudioPlayer.js +67 -39
  14. package/es/AudioPlayer/Controls.js +137 -85
  15. package/es/AudioPlayer/SpeechControl.js +5 -3
  16. package/es/AudioPlayer/initAudioPlayers.js +1 -1
  17. package/es/AuthorInfo/AuthorInfo.js +14 -8
  18. package/es/BannerCard/BannerCard.js +29 -15
  19. package/es/BlogPosts/BlogPost.js +22 -14
  20. package/es/BlogPosts/BlogPostWrapper.js +7 -5
  21. package/es/Breadcrumb/ActionBreadcrumb.js +26 -10
  22. package/es/Breadcrumb/Breadcrumb.js +14 -10
  23. package/es/Breadcrumb/BreadcrumbItem.js +38 -26
  24. package/es/Breadcrumb/HeaderBreadcrumb.js +21 -7
  25. package/es/Breadcrumb/HomeBreadcrumb.js +37 -18
  26. package/es/Breadcrumblist/Breadcrumblist.js +37 -25
  27. package/es/CompetenceGoalTab/CompetenceGoalItem.js +42 -26
  28. package/es/CompetenceGoalTab/CompetenceGoalTab.js +26 -16
  29. package/es/CompetenceGoalTab/CompetenceItem.js +74 -54
  30. package/es/CompetenceGoalTab/SearchButton.js +10 -6
  31. package/es/CompetenceGoals/CompetenceGoalsDialog.js +17 -11
  32. package/es/ComponentCursor/ComponentCursor.js +54 -36
  33. package/es/ContentCard/ContentCard.js +35 -19
  34. package/es/ContentLoader/index.js +1 -1
  35. package/es/ContentPlaceholder/ContentPlaceholder.js +21 -15
  36. package/es/ContentTypeBadge/ContentTypeBadge.js +1 -1
  37. package/es/CopyParagraphButton/CopyParagraphButton.js +47 -35
  38. package/es/CopyParagraphButton/initCopyParagraphButtons.js +1 -1
  39. package/es/CreatedBy/CreatedBy.js +26 -18
  40. package/es/Dialog/Dialog.js +1 -1
  41. package/es/ErrorMessage/ErrorMessage.js +23 -15
  42. package/es/ErrorMessage/ErrorResourceAccessDenied.js +5 -3
  43. package/es/FactBox/FactBox.js +1 -1
  44. package/es/Figure/Figure.js +1 -1
  45. package/es/Figure/FigureBylineExpandButton.js +1 -1
  46. package/es/Figure/FigureExpandButton.js +1 -1
  47. package/es/Figure/FigureLicense.js +1 -1
  48. package/es/Figure/FigureLicenseDialog.js +1 -1
  49. package/es/Figure/FigureOpenDialogButton.js +1 -1
  50. package/es/FileList/File.js +17 -11
  51. package/es/FileList/FileList.js +17 -11
  52. package/es/Filter/FilterButtons.js +45 -27
  53. package/es/Filter/FilterCarousel.js +31 -25
  54. package/es/Filter/FilterList.js +1 -1
  55. package/es/Filter/FilterListPhone.js +1 -1
  56. package/es/Filter/ToggleItem.js +1 -1
  57. package/es/Footer/EditorName.js +1 -1
  58. package/es/Footer/Footer.js +37 -23
  59. package/es/Footer/FooterAuth.js +36 -15
  60. package/es/Footer/FooterLinks.js +31 -19
  61. package/es/Footer/FooterPrivacy.js +13 -9
  62. package/es/Footer/FooterText.js +8 -6
  63. package/es/Footer/privacy_en.js +1 -1
  64. package/es/Footer/privacy_nb.js +1 -1
  65. package/es/Footer/privacy_nn.js +1 -1
  66. package/es/Frontpage/FrontpageAllSubjects.js +46 -32
  67. package/es/Frontpage/FrontpageFilm.js +22 -12
  68. package/es/Frontpage/FrontpageHeader.js +18 -10
  69. package/es/Frontpage/FrontpageInfo.js +6 -4
  70. package/es/Frontpage/FrontpageMultidisciplinarySubject.js +38 -24
  71. package/es/Frontpage/FrontpageProgramMenu.js +55 -37
  72. package/es/Frontpage/FrontpageSearch.js +11 -7
  73. package/es/Frontpage/FrontpageToolbox.js +18 -10
  74. package/es/Frontpage/illustrations/Fellesfag.js +1 -1
  75. package/es/Frontpage/illustrations/FrontpageHeaderIllustration.js +1 -1
  76. package/es/Frontpage/illustrations/FrontpageIllustrations.js +13 -9
  77. package/es/Frontpage/illustrations/FrontpageSubjectIllustration.js +7 -7
  78. package/es/Frontpage/illustrations/MenuFellesfag.js +1 -1
  79. package/es/Frontpage/illustrations/MenuStudiespesialiserende.js +1 -1
  80. package/es/Frontpage/illustrations/MenuYrkesfag.js +1 -1
  81. package/es/Frontpage/illustrations/Studiespesialiserende.js +1 -1
  82. package/es/Frontpage/illustrations/Yrkesfag.js +1 -1
  83. package/es/Hero/Hero.js +1 -1
  84. package/es/Image/Image.js +9 -7
  85. package/es/Image/ImageLink.js +9 -7
  86. package/es/Image/LazyLoadImage.js +2 -2
  87. package/es/InfoBlock/InfoBlock.js +22 -12
  88. package/es/InfoBox/InfoBox.js +6 -4
  89. package/es/InfoWidget/InfoWidget.js +46 -28
  90. package/es/LanguageSelector/LanguageSelector.js +42 -21
  91. package/es/LanguageSelector/LanguageSelectorContent.js +18 -6
  92. package/es/Layout/Content.js +1 -1
  93. package/es/Layout/LayoutItem.js +1 -1
  94. package/es/Layout/OneColumn.js +1 -1
  95. package/es/Layout/PageContainer.js +1 -1
  96. package/es/LearningPaths/LearningPathContent.js +6 -4
  97. package/es/LearningPaths/LearningPathInformation.js +16 -10
  98. package/es/LearningPaths/LearningPathLastStepNavigation.js +26 -16
  99. package/es/LearningPaths/LearningPathMenu.js +19 -11
  100. package/es/LearningPaths/LearningPathMenuAside.js +35 -15
  101. package/es/LearningPaths/LearningPathMenuAsideCopyright.js +10 -6
  102. package/es/LearningPaths/LearningPathMenuContent.js +33 -21
  103. package/es/LearningPaths/LearningPathMenuIntro.js +39 -23
  104. package/es/LearningPaths/LearningPathMenuModalWrapper.js +8 -4
  105. package/es/LearningPaths/LearningPathMobileHeader.js +18 -6
  106. package/es/LearningPaths/LearningPathMobileStepInfo.js +5 -3
  107. package/es/LearningPaths/LearningPathSticky.js +21 -13
  108. package/es/LearningPaths/LearningPathWrapper.js +13 -7
  109. package/es/Logo/Logo.js +1 -1
  110. package/es/Logo/SvgLogo.js +1 -1
  111. package/es/Masthead/Masthead.js +32 -20
  112. package/es/Masthead/MastheadAuthModal.js +5 -3
  113. package/es/Masthead/MastheadSearchModal.js +20 -10
  114. package/es/Masthead/SkipToMainContent.js +5 -3
  115. package/es/MediaList/MediaList.js +1 -1
  116. package/es/Messages/MessageBanner.js +18 -12
  117. package/es/Messages/MessageBox.js +51 -29
  118. package/es/Messages/MessageBoxTag.js +9 -7
  119. package/es/MultidisciplinarySubject/Illustrations.js +28 -14
  120. package/es/MultidisciplinarySubject/List.js +19 -13
  121. package/es/MultidisciplinarySubject/ListItem.js +41 -27
  122. package/es/MultidisciplinarySubject/MultidisciplinarySubject.js +42 -28
  123. package/es/MultidisciplinarySubject/MultidisciplinarySubjectHeader.js +38 -26
  124. package/es/MyNdla/Resource/Folder.js +45 -19
  125. package/es/MyNdla/Resource/FolderInput.js +17 -6
  126. package/es/NDLAFilm/AboutNdlaFilm.js +7 -5
  127. package/es/NDLAFilm/AllMoviesAlphabetically.js +62 -42
  128. package/es/NDLAFilm/CategorySelect.js +17 -11
  129. package/es/NDLAFilm/FilmContentCard.js +15 -9
  130. package/es/NDLAFilm/FilmContentCardTags.js +10 -6
  131. package/es/NDLAFilm/FilmMovieList.js +5 -3
  132. package/es/NDLAFilm/FilmMovieSearch.js +10 -6
  133. package/es/NDLAFilm/FilmSlideshow.js +44 -32
  134. package/es/NDLAFilm/MovieGrid.js +11 -7
  135. package/es/NDLAFilm/NavigationArrow.js +25 -13
  136. package/es/NDLAFilm/SlideshowIndicator.js +12 -8
  137. package/es/NDLAFilm/VisualElement.js +9 -7
  138. package/es/NDLAFilm/filmStyles.js +7 -3
  139. package/es/Navigation/NavigationBox.js +120 -82
  140. package/es/Navigation/NavigationHeading.js +26 -20
  141. package/es/Navigation/NavigationTopicAbout.js +82 -64
  142. package/es/NoContentBox/NoContentBox.js +1 -1
  143. package/es/Notion/ConceptNotion.js +12 -6
  144. package/es/Notion/FigureNotion.js +11 -3
  145. package/es/Notion/Notion.js +26 -18
  146. package/es/Notion/NotionImage.js +10 -6
  147. package/es/Notion/NotionVisualElement.js +12 -10
  148. package/es/Portrait/Portrait.js +14 -4
  149. package/es/Programme/Programme.js +30 -20
  150. package/es/Programme/ProgrammeSubjects.js +6 -4
  151. package/es/RadioButtonGroup/RadioButtonGroup.js +20 -12
  152. package/es/RelatedArticleList/RelatedArticleList.js +1 -1
  153. package/es/Resource/BlockResource.js +32 -13
  154. package/es/Resource/ListResource.js +45 -24
  155. package/es/Resource/resourceComponents.js +61 -30
  156. package/es/ResourceBox/ResourceBox.js +27 -15
  157. package/es/ResourceGroup/ResourceGroup.js +13 -7
  158. package/es/ResourceGroup/ResourceItem.js +59 -29
  159. package/es/ResourceGroup/ResourceList.js +13 -7
  160. package/es/ResourcesWrapper/ResourcesTitle.js +1 -1
  161. package/es/ResourcesWrapper/ResourcesTopicTitle.js +31 -19
  162. package/es/ResourcesWrapper/ResourcesWrapper.js +1 -1
  163. package/es/Search/ActiveFilterContent.js +10 -6
  164. package/es/Search/ActiveFilters.js +36 -24
  165. package/es/Search/ContentTypeResult.js +2 -4
  166. package/es/Search/ContentTypeResultStyles.js +76 -32
  167. package/es/Search/LoadingWrapper.js +6 -4
  168. package/es/Search/SearchField.js +13 -7
  169. package/es/Search/SearchFieldForm.js +19 -9
  170. package/es/Search/SearchResult.js +46 -26
  171. package/es/Search/SearchResultSleeve.js +35 -19
  172. package/es/Search/ToggleSearchButton.js +10 -6
  173. package/es/SearchTypeResult/ActiveFilterContent.js +14 -10
  174. package/es/SearchTypeResult/ActiveFilters.js +36 -24
  175. package/es/SearchTypeResult/PopupFilter.js +41 -27
  176. package/es/SearchTypeResult/ResultNavigation.js +18 -10
  177. package/es/SearchTypeResult/SearchFieldHeader.js +22 -14
  178. package/es/SearchTypeResult/SearchFilterContent.js +14 -10
  179. package/es/SearchTypeResult/SearchHeader.js +34 -18
  180. package/es/SearchTypeResult/SearchItem.js +51 -37
  181. package/es/SearchTypeResult/SearchItemList.js +71 -44
  182. package/es/SearchTypeResult/SearchItems.js +16 -12
  183. package/es/SearchTypeResult/SearchNotionItem.js +63 -39
  184. package/es/SearchTypeResult/SearchNotionsResult.js +19 -11
  185. package/es/SearchTypeResult/SearchSubjectItem.js +14 -8
  186. package/es/SearchTypeResult/SearchSubjectResult.js +9 -7
  187. package/es/SearchTypeResult/SearchTypeHeader.js +41 -23
  188. package/es/SearchTypeResult/SearchTypeResult.js +11 -7
  189. package/es/SearchTypeResult/SearchViewType.js +22 -14
  190. package/es/SearchTypeResult/components/ItemContexts.js +33 -19
  191. package/es/SearchTypeResult/components/ItemResourceHeader.js +47 -25
  192. package/es/SearchTypeResult/components/ItemTopicHeader.js +33 -15
  193. package/es/SearchTypeResult/components/SubjectFilters.js +9 -7
  194. package/es/SectionHeading/SectionHeading.js +16 -8
  195. package/es/SnackBar/DefaultSnackbar.js +13 -7
  196. package/es/SnackBar/SnackbarProvider.js +17 -13
  197. package/es/Subject/Subject.js +64 -38
  198. package/es/Subject/SubjectAbout.js +46 -26
  199. package/es/Subject/SubjectArchive.js +54 -32
  200. package/es/Subject/SubjectBanner.js +7 -5
  201. package/es/Subject/SubjectCarousel.js +26 -14
  202. package/es/Subject/SubjectHeader.js +23 -13
  203. package/es/Subject/SubjectLinks.js +17 -11
  204. package/es/Subject/SubjectNewContent.js +39 -23
  205. package/es/Subject/SubjectShortcuts.js +22 -14
  206. package/es/Subject/SubjectSocial.js +10 -6
  207. package/es/Table/Table.js +1 -1
  208. package/es/TagSelector/Control.js +13 -4
  209. package/es/TagSelector/DropdownIndicator.js +5 -3
  210. package/es/TagSelector/Input.js +13 -4
  211. package/es/TagSelector/Menu.js +13 -4
  212. package/es/TagSelector/MenuList.js +12 -3
  213. package/es/TagSelector/Option.js +10 -6
  214. package/es/TagSelector/SelectContainer.js +13 -3
  215. package/es/TagSelector/TagSelector.js +15 -11
  216. package/es/TagSelector/ValueButton.js +5 -3
  217. package/es/ToolboxPage/ToolboxInfo.js +10 -6
  218. package/es/Topic/Loader.js +1 -1
  219. package/es/Topic/Topic.js +117 -83
  220. package/es/TopicIntroductionList/TopicIntroduction.js +1 -1
  221. package/es/TopicIntroductionList/TopicIntroductionList.js +1 -1
  222. package/es/TopicIntroductionList/TopicIntroductionShortcuts.js +1 -1
  223. package/es/TopicIntroductionList/TopicShortcutItem.js +1 -1
  224. package/es/TopicMenu/SubtopicLinkList.js +33 -19
  225. package/es/TopicMenu/TopicMenu.js +5 -3
  226. package/es/TopicMenu/TopicMenuButton.js +8 -4
  227. package/es/Translation/Translation.js +1 -1
  228. package/es/Translation/TranslationBox.js +1 -1
  229. package/es/Translation/TranslationLine.js +1 -1
  230. package/es/TreeStructure/AddFolderButton.js +14 -10
  231. package/es/TreeStructure/ComboboxButton.js +10 -6
  232. package/es/TreeStructure/FolderItem.js +27 -15
  233. package/es/TreeStructure/FolderItems.js +11 -7
  234. package/es/TreeStructure/NavigationLink.js +21 -10
  235. package/es/TreeStructure/TreeStructure.js +45 -27
  236. package/es/User/AuthModal.js +33 -19
  237. package/es/User/UserInfo.js +20 -10
  238. package/es/internal-icons/Book.js +1 -1
  239. package/es/internal-icons/Download.js +1 -1
  240. package/es/internal-icons/Embed.js +1 -1
  241. package/es/internal-icons/InsertTemplate.js +1 -1
  242. package/es/internal-icons/OpenWindow.js +1 -1
  243. package/es/locale/LocaleProvider.js +1 -1
  244. package/es/locale/messages-en.js +1 -1
  245. package/es/locale/messages-nb.js +1 -1
  246. package/es/locale/messages-nn.js +1 -1
  247. package/es/locale/messages-se.js +1 -1
  248. package/es/locale/messages-sma.js +1 -1
  249. package/es/utils/createUniversalPortal.js +1 -1
  250. package/lib/Animation/DisplayOnPageYOffset.d.ts +1 -1
  251. package/lib/Animation/DisplayOnPageYOffset.js +2 -2
  252. package/lib/Animation/Fade.d.ts +1 -1
  253. package/lib/Animation/Fade.js +2 -2
  254. package/lib/Article/Article.d.ts +3 -3
  255. package/lib/Article/Article.js +39 -35
  256. package/lib/Article/ArticleAccessMessage.d.ts +1 -2
  257. package/lib/Article/ArticleAccessMessage.js +15 -11
  258. package/lib/Article/ArticleByline.d.ts +1 -1
  259. package/lib/Article/ArticleByline.js +33 -25
  260. package/lib/Article/ArticleContent.d.ts +1 -2
  261. package/lib/Article/ArticleContent.js +2 -2
  262. package/lib/Article/ArticleFavoritesButton.d.ts +1 -2
  263. package/lib/Article/ArticleFavoritesButton.js +5 -5
  264. package/lib/Article/ArticleFootNotes.d.ts +1 -2
  265. package/lib/Article/ArticleFootNotes.js +7 -7
  266. package/lib/Article/ArticleHeaderWrapper.d.ts +2 -2
  267. package/lib/Article/ArticleHeaderWrapper.js +36 -28
  268. package/lib/Article/ArticleNotions.d.ts +1 -2
  269. package/lib/Article/ArticleNotions.js +33 -23
  270. package/lib/Article/ArticleSideBar.d.ts +1 -1
  271. package/lib/Article/ArticleSideBar.js +34 -26
  272. package/lib/Aside/Aside.d.ts +1 -1
  273. package/lib/Aside/Aside.js +2 -2
  274. package/lib/AudioPlayer/AudioPlayer.d.ts +1 -1
  275. package/lib/AudioPlayer/AudioPlayer.js +83 -55
  276. package/lib/AudioPlayer/Controls.d.ts +1 -2
  277. package/lib/AudioPlayer/Controls.js +161 -109
  278. package/lib/AudioPlayer/SpeechControl.d.ts +1 -2
  279. package/lib/AudioPlayer/SpeechControl.js +8 -6
  280. package/lib/AudioPlayer/initAudioPlayers.js +3 -3
  281. package/lib/AuthorInfo/AuthorInfo.d.ts +1 -2
  282. package/lib/AuthorInfo/AuthorInfo.js +16 -10
  283. package/lib/BannerCard/BannerCard.d.ts +1 -2
  284. package/lib/BannerCard/BannerCard.js +31 -17
  285. package/lib/BlogPosts/BlogPost.d.ts +1 -2
  286. package/lib/BlogPosts/BlogPost.js +26 -18
  287. package/lib/BlogPosts/BlogPostWrapper.d.ts +1 -1
  288. package/lib/BlogPosts/BlogPostWrapper.js +8 -6
  289. package/lib/Breadcrumb/ActionBreadcrumb.d.ts +1 -2
  290. package/lib/Breadcrumb/ActionBreadcrumb.js +31 -16
  291. package/lib/Breadcrumb/Breadcrumb.d.ts +1 -1
  292. package/lib/Breadcrumb/Breadcrumb.js +17 -13
  293. package/lib/Breadcrumb/BreadcrumbItem.js +41 -29
  294. package/lib/Breadcrumb/HeaderBreadcrumb.d.ts +1 -2
  295. package/lib/Breadcrumb/HeaderBreadcrumb.js +24 -11
  296. package/lib/Breadcrumb/HomeBreadcrumb.d.ts +1 -2
  297. package/lib/Breadcrumb/HomeBreadcrumb.js +37 -25
  298. package/lib/Breadcrumblist/Breadcrumblist.d.ts +1 -1
  299. package/lib/Breadcrumblist/Breadcrumblist.js +51 -39
  300. package/lib/CompetenceGoalTab/CompetenceGoalItem.d.ts +1 -2
  301. package/lib/CompetenceGoalTab/CompetenceGoalItem.js +45 -29
  302. package/lib/CompetenceGoalTab/CompetenceGoalTab.d.ts +1 -2
  303. package/lib/CompetenceGoalTab/CompetenceGoalTab.js +32 -22
  304. package/lib/CompetenceGoalTab/CompetenceItem.d.ts +1 -2
  305. package/lib/CompetenceGoalTab/CompetenceItem.js +84 -64
  306. package/lib/CompetenceGoalTab/SearchButton.d.ts +1 -2
  307. package/lib/CompetenceGoalTab/SearchButton.js +13 -9
  308. package/lib/CompetenceGoals/CompetenceGoalsDialog.d.ts +1 -1
  309. package/lib/CompetenceGoals/CompetenceGoalsDialog.js +22 -16
  310. package/lib/ComponentCursor/ComponentCursor.d.ts +1 -2
  311. package/lib/ComponentCursor/ComponentCursor.js +59 -41
  312. package/lib/ContentCard/ContentCard.d.ts +1 -2
  313. package/lib/ContentCard/ContentCard.js +39 -23
  314. package/lib/ContentLoader/index.d.ts +1 -1
  315. package/lib/ContentLoader/index.js +11 -11
  316. package/lib/ContentPlaceholder/ContentPlaceholder.d.ts +1 -2
  317. package/lib/ContentPlaceholder/ContentPlaceholder.js +22 -16
  318. package/lib/ContentTypeBadge/ContentTypeBadge.d.ts +9 -10
  319. package/lib/ContentTypeBadge/ContentTypeBadge.js +19 -19
  320. package/lib/CopyParagraphButton/CopyParagraphButton.d.ts +1 -2
  321. package/lib/CopyParagraphButton/CopyParagraphButton.js +47 -35
  322. package/lib/CopyParagraphButton/initCopyParagraphButtons.js +2 -2
  323. package/lib/CreatedBy/CreatedBy.d.ts +1 -2
  324. package/lib/CreatedBy/CreatedBy.js +29 -21
  325. package/lib/Dialog/Dialog.d.ts +1 -1
  326. package/lib/Dialog/Dialog.js +4 -4
  327. package/lib/ErrorMessage/ErrorMessage.d.ts +1 -1
  328. package/lib/ErrorMessage/ErrorMessage.js +31 -25
  329. package/lib/ErrorMessage/ErrorResourceAccessDenied.d.ts +1 -2
  330. package/lib/ErrorMessage/ErrorResourceAccessDenied.js +10 -8
  331. package/lib/FactBox/FactBox.d.ts +1 -1
  332. package/lib/FactBox/FactBox.js +4 -4
  333. package/lib/Figure/Figure.d.ts +2 -2
  334. package/lib/Figure/Figure.js +10 -10
  335. package/lib/Figure/FigureBylineExpandButton.d.ts +1 -2
  336. package/lib/Figure/FigureBylineExpandButton.js +4 -4
  337. package/lib/Figure/FigureExpandButton.d.ts +1 -2
  338. package/lib/Figure/FigureExpandButton.js +4 -4
  339. package/lib/Figure/FigureLicense.d.ts +2 -2
  340. package/lib/Figure/FigureLicense.js +7 -7
  341. package/lib/Figure/FigureLicenseDialog.d.ts +1 -1
  342. package/lib/Figure/FigureLicenseDialog.js +5 -5
  343. package/lib/Figure/FigureOpenDialogButton.d.ts +1 -2
  344. package/lib/Figure/FigureOpenDialogButton.js +7 -7
  345. package/lib/FileList/File.d.ts +1 -2
  346. package/lib/FileList/File.js +23 -17
  347. package/lib/FileList/FileList.d.ts +1 -2
  348. package/lib/FileList/FileList.js +19 -13
  349. package/lib/Filter/FilterButtons.d.ts +1 -2
  350. package/lib/Filter/FilterButtons.js +64 -46
  351. package/lib/Filter/FilterCarousel.d.ts +1 -1
  352. package/lib/Filter/FilterCarousel.js +37 -31
  353. package/lib/Filter/FilterList.d.ts +1 -1
  354. package/lib/Filter/FilterList.js +5 -5
  355. package/lib/Filter/FilterListPhone.d.ts +1 -2
  356. package/lib/Filter/FilterListPhone.js +19 -19
  357. package/lib/Filter/ToggleItem.d.ts +1 -1
  358. package/lib/Filter/ToggleItem.js +4 -4
  359. package/lib/Footer/EditorName.d.ts +1 -2
  360. package/lib/Footer/EditorName.js +2 -2
  361. package/lib/Footer/Footer.d.ts +1 -1
  362. package/lib/Footer/Footer.js +43 -29
  363. package/lib/Footer/FooterAuth.d.ts +1 -2
  364. package/lib/Footer/FooterAuth.js +38 -24
  365. package/lib/Footer/FooterLinks.d.ts +1 -1
  366. package/lib/Footer/FooterLinks.js +38 -26
  367. package/lib/Footer/FooterPrivacy.d.ts +1 -2
  368. package/lib/Footer/FooterPrivacy.js +21 -17
  369. package/lib/Footer/FooterText.d.ts +1 -1
  370. package/lib/Footer/FooterText.js +9 -7
  371. package/lib/Footer/privacy_en.d.ts +1 -2
  372. package/lib/Footer/privacy_en.js +2 -2
  373. package/lib/Footer/privacy_nb.d.ts +1 -2
  374. package/lib/Footer/privacy_nb.js +2 -2
  375. package/lib/Footer/privacy_nn.d.ts +1 -2
  376. package/lib/Footer/privacy_nn.js +2 -2
  377. package/lib/Frontpage/FrontpageAllSubjects.d.ts +1 -2
  378. package/lib/Frontpage/FrontpageAllSubjects.js +55 -41
  379. package/lib/Frontpage/FrontpageFilm.d.ts +1 -1
  380. package/lib/Frontpage/FrontpageFilm.js +39 -29
  381. package/lib/Frontpage/FrontpageHeader.d.ts +1 -1
  382. package/lib/Frontpage/FrontpageHeader.js +22 -14
  383. package/lib/Frontpage/FrontpageInfo.d.ts +1 -1
  384. package/lib/Frontpage/FrontpageInfo.js +7 -5
  385. package/lib/Frontpage/FrontpageMultidisciplinarySubject.d.ts +21 -6
  386. package/lib/Frontpage/FrontpageMultidisciplinarySubject.js +46 -32
  387. package/lib/Frontpage/FrontpageProgramMenu.d.ts +1 -2
  388. package/lib/Frontpage/FrontpageProgramMenu.js +61 -43
  389. package/lib/Frontpage/FrontpageSearch.d.ts +1 -1
  390. package/lib/Frontpage/FrontpageSearch.js +16 -12
  391. package/lib/Frontpage/FrontpageToolbox.d.ts +1 -1
  392. package/lib/Frontpage/FrontpageToolbox.js +23 -15
  393. package/lib/Frontpage/illustrations/Fellesfag.d.ts +1 -2
  394. package/lib/Frontpage/illustrations/Fellesfag.js +15 -15
  395. package/lib/Frontpage/illustrations/FrontpageHeaderIllustration.d.ts +1 -2
  396. package/lib/Frontpage/illustrations/FrontpageHeaderIllustration.js +31 -31
  397. package/lib/Frontpage/illustrations/FrontpageIllustrations.d.ts +8 -2
  398. package/lib/Frontpage/illustrations/FrontpageIllustrations.js +13 -9
  399. package/lib/Frontpage/illustrations/FrontpageSubjectIllustration.d.ts +1 -2
  400. package/lib/Frontpage/illustrations/FrontpageSubjectIllustration.js +47 -47
  401. package/lib/Frontpage/illustrations/MenuFellesfag.d.ts +1 -2
  402. package/lib/Frontpage/illustrations/MenuFellesfag.js +16 -16
  403. package/lib/Frontpage/illustrations/MenuStudiespesialiserende.d.ts +1 -2
  404. package/lib/Frontpage/illustrations/MenuStudiespesialiserende.js +13 -13
  405. package/lib/Frontpage/illustrations/MenuYrkesfag.d.ts +1 -2
  406. package/lib/Frontpage/illustrations/MenuYrkesfag.js +20 -20
  407. package/lib/Frontpage/illustrations/Studiespesialiserende.d.ts +1 -2
  408. package/lib/Frontpage/illustrations/Studiespesialiserende.js +13 -13
  409. package/lib/Frontpage/illustrations/Yrkesfag.d.ts +1 -2
  410. package/lib/Frontpage/illustrations/Yrkesfag.js +19 -19
  411. package/lib/Frontpage/illustrations/index.d.ts +6 -7
  412. package/lib/Hero/Hero.d.ts +8 -8
  413. package/lib/Hero/Hero.js +9 -9
  414. package/lib/Image/Image.d.ts +1 -1
  415. package/lib/Image/Image.js +13 -11
  416. package/lib/Image/ImageLink.d.ts +1 -1
  417. package/lib/Image/ImageLink.js +10 -8
  418. package/lib/Image/LazyLoadImage.d.ts +1 -2
  419. package/lib/Image/LazyLoadImage.js +4 -4
  420. package/lib/InfoBlock/InfoBlock.d.ts +1 -1
  421. package/lib/InfoBlock/InfoBlock.js +23 -13
  422. package/lib/InfoBox/InfoBox.d.ts +1 -1
  423. package/lib/InfoBox/InfoBox.js +7 -5
  424. package/lib/InfoWidget/InfoWidget.d.ts +1 -1
  425. package/lib/InfoWidget/InfoWidget.js +56 -38
  426. package/lib/LanguageSelector/LanguageSelector.d.ts +1 -2
  427. package/lib/LanguageSelector/LanguageSelector.js +51 -30
  428. package/lib/LanguageSelector/LanguageSelectorContent.d.ts +1 -2
  429. package/lib/LanguageSelector/LanguageSelectorContent.js +21 -10
  430. package/lib/Layout/Content.d.ts +1 -1
  431. package/lib/Layout/Content.js +2 -2
  432. package/lib/Layout/LayoutItem.d.ts +1 -1
  433. package/lib/Layout/LayoutItem.js +5 -5
  434. package/lib/Layout/OneColumn.d.ts +1 -1
  435. package/lib/Layout/OneColumn.js +2 -2
  436. package/lib/Layout/PageContainer.d.ts +1 -1
  437. package/lib/Layout/PageContainer.js +2 -2
  438. package/lib/LearningPaths/LearningPathContent.d.ts +1 -1
  439. package/lib/LearningPaths/LearningPathContent.js +7 -5
  440. package/lib/LearningPaths/LearningPathInformation.d.ts +1 -2
  441. package/lib/LearningPaths/LearningPathInformation.js +21 -15
  442. package/lib/LearningPaths/LearningPathLastStepNavigation.d.ts +1 -1
  443. package/lib/LearningPaths/LearningPathLastStepNavigation.js +32 -22
  444. package/lib/LearningPaths/LearningPathMenu.d.ts +1 -2
  445. package/lib/LearningPaths/LearningPathMenu.js +38 -30
  446. package/lib/LearningPaths/LearningPathMenuAside.d.ts +1 -1
  447. package/lib/LearningPaths/LearningPathMenuAside.js +49 -29
  448. package/lib/LearningPaths/LearningPathMenuAsideCopyright.d.ts +1 -2
  449. package/lib/LearningPaths/LearningPathMenuAsideCopyright.js +13 -9
  450. package/lib/LearningPaths/LearningPathMenuContent.d.ts +1 -2
  451. package/lib/LearningPaths/LearningPathMenuContent.js +53 -41
  452. package/lib/LearningPaths/LearningPathMenuIntro.d.ts +1 -2
  453. package/lib/LearningPaths/LearningPathMenuIntro.js +48 -32
  454. package/lib/LearningPaths/LearningPathMenuModalWrapper.d.ts +1 -1
  455. package/lib/LearningPaths/LearningPathMenuModalWrapper.js +13 -9
  456. package/lib/LearningPaths/LearningPathMobileHeader.d.ts +1 -1
  457. package/lib/LearningPaths/LearningPathMobileHeader.js +19 -8
  458. package/lib/LearningPaths/LearningPathMobileStepInfo.d.ts +1 -1
  459. package/lib/LearningPaths/LearningPathMobileStepInfo.js +6 -4
  460. package/lib/LearningPaths/LearningPathSticky.d.ts +3 -3
  461. package/lib/LearningPaths/LearningPathSticky.js +37 -29
  462. package/lib/LearningPaths/LearningPathWrapper.d.ts +1 -1
  463. package/lib/LearningPaths/LearningPathWrapper.js +17 -11
  464. package/lib/Logo/Logo.d.ts +1 -2
  465. package/lib/Logo/Logo.js +5 -5
  466. package/lib/Logo/SvgLogo.d.ts +1 -2
  467. package/lib/Logo/SvgLogo.js +8 -8
  468. package/lib/Masthead/Masthead.d.ts +2 -2
  469. package/lib/Masthead/Masthead.js +48 -36
  470. package/lib/Masthead/MastheadAuthModal.d.ts +1 -2
  471. package/lib/Masthead/MastheadAuthModal.js +8 -6
  472. package/lib/Masthead/MastheadSearchModal.d.ts +1 -1
  473. package/lib/Masthead/MastheadSearchModal.js +40 -30
  474. package/lib/Masthead/SkipToMainContent.d.ts +1 -2
  475. package/lib/Masthead/SkipToMainContent.js +6 -4
  476. package/lib/MediaList/MediaList.d.ts +8 -8
  477. package/lib/MediaList/MediaList.js +15 -15
  478. package/lib/Messages/MessageBanner.d.ts +1 -2
  479. package/lib/Messages/MessageBanner.js +21 -15
  480. package/lib/Messages/MessageBox.d.ts +2 -2
  481. package/lib/Messages/MessageBox.js +60 -38
  482. package/lib/Messages/MessageBoxTag.d.ts +1 -2
  483. package/lib/Messages/MessageBoxTag.js +10 -8
  484. package/lib/MultidisciplinarySubject/Illustrations.d.ts +28 -7
  485. package/lib/MultidisciplinarySubject/Illustrations.js +28 -14
  486. package/lib/MultidisciplinarySubject/List.d.ts +1 -2
  487. package/lib/MultidisciplinarySubject/List.js +21 -15
  488. package/lib/MultidisciplinarySubject/ListItem.d.ts +1 -2
  489. package/lib/MultidisciplinarySubject/ListItem.js +45 -31
  490. package/lib/MultidisciplinarySubject/MultidisciplinarySubject.d.ts +1 -1
  491. package/lib/MultidisciplinarySubject/MultidisciplinarySubject.js +47 -33
  492. package/lib/MultidisciplinarySubject/MultidisciplinarySubjectHeader.d.ts +1 -2
  493. package/lib/MultidisciplinarySubject/MultidisciplinarySubjectHeader.js +47 -35
  494. package/lib/MyNdla/Resource/Folder.d.ts +1 -2
  495. package/lib/MyNdla/Resource/Folder.js +53 -28
  496. package/lib/MyNdla/Resource/FolderInput.d.ts +1 -1
  497. package/lib/MyNdla/Resource/FolderInput.js +15 -11
  498. package/lib/NDLAFilm/AboutNdlaFilm.d.ts +1 -1
  499. package/lib/NDLAFilm/AboutNdlaFilm.js +14 -12
  500. package/lib/NDLAFilm/AllMoviesAlphabetically.d.ts +1 -2
  501. package/lib/NDLAFilm/AllMoviesAlphabetically.js +80 -60
  502. package/lib/NDLAFilm/CategorySelect.js +31 -25
  503. package/lib/NDLAFilm/FilmContentCard.d.ts +1 -2
  504. package/lib/NDLAFilm/FilmContentCard.js +20 -14
  505. package/lib/NDLAFilm/FilmContentCardTags.d.ts +1 -2
  506. package/lib/NDLAFilm/FilmContentCardTags.js +12 -8
  507. package/lib/NDLAFilm/FilmMovieList.d.ts +1 -2
  508. package/lib/NDLAFilm/FilmMovieList.js +8 -6
  509. package/lib/NDLAFilm/FilmMovieSearch.d.ts +1 -2
  510. package/lib/NDLAFilm/FilmMovieSearch.js +17 -13
  511. package/lib/NDLAFilm/FilmSlideshow.d.ts +1 -2
  512. package/lib/NDLAFilm/FilmSlideshow.js +91 -79
  513. package/lib/NDLAFilm/MovieGrid.d.ts +1 -2
  514. package/lib/NDLAFilm/MovieGrid.js +15 -11
  515. package/lib/NDLAFilm/NavigationArrow.d.ts +5 -2
  516. package/lib/NDLAFilm/NavigationArrow.js +27 -15
  517. package/lib/NDLAFilm/SlideshowIndicator.d.ts +1 -2
  518. package/lib/NDLAFilm/SlideshowIndicator.js +15 -11
  519. package/lib/NDLAFilm/VisualElement.d.ts +1 -2
  520. package/lib/NDLAFilm/VisualElement.js +11 -9
  521. package/lib/NDLAFilm/filmStyles.d.ts +8 -2
  522. package/lib/NDLAFilm/filmStyles.js +7 -3
  523. package/lib/Navigation/NavigationBox.d.ts +1 -1
  524. package/lib/Navigation/NavigationBox.js +128 -90
  525. package/lib/Navigation/NavigationHeading.d.ts +1 -1
  526. package/lib/Navigation/NavigationHeading.js +35 -29
  527. package/lib/Navigation/NavigationTopicAbout.d.ts +1 -1
  528. package/lib/Navigation/NavigationTopicAbout.js +88 -70
  529. package/lib/NoContentBox/NoContentBox.d.ts +1 -2
  530. package/lib/NoContentBox/NoContentBox.js +2 -2
  531. package/lib/Notion/ConceptNotion.d.ts +1 -2
  532. package/lib/Notion/ConceptNotion.js +16 -16
  533. package/lib/Notion/FigureNotion.d.ts +1 -1
  534. package/lib/Notion/FigureNotion.js +10 -8
  535. package/lib/Notion/Notion.d.ts +1 -1
  536. package/lib/Notion/Notion.js +31 -23
  537. package/lib/Notion/NotionImage.d.ts +1 -2
  538. package/lib/Notion/NotionImage.js +13 -9
  539. package/lib/Notion/NotionVisualElement.d.ts +1 -1
  540. package/lib/Notion/NotionVisualElement.js +16 -14
  541. package/lib/Portrait/Portrait.d.ts +1 -2
  542. package/lib/Portrait/Portrait.js +15 -6
  543. package/lib/Programme/Programme.d.ts +1 -2
  544. package/lib/Programme/Programme.js +34 -24
  545. package/lib/Programme/ProgrammeSubjects.d.ts +1 -2
  546. package/lib/Programme/ProgrammeSubjects.js +10 -8
  547. package/lib/RadioButtonGroup/RadioButtonGroup.d.ts +1 -1
  548. package/lib/RadioButtonGroup/RadioButtonGroup.js +25 -17
  549. package/lib/RelatedArticleList/RelatedArticleList.d.ts +2 -2
  550. package/lib/RelatedArticleList/RelatedArticleList.js +7 -7
  551. package/lib/Resource/BlockResource.d.ts +1 -2
  552. package/lib/Resource/BlockResource.js +41 -29
  553. package/lib/Resource/ListResource.d.ts +1 -2
  554. package/lib/Resource/ListResource.js +60 -46
  555. package/lib/Resource/resourceComponents.d.ts +18 -7
  556. package/lib/Resource/resourceComponents.js +65 -41
  557. package/lib/ResourceBox/ResourceBox.d.ts +1 -2
  558. package/lib/ResourceBox/ResourceBox.js +30 -18
  559. package/lib/ResourceGroup/ResourceGroup.d.ts +1 -2
  560. package/lib/ResourceGroup/ResourceGroup.js +15 -9
  561. package/lib/ResourceGroup/ResourceItem.d.ts +1 -2
  562. package/lib/ResourceGroup/ResourceItem.js +89 -59
  563. package/lib/ResourceGroup/ResourceList.d.ts +1 -2
  564. package/lib/ResourceGroup/ResourceList.js +15 -9
  565. package/lib/ResourcesWrapper/ResourcesTitle.d.ts +1 -1
  566. package/lib/ResourcesWrapper/ResourcesTitle.js +3 -3
  567. package/lib/ResourcesWrapper/ResourcesTopicTitle.d.ts +1 -2
  568. package/lib/ResourcesWrapper/ResourcesTopicTitle.js +43 -31
  569. package/lib/ResourcesWrapper/ResourcesWrapper.d.ts +1 -1
  570. package/lib/ResourcesWrapper/ResourcesWrapper.js +3 -3
  571. package/lib/Search/ActiveFilterContent.d.ts +5 -2
  572. package/lib/Search/ActiveFilterContent.js +12 -8
  573. package/lib/Search/ActiveFilters.d.ts +1 -2
  574. package/lib/Search/ActiveFilters.js +46 -34
  575. package/lib/Search/ContentTypeResult.d.ts +1 -2
  576. package/lib/Search/ContentTypeResult.js +15 -17
  577. package/lib/Search/ContentTypeResultStyles.d.ts +24 -6
  578. package/lib/Search/ContentTypeResultStyles.js +84 -40
  579. package/lib/Search/LoadingWrapper.d.ts +1 -2
  580. package/lib/Search/LoadingWrapper.js +7 -5
  581. package/lib/Search/SearchField.d.ts +1 -1
  582. package/lib/Search/SearchField.js +25 -19
  583. package/lib/Search/SearchFieldForm.d.ts +1 -1
  584. package/lib/Search/SearchFieldForm.js +21 -11
  585. package/lib/Search/SearchResult.d.ts +2 -2
  586. package/lib/Search/SearchResult.js +61 -41
  587. package/lib/Search/SearchResultSleeve.d.ts +1 -2
  588. package/lib/Search/SearchResultSleeve.js +46 -30
  589. package/lib/Search/ToggleSearchButton.d.ts +1 -2
  590. package/lib/Search/ToggleSearchButton.js +12 -8
  591. package/lib/SearchTypeResult/ActiveFilterContent.d.ts +5 -2
  592. package/lib/SearchTypeResult/ActiveFilterContent.js +16 -12
  593. package/lib/SearchTypeResult/ActiveFilters.d.ts +1 -1
  594. package/lib/SearchTypeResult/ActiveFilters.js +53 -41
  595. package/lib/SearchTypeResult/PopupFilter.d.ts +1 -2
  596. package/lib/SearchTypeResult/PopupFilter.js +50 -36
  597. package/lib/SearchTypeResult/ResultNavigation.d.ts +1 -2
  598. package/lib/SearchTypeResult/ResultNavigation.js +22 -14
  599. package/lib/SearchTypeResult/SearchFieldHeader.d.ts +1 -1
  600. package/lib/SearchTypeResult/SearchFieldHeader.js +29 -21
  601. package/lib/SearchTypeResult/SearchFilterContent.d.ts +1 -2
  602. package/lib/SearchTypeResult/SearchFilterContent.js +16 -12
  603. package/lib/SearchTypeResult/SearchHeader.d.ts +1 -1
  604. package/lib/SearchTypeResult/SearchHeader.js +40 -24
  605. package/lib/SearchTypeResult/SearchItem.d.ts +1 -1
  606. package/lib/SearchTypeResult/SearchItem.js +58 -44
  607. package/lib/SearchTypeResult/SearchItemList.d.ts +1 -2
  608. package/lib/SearchTypeResult/SearchItemList.js +79 -52
  609. package/lib/SearchTypeResult/SearchItems.d.ts +1 -1
  610. package/lib/SearchTypeResult/SearchItems.js +18 -14
  611. package/lib/SearchTypeResult/SearchNotionItem.d.ts +1 -1
  612. package/lib/SearchTypeResult/SearchNotionItem.js +75 -51
  613. package/lib/SearchTypeResult/SearchNotionsResult.d.ts +1 -1
  614. package/lib/SearchTypeResult/SearchNotionsResult.js +21 -13
  615. package/lib/SearchTypeResult/SearchSubjectItem.d.ts +1 -2
  616. package/lib/SearchTypeResult/SearchSubjectItem.js +16 -10
  617. package/lib/SearchTypeResult/SearchSubjectResult.d.ts +1 -2
  618. package/lib/SearchTypeResult/SearchSubjectResult.js +11 -9
  619. package/lib/SearchTypeResult/SearchTypeHeader.d.ts +1 -1
  620. package/lib/SearchTypeResult/SearchTypeHeader.js +47 -29
  621. package/lib/SearchTypeResult/SearchTypeResult.d.ts +1 -1
  622. package/lib/SearchTypeResult/SearchTypeResult.js +14 -10
  623. package/lib/SearchTypeResult/SearchViewType.d.ts +1 -2
  624. package/lib/SearchTypeResult/SearchViewType.js +28 -20
  625. package/lib/SearchTypeResult/components/ItemContexts.d.ts +1 -2
  626. package/lib/SearchTypeResult/components/ItemContexts.js +46 -32
  627. package/lib/SearchTypeResult/components/ItemResourceHeader.d.ts +1 -2
  628. package/lib/SearchTypeResult/components/ItemResourceHeader.js +50 -29
  629. package/lib/SearchTypeResult/components/ItemTopicHeader.d.ts +1 -1
  630. package/lib/SearchTypeResult/components/ItemTopicHeader.js +35 -24
  631. package/lib/SearchTypeResult/components/SubjectFilters.d.ts +1 -2
  632. package/lib/SearchTypeResult/components/SubjectFilters.js +14 -12
  633. package/lib/SectionHeading/SectionHeading.d.ts +1 -1
  634. package/lib/SectionHeading/SectionHeading.js +21 -13
  635. package/lib/SnackBar/DefaultSnackbar.d.ts +1 -2
  636. package/lib/SnackBar/DefaultSnackbar.js +15 -9
  637. package/lib/SnackBar/SnackbarProvider.d.ts +2 -2
  638. package/lib/SnackBar/SnackbarProvider.js +27 -23
  639. package/lib/Subject/Subject.d.ts +8 -8
  640. package/lib/Subject/Subject.js +97 -71
  641. package/lib/Subject/SubjectAbout.d.ts +1 -1
  642. package/lib/Subject/SubjectAbout.js +63 -43
  643. package/lib/Subject/SubjectArchive.d.ts +1 -1
  644. package/lib/Subject/SubjectArchive.js +65 -43
  645. package/lib/Subject/SubjectBanner.d.ts +1 -2
  646. package/lib/Subject/SubjectBanner.js +8 -6
  647. package/lib/Subject/SubjectCarousel.d.ts +1 -1
  648. package/lib/Subject/SubjectCarousel.js +43 -31
  649. package/lib/Subject/SubjectHeader.d.ts +1 -2
  650. package/lib/Subject/SubjectHeader.js +39 -29
  651. package/lib/Subject/SubjectLinks.d.ts +1 -2
  652. package/lib/Subject/SubjectLinks.js +20 -14
  653. package/lib/Subject/SubjectNewContent.d.ts +1 -2
  654. package/lib/Subject/SubjectNewContent.js +42 -26
  655. package/lib/Subject/SubjectShortcuts.d.ts +1 -1
  656. package/lib/Subject/SubjectShortcuts.js +28 -20
  657. package/lib/Subject/SubjectSocial.d.ts +2 -2
  658. package/lib/Subject/SubjectSocial.js +12 -8
  659. package/lib/Table/Table.d.ts +1 -1
  660. package/lib/Table/Table.js +5 -5
  661. package/lib/TagSelector/Control.d.ts +1 -2
  662. package/lib/TagSelector/Control.js +7 -5
  663. package/lib/TagSelector/DropdownIndicator.d.ts +1 -2
  664. package/lib/TagSelector/DropdownIndicator.js +8 -6
  665. package/lib/TagSelector/Input.d.ts +1 -2
  666. package/lib/TagSelector/Input.js +8 -6
  667. package/lib/TagSelector/Menu.d.ts +1 -2
  668. package/lib/TagSelector/Menu.js +8 -6
  669. package/lib/TagSelector/MenuList.d.ts +5 -2
  670. package/lib/TagSelector/MenuList.js +6 -4
  671. package/lib/TagSelector/Option.d.ts +1 -2
  672. package/lib/TagSelector/Option.js +12 -8
  673. package/lib/TagSelector/SelectContainer.d.ts +1 -2
  674. package/lib/TagSelector/SelectContainer.js +13 -4
  675. package/lib/TagSelector/TagSelector.d.ts +1 -2
  676. package/lib/TagSelector/TagSelector.js +18 -14
  677. package/lib/TagSelector/ValueButton.d.ts +5 -2
  678. package/lib/TagSelector/ValueButton.js +8 -6
  679. package/lib/ToolboxPage/ToolboxInfo.d.ts +1 -1
  680. package/lib/ToolboxPage/ToolboxInfo.js +11 -7
  681. package/lib/Topic/Loader.d.ts +1 -2
  682. package/lib/Topic/Loader.js +15 -15
  683. package/lib/Topic/Topic.d.ts +1 -1
  684. package/lib/Topic/Topic.js +132 -98
  685. package/lib/TopicIntroductionList/TopicIntroduction.d.ts +1 -2
  686. package/lib/TopicIntroductionList/TopicIntroduction.js +15 -15
  687. package/lib/TopicIntroductionList/TopicIntroductionList.d.ts +1 -2
  688. package/lib/TopicIntroductionList/TopicIntroductionList.js +4 -4
  689. package/lib/TopicIntroductionList/TopicIntroductionShortcuts.d.ts +1 -2
  690. package/lib/TopicIntroductionList/TopicIntroductionShortcuts.js +7 -7
  691. package/lib/TopicIntroductionList/TopicShortcutItem.d.ts +1 -2
  692. package/lib/TopicIntroductionList/TopicShortcutItem.js +5 -5
  693. package/lib/TopicMenu/SubtopicLinkList.js +50 -36
  694. package/lib/TopicMenu/TopicMenu.js +32 -30
  695. package/lib/TopicMenu/TopicMenuButton.js +11 -7
  696. package/lib/Translation/Translation.d.ts +1 -1
  697. package/lib/Translation/Translation.js +2 -2
  698. package/lib/Translation/TranslationBox.d.ts +1 -1
  699. package/lib/Translation/TranslationBox.js +4 -4
  700. package/lib/Translation/TranslationLine.d.ts +1 -1
  701. package/lib/Translation/TranslationLine.js +5 -5
  702. package/lib/TreeStructure/AddFolderButton.d.ts +1 -2
  703. package/lib/TreeStructure/AddFolderButton.js +17 -13
  704. package/lib/TreeStructure/ComboboxButton.js +14 -10
  705. package/lib/TreeStructure/FolderItem.d.ts +1 -2
  706. package/lib/TreeStructure/FolderItem.js +32 -20
  707. package/lib/TreeStructure/FolderItems.d.ts +1 -1
  708. package/lib/TreeStructure/FolderItems.js +17 -13
  709. package/lib/TreeStructure/NavigationLink.d.ts +1 -2
  710. package/lib/TreeStructure/NavigationLink.js +16 -12
  711. package/lib/TreeStructure/TreeStructure.d.ts +1 -2
  712. package/lib/TreeStructure/TreeStructure.js +51 -33
  713. package/lib/User/AuthModal.d.ts +1 -1
  714. package/lib/User/AuthModal.js +42 -28
  715. package/lib/User/UserInfo.d.ts +1 -2
  716. package/lib/User/UserInfo.js +24 -20
  717. package/lib/internal-icons/Book.js +3 -3
  718. package/lib/internal-icons/Download.js +3 -3
  719. package/lib/internal-icons/Embed.js +3 -3
  720. package/lib/internal-icons/InsertTemplate.js +3 -3
  721. package/lib/internal-icons/OpenWindow.js +3 -3
  722. package/lib/locale/LocaleProvider.d.ts +1 -1
  723. package/lib/locale/LocaleProvider.js +4 -4
  724. package/lib/locale/messages-en.js +1 -1
  725. package/lib/locale/messages-nb.js +1 -1
  726. package/lib/locale/messages-nn.js +1 -1
  727. package/lib/locale/messages-se.js +1 -1
  728. package/lib/locale/messages-sma.js +1 -1
  729. package/lib/utils/createUniversalPortal.d.ts +1 -1
  730. package/lib/utils/createUniversalPortal.js +2 -2
  731. package/package.json +18 -18
  732. package/src/Breadcrumb/BreadcrumbItem.tsx +1 -1
  733. package/src/ComponentCursor/ComponentCursor.tsx +1 -1
  734. package/src/CopyParagraphButton/CopyParagraphButton.tsx +21 -19
  735. package/src/Filter/FilterCarousel.tsx +1 -1
  736. package/src/Frontpage/FrontpageFilm.tsx +1 -1
  737. package/src/Frontpage/illustrations/FrontpageSubjectIllustration.tsx +1 -1
  738. package/src/Image/LazyLoadImage.tsx +0 -1
  739. package/src/Image/__tests__/Image-test.jsx +8 -7
  740. package/src/Image/__tests__/__snapshots__/Image-test.jsx.snap +8 -20
  741. package/src/InfoWidget/InfoWidget.tsx +1 -1
  742. package/src/LanguageSelector/LanguageSelector.tsx +1 -1
  743. package/src/LearningPaths/LearningPathLastStepNavigation.tsx +1 -1
  744. package/src/LearningPaths/LearningPathMenu.tsx +1 -1
  745. package/src/LearningPaths/LearningPathMenuAside.tsx +1 -1
  746. package/src/LearningPaths/LearningPathMenuContent.tsx +1 -1
  747. package/src/LearningPaths/LearningPathMenuIntro.tsx +1 -1
  748. package/src/LearningPaths/LearningPathMenuModalWrapper.tsx +1 -1
  749. package/src/LearningPaths/LearningPathSticky.tsx +1 -1
  750. package/src/LearningPaths/LearningPathWrapper.tsx +1 -1
  751. package/src/Masthead/Masthead.tsx +1 -1
  752. package/src/Masthead/MastheadSearchModal.tsx +1 -1
  753. package/src/Messages/MessageBox.tsx +1 -1
  754. package/src/MyNdla/Resource/Folder.tsx +1 -1
  755. package/src/NDLAFilm/AllMoviesAlphabetically.tsx +1 -1
  756. package/src/NDLAFilm/CategorySelect.tsx +1 -1
  757. package/src/NDLAFilm/FilmSlideshow.tsx +1 -1
  758. package/src/NDLAFilm/NavigationArrow.tsx +1 -1
  759. package/src/Navigation/NavigationBox.tsx +1 -1
  760. package/src/Navigation/NavigationHeading.tsx +1 -1
  761. package/src/Navigation/NavigationTopicAbout.tsx +1 -1
  762. package/src/Notion/ConceptNotion.tsx +0 -2
  763. package/src/Notion/NotionVisualElement.tsx +1 -1
  764. package/src/ResourceGroup/ResourceItem.tsx +2 -2
  765. package/src/ResourceGroup/ResourceList.tsx +2 -2
  766. package/src/ResourcesWrapper/ResourcesTopicTitle.tsx +1 -1
  767. package/src/Search/ActiveFilters.tsx +1 -1
  768. package/src/Search/ContentTypeResultStyles.tsx +1 -1
  769. package/src/Search/SearchField.tsx +1 -1
  770. package/src/Search/SearchFieldForm.tsx +1 -1
  771. package/src/SearchTypeResult/ActiveFilters.tsx +1 -1
  772. package/src/SearchTypeResult/SearchItem.tsx +6 -49
  773. package/src/SearchTypeResult/SearchItemList.tsx +12 -19
  774. package/src/SearchTypeResult/components/ItemResourceHeader.tsx +19 -23
  775. package/src/SearchTypeResult/components/ItemTopicHeader.tsx +3 -5
  776. package/src/SectionHeading/SectionHeading.tsx +1 -1
  777. package/src/SnackBar/SnackbarProvider.tsx +1 -1
  778. package/src/Subject/Subject.tsx +1 -1
  779. package/src/Subject/SubjectAbout.tsx +1 -1
  780. package/src/Subject/SubjectCarousel.tsx +1 -1
  781. package/src/Subject/SubjectHeader.tsx +1 -1
  782. package/src/TagSelector/Input.tsx +1 -1
  783. package/src/TagSelector/Menu.tsx +1 -1
  784. package/src/Topic/Topic.tsx +1 -1
  785. package/src/TopicMenu/SubtopicLinkList.jsx +1 -1
  786. package/src/TopicMenu/TopicMenuButton.jsx +1 -1
  787. package/src/TreeStructure/TreeStructure.tsx +1 -1
  788. package/src/locale/messages-en.ts +1 -1
  789. package/src/locale/messages-nb.ts +1 -1
  790. package/src/locale/messages-nn.ts +1 -1
  791. package/src/locale/messages-se.ts +1 -1
  792. package/src/locale/messages-sma.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/ui",
3
- "version": "29.0.0",
3
+ "version": "30.0.1",
4
4
  "description": "UI component library for NDLA.",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -32,19 +32,19 @@
32
32
  ],
33
33
  "dependencies": {
34
34
  "@ndla/article-scripts": "^3.0.2",
35
- "@ndla/button": "^3.7.0",
36
- "@ndla/carousel": "^1.2.24",
37
- "@ndla/core": "^2.3.6",
38
- "@ndla/forms": "^3.3.6",
35
+ "@ndla/button": "^4.0.0",
36
+ "@ndla/carousel": "^2.0.0",
37
+ "@ndla/core": "^3.0.0",
38
+ "@ndla/forms": "^4.0.0",
39
39
  "@ndla/hooks": "^1.1.6",
40
- "@ndla/icons": "^1.14.0",
41
- "@ndla/licenses": "^5.0.18",
42
- "@ndla/modal": "^1.6.1",
43
- "@ndla/notion": "^3.1.48",
44
- "@ndla/safelink": "^2.2.20",
45
- "@ndla/switch": "^0.1.14",
46
- "@ndla/tabs": "^1.1.23",
47
- "@ndla/tooltip": "^2.2.2",
40
+ "@ndla/icons": "^2.0.0",
41
+ "@ndla/licenses": "^6.0.0",
42
+ "@ndla/modal": "^2.0.0",
43
+ "@ndla/notion": "^4.0.0",
44
+ "@ndla/safelink": "^3.0.0",
45
+ "@ndla/switch": "^1.0.0",
46
+ "@ndla/tabs": "^2.0.0",
47
+ "@ndla/tooltip": "^3.0.0",
48
48
  "@ndla/types-learningpath-api": "^0.0.13",
49
49
  "@ndla/util": "^3.1.0",
50
50
  "@reach/menu-button": "^0.16.2",
@@ -65,12 +65,12 @@
65
65
  "shave": "^2.5.10"
66
66
  },
67
67
  "peerDependencies": {
68
- "@emotion/core": "^10.0.9",
69
- "@emotion/styled": "^10.0.9",
70
- "i18next": "^20.3.1",
68
+ "@emotion/react": "^11.10.4",
69
+ "@emotion/styled": "^11.10.4",
70
+ "i18next": "^21.9.2",
71
71
  "prop-types": "^15.8.1",
72
72
  "react": "^16.8.4 || ^17.0.0",
73
- "react-i18next": "^11.11.0",
73
+ "react-i18next": "^11.18.6",
74
74
  "react-router-dom": "^6.3.0"
75
75
  },
76
76
  "devDependencies": {
@@ -86,5 +86,5 @@
86
86
  "publishConfig": {
87
87
  "access": "public"
88
88
  },
89
- "gitHead": "2c5d6b7038c442a871b4cd69247d243cadd129da"
89
+ "gitHead": "b9d5d603d89871db7dc6f7bafeb057c56e29d126"
90
90
  }
@@ -11,7 +11,7 @@ import { ChevronRight } from '@ndla/icons/common';
11
11
  import SafeLink from '@ndla/safelink';
12
12
  import styled from '@emotion/styled';
13
13
  import { mq, spacing, breakpoints } from '@ndla/core';
14
- import { css } from '@emotion/core';
14
+ import { css } from '@emotion/react';
15
15
 
16
16
  export interface SimpleBreadcrumbItem {
17
17
  to: string | Partial<Location>;
@@ -1,6 +1,6 @@
1
1
  import React, { MutableRefObject, useRef, useState } from 'react';
2
2
  import styled from '@emotion/styled';
3
- import { css } from '@emotion/core';
3
+ import { css } from '@emotion/react';
4
4
  import { useComponentSize } from '@ndla/hooks';
5
5
  import { breakpoints, mq } from '@ndla/core';
6
6
 
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
 
9
- import React, { ReactNode, useEffect, useState, MouseEvent } from 'react';
9
+ import React, { useEffect, useState, MouseEvent } from 'react';
10
10
 
11
11
  import styled from '@emotion/styled';
12
12
  import { Link } from '@ndla/icons/common';
@@ -44,20 +44,23 @@ interface Props {
44
44
  hydrate?: boolean;
45
45
  }
46
46
 
47
- interface WrapperProps {
47
+ interface CopyButtonProps {
48
48
  title: string;
49
- hydrate?: boolean;
50
- children: ReactNode;
49
+ onClick?: (e: MouseEvent<HTMLButtonElement>) => void;
50
+ tooltip: string;
51
+ content?: string | null;
51
52
  }
52
53
 
53
- const WrapperComponent = ({ title, hydrate, children }: WrapperProps) => {
54
- if (hydrate) {
55
- return <>{children}</>;
56
- }
54
+ const CopyButton = ({ onClick, title, tooltip, content }: CopyButtonProps) => {
57
55
  return (
58
- <ContainerDiv data-header-copy-container data-title={title}>
59
- {children}
60
- </ContainerDiv>
56
+ <div>
57
+ <IconButton onClick={onClick} data-title={title}>
58
+ <Tooltip tooltip={tooltip}>
59
+ <Link title={''} />
60
+ </Tooltip>
61
+ </IconButton>
62
+ <h2 id={title} tabIndex={0} dangerouslySetInnerHTML={{ __html: content || '' }} />
63
+ </div>
61
64
  );
62
65
  };
63
66
 
@@ -86,15 +89,14 @@ const CopyParagraphButton = ({ title, content, hydrate }: Props) => {
86
89
  const sanitizedTitle = encodeURIComponent(title.replace(/ /g, '-'));
87
90
  const tooltip = hasCopied ? t('article.copyPageLinkCopied') : t('article.copyHeaderLink');
88
91
 
92
+ if (hydrate) {
93
+ return <CopyButton onClick={onCopyClick} title={sanitizedTitle} tooltip={tooltip} content={content} />;
94
+ }
95
+
89
96
  return (
90
- <WrapperComponent hydrate={hydrate} title={title}>
91
- <IconButton onClick={onCopyClick} data-title={sanitizedTitle}>
92
- <Tooltip tooltip={tooltip}>
93
- <Link title={''} />
94
- </Tooltip>
95
- </IconButton>
96
- <h2 id={sanitizedTitle} tabIndex={0} dangerouslySetInnerHTML={{ __html: content || '' }}></h2>
97
- </WrapperComponent>
97
+ <ContainerDiv data-header-copy-container data-title={title}>
98
+ <CopyButton onClick={onCopyClick} title={sanitizedTitle} tooltip={tooltip} content={content} />
99
+ </ContainerDiv>
98
100
  );
99
101
  };
100
102
 
@@ -9,7 +9,7 @@
9
9
  import React, { ReactChild, useEffect, useLayoutEffect, useRef, useState } from 'react';
10
10
  import { useTranslation } from 'react-i18next';
11
11
  import styled from '@emotion/styled';
12
- import { css } from '@emotion/core';
12
+ import { css } from '@emotion/react';
13
13
  import { ChevronLeft, ChevronRight } from '@ndla/icons/common';
14
14
  import { useSwipeable } from 'react-swipeable';
15
15
 
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import styled from '@emotion/styled';
3
- import { css } from '@emotion/core';
3
+ import { css } from '@emotion/react';
4
4
  import SafeLink from '@ndla/safelink';
5
5
  import { Forward } from '@ndla/icons/common';
6
6
  import { withTranslation, WithTranslation } from 'react-i18next';
@@ -7,7 +7,7 @@
7
7
  */
8
8
 
9
9
  import React from 'react';
10
- import { css } from '@emotion/core';
10
+ import { css } from '@emotion/react';
11
11
 
12
12
  const cssStyle = css`
13
13
  position: relative;
@@ -22,7 +22,6 @@ const LazyLoadImage = ({ alt, src, srcSet, lazyLoadSrc, sizes, ...rest }: Props)
22
22
  <noscript key="noscript">
23
23
  <img alt={alt} src={`${src}`} srcSet={srcSet} sizes={sizes} {...rest} />
24
24
  </noscript>
25
- ,
26
25
  <img
27
26
  alt={alt}
28
27
  key="img"
@@ -9,25 +9,26 @@
9
9
  /* eslint-env jest */
10
10
 
11
11
  import React from 'react';
12
- import renderer from 'react-test-renderer';
12
+ import { render } from '@testing-library/react';
13
+ import '@testing-library/jest-dom';
13
14
  import Image, { makeSrcQueryString } from '../Image';
14
15
 
15
16
  test('Image renderers correctly', () => {
16
- const component = renderer.create(<Image alt="example" src="https://example.com/image.png" />);
17
+ const { container } = render(<Image alt="example" src="https://example.com/image.png" />, { container: null });
17
18
 
18
- expect(component.toJSON()).toMatchSnapshot();
19
+ expect(container.firstChild).toMatchSnapshot();
19
20
  });
20
21
 
21
22
  test('Lazyloaded image renderers correctly', () => {
22
- const component = renderer.create(
23
+ const { container } = render(
23
24
  <Image lazyLoad lazyLoadSrc="https://example.com/blurry.png" alt="example" src="https://example.com/image.png" />,
24
25
  );
25
26
 
26
- expect(component.toJSON()).toMatchSnapshot();
27
+ expect(container.firstChild).toMatchSnapshot();
27
28
  });
28
29
 
29
30
  test('Image with crop and focalpoint props renderers correctly', () => {
30
- const component = renderer.create(
31
+ const { container } = render(
31
32
  <Image
32
33
  crop={{
33
34
  startX: 14.59,
@@ -44,7 +45,7 @@ test('Image with crop and focalpoint props renderers correctly', () => {
44
45
  />,
45
46
  );
46
47
 
47
- expect(component.toJSON()).toMatchSnapshot();
48
+ expect(container.firstChild).toMatchSnapshot();
48
49
  });
49
50
 
50
51
  test('makeSrcQueryString renders correctly', () => {
@@ -6,12 +6,12 @@ exports[`Image renderers correctly 1`] = `
6
6
  }
7
7
 
8
8
  <div
9
- className="emotion-0"
9
+ class="emotion-0"
10
10
  >
11
11
  <picture>
12
12
  <source
13
13
  sizes="(min-width: 1024px) 1024px, 100vw"
14
- srcSet="https://example.com/image.png?width=2720 2720w, https://example.com/image.png?width=2080 2080w, https://example.com/image.png?width=1760 1760w, https://example.com/image.png?width=1440 1440w, https://example.com/image.png?width=1120 1120w, https://example.com/image.png?width=1000 1000w, https://example.com/image.png?width=960 960w, https://example.com/image.png?width=800 800w, https://example.com/image.png?width=640 640w, https://example.com/image.png?width=480 480w, https://example.com/image.png?width=320 320w, https://example.com/image.png?width=240 240w, https://example.com/image.png?width=180 180w"
14
+ srcset="https://example.com/image.png?width=2720 2720w, https://example.com/image.png?width=2080 2080w, https://example.com/image.png?width=1760 1760w, https://example.com/image.png?width=1440 1440w, https://example.com/image.png?width=1120 1120w, https://example.com/image.png?width=1000 1000w, https://example.com/image.png?width=960 960w, https://example.com/image.png?width=800 800w, https://example.com/image.png?width=640 640w, https://example.com/image.png?width=480 480w, https://example.com/image.png?width=320 320w, https://example.com/image.png?width=240 240w, https://example.com/image.png?width=180 180w"
15
15
  />
16
16
  <img
17
17
  alt="example"
@@ -27,12 +27,12 @@ exports[`Image with crop and focalpoint props renderers correctly 1`] = `
27
27
  }
28
28
 
29
29
  <div
30
- className="emotion-0"
30
+ class="emotion-0"
31
31
  >
32
32
  <picture>
33
33
  <source
34
34
  sizes="(min-width: 1024px) 1024px, 100vw"
35
- srcSet="https://example.com/image.png?width=2720&cropStartX=14.59&cropEndX=79.63&cropStartY=20&cropEndY=100&focalX=65.08&focalY=45.28 2720w, https://example.com/image.png?width=2080&cropStartX=14.59&cropEndX=79.63&cropStartY=20&cropEndY=100&focalX=65.08&focalY=45.28 2080w, https://example.com/image.png?width=1760&cropStartX=14.59&cropEndX=79.63&cropStartY=20&cropEndY=100&focalX=65.08&focalY=45.28 1760w, https://example.com/image.png?width=1440&cropStartX=14.59&cropEndX=79.63&cropStartY=20&cropEndY=100&focalX=65.08&focalY=45.28 1440w, https://example.com/image.png?width=1120&cropStartX=14.59&cropEndX=79.63&cropStartY=20&cropEndY=100&focalX=65.08&focalY=45.28 1120w, https://example.com/image.png?width=1000&cropStartX=14.59&cropEndX=79.63&cropStartY=20&cropEndY=100&focalX=65.08&focalY=45.28 1000w, https://example.com/image.png?width=960&cropStartX=14.59&cropEndX=79.63&cropStartY=20&cropEndY=100&focalX=65.08&focalY=45.28 960w, https://example.com/image.png?width=800&cropStartX=14.59&cropEndX=79.63&cropStartY=20&cropEndY=100&focalX=65.08&focalY=45.28 800w, https://example.com/image.png?width=640&cropStartX=14.59&cropEndX=79.63&cropStartY=20&cropEndY=100&focalX=65.08&focalY=45.28 640w, https://example.com/image.png?width=480&cropStartX=14.59&cropEndX=79.63&cropStartY=20&cropEndY=100&focalX=65.08&focalY=45.28 480w, https://example.com/image.png?width=320&cropStartX=14.59&cropEndX=79.63&cropStartY=20&cropEndY=100&focalX=65.08&focalY=45.28 320w, https://example.com/image.png?width=240&cropStartX=14.59&cropEndX=79.63&cropStartY=20&cropEndY=100&focalX=65.08&focalY=45.28 240w, https://example.com/image.png?width=180&cropStartX=14.59&cropEndX=79.63&cropStartY=20&cropEndY=100&focalX=65.08&focalY=45.28 180w"
35
+ srcset="https://example.com/image.png?width=2720&cropStartX=14.59&cropEndX=79.63&cropStartY=20&cropEndY=100&focalX=65.08&focalY=45.28 2720w, https://example.com/image.png?width=2080&cropStartX=14.59&cropEndX=79.63&cropStartY=20&cropEndY=100&focalX=65.08&focalY=45.28 2080w, https://example.com/image.png?width=1760&cropStartX=14.59&cropEndX=79.63&cropStartY=20&cropEndY=100&focalX=65.08&focalY=45.28 1760w, https://example.com/image.png?width=1440&cropStartX=14.59&cropEndX=79.63&cropStartY=20&cropEndY=100&focalX=65.08&focalY=45.28 1440w, https://example.com/image.png?width=1120&cropStartX=14.59&cropEndX=79.63&cropStartY=20&cropEndY=100&focalX=65.08&focalY=45.28 1120w, https://example.com/image.png?width=1000&cropStartX=14.59&cropEndX=79.63&cropStartY=20&cropEndY=100&focalX=65.08&focalY=45.28 1000w, https://example.com/image.png?width=960&cropStartX=14.59&cropEndX=79.63&cropStartY=20&cropEndY=100&focalX=65.08&focalY=45.28 960w, https://example.com/image.png?width=800&cropStartX=14.59&cropEndX=79.63&cropStartY=20&cropEndY=100&focalX=65.08&focalY=45.28 800w, https://example.com/image.png?width=640&cropStartX=14.59&cropEndX=79.63&cropStartY=20&cropEndY=100&focalX=65.08&focalY=45.28 640w, https://example.com/image.png?width=480&cropStartX=14.59&cropEndX=79.63&cropStartY=20&cropEndY=100&focalX=65.08&focalY=45.28 480w, https://example.com/image.png?width=320&cropStartX=14.59&cropEndX=79.63&cropStartY=20&cropEndY=100&focalX=65.08&focalY=45.28 320w, https://example.com/image.png?width=240&cropStartX=14.59&cropEndX=79.63&cropStartY=20&cropEndY=100&focalX=65.08&focalY=45.28 240w, https://example.com/image.png?width=180&cropStartX=14.59&cropEndX=79.63&cropStartY=20&cropEndY=100&focalX=65.08&focalY=45.28 180w"
36
36
  />
37
37
  <img
38
38
  alt="example"
@@ -48,29 +48,17 @@ exports[`Lazyloaded image renderers correctly 1`] = `
48
48
  }
49
49
 
50
50
  <div
51
- className="emotion-0"
51
+ class="emotion-0"
52
52
  >
53
- <noscript>
54
- <img
55
- alt="example"
56
- sizes="(min-width: 1024px) 1024px, 100vw"
57
- src="https://example.com/image.png?width=1024"
58
- srcSet="https://example.com/image.png?width=2720 2720w, https://example.com/image.png?width=2080 2080w, https://example.com/image.png?width=1760 1760w, https://example.com/image.png?width=1440 1440w, https://example.com/image.png?width=1120 1120w, https://example.com/image.png?width=1000 1000w, https://example.com/image.png?width=960 960w, https://example.com/image.png?width=800 800w, https://example.com/image.png?width=640 640w, https://example.com/image.png?width=480 480w, https://example.com/image.png?width=320 320w, https://example.com/image.png?width=240 240w, https://example.com/image.png?width=180 180w"
59
- />
60
- </noscript>
61
- ,
53
+ <noscript />
62
54
  <img
63
55
  alt="example"
64
- className="lazyload"
56
+ class="lazyload"
65
57
  data-sizes="(min-width: 1024px) 1024px, 100vw"
66
58
  data-src="https://example.com/image.png?width=1024"
67
59
  data-src-set="https://example.com/image.png?width=2720 2720w, https://example.com/image.png?width=2080 2080w, https://example.com/image.png?width=1760 1760w, https://example.com/image.png?width=1440 1440w, https://example.com/image.png?width=1120 1120w, https://example.com/image.png?width=1000 1000w, https://example.com/image.png?width=960 960w, https://example.com/image.png?width=800 800w, https://example.com/image.png?width=640 640w, https://example.com/image.png?width=480 480w, https://example.com/image.png?width=320 320w, https://example.com/image.png?width=240 240w, https://example.com/image.png?width=180 180w"
68
60
  src="https://example.com/blurry.png"
69
- style={
70
- Object {
71
- "width": "100%",
72
- }
73
- }
61
+ style="width: 100%;"
74
62
  />
75
63
  </div>
76
64
  `;
@@ -1,5 +1,5 @@
1
1
  import styled from '@emotion/styled';
2
- import { css } from '@emotion/core';
2
+ import { css } from '@emotion/react';
3
3
  import React, { ReactNode } from 'react';
4
4
  import { Forward } from '@ndla/icons/common';
5
5
  import SafeLink from '@ndla/safelink';
@@ -8,7 +8,7 @@
8
8
 
9
9
  import React, { useState } from 'react';
10
10
  import styled from '@emotion/styled';
11
- import { css } from '@emotion/core';
11
+ import { css } from '@emotion/react';
12
12
  import FocusTrapReact from 'focus-trap-react';
13
13
  import { ButtonV2 as Button } from '@ndla/button';
14
14
  import { spacing, misc, colors, mq, breakpoints, animations, fonts, spacingUnit } from '@ndla/core';
@@ -8,7 +8,7 @@
8
8
 
9
9
  import React, { ReactNode } from 'react';
10
10
  import styled from '@emotion/styled';
11
- import { css } from '@emotion/core';
11
+ import { css } from '@emotion/react';
12
12
  import SafeLink from '@ndla/safelink';
13
13
  import { withTranslation, WithTranslation } from 'react-i18next';
14
14
  import { fonts, spacing, spacingUnit } from '@ndla/core';
@@ -8,7 +8,7 @@
8
8
 
9
9
  import React, { useState } from 'react';
10
10
  import styled from '@emotion/styled';
11
- import { css } from '@emotion/core';
11
+ import { css } from '@emotion/react';
12
12
  import { useTranslation } from 'react-i18next';
13
13
  import Tooltip from '@ndla/tooltip';
14
14
  import { useWindowSize } from '@ndla/hooks';
@@ -8,7 +8,7 @@
8
8
 
9
9
  import React from 'react';
10
10
  import styled from '@emotion/styled';
11
- import { css } from '@emotion/core';
11
+ import { css } from '@emotion/react';
12
12
  import { Time } from '@ndla/icons/common';
13
13
  import { SafeLinkButton } from '@ndla/safelink';
14
14
  import { WithTranslation, withTranslation } from 'react-i18next';
@@ -8,7 +8,7 @@
8
8
 
9
9
  import React from 'react';
10
10
  import styled from '@emotion/styled';
11
- import { css } from '@emotion/core';
11
+ import { css } from '@emotion/react';
12
12
  import { colors, spacing, spacingUnit, fonts, mq, breakpoints, animations } from '@ndla/core';
13
13
  import SafeLink from '@ndla/safelink';
14
14
  import { LearningPathRead } from '@ndla/icons/contentType';
@@ -8,7 +8,7 @@
8
8
 
9
9
  import React from 'react';
10
10
  import styled from '@emotion/styled';
11
- import { css } from '@emotion/core';
11
+ import { css } from '@emotion/react';
12
12
  import { useTranslation } from 'react-i18next';
13
13
  import { colors, spacing, spacingUnit, fonts, typography, mq, breakpoints, animations } from '@ndla/core';
14
14
  import { ArticleFavoritesButton } from '../Article';
@@ -9,7 +9,7 @@
9
9
  import React, { ReactChild, ReactChildren, ReactNode } from 'react';
10
10
  import { spacing, mq, breakpoints } from '@ndla/core';
11
11
  import Modal, { ModalHeader, ModalBody, ModalCloseButton } from '@ndla/modal';
12
- import { css } from '@emotion/core';
12
+ import { css } from '@emotion/react';
13
13
  import Button from '@ndla/button';
14
14
  import { LearningPath } from '@ndla/icons/contentType';
15
15
  import { useTranslation } from 'react-i18next';
@@ -9,7 +9,7 @@
9
9
  import React, { ReactNode } from 'react';
10
10
  import PropTypes from 'prop-types';
11
11
  import styled from '@emotion/styled';
12
- import { css } from '@emotion/core';
12
+ import { css } from '@emotion/react';
13
13
  import { colors, spacing, animations, mq, breakpoints } from '@ndla/core';
14
14
  import { Back, Forward } from '@ndla/icons/common';
15
15
  import SafeLink from '@ndla/safelink';
@@ -8,7 +8,7 @@
8
8
 
9
9
  import React, { ReactNode } from 'react';
10
10
  import styled from '@emotion/styled';
11
- import { css } from '@emotion/core';
11
+ import { css } from '@emotion/react';
12
12
  import { spacing, spacingUnit, breakpoints, mq } from '@ndla/core';
13
13
 
14
14
  type PropStyledWrapper = {
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
 
9
- import { css } from '@emotion/core';
9
+ import { css } from '@emotion/react';
10
10
  import styled from '@emotion/styled';
11
11
  import { breakpoints, colors, fonts, mq, spacing } from '@ndla/core';
12
12
  import React, { ReactNode, useEffect, useRef } from 'react';
@@ -4,7 +4,7 @@ import { IconButtonV2 as IconButton } from '@ndla/button';
4
4
  import { Cross } from '@ndla/icons/action';
5
5
  import { isFunction } from '@ndla/util';
6
6
  import styled from '@emotion/styled';
7
- import { css } from '@emotion/core';
7
+ import { css } from '@emotion/react';
8
8
  import { spacing, mq, breakpoints, colors, shadows } from '@ndla/core';
9
9
  import { WithTranslation, withTranslation } from 'react-i18next';
10
10
  import ToggleSearchButton from '../Search/ToggleSearchButton';
@@ -15,7 +15,7 @@ import { WithTranslation, withTranslation } from 'react-i18next';
15
15
  // @ts-ignore
16
16
  import { Remarkable } from 'remarkable';
17
17
  import { CloseButton } from '@ndla/button';
18
- import { css } from '@emotion/core';
18
+ import { css } from '@emotion/react';
19
19
 
20
20
  const markdown = new Remarkable({ breaks: true });
21
21
  markdown.inline.ruler.enable(['sub', 'sup']);
@@ -11,7 +11,7 @@ import React, { useRef } from 'react';
11
11
  import { FolderOutlined } from '@ndla/icons/contentType';
12
12
  import { FileDocumentOutline } from '@ndla/icons/common';
13
13
  import { fonts, spacing, colors, mq, breakpoints } from '@ndla/core';
14
- import { css } from '@emotion/core';
14
+ import { css } from '@emotion/react';
15
15
  import { useTranslation } from 'react-i18next';
16
16
  import SafeLink from '@ndla/safelink';
17
17
  import { MenuButton, MenuItemProps } from '@ndla/button';
@@ -9,7 +9,7 @@
9
9
  import React, { Fragment, RefObject, useEffect, useRef, useState } from 'react';
10
10
  import { isIE, browserVersion } from 'react-device-detect';
11
11
  import styled from '@emotion/styled';
12
- import { css } from '@emotion/core';
12
+ import { css } from '@emotion/react';
13
13
  import { throttle } from 'lodash';
14
14
  import { breakpoints, mq, spacing, spacingUnit, colors, fonts, animations } from '@ndla/core';
15
15
  import SafeLink from '@ndla/safelink';
@@ -1,7 +1,7 @@
1
1
  import React, { Component } from 'react';
2
2
  import FocusTrapReact from 'focus-trap-react';
3
3
  import styled from '@emotion/styled';
4
- import { keyframes } from '@emotion/core';
4
+ import { keyframes } from '@emotion/react';
5
5
  import { breakpoints, colors, fonts, mq, spacing } from '@ndla/core';
6
6
  import { ChevronDown } from '@ndla/icons/common';
7
7
  import { WithTranslation, withTranslation } from 'react-i18next';
@@ -9,7 +9,7 @@
9
9
  import React, { useCallback, useEffect, useRef, useState } from 'react';
10
10
  import { SwipeEventData, useSwipeable } from 'react-swipeable';
11
11
  import styled from '@emotion/styled';
12
- import { css } from '@emotion/core';
12
+ import { css } from '@emotion/react';
13
13
  import { breakpoints, mq, spacing, spacingUnit, fonts, colors } from '@ndla/core';
14
14
  import SafeLink from '@ndla/safelink';
15
15
  import { Spinner } from '@ndla/icons';
@@ -10,7 +10,7 @@ import React from 'react';
10
10
  import { ChevronRight, ChevronLeft } from '@ndla/icons/common';
11
11
  import styled from '@emotion/styled';
12
12
  import { breakpoints, colors, mq, spacing } from '@ndla/core';
13
- import { css } from '@emotion/core';
13
+ import { css } from '@emotion/react';
14
14
 
15
15
  interface Props {
16
16
  slideIndexTarget: number;
@@ -3,7 +3,7 @@ import styled from '@emotion/styled';
3
3
  import { SafeLinkButton } from '@ndla/safelink';
4
4
  import Button from '@ndla/button';
5
5
  import { breakpoints, colors, fonts, misc, mq, spacing } from '@ndla/core';
6
- import { css } from '@emotion/core';
6
+ import { css } from '@emotion/react';
7
7
  import { Switch } from '@ndla/switch';
8
8
  import { uuid } from '@ndla/util';
9
9
  import { useTranslation } from 'react-i18next';
@@ -1,6 +1,6 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import styled from '@emotion/styled';
3
- import { css } from '@emotion/core';
3
+ import { css } from '@emotion/react';
4
4
  import { breakpoints, fonts, mq } from '@ndla/core';
5
5
 
6
6
  type InvertItProps = {
@@ -2,7 +2,7 @@ import React, { ReactNode } from 'react';
2
2
  import parse from 'html-react-parser';
3
3
  import styled from '@emotion/styled';
4
4
  import { breakpoints, colors, fonts, mq, spacing } from '@ndla/core';
5
- import { css } from '@emotion/core';
5
+ import { css } from '@emotion/react';
6
6
  import Button from '@ndla/button';
7
7
  import { ChevronDown, ChevronUp } from '@ndla/icons/common';
8
8
  import { useTranslation } from 'react-i18next';
@@ -91,7 +91,6 @@ const ConceptNotion = ({ concept, disableScripts, type, hideIconsAndAuthors, fig
91
91
  <ImageWrapper>
92
92
  <Notion
93
93
  id={notionId}
94
- ariaLabel={t('factbox.open')}
95
94
  title={concept.title}
96
95
  subTitle={t('searchPage.resultType.notionsHeading')}
97
96
  hideBaselineIcon
@@ -127,7 +126,6 @@ const ConceptNotion = ({ concept, disableScripts, type, hideIconsAndAuthors, fig
127
126
  <ImageWrapper>
128
127
  <Notion
129
128
  id={notionId}
130
- ariaLabel={t('factbox.open')}
131
129
  title={concept.title}
132
130
  hideBaselineIcon
133
131
  subTitle={t('searchPage.resultType.notionsHeading')}
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the GPLv3 license found in the
5
5
  * LICENSE file in the root directory of this source tree. *
6
6
  */
7
- import { css } from '@emotion/core';
7
+ import { css } from '@emotion/react';
8
8
  import styled from '@emotion/styled';
9
9
  import React, { ReactNode } from 'react';
10
10
  import { Copyright } from '../types';
@@ -9,8 +9,8 @@
9
9
  import React from 'react';
10
10
  import { useTranslation } from 'react-i18next';
11
11
  import styled from '@emotion/styled';
12
- import { css } from '@emotion/core';
13
- import { keyframes } from '@emotion/core';
12
+ import { css } from '@emotion/react';
13
+ import { keyframes } from '@emotion/react';
14
14
  import SafeLink from '@ndla/safelink';
15
15
  import { Additional, Core, HumanMaleBoard } from '@ndla/icons/common';
16
16
  import { breakpoints, colors, fonts, mq, spacing } from '@ndla/core';
@@ -8,8 +8,8 @@
8
8
 
9
9
  import React from 'react';
10
10
  import styled from '@emotion/styled';
11
- import { css } from '@emotion/core';
12
- import { keyframes } from '@emotion/core';
11
+ import { css } from '@emotion/react';
12
+ import { keyframes } from '@emotion/react';
13
13
  import { useTranslation } from 'react-i18next';
14
14
  import NoContentBox from '../NoContentBox';
15
15
  import ResourceItem from './ResourceItem';
@@ -1,5 +1,5 @@
1
1
  import React, { Fragment, ReactNode } from 'react';
2
- import { css } from '@emotion/core';
2
+ import { css } from '@emotion/react';
3
3
  import styled from '@emotion/styled';
4
4
  import { spacing } from '@ndla/core';
5
5
  import { HelpCircleDual } from '@ndla/icons/common';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import styled from '@emotion/styled';
3
- import { css } from '@emotion/core';
3
+ import { css } from '@emotion/react';
4
4
  import { spacing, mq, breakpoints } from '@ndla/core';
5
5
  import Tooltip from '@ndla/tooltip';
6
6
  import { useTranslation } from 'react-i18next';
@@ -1,5 +1,5 @@
1
1
  import styled from '@emotion/styled';
2
- import { css } from '@emotion/core';
2
+ import { css } from '@emotion/react';
3
3
  import { colors, spacing, spacingUnit, fonts, misc, animations, mq, breakpoints } from '@ndla/core';
4
4
 
5
5
  export const highlightStyle = css`
@@ -9,7 +9,7 @@
9
9
  import React, { FocusEvent, MouseEvent, RefObject } from 'react';
10
10
  import { useTranslation } from 'react-i18next';
11
11
  import BEMHelper from 'react-bem-helper';
12
- import { css } from '@emotion/core';
12
+ import { css } from '@emotion/react';
13
13
  import styled from '@emotion/styled';
14
14
  import { Search as SearchIcon } from '@ndla/icons/common';
15
15
  import { colors, spacing, mq, breakpoints, misc, fonts } from '@ndla/core';
@@ -1,6 +1,6 @@
1
1
  import React, { FormEvent, ReactNode } from 'react';
2
2
  import styled from '@emotion/styled';
3
- import { css } from '@emotion/core';
3
+ import { css } from '@emotion/react';
4
4
  import { spacing, mq, breakpoints } from '@ndla/core';
5
5
 
6
6
  interface Props {
@@ -9,7 +9,7 @@
9
9
  import React, { ReactElement } from 'react';
10
10
  import { useTranslation } from 'react-i18next';
11
11
  import styled from '@emotion/styled';
12
- import { css } from '@emotion/core';
12
+ import { css } from '@emotion/react';
13
13
  import { spacing, mq, breakpoints } from '@ndla/core';
14
14
  import Tooltip from '@ndla/tooltip';
15
15
  import Button from '@ndla/button';